joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5144d7
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x56da70]
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.0050b685
and dword [ebp - 0x14], 0
cmp dword [0x5752b8], 0
mov dword [ebp - 0x18], eax
jne 0x51458a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x514632
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x514632
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x54cee8
push ebx
mov dword [0x5752b8], eax
call edi
push eax
call esi
push 0x54ced4
push ebx
mov dword [0x5752bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x5752c0], eax
call edi
push eax
call esi
mov dword [0x5752c8], eax
test eax, eax
je 0x51458a
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x5752c4], eax
mov eax, dword [0x5752c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x5145e3
cmp dword [0x5752c8], ecx
je 0x5145e3
push eax
call esi
push dword [0x5752c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x5145e3
test ebx, ebx
je 0x5145e3
call edi
test eax, eax
je 0x5145da
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x5145da
test byte [ebp - 8], 1
jne 0x5145e3
or dword [ebp + 0x10], 0x200000
jmp 0x514616
mov eax, dword [0x5752bc]
cmp eax, dword [ebp - 0x18]
je 0x514616
push eax
call esi
test eax, eax
je 0x514616
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x514616
mov eax, dword [0x5752c0]
cmp eax, dword [ebp - 0x18]
je 0x514616
push eax
call esi
test eax, eax
je 0x514616
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x5752b8]
call esi
test eax, eax
je 0x514632
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x514634
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004ffca0
leave
ret
Function at 0x401220
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x36c
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x1e8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x401267
push 0
push 0x4700e8
push str.hehe
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x4013ef
mov dword [ebp - 0x360], 0
lea ecx, [ebp - 0x360]
push ecx
push 0
push 0
call dword [sym.imp.WS2_32.dll_WSAEnumProtocolsA]
mov dword [ebp - 0x368], eax
cmp dword [ebp - 0x368], 0xffffffff
jne 0x4012a8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2747
je 0x4012a8
mov eax, 1
jmp 0x4013ef
mov edx, dword [ebp - 0x360]
push edx
call fcn.004066e0
add esp, 4
mov dword [ebp - 0x364], eax
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x360]
push ecx
mov edx, dword [ebp - 0x364]
push edx
push 1
push 6
call fcn.00401087
add esp, 0x14
mov dword [ebp - 0x368], eax
mov eax, dword [ebp - 0x364]
push eax
call fcn.004066c0
add esp, 4
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x471b10], eax
cmp dword [0x471b10], 0xffffffff
jne 0x40131d
mov eax, 1
jmp 0x4013ef
mov dword [ebp - 0x36c], 0
push 4
lea ecx, [ebp - 0x36c]
push ecx
push 0x1002
push 0xffff
mov edx, dword [0x471b10]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, 2
mov word [0x472d40], ax
movzx ecx, word [0x4700d8]
push ecx
call dword [sym.imp.WS2_32.dll_htons]
mov word [0x472d42], ax
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x472d44], eax
push 0x10
push 0x472d40
mov eax, dword [0x471b10]
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4013cf
push 0x51
push 0
lea ecx, [ebp - 0x58]
push ecx
call fcn.00405d40
add esp, 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Connect___failed:__d
lea edx, [ebp - 0x58]
push edx
call fcn.00406900
add esp, 0xc
push 0
push str.Client_Socket_Error
lea eax, [ebp - 0x58]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x4013ef
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040105a
add esp, 4
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x471b10]
push eax
call fcn.00401037
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret
Function at 0x401e00
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_WSACreateEvent]
mov dword [ebp - 0x5c], eax
mov eax, 4
imul eax, eax, 0
mov ecx, dword [ebp - 0x5c]
mov dword [ebp + eax - 0x78], ecx
push 0x14
push 0
lea edx, [ebp - 0x90]
push edx
call fcn.00405d40
add esp, 0xc
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x64], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x60], edx
mov eax, 1
test eax, eax
je 0x401f7b
push 0
lea ecx, [ebp - 0x90]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
push 1
lea eax, [ebp - 0x64]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
mov dword [ebp - 0x70], eax
cmp dword [ebp - 0x70], 0xffffffff
jne 0x401ebf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x6c], eax
cmp dword [ebp - 0x6c], 0x3e5
je 0x401ebf
mov edx, dword [ebp - 0x6c]
push edx
push str.WSASend_failed_with_error__d_n
lea eax, [ebp - 0x58]
push eax
call fcn.00406900
add esp, 0xc
push 0
push 0x470054
lea ecx, [ebp - 0x58]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
push 0xffffffffffffffff
push 0
lea edx, [ebp - 0x78]
push edx
push 1
call dword [sym.imp.WS2_32.dll_WSAWaitForMultipleEvents]
cmp eax, 0xffffffff
jne 0x401f01
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAWaitForMultipleEvents_failed__d_n
lea eax, [ebp - 0x58]
push eax
call fcn.00406900
add esp, 0xc
push 0
push 0x470080
lea ecx, [ebp - 0x58]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov edx, 4
imul edx, edx, 0
mov eax, dword [ebp + edx - 0x78]
push eax
call dword [sym.imp.WS2_32.dll_WSAResetEvent]
lea ecx, [ebp - 0x7c]
push ecx
push 0
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x90]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_WSAGetOverlappedResult]
test eax, eax
jne 0x401f5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.WSAGetOverlappedResult_failed_with_error__d_n
lea edx, [ebp - 0x58]
push edx
call fcn.00406900
add esp, 0xc
push 0
push str.Server
lea eax, [ebp - 0x58]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [ebp - 0x64]
sub ecx, dword [ebp - 0x68]
mov dword [ebp - 0x64], ecx
jne 0x401f6d
jmp 0x401f7b
mov edx, dword [ebp - 0x60]
add edx, dword [ebp - 0x68]
mov dword [ebp - 0x60], edx
jmp 0x401e50
mov eax, dword [ebp - 0x5c]
push eax
call dword [sym.imp.WS2_32.dll_WSACloseEvent]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret
Function at 0x4024d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x51
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00405d40
add esp, 0xc
mov ecx, dword [0x472d60]
push ecx
push 0x470010
lea edx, [ebp - 0x58]
push edx
call fcn.00406900
add esp, 0xc
lea eax, [ebp - 0x58]
push eax
call fcn.00405f60
add esp, 4
push eax
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004010eb
add esp, 0xc
mov dword [ebp - 0x68], eax
push 0x51
push 0
lea eax, [ebp - 0x58]
push eax
call fcn.00405d40
add esp, 0xc
push 0
push 0x51
lea ecx, [ebp - 0x58]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 0x51
jae 0x40255b
jmp 0x402560
call fcn.00405b20
mov ecx, dword [ebp - 0x64]
mov byte [ebp + ecx - 0x58], 0
push 0x51
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405d40
add esp, 0xc
mov eax, dword [0x472d5c]
push eax
push 0x470014
lea ecx, [ebp - 0x58]
push ecx
call fcn.00406900
add esp, 0xc
lea edx, [ebp - 0x58]
push edx
call fcn.00405f60
add esp, 4
push eax
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004010eb
add esp, 0xc
mov dword [ebp - 0x68], eax
push 0x51
push 0
lea edx, [ebp - 0x58]
push edx
call fcn.00405d40
add esp, 0xc
push 0
push 0x51
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x5c], eax
mov edx, dword [ebp - 0x5c]
mov dword [ebp - 0x60], edx
cmp dword [ebp - 0x60], 0x51
jae 0x4025e2
jmp 0x4025e7
call fcn.00405b20
mov eax, dword [ebp - 0x60]
mov byte [ebp + eax - 0x58], 0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret
Function at 0x402de0
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x970
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x950], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x964], ecx
mov dword [ebp - 0x970], 0
mov dword [ebp - 0x96c], 0
mov dword [ebp - 0x94c], 1
mov edx, 4
shl edx, 0
mov eax, dword [ebp - 0x950]
mov dword [ebp + edx - 0x948], eax
mov ecx, 1
test ecx, ecx
je 0x403040
lea edx, [ebp - 0x970]
push edx
push 0
push 0
lea eax, [ebp - 0x94c]
push eax
push 0
call dword [sym.imp.WS2_32.dll_select]
mov dword [ebp - 0x968], eax
cmp dword [ebp - 0x968], 0
je 0x40303b
push 0x801
push 0
lea ecx, [ebp - 0x848]
push ecx
call fcn.00405d40
add esp, 0xc
push 0
push 0x800
lea edx, [ebp - 0x848]
push edx
mov eax, dword [ebp - 0x950]
push eax
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x95c], eax
mov ecx, dword [ebp - 0x95c]
mov dword [ebp - 0x954], ecx
cmp dword [ebp - 0x954], 0x801
jae 0x402ec3
jmp 0x402ec8
call fcn.00405b20
mov edx, dword [ebp - 0x954]
mov byte [ebp + edx - 0x848], 0
push 7
push str.REFRESH
lea eax, [ebp - 0x848]
push eax
call fcn.00406120
add esp, 0xc
test eax, eax
jne 0x402f29
mov ecx, dword [ebp - 0x950]
push ecx
mov edx, dword [ebp - 0x964]
push edx
call fcn.004010cd
add esp, 8
mov dword [ebp - 0x958], eax
mov eax, dword [ebp - 0x958]
push eax
push 0x470138
lea ecx, [ebp - 0x44]
push ecx
call fcn.00406900
add esp, 0xc
jmp 0x40303b
push 3
push 0x47013c
lea edx, [ebp - 0x848]
push edx
call fcn.00406120
add esp, 0xc
test eax, eax
jne 0x402f7a
lea eax, [ebp - 0x848]
push eax
call fcn.004010d7
add esp, 4
lea ecx, [ebp - 0x848]
push ecx
call fcn.00405f60
add esp, 4
mov dword [ebp - 0x960], eax
cmp dword [ebp - 0x960], 0
jbe 0x402f75
jmp 0x402ed6
jmp 0x40303b
push 0xa
push str.RESOLUTION
lea edx, [ebp - 0x848]
push edx
call fcn.00406120
add esp, 0xc
test eax, eax
jne 0x402fa8
mov eax, dword [ebp - 0x950]
push eax
call fcn.0040101e
add esp, 4
jmp 0x40303b
push 0xa
push str.DISCONNECT
lea ecx, [ebp - 0x848]
push ecx
call fcn.00406120
add esp, 0xc
test eax, eax
jne 0x40303b
mov dword [0x471a80], 0
mov edx, dword [0x472d38]
mov dword [0x471a84], edx
cmp dword [0x471a84], 0
je 0x403039
mov eax, dword [0x471a84]
mov ecx, dword [eax]
push ecx
call fcn.004066c0
add esp, 4
mov edx, dword [0x471a84]
mov eax, dword [edx + 0x80]
push eax
call fcn.004066c0
add esp, 4
mov ecx, dword [0x471a84]
mov dword [ecx + 0x94], 0
mov edx, dword [0x471a84]
mov dword [edx + 0x90], 0
mov eax, dword [0x471a84]
mov ecx, dword [eax + 0x98]
mov dword [0x471a84], ecx
jmp 0x402fd8
jmp 0x403040
jmp 0x402e38
mov edx, dword [ebp - 0x950]
push edx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret
Function at 0x404c40
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ac
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2ac], ecx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [ebp - 0x2ac]
mov edx, dword [ebp + 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetMenu]
mov edx, dword [ebp - 0x2ac]
mov dword [edx + 8], eax
push 1
push 0x9c44
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.USER32.dll_EnableMenuItem]
lea edx, [ebp - 0x2a8]
push edx
push 0x202
call sub.WS2_32.dll_WSAStartup
test eax, eax
je 0x404ced
push str.Failed_to_load_Winsock_
lea eax, [ebp - 0x118]
push eax
call fcn.00406900
add esp, 8
push 0
push str.Remote_Server
lea ecx, [ebp - 0x118]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov eax, 1
jmp 0x404d49
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp - 0x2ac]
call fcn.00401082
mov eax, 1
imul eax, eax, 3
add eax, 0x471a90
push eax
mov ecx, 1
shl ecx, 1
add ecx, 0x471a90
push ecx
mov edx, 1
shl edx, 0
add edx, 0x471a90
push edx
mov eax, 1
imul eax, eax, 0
add eax, 0x471a90
push eax
lea ecx, [ebp - 0x18]
push ecx
mov ecx, dword [ebp - 0x2ac]
call fcn.0040104b
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret 8

Function at 0x405060
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x470360]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10c], ecx
push 0x100
lea eax, [ebp - 0x104]
push eax
call sub.WS2_32.dll_gethostname
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0
je 0x4050b2
push 0x45fe34
mov ecx, dword [ebp + 8]
push ecx
call fcn.00405dd0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x4050c7
lea edx, [ebp - 0x104]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00405dd0
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00406af0
mov esp, ebp
pop ebp
ret 4
Function at 0x40e5b0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46dfab
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.004629c6
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40e632
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004608dd
mov eax, dword [eax]
push 0x4841c0
push eax
call fcn.00453764
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462c51
test bl, bl
je 0x40e632
push 0x4841c0
lea ecx, [esp + 0xc]
call fcn.00462fe1
push 0x487d3c
lea ecx, [esp + 0xc]
call fcn.00462fe1
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 0x40e66e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462c51
jmp 0x40e739
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 0x40e6f2
lea edx, [esp + 0x7c]
push 0x487d38
push edx
call fcn.00453764
add esp, 8
test eax, eax
je 0x40e6f2
lea eax, [esp + 0x7c]
push 0x487d34
push eax
call fcn.00453764
add esp, 8
test eax, eax
je 0x40e6f2
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 0x40e682
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.00462c51
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 0x40ef30
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 0x40ef92
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 0x40efa0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46e02b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48e660]
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 0x40f0d8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40f006
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462c51
xor eax, eax
jmp 0x40f14f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00462d8e
push esi
lea ecx, [esp + 0xc]
call fcn.0046301d
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 0x40f12d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040ef30
test eax, eax
jne 0x40f12d
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.0040ef30
test eax, eax
jne 0x40f12d
lea eax, [esp + 0x14]
push 0x487d50
push eax
call fcn.00454870
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f10c
lea ecx, [esp + 0x14]
push 0x487d4c
push ecx
call fcn.004547f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40f10c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40f10f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00462d3e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40f01e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462c51
xor eax, eax
jmp 0x40f14f
mov byte [esi], 0
push 0x487d48
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.00462c51
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 0x41faf0
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 0x41fb5e
cmp si, 0x69
ja 0x41fb5e
add esi, 0xffd0
cmp si, 0x11
je 0x41fb2e
push 0x11
call edi
test ax, ax
jge 0x41fb2e
or esi, 0x2000
cmp si, 0x10
je 0x41fb43
push 0x10
call edi
test ax, ax
jge 0x41fb43
or esi, 0x4000
cmp si, 0x12
je 0x41fb58
push 0x12
call edi
test ax, ax
jge 0x41fb58
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41fb6b
mov esi, 0xbd
jmp 0x41fb1f
cmp si, 0x6e
jne 0x41fb78
mov esi, 0xbe
jmp 0x41fb1f
cmp si, 0x6f
jne 0x41fb19
mov esi, 0xbf
jmp 0x41fb1f

Function at 0x421210
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49ecd8]
xor edx, edx
cmp eax, edx
jne 0x421236
xor eax, eax
mov byte [eax + 0x49ebd8], al
inc eax
cmp eax, 0x100
jl 0x42121e
mov dword [0x49ecd8], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49ebd8
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4212c7
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 0x42129a
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 0x421268
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x421340
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 0x421393
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 0x42137a
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