joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40281c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00403cfc
test esi, esi
jne 0x402852
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00403dec
jmp 0x402870
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004026d0
mov edi, eax
test esi, esi
je 0x402870
cmp dword [ebx], 0
je 0x402870
dec esi
jmp 0x402859
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x40323c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x40a014]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4032d4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4032b4
xor eax, eax
push ebp
push 0x4032ad
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4032f0
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4032b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x40a014]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x40a014], ax
mov esp, ebp
pop ebp
ret

Function at 0x403b80
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x40b044], 0
je 0x403be1
cmp word [0x40b218], 0xd7b2
jne 0x403ba9
cmp dword [0x40b220], 0
jbe 0x403ba9
mov eax, 0x40b214
call dword [0x40b230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x40a060
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x403c08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x40a020], 0
jne 0x403bfd
push 0
push 0x40a058
push 0x40a060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x40462c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40485c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4046af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x40485c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4046af
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x404878
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404738
xor eax, eax
push ebp
push 0x404731
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00404474
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404716
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x404898
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x404716
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404738
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x404852
cmp byte [ebp - 0xd], 0
jne 0x40477f
cmp byte [ebp - 0x12], 0
je 0x404852
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x404798
dec ebx
cmp byte [ebx], 0x2e
je 0x4047a7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x404797
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x404852
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4047e4
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404852
cmp byte [ebp - 0xd], 0
je 0x404852
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x404852
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4049e8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x404a4e
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00403f44
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402cd4
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x404a38
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404a55
lea eax, [ebp - 0x10]
call fcn.00403cfc
ret

Function at 0x406854
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40688d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403dec
jmp 0x406896
mov eax, ebx
mov edx, esi
call fcn.00403d50
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4068a0
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x4068c1
mov al, byte [esp]
jmp 0x4068c3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x406f48
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x406dc0
mov eax, dword [0x40a3b4]
cmp byte [eax], 0
je 0x406fc4
mov eax, dword [0x40a308]
call fcn.00402b8c
call fcn.00402640
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00405d48
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40700c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x406ffa
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x40a2e8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x40b660]
call fcn.00404438
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x4079b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x407a1c
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00403f44
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00405c1c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a23
lea eax, [ebp - 0xc]
call fcn.00403cfc
ret

Function at 0x4085dc
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff0
mov ebp, edx
mov edi, eax
xor esi, esi
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408632
mov word [esp], 2
push ebp
call sub.wsock32.dll_htons
mov word [esp + 2], ax
mov dword [esp + 4], edi
push 0x10
lea eax, [esp + 4]
push eax
push ebx
call sub.wsock32.dll_bind
inc eax
jne 0x408628
push ebx
call sub.wsock32.dll_closesocket
jmp 0x408632
push 3
push ebx
call sub.wsock32.dll_listen
mov esi, ebx
mov eax, esi
add esp, 0x10
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x408660
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, edx
mov edi, eax
mov ebx, ecx
xor esi, esi
xor eax, eax
mov dword [esp], eax
push esp
push 0x8004667e
push edi
call sub.wsock32.dll_ioctlsocket
test ebx, ebx
jle 0x40869c
push 0
push ebx
mov eax, ebp
add eax, esi
push eax
push edi
call sub.wsock32.dll_send
test eax, eax
jle 0x40869c
add esi, eax
sub ebx, eax
test ebx, ebx
jg 0x408682
mov eax, esi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4086a4
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffff004
push eax
add esp, 0xfffffef4
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [esp]
mov edi, dword [esp + 4]
lea eax, [esp + 0x1008]
call fcn.0040851c
lea edx, [esp + 0x1008]
mov eax, esi
call fcn.0040850c
lea edx, [esp + 0x1008]
mov eax, edi
call fcn.0040850c
push 0
push 0
push 0
lea eax, [esp + 0x1014]
push eax
push 0
call sub.wsock32.dll_select
test eax, eax
jle 0x408789
lea edx, [esp + 0x1008]
mov eax, esi
call fcn.004084f4
test al, al
je 0x408746
push 0
push 0x1000
lea eax, [esp + 0x10]
push eax
push esi
call sub.wsock32.dll_recv
mov ebx, eax
test ebx, ebx
jle 0x408789
lea edx, [esp + 8]
mov ecx, ebx
mov eax, edi
call fcn.00408660
test eax, eax
je 0x408789
cmp ebx, eax
jne 0x408789
lea edx, [esp + 0x1008]
mov eax, edi
call fcn.004084f4
test al, al
je 0x4086c2
push 0
push 0x1000
lea eax, [esp + 0x10]
push eax
push edi
call sub.wsock32.dll_recv
mov ebx, eax
lea edx, [esp + 8]
mov ecx, ebx
mov eax, esi
call fcn.00408660
test eax, eax
je 0x408789
cmp ebx, eax
je 0x4086c2
push esi
call sub.wsock32.dll_closesocket
push edi
call sub.wsock32.dll_closesocket
add esp, 0x110c
pop edi
pop esi
pop ebx
ret
Function at 0x4087ec
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov edi, edx
xor edx, edx
push ebp
push 0x408a0e
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, eax
xor eax, eax
call fcn.004085dc
mov esi, eax
test esi, esi
jle 0x4089ea
mov edx, edi
xor eax, eax
call fcn.004085dc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jle 0x4089e1
test ebx, ebx
jg 0x408889
mov eax, dword [0x40a308]
mov edx, 0x408a28
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
mov dword [ebp - 0x10], 4
push 0
push 0
push esi
call sub.wsock32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40886a
xor ebx, ebx
mov dword [ebp - 4], 0xffffffff
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
inc eax
test ebx, ebx
jle 0x408837
mov eax, dword [0x40a308]
mov edx, 0x408a50
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_accept
mov edi, eax
cmp edi, 0xffffffff
jne 0x4088de
mov eax, dword [0x40a308]
mov edx, 0x408a70
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x408833
inc dword [0x40a298]
mov eax, dword [0x40a308]
mov edx, 0x408a80
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
lea eax, [ebp - 0x18]
push eax
push 0x4004667f
push ebx
call sub.wsock32.dll_ioctlsocket
cmp dword [ebp - 0x18], 0
jle 0x408935
mov eax, dword [ebp - 0x18]
call fcn.0040254c
mov dword [ebp - 0x1c], eax
push 0
mov eax, dword [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push ebx
call sub.wsock32.dll_recv
mov eax, dword [ebp - 0x1c]
call fcn.0040256c
push 0
push 1
lea eax, [ebp - 0x1e]
push eax
push ebx
call sub.wsock32.dll_send
inc eax
jne 0x40897d
push ebx
call sub.wsock32.dll_closesocket
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0xc]
push eax
push esi
call sub.wsock32.dll_accept
mov ebx, eax
push 4
lea eax, [ebp - 4]
push eax
push 8
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
push 0
push 1
lea eax, [ebp - 0x1e]
push eax
push ebx
call sub.wsock32.dll_send
mov edx, dword [0x40863c]
mov eax, 0x10
call fcn.00404374
mov dword [0x40b79c], eax
mov eax, dword [0x40b79c]
mov dword [eax], ebx
mov eax, dword [0x40b79c]
mov dword [eax + 0xc], edi
lea eax, [ebp - 0x14]
push eax
push 0
mov eax, dword [0x40b79c]
push eax
push 0x4087a0
push 0
push 0
call sub.kernel32.dll_CreateThread
xor ebx, ebx
test eax, eax
je 0x4089cc
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x408833
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x408833
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
push esi
call sub.wsock32.dll_closesocket
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a15
lea eax, [ebp - 0x1c]
mov edx, dword [0x4087c4]
call fcn.004043b4
ret
Function at 0x408a84
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov edi, edx
mov esi, eax
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x408aa4
xor eax, eax
jmp 0x408ad5
mov word [esp], 2
mov dword [esp + 4], esi
push edi
call sub.wsock32.dll_htons
mov word [esp + 2], ax
push 0x10
lea eax, [esp + 4]
push eax
push ebx
call sub.wsock32.dll_connect
inc eax
jne 0x408ad3
push ebx
call sub.wsock32.dll_closesocket
xor eax, eax
jmp 0x408ad5
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x408b78
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 6], cx
mov dword [ebp - 4], edx
mov ebx, eax
mov eax, dword [ebp - 4]
call fcn.00404048
mov esi, 0x40b79c
xor eax, eax
push ebp
push 0x408c8a
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
xor eax, eax
call fcn.004085dc
mov edi, eax
test edi, edi
jle 0x408c6c
mov eax, dword [0x40a308]
mov edx, 0x408ca4
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
push edi
call sub.wsock32.dll_accept
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408c6c
inc dword [0x40a298]
mov eax, dword [0x40a308]
mov edx, 0x408cc4
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
mov edx, dword [0x40863c]
mov eax, 0x10
call fcn.00404374
mov dword [esi], eax
mov eax, dword [esi]
mov dx, word [ebp - 6]
mov word [eax + 8], dx
mov eax, dword [esi]
add eax, 4
mov edx, dword [ebp - 4]
call fcn.00403d50
mov eax, dword [esi]
mov dword [eax + 0xc], ebx
lea eax, [ebp - 0xc]
push eax
push 0
mov eax, dword [esi]
push eax
push 0x408adc
push 0
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
je 0x408c5d
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x408bb8
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x408bb8
push edi
call sub.wsock32.dll_closesocket
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408c91
lea eax, [ebp - 4]
call fcn.00403cfc
ret
Function at 0x408d14
Capabilities:
Create thread
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov edi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404048
mov eax, dword [ebp - 8]
call fcn.00404048
xor eax, eax
push ebp
push 0x408eb9
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x18], eax
jmp 0x408dae
mov eax, dword [0x40a308]
mov edx, 0x408ed4
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
mov eax, dword [ebp - 4]
call fcn.00404058
push eax
call sub.wsock32.dll_inet_addr
mov edx, edi
call fcn.00408a84
mov esi, eax
test esi, esi
jg 0x408dac
mov eax, dword [0x40a308]
mov edx, 0x408efc
call fcn.00404108
call fcn.00402ebc
call fcn.00402640
push 0xbb8
call sub.kernel32.dll_Sleep
jmp 0x408dae
mov bl, 1
test bl, bl
je 0x408d53
lea eax, [ebp - 0x14]
push eax
push 0x4004667f
push esi
call sub.wsock32.dll_ioctlsocket
cmp dword [ebp - 0x14], 0
jle 0x408e5e
push 0
push 2
lea eax, [ebp - 0xa]
push eax
push esi
call sub.wsock32.dll_recv
xor ebx, ebx
xor edx, edx
mov dword [ebp - 0x18], edx
test eax, eax
jg 0x408dec
push esi
call sub.wsock32.dll_closesocket
jmp 0x408dae
inc dword [0x40a298]
mov edx, dword [0x40863c]
mov eax, 0x10
call fcn.00404374
mov dword [0x40b79c], eax
mov eax, dword [0x40b79c]
add eax, 4
mov edx, dword [ebp - 8]
call fcn.00403d50
mov eax, dword [0x40b79c]
mov dx, word [ebp + 8]
mov word [eax + 8], dx
mov eax, dword [0x40b79c]
mov dword [eax + 0xc], esi
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [0x40b79c]
push eax
push 0x408ccc
push 0
push 0
call sub.kernel32.dll_CreateThread
test eax, eax
jne 0x408e52
push eax
call sub.kernel32.dll_CloseHandle_1
jmp 0x408e8c
push 0x3e8
call sub.kernel32.dll_Sleep
jmp 0x408e8c
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1000
jl 0x408e8c
push 0
push 1
lea eax, [ebp - 0x1018]
push eax
push esi
call sub.wsock32.dll_send
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x408e8c
push esi
call sub.wsock32.dll_closesocket
xor ebx, ebx
push 2
call sub.kernel32.dll_Sleep
jmp 0x408dae

Function at 0x408f04
Capabilities:
Initialize winsock library

Disassembly:
add esp, 0xfffffe70
push esp
mov dl, 2
mov al, 2
call fcn.00404da4
push eax
call sub.wsock32.dll_WSAStartup
test eax, eax
sete al
add esp, 0x190
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x42e072
mov ebx, 0x407ef8
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x17f27234
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x42e060
nop
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x42e0d2
nop
nop
mov ebx, 0x42cd70
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x2f5b67aa
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x100dd720
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.100dd79f
jae 0x100dd72c
xor ecx, ecx
call fcn.100dd79f
jae 0x100dd756
xor eax, eax
call fcn.100dd79f
jae 0x100dd767
mov al, 0x10
call fcn.100dd79f
adc al, al
jae 0x100dd748
jne 0x100dd794
stosb byte es:[edi], al
jmp 0x100dd72d
call fcn.100dd7ab
dec ecx
loop 0x100dd773
mov eax, ebp
call fcn.100dd7a9
jmp 0x100dd795
lodsb al, byte [esi]
shr eax, 1
je 0x100dd7bb
adc ecx, 2
mov ebp, eax
jmp 0x100dd795
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.100dd7a9
cmp eax, 0x7d00
jae 0x100dd793
cmp eax, 0x500
jae 0x100dd794
cmp eax, 0x7f
ja 0x100dd795
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x100dd72d
pop ebp
ret 8

Function at 0x40100b
Capabilities:
Query or enumerate registry value

Disassembly:
call 0x40100b
push eax
call sub.KERNEL32.dll_ExitProcess
push ebp
mov ebp, esp
add esp, 0xfffffef0
jmp 0x40109c
lea eax, [ebp - 0x104]
push eax
call fcn.004011ec
push 0x401019
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
jne 0x401165
lea eax, [ebp - 0x10c]
push eax
push 0x20019
push 0
push 0x401038
push 0x80000001
call sub.ADVAPI32.dll_RegOpenKeyExA
cmp eax, 0
jne 0x4011a5
mov dword [ebp - 0x110], 0x103
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x104]
push eax
push 0
push 0
push 0x401052
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegQueryValueExA
push eax
push dword [ebp - 0x10c]
call sub.ADVAPI32.dll_RegCloseKey
pop eax
cmp eax, 0
jne 0x4011a5
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrlenA
lea ebx, [ebp - 0x104]
add ebx, eax
dec ebx
cmp byte [ebx], 0x5c
je 0x40114a
mov word [ebx], 0x5c
push 0x401023
lea eax, [ebp - 0x104]
push eax
call sub.KERNEL32.dll_lstrcatA
push eax
call sub.KERNEL32.dll_LoadLibraryA
test eax, eax
je 0x4011a5
mov dword [ebp - 0x108], eax
push 0x40102d
push eax
call sub.KERNEL32.dll_GetProcAddress
test eax, eax
je 0x40119a
push 0x3e8
call eax
test eax, eax
je 0x40119a
call 0x40118a
add dword [esp], 0x1e76
call eax
push 0
call sub.KERNEL32.dll_ExitProcess
push dword [ebp - 0x108]
call sub.KERNEL32.dll_FreeLibrary
push 0x10
push 0x401096
push 0x401057
push 0
call sub.USER32.dll_MessageBoxA
mov eax, 0xffffffff
leave
ret