joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402420
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
sub esp, 0x54
mov eax, dword [esp + 0x64]
push ebx
push esi
xor esi, esi
push edi
push esi
push 0x80
push 2
push esi
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x402453
pop edi
pop esi
or eax, eax
pop ebx
add esp, 0x54
ret
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
push 0xfffffffffffffff6
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x24], esi
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], 0x101
mov word [esp + 0x50], 7
mov word [esp + 0x52], si
mov dword [esp + 0x54], esi
call edi
push 0xfffffffffffffff4
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], ebx
call edi
lea ecx, [esp + 0xc]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push esi
push 0x820
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x78]
push esi
push esi
push esi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, esi
jne 0x4024f9
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 0x54
ret
cmp dword [esp + 0x68], esi
je 0x40252e
mov edi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x70], 0x103
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x70]
push ecx
push edx
call edi
mov eax, dword [esp + 0x70]
cmp eax, 0x103
je 0x40250d
mov ecx, dword [esp + 0x6c]
cmp ecx, esi
je 0x40252e
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x54
ret
Function at 0x402540
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov edx, dword [esp + 0x60]
rep stosd dword es:[edi], eax
mov eax, 1
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], eax
mov word [esp + 0x48], ax
lea eax, [esp + 8]
xor esi, esi
push eax
push ecx
push esi
push esi
push 0x820
push esi
push esi
push esi
push edx
push esi
mov dword [esp + 0x40], 0x44
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x68], esi
mov word [esp + 0x72], si
mov dword [esp + 0x74], esi
mov dword [esp + 0x78], esi
mov dword [esp + 0x7c], esi
mov dword [esp + 0x80], esi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4025d7
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x54
ret
cmp dword [esp + 0x64], esi
jne 0x4025e5
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov dword [esp + 0x60], 0x103
mov ecx, dword [esp + 8]
lea eax, [esp + 0x60]
push eax
push ecx
call esi
mov eax, dword [esp + 0x60]
cmp eax, 0x103
je 0x4025f3
pop edi
pop esi
add esp, 0x54
ret
Function at 0x402c80
Capabilities:
Read file on windows

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
push 0
push eax
mov eax, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [esp + 0xc]
ret

Function at 0x402eb0
Capabilities:
Initialize winsock library

Disassembly:
mov eax, dword [0x418f34]
sub esp, 0x198
push esi
xor esi, esi
cmp eax, esi
push edi
je 0x402ee3
push str.FTP_ERR:_Attempt_to_reinitialize_FTP_module.
push 0x41a460
call fcn.004080ec
add esp, 8
mov eax, 8
pop edi
pop esi
add esp, 0x198
ret
mov eax, dword [esp + 0x1a8]
lea ecx, [esp + 8]
push ecx
push 0x101
mov dword [0x418f34], 1
mov dword [0x42a6d0], eax
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x402f2c
push str.WS_ERR:_Cannot_initialize_Windows_sockets_module.
push 0x41a460
call fcn.004080ec
add esp, 8
mov eax, 0x276b
pop edi
pop esi
add esp, 0x198
ret
push esi
call fcn.00408b63
add esp, 4
push eax
call fcn.0040813e
add esp, 4
call fcn.0040814b
cdq
mov ecx, 0x3a98
mov edi, 0x41a680
idiv ecx
mov ecx, 0x4000
mov dword [0x42a6d4], esi
mov dword [0x418f38], esi
mov dword [0x42a6c4], esi
mov dword [0x42a8e0], esi
mov dword [0x42a680], esi
or eax, 0xffffffff
add edx, 0xf23
mov dword [0x42a8e8], eax
mov dword [0x41a440], eax
mov dword [0x42a6cc], eax
xor eax, eax
rep stosd dword es:[edi], eax
pop edi
mov word [0x42a6c8], dx
pop esi
add esp, 0x198
ret
Function at 0x403900
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [0x42a6d0]
push ebx
push esi
mov esi, dword [esp + 0x10]
test eax, eax
push edi
je 0x403979
push 0x41518c
push str.novaftp.log
call fcn.00408b50
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x403953
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push 1
push esi
call fcn.00408616
mov edx, eax
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
je 0x40395d
mov dword [0x42a6d0], 0
push ebx
call fcn.00408866
add esp, 4
test eax, eax
je 0x403974
mov dword [0x42a6d0], 0
call fcn.00402d00
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [0x42a8e8]
not ecx
dec ecx
push ecx
push esi
push eax
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x4039a2
call fcn.00403310
pop edi
pop esi
pop ebx
ret
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004038e0
add esp, 4
pop edi
pop esi
pop ebx
ret

Function at 0x4039f0
Capabilities:
Create thread

Disassembly:
sub esp, 0x1c
or ecx, 0xffffffff
xor eax, eax
mov dword [0x418728], 0
push ebx
push esi
push edi
mov edi, dword [esp + 0x2c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x418730
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x30]
push ecx
push 0
push 0x4039d0
call fcn.00408f75
add esp, 0xc
cmp eax, 0xffffffff
jne 0x403a60
push str.FTP_ERR:_Unable_to_thread_DNS_lookup.
push 0x41a460
call fcn.004080ec
add esp, 8
call fcn.00402e00
mov eax, reloc.WSOCK32.dll_inet_ntoa
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
mov eax, dword [0x418728]
test eax, eax
jne 0x403ae1
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
push 1
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call esi
test eax, eax
je 0x403aac
mov eax, dword [esp + 0x10]
cmp eax, 0x12
je 0x403abe
cmp eax, 0xbd2
je 0x403abe
lea eax, [esp + 0xc]
push eax
call edi
lea ecx, [esp + 0xc]
push ecx
call ebx
mov eax, dword [0x418728]
test eax, eax
je 0x403a7b
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
push str.FTP_ERR:_Cancelling_connection_due_to_user_abort.
push 0x41a460
call fcn.004080ec
add esp, 8
call fcn.00402e00
mov eax, 4
pop edi
pop esi
pop ebx
add esp, 0x1c
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x1c
ret
Function at 0x404ee0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov al, bl
push esi
and al, 1
cmp al, 1
jne 0x404f60
mov ecx, ebx
mov dword [0x42a6c0], 0
shr ecx, 0x10
mov dword [0x42a8ec], ecx
jne 0x404f60
mov esi, dword [esp + 0x10]
lea edx, [esp + 0x14]
push edx
push 0x4004667f
push esi
call sub.WSOCK32.dll_ioctlsocket
test eax, eax
je 0x404f25
mov dword [esp + 0x14], 0
mov eax, dword [esp + 0x14]
test eax, eax
je 0x404f60
push 0
push 0x10000
push 0x41a680
push esi
mov dword [0x42a8e4], 1
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
jne 0x404f5a
call sub.WSOCK32.dll_WSAGetLastError
mov dword [0x42a8ec], eax
jmp 0x404f60
add dword [0x42a6c0], eax
mov al, bl
and al, 0x10
cmp al, 0x10
jne 0x404f7b
shr ebx, 0x10
mov dword [0x42a8ec], ebx
mov dword [0x42a8e4], 0x10
pop esi
pop ebx
ret
Function at 0x406bd0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x84
push esi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push 0x419688
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c55
push edi
mov ecx, 0x20
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x90]
push 0xa
push 0xd
push eax
push 0xa
push 0xd
lea ecx, [esp + 0x20]
push str._UPDATE__c_cDAT_lu_c_c
push ecx
call fcn.004080ec
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
lea edx, [esp + 8]
push 0
dec ecx
push edx
lea eax, [esp + 0x14]
push ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
add esp, 0x84
ret
Function at 0x4085d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4085f0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040959e
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x408613
test byte [esp + 8], 2
je 0x408613
call fcn.00409611
mov dword [eax], 0xd
call fcn.0040961a
mov dword [eax], 5
jmp 0x4085ec
xor eax, eax
ret

Function at 0x40f350
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x418128
cmp edx, dword [eax]
je 0x40f372
add eax, 8
inc ecx
cmp eax, 0x4181b8
jl 0x40f363
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x418128]
jne 0x40f4a0
mov eax, dword [0x418fac]
cmp eax, 1
je 0x40f47a
test eax, eax
jne 0x40f3a3
cmp dword [0x417844], 1
je 0x40f47a
cmp edx, 0xfc
je 0x40f4a0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40f3da
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0040b4c0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0040b440
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x40f41d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0040b440
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4139c8
push edi
call fcn.00407df0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0040b4c0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0040b4d0
lea eax, [ebp - 0xa0]
push 0x4139a8
push eax
call fcn.0040b4d0
push dword [esi + 0x41812c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0040b4d0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00410b1c
add esp, 0x2c
pop edi
jmp 0x40f4a0
lea eax, [ebp + 8]
lea esi, [esi + 0x41812c]
push 0
push eax
push dword [esi]
call fcn.0040b440
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x41e740
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov dword [ebp - 0x48], 0x2a
mov dword [ebp - 0x28], 0x3e3
mov dword [ebp - 0x10], 0x1e
mov dword [ebp - 4], 0x2a5
mov dword [ebp - 0x14], 0x1fa
mov dword [ebp - 0x3c], 0x1f0
mov dword [ebp - 0x68], 0x114
mov dword [ebp - 0x30], 0x374
mov dword [ebp - 0x6c], 0xe
mov dword [ebp - 0x54], 0x398
mov dword [ebp - 0x70], 0x3cb
mov dword [ebp - 0x74], 0x19f
mov dword [ebp - 0x50], 0x387
mov dword [ebp - 0x4c], 0x13a
mov dword [ebp - 0x78], 0x3a3
mov dword [ebp - 0x40], 0x20b
mov dword [ebp - 0x44], 0x376
mov dword [ebp - 0x58], 0x264
mov dword [ebp - 0x7c], 0x16
mov dword [ebp - 0x60], 0x372
mov dword [ebp - 0x64], 0x328
mov dword [ebp - 0x24], 0x98
mov dword [ebp - 0x80], 0x362
mov dword [ebp - 0x84], 0x27e
mov dword [ebp - 0x88], 0xcc
mov eax, dword [ebp - 0x30]
sub eax, 0x38
push eax
mov ecx, dword [ebp + 0x10]
sub ecx, 0x176
push ecx
call fcn.0041a810
add esp, 8
mov dword [ebp - 8], 0
jmp 0x41e829
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp + 0xc]
sub eax, 0x1873b
cmp dword [ebp - 8], eax
jge 0x41e89d
mov ecx, dword [ebp + 8]
cmp ecx, dword [ebp - 0x14]
jge 0x41e847
mov dword [ebp - 0x1c], 1
jmp 0x41e84e
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 0x28]
jge 0x41e85f
mov dword [ebp - 0x18], 1
jmp 0x41e866
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x40]
cmp eax, dword [ebp - 0x44]
jge 0x41e877
mov dword [ebp - 0x20], 1
jmp 0x41e87e
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x48]
and ecx, dword [ebp - 0x18]
or ecx, dword [ebp - 0x1c]
or ecx, dword [ebp - 0x20]
je 0x41e89b
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x24]
sub edx, 1
mov dword [ebp - 0x24], edx
jmp 0x41e820
mov eax, dword [ebp - 0x4c]
add eax, 0x202
push eax
mov ecx, dword [ebp - 0x50]
sub ecx, 0x2c4
push ecx
call fcn.0041a810
add esp, 8
mov dword [ebp - 0xc], 0
jmp 0x41e8ca
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x28]
sub eax, 0x3e2
cmp dword [ebp - 0xc], eax
jge 0x41e926
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp + 0x10]
cmp edx, dword [ebp - 4]
jge 0x41e8f1
mov dword [ebp - 0x2c], 1
jmp 0x41e8f8
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x14]
add eax, dword [ebp - 0x54]
or eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x10]
and ecx, dword [ebp - 0x58]
or eax, ecx
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x5c], 0
je 0x41e924
mov eax, dword [ebp - 4]
sub eax, 1
mov dword [ebp - 4], eax
jmp 0x41e8c1
mov ecx, dword [ebp - 0x60]
cmp ecx, dword [ebp - 0x64]
jge 0x41e937
mov dword [ebp - 0x34], 1
jmp 0x41e93e
mov dword [ebp - 0x34], 0
mov edx, dword [ebp - 0x14]
cmp edx, dword [ebp - 0x30]
jge 0x41e94f
mov dword [ebp - 0x38], 1
jmp 0x41e956
mov dword [ebp - 0x38], 0
mov eax, dword [ebp - 0x34]
or eax, dword [ebp - 0x38]
je 0x41e967
mov ecx, dword [ebp - 0x3c]
add ecx, 1
mov dword [ebp - 0x3c], ecx
mov esp, ebp
pop ebp
ret
Function at 0x40f160
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49898b
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.0048d358
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f1e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0048b232
mov eax, dword [eax]
push 0x4f1c88
push eax
call fcn.0047d3e4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0048d5e3
test bl, bl
je 0x40f1e2
push 0x4f1c88
lea ecx, [esp + 0xc]
call fcn.0048d973
push 0x4f1c94
lea ecx, [esp + 0xc]
call fcn.0048d973
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 0x40f21e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0048d5e3
jmp 0x40f2e9
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 0x40f2a2
lea edx, [esp + 0x7c]
push 0x4f1c90
push edx
call fcn.0047d3e4
add esp, 8
test eax, eax
je 0x40f2a2
lea eax, [esp + 0x7c]
push 0x4f1c8c
push eax
call fcn.0047d3e4
add esp, 8
test eax, eax
je 0x40f2a2
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 0x40f232
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.0048d5e3
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 0x40fae0
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 0x40fb42
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 0x40fb50
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x498a0b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x501078]
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 0x40fc88
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40fbb6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048d5e3
xor eax, eax
jmp 0x40fcff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0048d720
push esi
lea ecx, [esp + 0xc]
call fcn.0048d9af
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40fcdd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040fae0
test eax, eax
jne 0x40fcdd
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 SysReAllocString
mov ecx, edi
call fcn.0040fae0
test eax, eax
jne 0x40fcdd
lea eax, [esp + 0x14]
push 0x4f1ca4
push eax
call fcn.0047e530
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fcbc
lea ecx, [esp + 0x14]
push 0x4f1ca0
push ecx
call fcn.0047e4b0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fcbc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fcbf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0048d6d0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40fbce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0048d5e3
xor eax, eax
jmp 0x40fcff
mov byte [esi], 0
push 0x4f1c9c
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.0048d5e3
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 0x420560
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 0x4205ce
cmp si, 0x69
ja 0x4205ce
add esi, 0xffd0
cmp si, 0x11
je 0x42059e
push 0x11
call edi
test ax, ax
jge 0x42059e
or esi, 0x2000
cmp si, 0x10
je 0x4205b3
push 0x10
call edi
test ax, ax
jge 0x4205b3
or esi, 0x4000
cmp si, 0x12
je 0x4205c8
push 0x12
call edi
test ax, ax
jge 0x4205c8
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x4205db
mov esi, 0xbd
jmp 0x42058f
cmp si, 0x6e
jne 0x4205e8
mov esi, 0xbe
jmp 0x42058f
cmp si, 0x6f
jne 0x420589
mov esi, 0xbf
jmp 0x42058f

Function at 0x421e50
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x511820]
xor edx, edx
cmp eax, edx
jne 0x421e76
xor eax, eax
mov byte [eax + 0x511720], al
inc eax
cmp eax, 0x100
jl 0x421e5e
mov dword [0x511820], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x511720
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x421f07
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 0x421eda
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 0x421ea8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421f10
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 0x421f63
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 0x421f4a
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