joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d6b
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a0c], 0
push esi
jne 0x405da2
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405d7c
mov dword [ecx*4 + 0x422a08], eax
inc ecx
cmp ecx, 0x100
jl 0x405d77
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405dd3
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x422a08]
xor eax, esi
inc ecx
dec edx
jne 0x405db5
pop edi
not eax
pop esi
ret 0xc

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x40b765
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x40b768
mov eax, 0x50402d5
out dx, al
clc
div esi
cmc
retf 0x3d52

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
Function at 0x402fbd
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x403035
push ebx
push ebp
push edi
lea edi, [esi + 0x14a]
push edi
call sub.MSVCRT.dll_strlen
lea ebx, [esi + 0x18a]
mov ebp, eax
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
mov dword [esp + 0x18], eax
pop ecx
xor eax, eax
push 0x42
test ebp, ebp
pop ecx
je 0x402ffd
movsx edx, byte [edi + eax]
add ecx, edx
inc eax
cmp eax, ebp
jne 0x402ff2
mov ebp, dword [sym.imp.MSVCRT.dll_srand]
push ecx
call ebp
cmp dword [esp + 0x18], 0
pop ecx
je 0x40302d
mov edi, ebx
mov ebx, 0xfffffe76
sub ebx, esi
call dword [sym.imp.MSVCRT.dll_rand]
xor al, byte [edi]
and al, 0x7f
mov byte [edi], al
inc edi
lea eax, [ebx + edi]
cmp eax, dword [esp + 0x14]
jne 0x403017
push 0
call ebp
pop ecx
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x404bab
Capabilities:
Get file size
Get socket status
Read and send data from client to server
Read file on windows
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 0x8000080
push 3
push ebx
push 1
push accept
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 8]
mov edi, 0x403
push edi
push dword [eax + 0x10]
call esi
cmp dword [ebp - 8], 0xffffffff
je 0x404cca
lea eax, [ebp - 4]
push ebx
push eax
lea eax, [ebp - 0x310]
push 0x200
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp + 0x10], ebx
mov eax, dword [ebp + 0xc]
push ebx
lea ecx, [ebp - 0x110]
push ebx
push ecx
push ebx
push eax
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x110], 1
call sub.WSOCK32.dll_select
cmp eax, 0xffffffff
je 0x404c8a
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0x10]
sub ecx, eax
push ebx
lea eax, [ebp + eax - 0x310]
push ecx
push eax
push dword [ebp + 0xc]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x404c82
call sub.WSOCK32.dll_WSAGetLastError
cmp eax, 0x2745
je 0x404c8f
cmp eax, 0x2746
je 0x404c8f
cmp eax, 0x2742
jne 0x404c99
jmp 0x404c8f
add dword [ebp + 0x10], eax
sub dword [ebp - 0xc], eax
jmp 0x404c99
call sub.WSOCK32.dll_WSAGetLastError
mov dword [ebp + 0x10], 1
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 4]
cmp dword [ebp + 0x10], eax
jl 0x404c1f
push dword [ebp - 0xc]
mov eax, dword [ebp + 8]
push dword [ebp + 0xc]
push edi
push dword [eax + 0x10]
call esi
cmp dword [ebp - 4], 0x200
je 0x404c02
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push ebx
push dword [ebp + 0xc]
push edi
push dword [eax + 0x10]
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x404cdc
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
push ebx
call dword [sym.imp.MSVCRT.dll_printf]
mov edi, dword [esp + 0x1c]
xor esi, esi
test edi, edi
pop ecx
jle 0x404d19
mov eax, edi
push 0
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x1c]
call sub.WSOCK32.dll_send
cmp eax, 0xffffffff
jne 0x404d13
push 1
xor edi, edi
pop esi
add esi, eax
cmp esi, edi
jl 0x404cf5
pop edi
pop esi
pop ebx
ret
Function at 0x404d1d
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x84
push ebx
mov ebx, dword [sym.imp.MSVCRT.dll_strstr]
push ebp
push esi
push edi
mov esi, 0x41402c
mov ebp, 0x412a9c
push ebp
push esi
call ebx
mov edi, eax
pop ecx
test edi, edi
pop ecx
jne 0x404d73
push eax
lea eax, [esp + 0x18]
push 0x7f
push eax
push dword [esp + 0xa4]
call sub.WSOCK32.dll_recv
cmp eax, 0xffffffff
je 0x404e16
and byte [esp + eax + 0x14], 0
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x404d37
and byte [edi], 0
cmp dword [esp + 0x9c], 0
je 0x404d9e
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp dword [esp + 0xa0], eax
jle 0x404d9e
push esi
push dword [esp + 0xa0]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [sym.imp.MSVCRT.dll___mb_cur_max]
cmp dword [eax], 1
jle 0x404dbc
movsx eax, byte [0x41402c]
push 4
push eax
call dword [sym.imp.MSVCRT.dll__isctype]
pop ecx
pop ecx
jmp 0x404dd1
mov ecx, dword [sym.imp.MSVCRT.dll__pctype]
movsx eax, byte [0x41402c]
mov ecx, dword [ecx]
mov al, byte [ecx + eax*2]
and eax, 4
test eax, eax
je 0x404de3
push esi
call dword [sym.imp.MSVCRT.dll_atoi]
pop ecx
mov dword [esp + 0x10], eax
jmp 0x404de8
or dword [esp + 0x10], 0xffffffff
xor eax, eax
cmp byte [0x41402f], 0x2d
sete al
add edi, 2
mov ebp, eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push edi
push esi
call dword [sym.imp.MSVCRT.dll_memmove]
add esp, 0xc
test ebp, ebp
je 0x404e1b
jmp 0x404d32
or eax, 0xffffffff
jmp 0x404e1f
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x84
ret
Function at 0x405b81
Capabilities:
Delete file
Suspend thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x405c23
lea eax, [ebp + 8]
push eax
call dword [sym.imp.MSVCRT.dll_time]
mov esi, dword [edi + 0x542]
pop ecx
test esi, esi
je 0x405c23
mov eax, dword [ebp + 8]
sub eax, dword [esi + 8]
cmp eax, 0x12c
jg 0x405bba
mov esi, dword [esi + 0x10]
test esi, esi
jne 0x405ba6
test esi, esi
je 0x405c23
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [esi]
call sub.WSOCK32.dll_closesocket
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0xc]
push 0
push dword [0x41514c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [esi]
push edi
call fcn.00405b37
pop ecx
lea ebx, [edi + 0x546]
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
dec dword [edi + 0x55e]
jne 0x405c1b
lea esi, [edi + 0x562]
push esi
call dword [sym.imp.MSVCRT.dll_remove]
and byte [esi], 0
pop ecx
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop ebx
pop edi
pop esi
pop ebp
ret

Function at 0x405f06
Capabilities:
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
push edi
push 0
push 1
push 2
mov dword [ebp - 4], 0x10
call sub.WSOCK32.dll_socket
mov edi, eax
cmp edi, 0xffffffff
jne 0x405f34
call sub.WSOCK32.dll_WSAGetLastError
jmp 0x405ff6
mov esi, dword [ebp + 8]
and dword [ebp - 0x10], 0
mov word [ebp - 0x14], 2
mov ax, word [esi + 0x134]
push eax
call sub.WSOCK32.dll_htons
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push edi
call sub.WSOCK32.dll_bind
test eax, eax
jne 0x405f9f
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call sub.WSOCK32.dll_getsockname
push dword [ebp - 0x12]
call sub.WSOCK32.dll_ntohs
push 5
push edi
mov word [esi + 0x134], ax
call sub.WSOCK32.dll_listen
test eax, eax
jne 0x405f9f
push 8
push 0x401
push dword [esi + 0x10]
push edi
call sub.WSOCK32.dll_WSAAsyncSelect
test eax, eax
je 0x405fb0
call sub.WSOCK32.dll_WSAGetLastError
push edi
mov esi, eax
call sub.WSOCK32.dll_closesocket
mov eax, esi
jmp 0x405ff6
movsx eax, word [esi + 0x134]
push eax
lea eax, [ebp - 0x114]
push str.HTTP:_started_server_on_port__d
push eax
mov dword [esi + 0x136], edi
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x114]
push esi
push eax
push 0xffffffffffffffff
push 0x3f4
push dword [esi + 0x10]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call fcn.00403fe7
add esp, 0x10
xor eax, eax
pop edi
pop esi
leave
ret 4
Function at 0x4076d8
Capabilities:
Get geographical location
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x598
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [0x415150], eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov esi, dword [sym.imp.USER32.dll_MessageBoxA]
mov dword [0x41514c], eax
mov eax, dword [ebp + 0x14]
and dword [ebp + 0x14], 0
mov dword [0x415154], eax
mov eax, dword [ebp + 0x10]
and dword [ebp + 0x10], 0
mov dword [0x415148], eax
mov dword [ebp - 4], 2
mov ebx, 0x41291c
mov edi, str.Unable_to_connect_to_windows_sockets
lea eax, [ebp - 0x598]
push eax
xor eax, eax
mov ah, byte [ebp + 0x14]
mov al, byte [ebp - 4]
push eax
call sub.WSOCK32.dll_WSAStartup
xor ecx, ecx
mov dword [ebp - 8], eax
cmp eax, ecx
je 0x40775d
cmp eax, 0x276c
jne 0x407775
xor eax, eax
cmp dword [ebp + 0x14], ecx
mov dword [ebp - 4], 1
sete al
mov dword [ebp + 0x14], eax
inc dword [ebp + 0x10]
cmp dword [ebp + 0x10], 3
jle 0x40776d
push 0x30
push ebx
push edi
push ecx
call esi
cmp dword [ebp - 8], 0
je 0x407781
jmp 0x407726
push 0x30
push ebx
push edi
push ecx
call esi
jmp 0x407812
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov esi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov ebx, 0x100
lea eax, [ebp - 0x108]
push ebx
push eax
mov edi, 0x400
push 6
push edi
call esi
lea eax, [ebp - 0x208]
push ebx
push eax
push 3
push edi
call esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x408]
push str._s__s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x408]
xor esi, esi
push eax
push esi
call dword [sym.imp.MSVCRT.dll_setlocale]
add esp, 0x18
push esi
push 0x40672a
push esi
push 0x65
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DialogBoxParamA]
call sub.WSOCK32.dll_WSACleanup
mov eax, dword [0x415144]
cmp eax, esi
je 0x407812
push eax
push esi
push dword [0x41514c]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x408590
Capabilities:
Query environment variable

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
push edi
mov dword [edi + 4], 0
call fcn.00409c50
mov dword [esp + 0x10], eax
add esp, 4
push 0x50
push edi
call fcn.00409c10
add esp, 8
mov esi, eax
test esi, esi
jne 0x4085e1
push edi
call fcn.00409c60
add esp, 4
mov eax, dword [edi]
mov dword [eax + 0x14], 0x35
mov eax, dword [edi]
push edi
mov dword [eax + 0x18], 0
mov eax, dword [edi]
call dword [eax]
add esp, 4
mov dword [esi], fcn.004086d0
mov dword [esi + 4], fcn.00408820
mov dword [esi + 8], fcn.004088c0
mov dword [esi + 0xc], fcn.00408970
mov dword [esi + 0x10], 0x408a30
mov dword [esi + 0x14], 0x408aa0
mov dword [esi + 0x18], 0x408b10
mov dword [esi + 0x1c], 0x408cb0
mov dword [esi + 0x20], 0x408e80
lea ecx, [esi + 0x34]
xor edx, edx
mov dword [esi + 0x24], fcn.00409050
mov dword [esi + 0x28], 0x409150
mov eax, dword [esp + 0xc]
mov dword [esi + 0x2c], eax
mov eax, 1
mov dword [ecx], edx
sub ecx, 4
dec eax
mov dword [ecx + 0xc], edx
jns 0x40863e
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0x50
push str.JPEGMEM
mov dword [edi + 4], esi
call sub.MSVCRT.dll_getenv
add esp, 4
test eax, eax
je 0x4086c8
lea ecx, [esp + 0xb]
lea edx, [esp + 0xc]
mov byte [esp + 0xb], 0x78
push ecx
push edx
push str._ld_c
push eax
call sub.MSVCRT.dll_sscanf
add esp, 0x10
test eax, eax
jle 0x4086c8
cmp byte [esp + 0xb], 0x6d
je 0x4086a1
cmp byte [esp + 0xb], 0x4d
jne 0x4086b5
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [edx + edx*4]
shl eax, 3
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
lea ecx, [eax + eax*4]
lea edx, [ecx + ecx*4]
lea eax, [edx + edx*4]
shl eax, 3
mov dword [esi + 0x2c], eax
pop edi
pop esi
add esp, 8
ret

Function at 0x40b3b3
Capabilities:
Encode data using xor

Disassembly:
call 0x40b306
mov ecx, 0x222
call 0x40b3b3
rcr dword [esi + 0x30], 0x4c
push cs
pop es
xor byte [esi + ecx + 7], cl
loop 0x40b3b6
sub cl, bl
mov dl, 0x87
fsub st(0), st(0)
fidivr word [ebp + ebp - 2]
push eax
lea edi, [esi + 0x1d]
dec ebp
mov dl, 0x8b
daa
nop
invalid
Function at 0x408c10
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a95b
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.0045f868
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x408c92
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045d7b7
mov eax, dword [eax]
push 0x5b01c0
push eax
call fcn.004506b4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0045faf3
test bl, bl
je 0x408c92
push 0x5b01c0
lea ecx, [esp + 0xc]
call fcn.0045fe83
push 0x5b3d10
lea ecx, [esp + 0xc]
call fcn.0045fe83
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 0x408cce
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0045faf3
jmp 0x408d99
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 0x408d52
lea edx, [esp + 0x7c]
push 0x5b3d0c
push edx
call fcn.004506b4
add esp, 8
test eax, eax
je 0x408d52
lea eax, [esp + 0x7c]
push 0x5b3d08
push eax
call fcn.004506b4
add esp, 8
test eax, eax
je 0x408d52
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 0x408ce2
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.0045faf3
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 0x409590
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 0x4095f2
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 0x409600
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46a9db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ba5c0]
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 0x409738
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x409666
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045faf3
xor eax, eax
jmp 0x4097af
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0045fc30
push esi
lea ecx, [esp + 0xc]
call fcn.0045febf
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 0x40978d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00409590
test eax, eax
jne 0x40978d
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.00409590
test eax, eax
jne 0x40978d
lea eax, [esp + 0x14]
push 0x5b3d24
push eax
call fcn.004516f0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40976c
lea ecx, [esp + 0x14]
push 0x5b3d20
push ecx
call fcn.00451670
mov esi, eax
add esp, 8
test esi, esi
jne 0x40976c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40976f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0045fbe0
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40967e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0045faf3
xor eax, eax
jmp 0x4097af
mov byte [esi], 0
push 0x5b3d1c
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.0045faf3
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 0x41c110
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 0x41c17e
cmp si, 0x69
ja 0x41c17e
add esi, 0xffd0
cmp si, 0x11
je 0x41c14e
push 0x11
call edi
test ax, ax
jge 0x41c14e
or esi, 0x2000
cmp si, 0x10
je 0x41c163
push 0x10
call edi
test ax, ax
jge 0x41c163
or esi, 0x4000
cmp si, 0x12
je 0x41c178
push 0x12
call edi
test ax, ax
jge 0x41c178
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41c18b
mov esi, 0xbd
jmp 0x41c13f
cmp si, 0x6e
jne 0x41c198
mov esi, 0xbe
jmp 0x41c13f
cmp si, 0x6f
jne 0x41c139
mov esi, 0xbf
jmp 0x41c13f

Function at 0x41d830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5cac10]
xor edx, edx
cmp eax, edx
jne 0x41d856
xor eax, eax
mov byte [eax + 0x5cab10], al
inc eax
cmp eax, 0x100
jl 0x41d83e
mov dword [0x5cac10], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5cab10
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41d8e7
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 0x41d8ba
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 0x41d888
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41d960
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 0x41d9b3
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 0x41d99a
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
Function at 0x420ef0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x46be08
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x20]
call fcn.00466546
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0xc]
push eax
push ecx
mov dword [esp + 0x40], 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub eax, esi
sub ecx, edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x44]
push edx
push eax
lea edx, [esp + 0xc]
push ecx
lea eax, [esp + 0x28]
push edx
push eax
call fcn.00420dc0
add esp, 0x14
lea ecx, [esp + 0x1c]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004665b8
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret