joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43fd10
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x21c], ecx
lea ecx, [ebp - 0x20c]
push edi
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x210], eax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], 0
mov edi, 0x200
jmp 0x43fd66
mov eax, dword [ebp - 0x210]
lea edx, [ebp - 0x20c]
sub ecx, edx
mov dword [ebp - 0x224], ecx
je 0x43fdd0
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x43fd88
call fcn.004278e0
mov eax, dword [ebp - 0x224]
mov ebx, dword [esi + 8]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push esi
call fcn.0042d460
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
inc dword [ebp - 0x214]
lea eax, [ebp - 0x218]
add esp, 0xc
lea edx, [ebp - 0x20c]
push eax
mov dword [ebp - 0x218], edx
call fcn.0041cec0
add esp, 4
mov ebx, dword [ebp + 0xc]
cmp edi, ebx
jbe 0x43fdd9
mov edi, ebx
mov ecx, dword [ebp - 0x21c]
push ecx
push edi
lea edx, [ebp - 0x20c]
push 1
push edx
call fcn.00456a00
mov ecx, dword [ebp - 0x218]
add ecx, eax
add esp, 0x10
sub ebx, eax
mov dword [ebp - 0x218], ecx
mov dword [ebp + 0xc], ebx
je 0x43fe0f
cmp eax, edi
je 0x43fd60
lea eax, [ebp - 0x20c]
sub ecx, eax
mov edi, ecx
je 0x43fe69
mov eax, dword [ebp - 0x210]
mov ecx, dword [eax + 0x10]
mov edx, dword [ecx + 0x44]
mov esi, eax
cmp edx, dword [ecx + 0x40]
jb 0x43fe33
call fcn.004278e0
mov ebx, dword [esi + 8]
push edi
lea eax, [ebp - 0x20c]
push eax
push esi
call fcn.0042d460
mov dword [ebx], eax
mov dword [ebx + 8], 4
add dword [esi + 8], 0x10
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x20c]
add esp, 0xc
inc dword [ebp - 0x214]
mov dword [ebp - 0x218], ecx
mov eax, dword [ebp - 0x214]
mov esi, dword [ebp - 0x210]
call fcn.0041a3c0
mov dword [ebp - 0x214], 1
test ebx, ebx
je 0x43fee6
mov edi, dword [ebp - 0x220]
mov esi, dword [edi + 8]
mov eax, dword [esi - 8]
sub esi, 0x10
add eax, 0xfffffffd
cmp eax, 4
ja case.0x43fe9f.6
jmp dword [eax*4 + 0x43fefc]
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
jmp 0x43fecf
mov eax, dword [esi]
mov eax, dword [eax + 0x10]
jmp 0x43fecf
mov eax, dword [esi]
call fcn.00425dd0
jmp 0x43fecf
call fcn.00427b10
test eax, eax
je 0x43fecd
mov ecx, dword [esi]
mov eax, dword [ecx + 0xc]
jmp 0x43fecf
xor eax, eax
test eax, eax
jne 0x43fee6
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.0044fe53
mov esp, ebp
pop ebp
ret
Function at 0x441d50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0x10]
mov esi, dword [eax*4 + 0x477060]
mov eax, esi
mov dword [esp + 0xc], esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441d78
sub eax, edx
mov edi, eax
mov ecx, edi
shr ecx, 5
inc ecx
mov ebx, edi
mov dword [esp + 0x14], edi
mov edx, edi
cmp edi, ecx
jb 0x441db8
movzx eax, byte [esi + edx - 1]
mov esi, ebx
shl esi, 5
add eax, esi
mov esi, ebx
shr esi, 2
add eax, esi
mov esi, dword [esp + 0xc]
sub edx, ecx
xor ebx, eax
cmp edx, ecx
jae 0x441d95
mov dword [esp + 0x14], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x10]
mov edx, dword [eax + 8]
mov eax, dword [eax]
dec edx
and edx, ebx
mov eax, dword [eax + edx*4]
test eax, eax
je 0x441e32
lea ecx, [ecx]
cmp dword [eax + 0xc], edi
jne 0x441e2c
mov ecx, edi
lea edx, [eax + 0x10]
cmp edi, 4
jb 0x441df4
nop
mov ebx, dword [esi]
cmp ebx, dword [edx]
jne 0x441e24
sub ecx, 4
add edx, 4
add esi, 4
cmp ecx, 4
jae 0x441de0
test ecx, ecx
je 0x441ea3
mov bl, byte [edx]
cmp bl, byte [esi]
jne 0x441e24
cmp ecx, 1
jbe 0x441ea3
mov bl, byte [edx + 1]
cmp bl, byte [esi + 1]
jne 0x441e24
cmp ecx, 2
jbe 0x441ea3
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
je 0x441ea3
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0xc]
mov eax, dword [eax]
test eax, eax
jne 0x441dd0
mov eax, dword [ebp + 8]
push esi
push eax
mov eax, ebx
call fcn.0042d3b0
add esp, 8
mov ecx, dword [esp + 0x10]
or byte [eax + 5], 0x20
lea edx, [ecx + 1]
inc ecx
mov byte [eax + 6], dl
mov dword [esp + 0x10], ecx
cmp ecx, 0x1e
jl 0x441d64
mov ecx, dword [0x477128]
test ecx, ecx
je 0x441e9c
mov esi, 0x477128
mov bl, 0x2c
mov edi, edi
mov eax, ecx
add esi, 4
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x441e78
sub eax, edi
push eax
mov eax, dword [ebp + 8]
push ecx
push eax
call fcn.0042d460
or byte [eax + 5], 0x20
mov byte [eax + 6], bl
mov ecx, dword [esi]
add esp, 0xc
test ecx, ecx
jne 0x441e70
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov cl, byte [eax + 5]
mov esi, dword [esi + 0x10]
movzx ebx, byte [esi + 0x14]
movzx edx, cl
and edx, 3
not ebx
test bl, dl
je 0x441e41
xor cl, 3
mov byte [eax + 5], cl
jmp 0x441e41
Function at 0x445040
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x445057
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [eax + 0x3c]
add ebx, eax
cmp dword [ebx], 0x4550
je 0x44506c
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebx + 0x50]
mov eax, dword [ebx + 0x34]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push edi
push 4
push 0x2000
push edx
push eax
call esi
mov edi, eax
test edi, edi
jne 0x4450a3
mov ecx, dword [ebx + 0x50]
push 4
push 0x2000
push ecx
push eax
call esi
mov edi, eax
test edi, edi
je 0x44515a
push 0x14
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
xor eax, eax
push 4
mov dword [esi + 4], edi
mov dword [esi + 0xc], eax
mov dword [esi + 8], eax
mov dword [esi + 0x10], eax
mov edx, dword [ebx + 0x50]
push 0x1000
push edx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov eax, dword [ebx + 0x54]
push 4
push 0x1000
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebx + 0x54]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 4], eax
push edx
push ecx
push eax
call fcn.00460f10
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0x3c]
add eax, dword [ebp - 4]
push esi
push ebx
mov dword [esi], eax
push ecx
mov dword [eax + 0x34], edi
call fcn.00444d10
mov eax, edi
add esp, 0x18
sub eax, dword [ebx + 0x34]
je 0x445127
push eax
mov eax, esi
call fcn.00444e90
add esp, 4
push esi
call fcn.00444f20
add esp, 4
test eax, eax
je 0x445155
push esi
call fcn.00444dc0
mov eax, dword [esi]
mov eax, dword [eax + 0x28]
add esp, 4
test eax, eax
je 0x44516a
add eax, edi
je 0x445155
push 0
push 1
push edi
call eax
test eax, eax
jne 0x445163
call fcn.00445230
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esi + 0x10], 1
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x44fe53
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x48c4c4]
jne 0x44fe5d
repz ret
jmp fcn.00457a74

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x456620
call fcn.00451b8b
mov dword [eax], esi
call fcn.00451b78
push 0x16
pop esi
mov dword [eax], esi
call fcn.00459df7
mov eax, esi
jmp 0x456675
test dword [ebp + 0xc], 0xfffffff9
jne 0x456606
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x45664d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00451b9e
pop ecx
call fcn.00451b78
mov eax, dword [eax]
jmp 0x456675
test al, 0x10
jne 0x456673
test al, 1
je 0x456673
test byte [ebp + 0xc], 2
je 0x456673
call fcn.00451b8b
mov dword [eax], 5
call fcn.00451b78
mov dword [eax], 0xd
jmp 0x456644
xor eax, eax
pop esi
pop ebp
ret
Function at 0x466331
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x48c4c4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004585da
and dword [ebp - 0x14], 0
cmp dword [0x48ed2c], 0
mov dword [ebp - 0x18], eax
jne 0x4663e4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x46648c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x46648c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x475a4c
push ebx
mov dword [0x48ed2c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x48ed30], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x48ed34], eax
call edi
push eax
call esi
mov dword [0x48ed3c], eax
test eax, eax
je 0x4663e4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x48ed38], eax
mov eax, dword [0x48ed38]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x46643d
cmp dword [0x48ed3c], ecx
je 0x46643d
push eax
call esi
push dword [0x48ed3c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x46643d
test ebx, ebx
je 0x46643d
call edi
test eax, eax
je 0x466434
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x466434
test byte [ebp - 8], 1
jne 0x46643d
or dword [ebp + 0x10], 0x200000
jmp 0x466470
mov eax, dword [0x48ed30]
cmp eax, dword [ebp - 0x18]
je 0x466470
push eax
call esi
test eax, eax
je 0x466470
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x466470
mov eax, dword [0x48ed34]
cmp eax, dword [ebp - 0x18]
je 0x466470
push eax
call esi
test eax, eax
je 0x466470
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x48ed2c]
call esi
test eax, eax
je 0x46648c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x46648e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044fe53
leave
ret
Function at 0x4034f0
Capabilities:
Create service
Modify service
Persist via windows service
Start service

Disassembly:
sub esp, 0x424
push esi
push edi
call fcn.004034a0
test eax, eax
jne 0x403666
push 0xf003f
push eax
push eax
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x403535
push eax
push str.CdrServ
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x424
ret
lea eax, [esp + 0x224]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0
push 0x40eddc
push 0
lea ecx, [esp + 0x234]
push 0
push ecx
push 1
push 2
push 0x10
push 0xf01ff
push str.CdrServ
push str.CdrServ
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov esi, eax
test esi, esi
jne 0x4035c6
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x28]
push str.Couldnt_create_service__Error_Code:_d
push edx
call dword [sym.imp.MSVCRT.dll_wprintf]
add esp, 0xc
lea eax, [esp + 0x24]
push 0
push str.CdrServ
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push edi
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x424
ret
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
push 2
push esi
mov dword [esp + 0x18], 0x2710
mov dword [esp + 0x14], 1
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], ecx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
push 0
jne 0x40363b
push str.CdrServ
push str.Couldnt_change_service_config
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x424
ret
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40365a
push eax
push str.CdrServ
push str.Start_Service_Error
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call esi
push edi
call esi
pop edi
mov eax, 1
pop esi
add esp, 0x424
ret
Function at 0x403680
Capabilities:
Delete service
Stop service

Disassembly:
sub esp, 0x1c
push esi
push edi
call fcn.004034a0
test eax, eax
jne 0x403699
pop edi
mov eax, 1
pop esi
add esp, 0x1c
ret
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
jne 0x4036c8
push eax
push str.CdrServ
push str.Couldnt_open_service_manager
push eax
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
push 0x10020
push str.CdrServ
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
jne 0x403700
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push esi
push str.CdrServ
push str.Couldnt_open_service
push esi
call dword [sym.imp.USER32.dll_MessageBoxW]
pop edi
xor eax, eax
pop esi
add esp, 0x1c
ret
lea eax, [esp + 8]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ebx, eax
call esi
push edi
call esi
xor eax, eax
test ebx, ebx
pop ebx
pop edi
setne al
pop esi
add esp, 0x1c
ret
Function at 0x4043d0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
lea eax, [esp]
push esi
mov esi, ecx
push eax
push 0x202
mov dword [esi], 0x408268
mov dword [esi + 4], 0
mov dword [esi + 8], 0xffffffff
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, esi
pop esi
add esp, 0x190
ret

Function at 0x404480
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x100
mov al, byte [0x41f61c]
push esi
mov esi, dword [esp + 0x108]
push edi
mov byte [esp + 8], al
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 9]
rep stosd dword es:[edi], eax
lea ecx, [esp + 8]
push 0xff
push ecx
push esi
stosw word es:[edi], ax
call fcn.00403930
add esp, 0xc
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x4044ea
mov eax, dword [esp + 0x110]
push esi
push eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x404502
pop edi
pop esi
add esp, 0x100
ret
mov eax, dword [eax + 0xc]
mov edx, dword [esp + 0x110]
push 0xff
push edx
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.00403970
add esp, 0xc
mov eax, 1
pop edi
pop esi
add esp, 0x100
ret
Function at 0x404660
Capabilities:
Create raw socket
Create udp socket
Set socket configuration

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
lea eax, [ebx - 1]
mov esi, ecx
cmp eax, 0xfe
mov ebp, 1
ja case.0x404683.5
xor ecx, ecx
mov cl, byte [eax + 0x404800]
jmp dword [ecx*4 + 0x4047ec]
push 6
push ebp
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
jmp 0x4046d3
push 0x11
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
jmp 0x4046d3
push ebp
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
jmp 0x4046d3
push 6
push 3
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi + 8], eax
jmp 0x4046d3
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
jne 0x4046e6
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0xc
push edi
mov edi, dword [sym.imp.WS2_32.dll_setsockopt]
lea edx, [esp + 0x24]
push 4
push edx
push 0x1001
push 0xffff
push eax
mov dword [esp + 0x38], 0x8000
mov dword [esp + 0x24], ebp
call edi
mov ecx, dword [esi + 8]
lea eax, [esp + 0x24]
push 4
push eax
push 0x1002
push 0xffff
push ecx
call edi
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push 4
push edx
push 4
push 0xffff
push eax
call edi
mov edx, dword [esi + 8]
lea ecx, [esp + 0x14]
push 4
push ecx
push ebp
push 6
push edx
mov dword [esp + 0x28], ebp
call edi
cmp ebx, 0xff
mov ebx, dword [sym.imp.WS2_32.dll_ioctlsocket]
jne 0x404783
mov ecx, dword [esi + 8]
lea eax, [esp + 0x18]
push 4
push eax
push 2
push 0
push ecx
mov dword [esp + 0x2c], ebp
call edi
mov eax, dword [esi + 8]
lea edx, [esp + 0x1c]
push edx
push 0x98000001
push eax
mov dword [esp + 0x28], ebp
call ebx
mov edi, dword [esp + 0x2c]
test edi, edi
jne 0x4047ae
mov ecx, dword [esi + 8]
push edi
push edi
push edi
push ecx
mov dword [esp + 0x3c], edi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov eax, dword [esi + 8]
lea edx, [esp + 0x2c]
push edx
push 0x8004667e
push eax
call ebx
jmp 0x4047d3
mov edx, dword [esi + 8]
lea ecx, [esp + 0x2c]
push ecx
push 0x8004667e
push edx
mov dword [esp + 0x38], ebp
call ebx
mov eax, dword [esi + 8]
push ebp
push 0x7e9
push edi
push eax
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov ecx, dword [esp + 0x28]
push ecx
mov ecx, esi
call fcn.00404600
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0xc
Function at 0x404900
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x10
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
mov esi, dword [esp + 0x24]
mov edx, ecx
mov ecx, esi
push edi
mov ebp, ecx
xor eax, eax
mov edi, ebx
mov dword [esp + 0x28], 0x10
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
and ecx, 3
rep stosb byte es:[edi], al
mov edx, dword [edx + 8]
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0
push esi
push ebx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
mov esi, eax
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x404969
push 0xff
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
call fcn.00403970
add esp, 0xc
mov edi, dword [esp + 0x30]
test edi, edi
je 0x404983
mov ecx, dword [esp + 0x12]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
and eax, 0xffff
mov dword [edi], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 0x10

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

