joyce8/EMBER2024-capa huggingface dataset:
Function at 0x420680
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47261b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x514
push edi
mov al, byte [0x475ae7]
mov byte [ebp - 0x51c], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x51b]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x51c]
push ecx
call fcn.004041a0
add esp, 4
lea ecx, [ebp - 0x410]
call fcn.00407a80
mov dword [ebp - 4], 0
mov dword [ebp - 0x520], 0
jmp 0x4206f5
mov edx, dword [ebp - 0x520]
add edx, 1
mov dword [ebp - 0x520], edx
mov ecx, dword [ebp + 8]
call fcn.00420be0
cmp dword [ebp - 0x520], eax
jae 0x4207d6
push 0x400
lea eax, [ebp - 0x410]
push eax
mov ecx, dword [ebp - 0x520]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00467253
lea ecx, [ebp - 0x410]
call fcn.00420de0
movzx edx, al
test edx, edx
jne 0x4207d1
lea eax, [ebp - 0x51c]
push eax
push 0x400
lea ecx, [ebp - 0x40c]
push ecx
lea ecx, [ebp - 0x410]
call fcn.004067d0
push eax
lea ecx, [ebp - 0x410]
call fcn.004067d0
push eax
push str.String
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
movsx edx, byte [ebp - 0x40c]
test edx, edx
je 0x4207a6
lea eax, [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0x520]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00420c00
push eax
push 0x400
mov edx, dword [ebp - 0x520]
push edx
mov ecx, dword [ebp + 8]
call fcn.00420c50
mov eax, dword [ebp - 0x520]
push eax
mov ecx, dword [ebp + 8]
call fcn.00420c20
test eax, eax
je 0x4207d1
mov ecx, dword [ebp - 0x520]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00420c20
push eax
call fcn.00420680
add esp, 4
jmp 0x4206e6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x410]
call fcn.00407b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x420900
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x420922
xor al, al
jmp 0x4209a0
push 0x14
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x420949
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor al, al
jmp 0x4209a0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x420980
cmp dword [ebp - 0x20], 2
jne 0x42097c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x42097e
jmp 0x420980
jmp 0x420957
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x20], 4
jne 0x42099e
mov al, 1
jmp 0x4209a0
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x420a00
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb8
mov dword [ebp - 0x98], 0x94
lea eax, [ebp - 0x98]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x420aa7
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [ebp - 0x9c], eax
lea ecx, [ebp - 0xa0]
push ecx
push 0x20
mov edx, dword [ebp - 0x9c]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0xb8], 1
lea eax, [ebp - 0xa8]
push eax
push str.SeShutdownPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0xa8]
mov dword [ebp - 0xb4], ecx
mov edx, dword [ebp - 0xa4]
mov dword [ebp - 0xb0], edx
mov dword [ebp - 0xac], 2
push 0
push 0
push 0
lea eax, [ebp - 0xb8]
push eax
push 0
mov ecx, dword [ebp - 0xa0]
push ecx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov esp, ebp
pop ebp
ret

Function at 0x4220d0
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
push 0
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x80]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebp - 4]
mov dword [edx + 0xdc], 0
push 0
mov ecx, dword [ebp - 4]
add ecx, 0x84
call fcn.00422ec0
push 1
push 0x4be
mov ecx, dword [ebp - 4]
call fcn.0046598f
mov ecx, eax
call fcn.00465b1e
push 0
push 0x3e9
mov ecx, dword [ebp - 4]
call fcn.0046598f
mov ecx, eax
call fcn.00465b1e
mov esp, ebp
pop ebp
ret
Function at 0x424190
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4729c9
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x78], 0
jne 0x424250
lea ecx, [ebp - 0x10]
call fcn.00407a80
mov dword [ebp - 4], 0
push 0x104
push 0x104
lea ecx, [ebp - 0x10]
call fcn.00407bd0
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call fcn.004249f0
push str.winhlp32.exe
lea ecx, [ebp - 0x10]
call fcn.00404810
lea ecx, [ebp - 0x10]
call fcn.004067d0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x424237
push 0x6a
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.USER32.dll_LoadCursorA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x424237
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.USER32.dll_CopyIcon]
mov ecx, dword [ebp - 0x1c]
mov dword [ecx + 0x78], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00407b30
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x424260
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x11c
mov dword [ebp - 0x11c], ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4242c7
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x118]
push ecx
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4244d0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov dword [ebp - 0x210], ecx
lea eax, [ebp - 0x208]
push eax
push 0x478ebc
push accept
mov ecx, dword [ebp - 0x210]
call fcn.00424260
test eax, eax
jne 0x4245e5
push str._shellopencommand
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [ebp - 0x208]
push edx
lea eax, [ebp - 0x208]
push eax
push accept
mov ecx, dword [ebp - 0x210]
call fcn.00424260
test eax, eax
jne 0x4245e5
push str.__1_
lea ecx, [ebp - 0x208]
push ecx
call fcn.00405350
add esp, 8
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x4245a8
push 0x478ee0
lea edx, [ebp - 0x208]
push edx
call fcn.00450170
add esp, 8
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
jne 0x42459d
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea ecx, [ebp + eax - 0x209]
mov dword [ebp - 0x20c], ecx
jmp 0x4245a6
mov edx, dword [ebp - 0x20c]
mov byte [edx], 0
jmp 0x4245b1
mov eax, dword [ebp - 0x20c]
mov byte [eax], 0
push 0x478ee4
mov ecx, dword [ebp - 0x20c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 1
lea ecx, [ebp - 0x208]
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
jmp 0x4245e7
xor eax, eax
mov esp, ebp
pop ebp
ret 8
Function at 0x428e40
Capabilities:
Create service
Delete service
Persist via windows service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x103c
call fcn.00450200
mov dword [ebp - 0x103c], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x100c], eax
cmp dword [ebp - 0x100c], 0
je 0x428f5e
push 0xf01ff
mov eax, dword [ebp - 0x103c]
add eax, 0x8c
push eax
mov ecx, dword [ebp - 0x100c]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 0x1010], eax
cmp dword [ebp - 0x1010], 0
je 0x428f3b
lea edx, [ebp - 0x1030]
push edx
push 1
mov eax, dword [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x428f05
lea ecx, [ebp - 0x1030]
push ecx
mov edx, dword [ebp - 0x1010]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x428ef2
cmp dword [ebp - 0x102c], 3
jne 0x428eee
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x428ef0
jmp 0x428ef2
jmp 0x428ec0
cmp dword [ebp - 0x102c], 1
je 0x428f05
mov dword [ebp - 0x1014], 0
mov eax, dword [ebp - 0x1010]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x428f22
mov dword [ebp - 0x1034], 1
jmp 0x428f2c
mov dword [ebp - 0x1038], 0
mov ecx, dword [ebp - 0x1010]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x428f45
mov dword [ebp - 0x1014], 1
mov edx, dword [ebp - 0x100c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0x1014], 1
jmp 0x428f68
mov dword [ebp - 0x1014], 0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 0x1004], eax
cmp dword [ebp - 0x1004], 0
jne 0x428f8d
xor eax, eax
jmp 0x42904f
push 0x7d0
lea eax, [ebp - 0x1000]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x428fac
xor eax, eax
jmp 0x42904f
push str._service
lea ecx, [ebp - 0x1000]
push ecx
push str.__s___s
lea edx, [ebp - 0x800]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x800]
push eax
push 1
push 2
push 0x110
push 0xf01ff
mov ecx, dword [ebp - 0x103c]
add ecx, 0x28
push ecx
mov edx, dword [ebp - 0x103c]
add edx, 0x8c
push edx
mov eax, dword [ebp - 0x1004]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov dword [ebp - 0x1008], eax
cmp dword [ebp - 0x1008], 0
jne 0x429030
mov ecx, dword [ebp - 0x1004]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x42904f
mov edx, dword [ebp - 0x1008]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1004]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x429060
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov dword [ebp - 0x34], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x429134
push 0xf01ff
mov eax, dword [ebp - 0x34]
add eax, 0x8c
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x42911a
lea edx, [ebp - 0x28]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x4290f0
lea ecx, [ebp - 0x28]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x4290e3
cmp dword [ebp - 0x24], 3
jne 0x4290df
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4290e1
jmp 0x4290e3
jmp 0x4290ba
cmp dword [ebp - 0x24], 1
je 0x4290f0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
je 0x429107
mov dword [ebp - 0x2c], 1
jmp 0x42910e
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x429121
mov dword [ebp - 0xc], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov dword [ebp - 0xc], 1
jmp 0x42913b
mov dword [ebp - 0xc], 0
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x42ad70
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2140
call fcn.00450200
push edi
mov dword [ebp - 0x2140], ecx
mov al, byte [0x47a158]
mov byte [ebp - 0x1128], al
mov ecx, 0x41
xor eax, eax
lea edi, [ebp - 0x1127]
rep stosd dword es:[edi], eax
push 0x49a4b0
push 0x47a15c
lea ecx, [ebp - 0x1128]
push ecx
call fcn.0044ffa8
add esp, 0xc
push 0
lea edx, [ebp - 0x1128]
push edx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [0x47a15f]
mov byte [ebp - 0x1020], al
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x101f]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xa]
push edx
movzx eax, word [ebp - 0xe]
push eax
movzx ecx, word [ebp - 0x10]
push ecx
push str._04d_02d_02d
lea edx, [ebp - 0x1020]
push edx
call fcn.0044ffa8
add esp, 0x14
lea eax, [ebp - 0x1020]
push eax
push 0x49a4b0
push 0x47a170
lea ecx, [ebp - 0x1128]
push ecx
call fcn.0044ffa8
add esp, 0x10
mov dword [ebp - 0x14], 0
push 0x47a180
lea edx, [ebp - 0x1128]
push edx
call fcn.00452004
add esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x42afa9
mov al, byte [0x47a183]
mov byte [ebp - 0x2130], al
mov ecx, 0x400
xor eax, eax
lea edi, [ebp - 0x212f]
rep stosd dword es:[edi], eax
push str.username_treceived_byte__tsent_byte__r_n
lea ecx, [ebp - 0x2130]
push ecx
call fcn.0044ffa8
add esp, 8
mov edx, dword [ebp - 0x14]
push edx
push 1
lea eax, [ebp - 0x2130]
push eax
call fcn.00450240
add esp, 4
push eax
lea ecx, [ebp - 0x2130]
push ecx
call fcn.00451f5c
add esp, 0x10
mov dword [ebp - 0x2134], 0
jmp 0x42aec3
mov edx, dword [ebp - 0x2134]
add edx, 1
mov dword [ebp - 0x2134], edx
mov ecx, dword [ebp - 0x2140]
add ecx, 0x410
call fcn.00404ab0
cmp dword [ebp - 0x2134], eax
jge 0x42af9d
push 0x10
mov eax, dword [ebp - 0x2134]
push eax
mov ecx, dword [ebp - 0x2140]
add ecx, 0x410
call fcn.00404af0
push eax
mov ecx, dword [ebp - 0x2140]
call fcn.0042b080
mov dword [ebp - 0x213c], eax
push 0x11
mov ecx, dword [ebp - 0x2134]
push ecx
mov ecx, dword [ebp - 0x2140]
add ecx, 0x410
call fcn.00404af0
push eax
mov ecx, dword [ebp - 0x2140]
call fcn.0042b080
mov dword [ebp - 0x2138], eax
mov edx, dword [ebp - 0x2138]
push edx
mov eax, dword [ebp - 0x213c]
push eax
mov ecx, dword [ebp - 0x2134]
push ecx
mov ecx, dword [ebp - 0x2140]
add ecx, 0x410
call fcn.00404af0
push eax
push str._s_t_ld_t_ld_r_n
lea edx, [ebp - 0x2130]
push edx
call fcn.0044ffa8
add esp, 0x14
mov eax, dword [ebp - 0x14]
push eax
push 1
lea ecx, [ebp - 0x2130]
push ecx
call fcn.00450240
add esp, 4
push eax
lea edx, [ebp - 0x2130]
push edx
call fcn.00451f5c
add esp, 0x10
jmp 0x42aeb4
mov eax, dword [ebp - 0x14]
push eax
call fcn.00451e04
add esp, 4
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42ed20
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x224
mov dword [ebp - 0x224], ecx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x21c], 0
jmp 0x42ed67
mov ecx, dword [ebp - 0x21c]
add ecx, 1
mov dword [ebp - 0x21c], ecx
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x108]
jae 0x42ed8b
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp + 8]
jne 0x42ed89
jmp 0x42ed8b
jmp 0x42ed58
mov edx, dword [ebp - 0x21c]
cmp edx, dword [ebp - 0x108]
jne 0x42edc1
cmp dword [ebp - 0x108], 0x40
jae 0x42edc1
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
jne 0x42ed4c
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x220], 0
jmp 0x42edea
mov ecx, dword [ebp - 0x220]
add ecx, 1
mov dword [ebp - 0x220], ecx
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp - 0x218]
jae 0x42ee0e
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + eax*4 - 0x214]
cmp ecx, dword [ebp + 8]
jne 0x42ee0c
jmp 0x42ee0e
jmp 0x42eddb
mov edx, dword [ebp - 0x220]
cmp edx, dword [ebp - 0x218]
jne 0x42ee44
cmp dword [ebp - 0x218], 0x40
jae 0x42ee44
mov eax, dword [ebp - 0x220]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x214], ecx
mov edx, dword [ebp - 0x218]
add edx, 1
mov dword [ebp - 0x218], edx
xor eax, eax
jne 0x42edcf
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x218]
push edx
push 0
lea eax, [ebp - 0x108]
push eax
push 0x40
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jne 0x42ee6f
xor eax, eax
jmp 0x42eea6
lea ecx, [ebp - 0x108]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42ee8a
mov eax, 1
jmp 0x42eea6
lea eax, [ebp - 0x218]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x42eea3
or eax, 0xffffffff
jmp 0x42eea6
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret 8
Function at 0x42f340
Capabilities:
Check for time delay via gettickcount
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 0x14], 8
jne 0x42f3f6
mov dword [ebp - 8], 0
jmp 0x42f365
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jge 0x42f3ee
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x10], 0
je 0x42f3ee
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
je 0x42f3e9
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0042eeb0
test eax, eax
je 0x42f3bc
push 0
push 1
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jg 0x42f3ba
xor eax, eax
jmp 0x42f470
jmp 0x42f3e9
cmp dword [0x48fa68], 0
jg 0x42f3c7
jmp 0x42f381
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0xc]
mov edx, dword [0x48fa68]
imul edx, edx, 0x3e8
cmp eax, edx
jle 0x42f3e7
xor eax, eax
jmp 0x42f470
jmp 0x42f381
jmp 0x42f35c
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x10]
jmp 0x42f470
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
cmp dword [ecx + 0x10], 0
je 0x42f46e
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.0042eeb0
test eax, eax
je 0x42f444
mov eax, dword [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [eax], 0
setg cl
mov eax, ecx
jmp 0x42f470
cmp dword [0x48fa68], 0
jg 0x42f44f
jmp 0x42f3ff
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 4]
mov edx, dword [0x48fa68]
imul edx, edx, 0x3e8
cmp eax, edx
jle 0x42f46c
xor eax, eax
jmp 0x42f470
jmp 0x42f3ff
xor eax, eax
mov esp, ebp
pop ebp
ret 0x10
Function at 0x431430
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax + 0x10], 0
jne 0x431449
mov eax, 1
jmp 0x4314c2
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp - 8]
cmp dword [edx + 4], 0xffffffff
je 0x431473
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [ebp - 8]
mov dword [edx + 4], 0xffffffff
push 0x7d0
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x43149d
push 0
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [ebp - 8]
cmp dword [ecx + 0xc], 0
je 0x4314bd
mov edx, dword [ebp - 8]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
mov dword [ecx + 0xc], 0
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4331d0
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp + 8]
mov dword [eax + 0x14], 0
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x10], 0
mov edx, dword [ebp + 8]
mov dword [edx], 0x67452301
mov eax, dword [ebp + 8]
mov dword [eax + 4], 0xefcdab89
mov ecx, dword [ebp + 8]
mov dword [ecx + 8], 0x98badcfe
mov edx, dword [ebp + 8]
mov dword [edx + 0xc], 0x10325476
mov esp, ebp
pop ebp
ret 4
Function at 0x434c20
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
shr edx, 0x16
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
and eax, 0xff
cmp eax, 1
jae 0x434c58
xor eax, eax
jmp 0x434d4e
mov ecx, dword [ebp - 0xc]
and ecx, 0xff
cmp ecx, 0x80
jae 0x434cbf
push 0x1000
mov edx, dword [ebp - 0xc]
and edx, 0xfffff000
push edx
push 0
push 4
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
shr edx, 0xc
and edx, 0x3ff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + eax*4]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [ebp - 0xc]
and ecx, 0xfffff000
mov dword [ebp - 0xc], ecx
jmp 0x434cd9
mov edx, dword [ebp - 0xc]
and edx, 0xfffff000
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
and ecx, 0x3ff000
add edx, ecx
mov dword [ebp - 0xc], edx
push 0x1000
mov edx, dword [ebp - 0xc]
push edx
push 0
push 4
mov eax, dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x434d47
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
and edx, 0xfff
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], 0
jmp 0x434d23
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x70
jge 0x434d3b
mov edx, dword [ebp + 0x14]
add edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov cl, byte [eax]
mov byte [edx], cl
jmp 0x434d1a
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x434d4b
xor eax, eax
jmp 0x434d4e
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret