joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b8788
Capabilities:
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb0
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [esp + 4]
xor edx, edx
mov dword [eax], edx
lea eax, [esp + 0x10]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebp, dword [esp + 0x14]
call sub.kernel32.dll_GetCurrentProcessId
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
xor edi, edi
mov ebx, dword [esp + 0xc]
shr ebx, 0x10
mov eax, ebx
shl eax, 0x10
mov ebx, eax
mov eax, edi
shl eax, 0x10
sub ebx, eax
mov eax, ebx
xor edx, edx
div ebp
imul ebp
mov ebx, eax
push 4
push 0x3000
push ebp
push ebx
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
test esi, esi
je 0x4b8806
cmp esi, ebx
je 0x4b8806
push 0x8000
push 0
push esi
call sub.kernel32.dll_VirtualFree_1
inc edi
jmp 0x4b887f
test esi, esi
jne 0x4b8888
push 0x1c
lea eax, [esp + 0x38]
push eax
push ebx
call sub.kernel32.dll_VirtualQuery_1
cmp dword [esp + 0x40], 0x118
jb 0x4b887c
mov eax, dword [esp + 0x48]
and eax, 4
cmp eax, 4
jne 0x4b887c
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
cmp edx, dword [ebx + 4]
jne 0x4b887c
cmp eax, dword [ebx]
jne 0x4b887c
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
cmp edx, dword [ebx + 0x114]
jne 0x4b887c
cmp eax, dword [ebx + 0x110]
jne 0x4b887c
lea eax, [ebx + 8]
mov edx, dword [esp]
xor ecx, ecx
mov cl, byte [eax]
inc ecx
call fcn.004030fc
je 0x4b8888
inc edi
xor ebx, ebx
cmp edi, 0x14
jle 0x4b87bf
xor eax, eax
test esi, esi
je 0x4b88ee
cmp esi, ebx
jne 0x4b890a
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x23456789
xor edx, 0xabcdef01
mov dword [ebx], eax
mov dword [ebx + 4], edx
lea eax, [ebx + 8]
mov edx, dword [esp]
call fcn.00403050
mov eax, dword [esp + 8]
xor edx, edx
xor eax, 0x10fedcba
xor edx, 0x98765432
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], edx
mov dword [ebx + 0x108], 1
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov dword [edx], 1
jmp 0x4b890a
test ebx, ebx
je 0x4b890a
inc dword [ebx + 0x108]
lea eax, [ebx + 0x118]
mov edx, dword [esp + 4]
mov ecx, dword [ebx + 0x108]
mov dword [edx], ecx
add esp, 0x50
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4ba224
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ba3e4
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
xor ecx, ecx
mov edx, 0x24
call fcn.0040316c
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [ebp - 0x14]
mov dword [0x4d1694], eax
mov eax, dword [ebp - 0xc]
mov dword [0x4d1698], eax
mov eax, dword [ebp - 0x24]
mov dword [0x4d169c], eax
mov eax, dword [0x4d21b8]
cmp dword [eax], 2
sete byte [0x4d11c4]
push 0x4ba3f0
call sub.kernel32.dll_GetModuleHandleA_2
lea edx, [ebp - 4]
call fcn.004baf50
cmp byte [0x4d11c4], 0
jne 0x4ba2b0
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.004baf80
test al, al
je 0x4ba2b0
mov eax, dword [ebp - 0x4c]
mov dword [0x4d4584], eax
jmp 0x4ba2b7
xor eax, eax
mov dword [0x4d4584], eax
call fcn.004b9f9c
and eax, 0x7f
cmp eax, 0x10
ja case.0x4ba2c8.0
jmp dword [eax*4 + 0x4ba2cf]
mov byte [0x4d11b0], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11b4], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11b8], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11bc], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11c0], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11c8], 1
mov byte [0x4d11cc], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11c8], 1
mov byte [0x4d11d0], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11c8], 1
mov byte [0x4d11d0], 1
mov byte [0x4d11d4], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11d8], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11dc], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11e0], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11e4], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11e8], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11ec], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11f0], 1
jmp case.0x4ba2c8.0
mov byte [0x4d11f4], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ba3eb
lea eax, [ebp - 4]
call fcn.004047f0
ret

Function at 0x4baf80
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4bb027
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jbe 0x4bb011
lea eax, [ebp - 0x10]
mov edx, edi
call fcn.00404e3c
mov eax, dword [ebp - 0x10]
push eax
push edi
mov eax, dword [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404cb0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x4bb011
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x4bb038
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x4bb011
cmp dword [ebp - 8], 0x34
jne 0x4bb011
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bb02e
lea eax, [ebp - 0x10]
call fcn.004047f0
ret
Function at 0x4bbd70
Capabilities:
Set socket configuration

Disassembly:
push ebx
add esp, 0xfffffff8
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ebx, eax
mov eax, dword [0x4d1748]
push eax
lea eax, [esp + 4]
push eax
push 0x1005
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [0x4d1748]
push eax
lea eax, [esp + 4]
push eax
push 0x1006
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [0x4d1748]
push eax
lea eax, [esp + 8]
push eax
push 0x1002
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
mov eax, dword [0x4d1748]
push eax
lea eax, [esp + 8]
push eax
push 0x1001
push 0xffff
push ebx
call sub.wsock32.dll_setsockopt
pop ecx
pop edx
pop ebx
ret

Function at 0x4bbeb8
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ebx
mov byte [ebp - 5], cl
mov edi, edx
mov dword [ebp - 4], eax
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4bc035
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 0xffffffff
cmp dword [ebp - 4], 0
je 0x4bc012
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004bb984
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
call fcn.00404888
mov eax, ebx
xor ecx, ecx
mov edx, 0x10
call fcn.0040316c
mov word [ebx], 2
push edi
call sub.wsock32.dll_htons
mov word [ebx + 2], ax
mov eax, dword [ebp - 4]
call fcn.004bb81c
test al, al
je 0x4bbf50
mov eax, dword [ebp - 4]
call fcn.00404cb0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 4], eax
jmp 0x4bbf8d
lea ecx, [ebp - 0x14]
mov edx, 1
mov eax, dword [ebp - 4]
call fcn.004bc180
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 4]
call fcn.00404888
cmp dword [ebp - 4], 0
jne 0x4bbf7c
mov dword [esi], 0x271e
jmp 0x4bc012
mov eax, dword [ebp - 4]
call fcn.00404cb0
push eax
call sub.wsock32.dll_inet_addr
mov dword [ebx + 4], eax
mov al, byte [ebp - 5]
dec al
jne 0x4bbfae
push esi
mov ecx, 0x11
mov edx, 2
mov eax, 2
call fcn.004bbc58
mov dword [ebp - 0xc], eax
jmp 0x4bc012
push esi
mov ecx, 6
mov edx, 1
mov eax, 2
call fcn.004bbc58
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4bbfdf
cmp byte [ebp + 0x10], 0
jne 0x4bbfdf
mov ecx, esi
mov dl, byte [ebp + 0x10]
mov eax, dword [ebp - 0xc]
call fcn.004bbc98
cmp dword [ebp - 0xc], 0xffffffff
je 0x4bc012
mov ecx, esi
mov edx, 0x1f4
mov eax, dword [ebp - 0xc]
call fcn.004bbd10
push 0x10
push ebx
mov eax, dword [ebp - 0xc]
push eax
call sub.wsock32.dll_connect
inc eax
jne 0x4bc012
call sub.wsock32.dll_WSAGetLastError
mov dword [esi], eax
lea eax, [ebp - 0xc]
call fcn.004bbe34
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc03c
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00404814
lea eax, [ebp - 4]
call fcn.004047f0
ret
Function at 0x4bc070
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [ebp + 0xc]
push ebx
lea ebx, [ebp - 0x10]
push ebx
mov ebx, dword [ebp + 0x14]
push ebx
push ecx
push edx
push eax
call sub.wsock32.dll_sendto
mov ebx, eax
mov eax, ebx
call fcn.004bbc8c
mov edx, dword [ebp + 8]
mov dword [edx], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x4bc108
Capabilities:
Get socket status

Disassembly:
push esi
push edi
add esp, 0xfffffef4
mov esi, ecx
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [esp + 8], 1
mov dword [esp + 0xc], eax
test dl, dl
je 0x4bc13a
push esp
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
call sub.wsock32.dll_select
jmp 0x4bc14b
push esp
push 0
lea eax, [esp + 0x10]
push eax
push 0
push 0
call sub.wsock32.dll_select
add esp, 0x10c
pop edi
pop esi
ret

Function at 0x4bc180
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, ecx
mov esi, edx
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4bc21c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x4bc1ff
movsx edx, word [eax + 0xa]
test edx, edx
jns 0x4bc1c2
add edx, 3
sar edx, 2
cmp esi, edx
jg 0x4bc1f6
dec esi
mov edx, esi
shl edx, 2
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
add eax, edx
lea edx, [ebp - 4]
mov ecx, 4
call fcn.00402a38
mov eax, dword [ebp - 4]
call fcn.004bc858
mov edx, eax
mov eax, ebx
call fcn.004049e8
jmp 0x4bc206
mov eax, ebx
call fcn.004047f0
jmp 0x4bc206
mov eax, ebx
call fcn.004047f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bc223
lea eax, [ebp - 8]
call fcn.004047f0
ret

Function at 0x4bc22c
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov dword [esp], 0x10
push esp
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_getsockname
test eax, eax
jne 0x4bc258
mov ax, word [esp + 6]
call fcn.004bc850
movzx eax, ax
jmp 0x4bc25a
xor eax, eax
add esp, 0x14
pop ebx
ret

Function at 0x4bc260
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
add esp, 0xffffffec
mov esi, edx
mov ebx, eax
mov dword [esp], 0x10
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x10
call fcn.0040316c
push esp
lea eax, [esp + 8]
push eax
push ebx
call sub.wsock32.dll_getsockname
mov eax, dword [esp + 8]
call fcn.004bc858
mov edx, eax
mov eax, esi
call fcn.004049e8
add esp, 0x14
pop esi
pop ebx
ret
Function at 0x4c7df8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, eax
mov byte [ebp - 1], 0
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x30], eax
xor eax, eax
push ebp
push 0x4c7e4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebx + 0xc], 0xffffffff
mov eax, dword [ebx + 0x10]
mov edx, dword [eax]
call dword [edx + 0x44]
lea eax, [ebx + 0x54]
call fcn.004047f0
mov eax, dword [ebx + 0x48]
mov dl, 1
call fcn.004352e8
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4c7e54
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4ca8d4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404ca0
mov eax, dword [ebp - 8]
call fcn.00404ca0
mov eax, dword [ebp - 0xc]
call fcn.00404ca0
mov eax, dword [ebp + 8]
call fcn.00404ca0
xor eax, eax
push ebp
push 0x4caa94
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00404afc
lea edx, [ebp - 0x18]
mov eax, dword [0x4d1984]
call fcn.00478510
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
mov ecx, 0x4caaa4
call fcn.00406730
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x18]
mov ecx, 0x4caab4
call fcn.00406730
lea eax, [ebp - 0x89]
push eax
push 0x65
call sub.kernel32.dll_GetCurrentDirectoryA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0x89]
mov ecx, 0x65
call fcn.00404a60
lea edx, [ebp - 0x90]
mov eax, dword [ebp - 0x10]
call fcn.00409158
push dword [ebp - 0x90]
push 0x4caacc
push dword [ebp - 8]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404b70
push 1
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x3c]
push 0x4caad0
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x2c]
mov eax, dword [ebp + 8]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x1c]
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x50]
mov eax, dword [ebp - 0x10]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [eax]
call dword [eax + 0x24]
lea edx, [ebp - 0x94]
mov eax, dword [ebp - 0x14]
call fcn.00409d90
mov eax, dword [ebp - 0x94]
call fcn.00409f84
lea eax, [ebp - 0x24]
mov edx, dword [ebp - 0x14]
call fcn.004050a0
push 0
mov eax, dword [ebp - 0x24]
call fcn.004050b0
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4caa9b
lea eax, [ebp - 0x94]
mov edx, 2
call fcn.00404814
lea eax, [ebp - 0x24]
call fcn.00404f24
lea eax, [ebp - 0x20]
call fcn.004066ec
lea eax, [ebp - 0x1c]
call fcn.004066ec
lea eax, [ebp - 0x18]
call fcn.004066ec
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.00404814
lea eax, [ebp + 8]
call fcn.004047f0
ret
Function at 0x4caad4
Capabilities:
Get common file path
Get startup folder

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
xor edx, edx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cab82
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004047f0
mov ebx, dword [0x4d488c]
mov eax, ebx
mov edx, dword [0x45b6f4]
call fcn.00403aec
call fcn.0044ca3c
mov ebx, eax
lea eax, [ebp - 4]
push eax
push 0x18
push ebx
call sub.shell32.dll_SHGetSpecialFolderLocation
call fcn.0041b044
test al, al
je 0x4cab6c
lea eax, [ebp - 8]
mov edx, 0x104
call fcn.00404e3c
mov eax, dword [ebp - 8]
call fcn.00404cb0
push eax
mov eax, dword [ebp - 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, dword [ebp - 8]
call fcn.00404cb0
call fcn.00409fa0
mov edx, eax
lea eax, [ebp - 8]
call fcn.00404e3c
mov eax, esi
mov ecx, 0x4cab98
mov edx, dword [ebp - 8]
call fcn.00404afc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cab89
lea eax, [ebp - 8]
call fcn.004047f0
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
nop
mov ecx, 0x46f569e0
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x243a114a
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x409ad0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47343b
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.00465f6a
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x409b52
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00463850
mov eax, dword [eax]
push 0x48f200
push eax
call fcn.004562c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004661f5
test bl, bl
je 0x409b52
push 0x48f200
lea ecx, [esp + 0xc]
call fcn.004665d1
push 0x492d7c
lea ecx, [esp + 0xc]
call fcn.004665d1
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 0x409b8e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004661f5
jmp 0x409c59
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 0x409c12
lea edx, [esp + 0x7c]
push 0x492d78
push edx
call fcn.004562c4
add esp, 8
test eax, eax
je 0x409c12
lea eax, [esp + 0x7c]
push 0x492d74
push eax
call fcn.004562c4
add esp, 8
test eax, eax
je 0x409c12
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 0x409ba2
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.004661f5
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 0x40a450
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 0x40a4b2
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
Function at 0x40a4c0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4734bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x499d18]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40a5f8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40a526
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004661f5
xor eax, eax
jmp 0x40a66f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046637e
push esi
lea ecx, [esp + 0xc]
call fcn.0046660d
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push 0x492db4
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40a64d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040a450
test eax, eax
jne 0x40a64d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040a450
test eax, eax
jne 0x40a64d
lea eax, [esp + 0x14]
push 0x492d90
push eax
call fcn.004573a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a62c
lea ecx, [esp + 0x14]
push 0x492d8c
push ecx
call fcn.00457320
mov esi, eax
add esp, 8
test esi, esi
jne 0x40a62c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40a62f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046632e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40a53e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004661f5
xor eax, eax
jmp 0x40a66f
mov byte [esi], 0
push 0x492d88
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.004661f5
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41afc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41b02e
cmp si, 0x69
ja 0x41b02e
add esi, 0xffd0
cmp si, 0x11
je 0x41affe
push 0x11
call edi
test ax, ax
jge 0x41affe
or esi, 0x2000
cmp si, 0x10
je 0x41b013
push 0x10
call edi
test ax, ax
jge 0x41b013
or esi, 0x4000
cmp si, 0x12
je 0x41b028
push 0x12
call edi
test ax, ax
jge 0x41b028
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41b03b
mov esi, 0xbd
jmp 0x41afef
cmp si, 0x6e
jne 0x41b048
mov esi, 0xbe
jmp 0x41afef
cmp si, 0x6f
jne 0x41afe9
mov esi, 0xbf
jmp 0x41afef

Function at 0x41c6e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4aaad0]
xor edx, edx
cmp eax, edx
jne 0x41c706
xor eax, eax
mov byte [eax + 0x4aa9d0], al
inc eax
cmp eax, 0x100
jl 0x41c6ee
mov dword [0x4aaad0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4aa9d0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41c797
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41c76a
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41c738
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41c810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41c863
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41c84a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret