joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
xor eax, eax
push ebp
push 0x405e0a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 2
push 0
push 2
push 0x40000000
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
je 0x405def
cmp esi, 0xffffffff
jne 0x405dd3
push 0
push 0
push 0
push ebx
call sub.KERNEL32.DLL_SetFilePointer
push 0
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 8]
call fcn.00401f9c
push eax
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405e11
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
ret

Function at 0x406088
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.00401f38
mov eax, dword [ebp - 8]
call fcn.00401f38
mov eax, dword [ebp + 0xc]
call fcn.00401f38
xor eax, eax
push ebp
push 0x406167
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov edx, dword [ebp + 0xc]
call fcn.00401b14
lea eax, [ebp - 0xc]
push eax
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00401f48
push eax
push esi
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406144
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
call fcn.00401f48
mov esi, eax
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
jne 0x40613b
mov eax, ebx
mov edx, dword [ebp - 0x14]
call fcn.00402074
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebx]
call fcn.00401f48
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push esi
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA
mov edx, dword [ebp - 0x14]
dec edx
mov eax, ebx
call fcn.00402074
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40616e
lea eax, [ebp - 8]
mov edx, 2
call fcn.00401ae4
lea eax, [ebp + 0xc]
call fcn.00401ac0
ret

Function at 0x406660
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00401f48
push eax
call sub.KERNEL32.DLL_GetFileAttributesA
cmp eax, 0xffffffff
je 0x406679
test al, 0x10
jne 0x40667d
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret
Function at 0x407cac
Capabilities:
Get session user name
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407d81
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
call fcn.00401ac0
lea eax, [ebp - 4]
mov edx, pe_nt_image_headers32
call fcn.00402074
mov dword [ebp - 8], 0xff
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
call sub.advapi32.dll_GetUserNameA
test eax, eax
je 0x407d6b
mov dword [ebp - 0xc], 0xff
mov dword [ebp - 0x10], 0xff
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 4]
call fcn.00401f9c
push eax
push 0
call sub.advapi32.dll_LookupAccountNameA
test eax, eax
je 0x407d6b
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_IsValidSid
test eax, eax
je 0x407d6b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x118]
push eax
call sub.advapi32.dll_ConvertSidToStringSidA
mov eax, ebx
mov edx, dword [ebp - 0x18]
call fcn.00401cac
mov eax, dword [ebp - 0x18]
push eax
call sub.KERNEL32.DLL_GlobalFree
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d88
lea eax, [ebp - 4]
call fcn.00401ac0
ret
Function at 0x40aebc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, ecx
mov ebp, edx
mov esi, eax
push 0x40
push 0x3000
push edi
push 0
push esi
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebx, eax
lea eax, [esp + 4]
push eax
push 0x40
push edi
push ebx
push esi
call sub.KERNEL32.DLL_VirtualProtectEx
test ebx, ebx
je 0x40aefe
push esp
push edi
push ebp
push ebx
push esi
call sub.KERNEL32.DLL_WriteProcessMemory
test eax, eax
jne 0x40aefe
xor ebx, ebx
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40af08
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffec
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
xor eax, eax
mov dword [esp + 8], eax
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov ecx, eax
mov eax, ecx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov esi, dword [eax + 0x50]
mov edi, dword [eax + 0x34]
push 0x8000
push 0
push edi
push ebx
call sub.KERNEL32.DLL_VirtualFreeEx
push 0x40
push 0x3000
push esi
push edi
push ebx
call sub.KERNEL32.DLL_VirtualAllocEx
mov ebp, eax
test ebp, ebp
je 0x40afa4
lea eax, [esp + 0xc]
push eax
push esi
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteProcessMemory
cmp esi, dword [esp + 0xc]
ja 0x40afa4
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push eax
push 0
push 0
push ebx
call sub.KERNEL32.DLL_CreateRemoteThread
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov dword [esp + 8], ebp
mov eax, dword [esp + 8]
add esp, 0x14
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x40afb0
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x40b062
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
xor eax, eax
call fcn.004013a4
mov eax, dword [ebp - 0xc]
call fcn.00401f48
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b070
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
lea eax, [ebp - 0x10]
mov edx, esi
call fcn.00401cac
mov eax, dword [ebp - 0x10]
call fcn.00401d50
mov ecx, eax
mov edx, esi
mov eax, ebx
call fcn.0040aebc
mov dword [ebp - 8], eax
lea edx, [ebp - 8]
mov ecx, 4
mov eax, ebx
call fcn.0040aebc
mov edx, 0x40ae94
mov ecx, eax
mov eax, ebx
call fcn.0040af08
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b069
lea eax, [ebp - 0x10]
mov edx, 2
call fcn.00401ae4
ret
Function at 0x40b7fc
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor eax, eax
mov dword [ebp - 0x5c], eax
xor eax, eax
push ebp
push 0x40b8fa
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x40d204]
mov edx, dword [edx]
lea eax, [ebp - 0x5c]
mov ecx, 0x40b910
call fcn.00401d9c
mov eax, dword [ebp - 0x5c]
call fcn.00401f48
push eax
push 0
push 0
call fcn.00403568
mov ebx, eax
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
jne 0x40b857
push ebx
call sub.KERNEL32.DLL_CloseHandle
jmp 0x40b8e4
push ebx
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [0x40d1cc]
call fcn.00401f9c
mov esi, eax
lea eax, [ebp - 4]
push eax
push 0
push 0x40b91c
call sub.user32.dll_FindWindowA
push eax
call sub.user32.dll_GetWindowThreadProcessId
mov eax, dword [ebp - 4]
push eax
push 0
push 0x1f0fff
call sub.KERNEL32.DLL_OpenProcess
mov ebx, eax
mov edx, esi
mov eax, ebx
call fcn.004040f4
test al, al
jne 0x40b8e4
lea eax, [ebp - 0x58]
mov edx, 0x44
call fcn.00403738
lea eax, [ebp - 0x14]
mov edx, 0x10
call fcn.00403738
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x40b92c
push 0
call sub.KERNEL32.DLL_CreateProcessA
mov ebx, dword [ebp - 0x14]
mov edx, esi
mov eax, ebx
call fcn.004040f4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b901
lea eax, [ebp - 0x5c]
call fcn.00401ac0
ret
Function at 0x401f30
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1d4
mov eax, dword [0x4ad514]
xor eax, esp
mov dword [esp + 0x1d0], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
push 2
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
lea eax, [esp + 0x48]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
call fcn.00402d10
lea eax, [esp + 0x30]
push eax
call fcn.00403f40
add esp, 4
lea ecx, [esp + 0x30]
push 0x4a87f8
call fcn.00401750
lea eax, [esp + 0x30]
push eax
call fcn.00403ed0
add esp, 4
test al, al
jne 0x401fab
lea eax, [esp + 0x30]
push eax
call fcn.00403ef0
add esp, 4
push str.downloader.log
lea ecx, [esp + 0x34]
call fcn.00401750
sub esp, 0x18
lea eax, [esp + 0x48]
mov ecx, esp
push eax
call fcn.004024a0
call fcn.00402d30
push str._r_n_r_n_start_
push 0x23
push str.wWinMain
call fcn.00402c80
add esp, 0x24
push edi
push str.cmd:_s
push 0x24
push str.wWinMain
call fcn.00402c80
add esp, 0x10
push 0x6d
push esi
call dword [sym.imp.USER32.dll_LoadAcceleratorsW]
mov ebx, dword [sym.imp.USER32.dll_GetMessageW]
push 0
push 0
mov dword [esp + 0x18], eax
lea eax, [esp + 0x1c]
push 0
push eax
call ebx
test eax, eax
je 0x40205c
mov esi, dword [sym.imp.USER32.dll_TranslateMessage]
mov edi, dword [sym.imp.USER32.dll_DispatchMessageW]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
push dword [esp + 0x1c]
call dword [sym.imp.USER32.dll_TranslateAcceleratorW]
test eax, eax
jne 0x40204b
lea eax, [esp + 0x14]
push eax
call esi
lea eax, [esp + 0x14]
push eax
call edi
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
call ebx
test eax, eax
jne 0x402026
mov edx, dword [esp + 0x44]
cmp edx, 8
jb 0x402094
mov ecx, dword [esp + 0x30]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40208a
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4020af
push edx
push ecx
call fcn.00460e38
add esp, 8
mov ecx, dword [esp + 0x1dc]
mov eax, dword [esp + 0x1c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460ae4
mov esp, ebp
pop ebp
ret 0x10
call fcn.00469a90
int3

Function at 0x403f40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
mov eax, dword [0x4ad514]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x22c], 0
push 0x20a
push 0
lea eax, [ebp - 0x210]
push eax
call fcn.004625a0
add esp, 0xc
lea ecx, [ebp - 0x210]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea edx, [ebp - 0x210]
push edx
lea ecx, [ebp - 0x228]
call fcn.004014c0
lea eax, [ebp - 0x228]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401470
mov ecx, dword [ebp - 0x22c]
or ecx, 1
mov dword [ebp - 0x22c], ecx
lea ecx, [ebp - 0x228]
call fcn.00401410
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460ae4
mov esp, ebp
pop ebp
ret
Function at 0x4043a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 8], ecx
cmp dword [ebp + 0x10], 0
jg 0x4043c0
jl 0x4043b7
cmp dword [ebp + 0xc], 0
ja 0x4043c0
xor eax, eax
xor edx, edx
jmp 0x4044f7
mov eax, dword [ebp - 8]
cmp dword [eax + 0x38], 0
je 0x4043e2
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 8]
call fcn.00408580
jmp 0x4044f7
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 8]
call fcn.00408440
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x404451
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 4]
push edx
call fcn.004013c0
add esp, 8
mov eax, dword [eax]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
push ecx
mov ecx, dword [ebp - 8]
call fcn.00408860
push eax
mov edx, dword [ebp + 8]
push edx
call fcn.00401ca0
add esp, 0xc
mov eax, dword [ebp + 8]
add eax, dword [ebp - 0xc]
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 4]
sub ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 8]
call fcn.00408470
mov eax, dword [ebp - 8]
cmp dword [eax + 0x4c], 0
je 0x4044e8
mov ecx, dword [ebp - 8]
call fcn.00405370
mov dword [ebp - 0x18], 0xfff
cmp dword [ebp - 4], 0xfff
jbe 0x4044c1
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x4c]
push edx
push 0xfff
push 1
mov eax, dword [ebp + 8]
push eax
call fcn.0046a499
add esp, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x10]
mov dword [ebp + 8], ecx
mov edx, dword [ebp - 4]
sub edx, dword [ebp - 0x10]
mov dword [ebp - 4], edx
cmp dword [ebp - 0x10], 0xfff
je 0x4044bf
xor eax, eax
mov ecx, dword [ebp - 0x20]
sub ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
sbb edx, eax
mov eax, ecx
jmp 0x4044f7
jmp 0x40446d
cmp dword [ebp - 4], 0
jbe 0x4044e8
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0x4c]
push eax
mov ecx, dword [ebp - 4]
push ecx
push 1
mov edx, dword [ebp + 8]
push edx
call fcn.0046a499
add esp, 0x10
mov ecx, dword [ebp - 4]
sub ecx, eax
mov dword [ebp - 4], ecx
xor edx, edx
mov eax, dword [ebp - 0x20]
sub eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
sbb ecx, edx
mov edx, ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40a550
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x489d3d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x4ad514]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
push eax
call fcn.00401a10
add esp, 4
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0040abb0
add esp, 8
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x18]
push edx
lea ecx, [ebp - 0x14]
call fcn.0040ac30
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.0040aa90
mov dword [ebp - 0x20], 0x40ac70
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
push 0
lea ecx, [ebp - 0x14]
call fcn.00407d60
push eax
mov ecx, dword [ebp - 0x20]
push ecx
push 0
push 0
call fcn.00473569
add esp, 0x18
mov edx, dword [ebp - 0x10]
mov dword [edx], eax
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0
je 0x40a5ef
lea ecx, [ebp - 0x14]
call fcn.0040aa60
jmp 0x40a600
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0
push 6
call fcn.0045fd17
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.0040aa90
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4

Function at 0x413cb0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x413d5f
push esi
call fcn.0042b020
add esp, 4
test al, al
jne 0x413d5f
push ebx
push edi
mov edi, esi
xor ebx, ebx
lea ecx, [edi + 1]
mov al, byte [edi]
inc edi
test al, al
jne 0x413cd7
sub edi, ecx
push edi
push 0x2e
push esi
call fcn.00433e30
add esp, 0xc
test eax, eax
je 0x413d0b
sub eax, esi
push eax
push 0x2e
push esi
call fcn.00433e30
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x413d0d
inc ebx
mov ecx, esi
sub ecx, ebx
add edi, ecx
test ebx, ebx
cmovne esi, ebx
lea ebx, [esi + edi]
mov edi, 0x1505
cmp esi, ebx
jae 0x413d3e
nop dword [eax]
mov al, byte [esi]
push eax
call fcn.00424910
movsx ecx, al
inc esi
mov eax, edi
add esp, 4
shl eax, 5
add eax, edi
xor ecx, eax
mov edi, ecx
cmp esi, ebx
jb 0x413d20
mov eax, 0x4104105
mov esi, edi
mul edi
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 5
mov ecx, esi
shl ecx, 6
sub ecx, esi
sub edi, ecx
mov eax, edi
pop edi
pop ebx
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x421aa0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push 0x48eec4
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov ebx, eax
test ebx, ebx
jne 0x421aba
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExA
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x48eee0
push esi
call fcn.0046ca10
add esp, 8
test eax, eax
je 0x421b02
test ebp, ebp
je 0x421af3
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x421b28
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x421b28
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x421bdf
mov ecx, esi
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b45
sub ecx, ebx
lea eax, [edx + 1]
add eax, ecx
push eax
call dword [section..data]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x421bd5
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x421bd5
mov ecx, ebx
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b77
sub ecx, edx
mov eax, 0x5c
mov word [ecx + ebx], ax
mov ecx, ebx
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x421b90
sub ecx, edx
sub ecx, esi
add ecx, ebx
nop dword [eax]
mov al, byte [esi]
lea esi, [esi + 1]
mov byte [ecx + esi - 1], al
test al, al
jne 0x421ba0
test ebp, ebp
je 0x421bcc
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x4ad004]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
push ebx
call dword [0x4ad004]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret
Function at 0x426110
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x4ae87c]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x426161
push 3
push 2
push eax
push eax
push 6
call fcn.00453a50
add esp, 0x14
test al, al
je 0x426155
mov dword [0x4ae87c], 2
add esp, 0xc
ret
mov dword [0x4ae87c], 1
jmp 0x426166
cmp eax, 2
je 0x4261ac
lea eax, [esp + 8]
push eax
lea eax, [esp + 4]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x426191
mov eax, dword [esp]
cmp eax, dword [esp + 4]
jg 0x4261ac
push 4
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_setsockopt]
add esp, 0xc
ret
Function at 0x426c40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x188
mov eax, dword [0x4ad514]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push ebx
mov ebx, dword [esp + 0x194]
push esi
mov esi, dword [eax + 8]
push edi
mov edi, dword [esi + 0x98]
cmp edi, 0xffffffff
je 0x426d78
mov eax, dword [ebx + 0x18]
mov eax, dword [eax + 0x2b4]
test dword [eax + 0x48], 0x800
jne 0x426d78
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.004625a0
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x426d06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0040d410
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.0041e090
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00460ae4
add esp, 0x188
ret
lea eax, [esi + 0xfc]
push eax
lea eax, [esi + 0xca]
push eax
push dword [esp + 0x14]
lea eax, [esp + 0x1c]
push eax
call fcn.004205e0
add esp, 0x10
test al, al
jne 0x426d78
call fcn.00469d10
mov esi, dword [eax]
call fcn.00469d10
mov edi, eax
lea eax, [esp + 0x90]
push 0x100
push eax
push esi
call fcn.0040d410
push eax
push dword [edi]
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0041e090
add esp, 0x1c
mov eax, 2
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.00460ae4
add esp, 0x188
ret
mov ecx, dword [esp + 0x190]
xor eax, eax
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00460ae4
add esp, 0x188
ret
Function at 0x42b1b0
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x42b1f7
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 0
jne 0x42b1eb
push 0
call fcn.0042b1b0
add esp, 4
test al, al
mov eax, dword [esi + 0x88]
setne cl
inc cl
mov byte [eax + 0x164], cl
mov eax, dword [esi + 0x88]
cmp byte [eax + 0x164], 2
pop esi
sete al
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x42b20c
xor al, al
pop esi
ret
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x42ba20
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x6c
mov eax, dword [0x4ad514]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x70]
push ebp
mov ebp, dword [esp + 0x78]
push edi
xor edi, edi
mov dword [esp + 8], eax
cmp byte [eax + 0x6b2], 0
je 0x42bc02
cmp byte [ebp + 0x18], 0
push ebx
lea ebx, [ebp + 0x18]
je 0x42bc01
lea eax, [esp + 0x30]
push eax
push ebx
push 2
call fcn.0043abb0
add esp, 0xc
test eax, eax
jg 0x42bc01
lea eax, [esp + 0x34]
push eax
push ebx
push 0x17
call fcn.0043abb0
add esp, 0xc
test eax, eax
jg 0x42bc01
cmp byte [ebx], 0
mov eax, str._none_
push esi
push dword [ebp + 0x14]
mov esi, dword [ebp]
cmovne eax, ebx
mov ebp, dword [esp + 0x14]
push eax
push str.Host__s:_d_was_resolved.
push ebp
call fcn.0041e160
lea eax, [esp + 0x24]
push 0x400
push eax
call fcn.00414c80
lea eax, [esp + 0x3c]
push 0x400
push eax
call fcn.00414c80
add esp, 0x20
test esi, esi
je 0x42bb74
lea edx, [edi + 0x10]
mov ecx, dword [esi + 4]
cmp ecx, 0x17
je 0x42bae8
cmp ecx, 2
jne 0x42bb69
xor eax, eax
mov byte [esp + 0x48], 0
cmp ecx, 2
lea ebx, [esp + 0x14]
cmovne eax, edx
add ebx, eax
sub ecx, 2
je 0x42bb17
sub ecx, 0x15
jne 0x42bb2f
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 8
push eax
push 0x17
jmp 0x42bb27
push 0x2e
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esi + 0x18]
add eax, 4
push eax
push 2
call fcn.004529c0
add esp, 0x10
push ebx
call fcn.00412c60
add esp, 4
test eax, eax
je 0x42bb4e
push 2
push 0x48e5b0
push ebx
call fcn.00414c40
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x42bb94
lea eax, [esp + 0x48]
push eax
push ebx
call fcn.00414be0
mov edi, eax
add esp, 8
test edi, edi
jne 0x42bb94
lea edx, [eax + 0x10]
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x42bad7
lea eax, [esp + 0x24]
push eax
call fcn.00412c60
add esp, 4
test eax, eax
je 0x42bba4
lea eax, [esp + 0x24]
push eax
call fcn.00412bb0
add esp, 4
jmp 0x42bba9
push str.too_many_IP__cannot_show
push ebp
call fcn.0041e160
add esp, 8
jmp 0x42bbe9
mov eax, str._none_
push eax
push str.IPv6:__s
push ebp
call fcn.0041e160
lea eax, [esp + 0x20]
push eax
call fcn.00412c60
add esp, 0x10
test eax, eax
je 0x42bbd5
lea eax, [esp + 0x14]
push eax
call fcn.00412bb0
add esp, 4
jmp 0x42bbda
mov eax, str._none_
push eax
push str.IPv4:__s
push ebp
call fcn.0041e160
add esp, 0xc
lea eax, [esp + 0x14]
push eax
call fcn.00414c50
lea eax, [esp + 0x28]
push eax
call fcn.00414c50
add esp, 8
pop esi
pop ebx
mov ecx, dword [esp + 0x70]
pop edi
pop ebp
xor ecx, esp
call fcn.00460ae4
add esp, 0x6c
ret