Disassembly:
sub esp, 0x110
push esi
mov esi, dword [esp + 0x120]
push edi
mov edi, ecx
test esi, esi
je 0x404aae
mov eax, dword [esp + 0x128]
test eax, eax
je 0x404aae
push eax
mov word [esp + 0xc], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [esp + 0xa], ax
xor eax, eax
xor ecx, ecx
mov word [esp + 0xd], ax
mov dword [esp + 0x10], ecx
push 0x40eddc
push esi
mov byte [esp + 0x14], 0
mov byte [esp + 0x17], al
mov dword [esp + 0x1c], ecx
call dword [sym.imp.MSVCRT.dll_wcscmp]
add esp, 8
test eax, eax
je 0x404a7a
lea edx, [esp + 0x18]
push 0xff
push edx
push esi
call fcn.00403930
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x120]
mov edx, dword [esp + 0x11c]
mov eax, dword [edi + 8]
lea ecx, [esp + 8]
push 0x10
push ecx
push 0
push esi
push edx
push eax
call dword [sym.imp.WS2_32.dll_sendto]
cmp eax, esi
je 0x404adb
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret 0x10
mov esi, dword [esp + 0x120]
mov ecx, dword [esp + 0x11c]
mov edx, dword [edi + 8]
push 0
push esi
push ecx
push edx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
je 0x404adb
pop edi
xor eax, eax
pop esi
add esp, 0x110
ret 0x10
pop edi
mov eax, 1
pop esi
add esp, 0x110
ret 0x10
Function at 0x4014dc
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x50
push ebp
lea eax, [esp + 0x28]
push edi
push eax
call fcn.0040168c
mov ecx, dword [esp + 0x5c]
xor edx, edx
xor ebp, ebp
mov dword [esp + 0xc], 1
mov edi, dword [ecx]
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dx, word [edi + 0x14]
cmp word [edi + 6], bp
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x20], 0x80
mov dword [esp + 0x24], 0x20
mov dword [esp + 0x28], 0x40
lea eax, [edx + edi + 0x18]
jbe 0x4015da
push ebx
push esi
lea ebx, [eax + 0x24]
mov eax, dword [ebx]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x40157d
mov eax, dword [ebx - 0x14]
mov ecx, dword [ebx - 0x1c]
push 0x4000
push eax
push ecx
call dword [esp + 0x4c]
jmp 0x4015c0
lea edx, [edx + ecx*2]
test eax, 0x4000000
lea ecx, [esi + edx*2]
mov esi, dword [esp + ecx*4 + 0x14]
je 0x401594
or esi, 0x200
mov edx, dword [ebx - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x4015af
test al, 0x40
je 0x4015a6
mov ecx, dword [edi + 0x20]
jmp 0x4015ad
test al, 0x80
je 0x4015c0
mov ecx, dword [edi + 0x24]
test ecx, ecx
jbe 0x4015c0
mov ecx, dword [ebx - 0x1c]
lea eax, [esp + 0x10]
push eax
push esi
push edx
push ecx
call dword [esp + 0x44]
mov edx, dword [esp + 0x64]
xor eax, eax
inc ebp
add ebx, 0x28
mov edi, dword [edx]
mov ax, word [edi + 6]
cmp ebp, eax
jl 0x40154c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x50
ret
Function at 0x40c9d0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e37b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00462c83
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40ca52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00460b5d
mov eax, dword [eax]
push 0x4bfc84
push eax
call fcn.00453934
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462f0e
test bl, bl
je 0x40ca52
push 0x4bfc84
lea ecx, [esp + 0xc]
call fcn.0046329e
push 0x4bfc90
lea ecx, [esp + 0xc]
call fcn.0046329e
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x40ca8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462f0e
jmp 0x40cb59
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x40cb12
lea edx, [esp + 0x7c]
push 0x4bfc8c
push edx
call fcn.00453934
add esp, 8
test eax, eax
je 0x40cb12
lea eax, [esp + 0x7c]
push 0x4bfc88
push eax
call fcn.00453934
add esp, 8
test eax, eax
je 0x40cb12
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40caa2
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00462f0e
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x40d380
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40d3e2
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc