joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dfc10
Capabilities:
Check for time delay via gettickcount
Connect socket
Get socket status

Disassembly:
mov eax, dword [esp + 0xc]
sub esp, 0x224
test eax, eax
push ebx
push esi
push edi
mov esi, ecx
je 0x4dfc38
cmp byte [eax], 0
je 0x4dfc38
push eax
mov ecx, esi
call fcn.004dfba0
test eax, eax
jne 0x4dfdea
cmp dword [esi + 4], 0xffffffff
jne 0x4dfc4d
mov ecx, esi
call fcn.004dfa60
test eax, eax
jne 0x4dfdea
mov al, byte [esi + 0xd]
test al, al
je 0x4dfc65
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov ecx, dword [esp + 0x234]
mov eax, dword [esi + 8]
push ecx
mov dword [esp + 0x20], eax
mov word [esp + 0x1c], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [esp + 0x1a], ax
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push 0x10
push edx
push eax
call dword [sym.imp.WSOCK32.dll_connect]
cmp eax, 0xffffffff
jne 0x4dfcc1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x4dfcc1
cmp eax, 0x2734
je 0x4dfcc1
pop edi
pop esi
mov eax, 0x80004005
pop ebx
add esp, 0x224
ret 0xc
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x4dfd93
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebx, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x130]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x134], eax
push edx
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x140], ebx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x4dfdde
test eax, eax
je 0x4dfd5c
mov eax, dword [esi + 4]
lea edx, [esp + 0x28]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dfda4
mov edx, dword [esi + 4]
lea ecx, [esp + 0x12c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dfcb0
jmp 0x4dfd67
mov al, byte [esi + 0xd]
test al, al
jne 0x4dfc54
cmp dword [esp + 0x238], 0xffffffff
je 0x4dfd88
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x238]
sub eax, edx
cmp ecx, eax
jle 0x4dfdcd
mov al, byte [esi + 0xd]
test al, al
je 0x4dfce1
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x4dfdbc
pop edi
pop esi
mov eax, 0x80004004
pop ebx
add esp, 0x224
ret 0xc
mov byte [esi + 0xc], bl
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x224
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebx
add esp, 0x224
ret 0xc
mov al, byte [esi + 0xd]
neg al
sbb eax, eax
add eax, 0x80004005
pop edi
pop esi
pop ebx
add esp, 0x224
ret 0xc
Function at 0x4dfe60
Capabilities:
Check for time delay via gettickcount
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x214
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x4dffac
mov al, byte [esi + 0xc]
test al, al
je 0x4dffac
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x4dff41
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebp, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x11c]
push ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
push edx
lea ecx, [esp + 0x20]
push 0
inc eax
push ecx
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x4dff8a
test eax, eax
je 0x4dff15
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dff52
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4dff8a
cmp dword [esp + 0x22c], 0xffffffff
je 0x4dff36
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x4dff9b
mov al, byte [esi + 0xd]
test al, al
je 0x4dfea0
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x4dff6a
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_recv]
test eax, eax
jg 0x4dffb1
pop edi
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x214
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebp
add esp, 0x214
ret 0xc
mov eax, 0x80010006
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc
Function at 0x4e0030
Capabilities:
Check for time delay via gettickcount
Get socket status
Send data
Send data on socket

Disassembly:
sub esp, 0x214
push ebp
push esi
mov esi, ecx
push edi
cmp dword [esi + 4], 0xffffffff
je 0x4e017c
mov al, byte [esi + 0xc]
test al, al
je 0x4e017c
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0xd]
test al, al
jne 0x4e0111
mov edi, dword [sym.imp.WSOCK32.dll_select]
mov ebp, 1
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x120]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x20], eax
mov dword [esp + 0x124], eax
push edx
push ecx
inc eax
push 0
push eax
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x130], ebp
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0xc350
call edi
cmp eax, 0xffffffff
je 0x4e015a
test eax, eax
je 0x4e00e5
mov eax, dword [esi + 4]
lea edx, [esp + 0x18]
push edx
push eax
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4e0122
mov edx, dword [esi + 4]
lea ecx, [esp + 0x11c]
push ecx
push edx
call sub.WSOCK32.dll___WSAFDIsSet
test eax, eax
jne 0x4e015a
cmp dword [esp + 0x22c], 0xffffffff
je 0x4e0106
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, dword [esp + 0xc]
mov ecx, dword [esp + 0x22c]
sub eax, edx
cmp ecx, eax
jle 0x4e016b
mov al, byte [esi + 0xd]
test al, al
je 0x4e0070
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov al, byte [esi + 0xd]
test al, al
je 0x4e013a
pop edi
pop esi
mov eax, 0x80004004
pop ebp
add esp, 0x214
ret 0xc
mov eax, dword [esp + 0x228]
mov ecx, dword [esp + 0x224]
mov edx, dword [esi + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WSOCK32.dll_send]
test eax, eax
jge 0x4e0181
pop edi
pop esi
mov eax, 0x80004005
pop ebp
add esp, 0x214
ret 0xc
pop edi
pop esi
mov eax, 0x8001011f
pop ebp
add esp, 0x214
ret 0xc
mov eax, 0x80010006
pop edi
pop esi
pop ebp
add esp, 0x214
ret 0xc

Function at 0x4e1340
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x4e13b1
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x4e13b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4e139a
jmp 0x4e13b1
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x403324
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004055d4
test esi, esi
jne 0x40335c
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405710
jmp 0x40337a
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403268
mov edi, eax
test esi, esi
je 0x40337a
cmp dword [ebx], 0
je 0x40337a
dec esi
jmp 0x403363
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x403a1c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x477020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403ab4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x403a94
xor eax, eax
push ebp
push 0x403a8d
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 0x403aec
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403a94
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x477020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x477020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404bb4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x47d050], 0
je 0x404c15
cmp word [0x47d32c], 0xd7b2
jne 0x404bdd
cmp dword [0x47d334], 0
jbe 0x404bdd
mov eax, 0x47d328
call dword [0x47d344]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
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 0x404c40
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x47702c], 0
jne 0x404c31
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404d94
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x477030], 0
je 0x404dba
mov edx, esi
mov eax, ebx
call dword [0x477030]
jmp 0x404dc9
mov eax, 8
call fcn.00402fb0
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x47d051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404d5c
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x4073cc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x408bfc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x47fb2c
push 0xa
push 0x408c90
mov eax, dword [0x47fb1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408c20
call fcn.00410934
push ebx
mov eax, dword [0x47fb1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408c37
call fcn.00410934
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408c49
call fcn.00410934
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x47fb30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x47fb34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x47fb38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x47fb3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x47fb40], ecx
add edx, dword [eax + 0x14]
mov dword [0x47fb44], edx
pop esi
pop ebx
ret

Function at 0x40a2b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a359
test eax, edx
je 0x40a35c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a2d9
push edx
mov edx, eax
mov eax, esp
call fcn.004057c0
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a2ef
push eax
lea eax, [esp + 8]
call fcn.004057c0
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a2fe
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a325
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40a33f
add ecx, 4
js 0x40a316
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a33c
push eax
mov eax, ecx
mov edx, 2
call fcn.00404e34
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a323
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a325
xor eax, eax
ret
test eax, eax
je 0x40a36c
test edx, edx
jne 0x40a2c0
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40b060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00405660
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40b07e
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError
mov ebx, eax
cmp ebx, 2
je 0x40b09f
cmp ebx, 3
je 0x40b09f
cmp ebx, 0x7b
je 0x40b09f
mov eax, esi
call fcn.0040b020
test al, al
jne 0x40b0a3
xor eax, eax
jmp 0x40b0a5
mov al, 1
pop esi
pop ebx
ret
Function at 0x40e434
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e46d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405710
jmp 0x40e476
mov eax, ebx
mov edx, esi
call fcn.004055d4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40e480
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x40e4a2
movzx eax, word [esp]
jmp 0x40e4a4
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ec08
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040ea40
mov eax, dword [0x47c5dc]
cmp byte [eax], 0
je 0x40ec9a
mov eax, dword [0x47c388]
call fcn.00403464
call fcn.00403118
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040b364
push eax
lea eax, [esp + 0x890]
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 0x40ece8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40ecd3
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x47c32c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x47fb1c]
call fcn.00406714
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret
Function at 0x40f8b0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40f986
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00405628
lea eax, [ebp - 4]
call fcn.00405ebc
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405660
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f970
mov eax, ebx
call fcn.00402fb0
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f969
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405660
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f953
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f998
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f953
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f970
mov eax, dword [ebp - 0x10]
call fcn.00402fcc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f98d
lea eax, [ebp - 4]
call fcn.004055c4
ret

Function at 0x4107dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00405104
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x410786
mov eax, edi
add eax, eax
call fcn.00402fb0
mov esi, eax
jmp 0x410788
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4107c1
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4107ab
mov eax, esp
cmp esi, eax
je 0x4107ce
mov eax, esi
call fcn.00402fcc
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x410808
cmp bl, 0
je 0x410804
cmp bl, 0x41
jl 0x4107ff
cmp bl, 0x5a
jg 0x4107ff
or bl, 0x20
xor al, bl
inc esi
jmp 0x4107e3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x410748

Function at 0x41ff84
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0041fc88
dec esi
jne 0x41ffa6
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x421150
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x481e60
cmp dword [edi], 0
jne 0x4211cc
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x481e5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x477c34
mov ecx, 2
call fcn.00403168
mov edx, 0x421128
lea eax, [esi + 5]
call fcn.00421148
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00421148
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x4211a1
mov dword [0x481e5c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x423f90
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00405660
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
je 0x423fe8
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0x11
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x47c724]
mov dl, 1
mov eax, dword [0x423a18]
call fcn.0040ede4
call fcn.00404638
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.00423ba0
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x425284
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42528a
ret
Function at 0x431a8c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x431abb
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x431b3a
push esi
mov eax, dword [ebx + 0x38]
mov edx, eax
mov ebp, esi
add edx, ebp
push edx
push eax
call fcn.0043035c
add esp, 0xc
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x431b08
mov cx, word [esp]
sub cx, si
jmp 0x431b0a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x431af1
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x431b30
mov cx, word [esp]
sub cx, si
jmp 0x431b32
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x431b19
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x431b97
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00431760
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x431b82
mov eax, dword [ebx + 0x38]
mov edx, dword [ebx + 0x6c]
movzx eax, byte [eax + edx]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
cmp dword [ebx + 0x74], 0x106
jae 0x431b97
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x431a96
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x43cd04
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004055d4
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x43cd4b
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.004057a4
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x442164
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x44229d
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x423a8c]
call fcn.00423bc8
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x442273
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00423c68
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.004057a4
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x4422b8
call fcn.00405978
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.00423ccc
test al, al
je 0x44225d
lea ecx, [ebp - 4]
mov edx, 0x44232c
mov eax, dword [ebp - 0xc]
call fcn.00423f18
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.00410fb0
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x442256
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x442344
mov eax, dword [ebp - 8]
push eax
call fcn.00407ac4
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x47bdb4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44225d
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44227a
mov eax, dword [ebp - 0xc]
call fcn.00403c44
ret

Function at 0x4423a8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x4423ef
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4423d2
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4423e3
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x4423ef
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret