joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476760
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
call fcn.0047cbe0
mov ebp, dword [esp + 0x220]
mov eax, dword [esp + 0x21c]
push ebp
push 0
push 0
push eax
push 0x5a07d4
push 0
call dword [sym.imp.SHELL32.DLL_ShellExecuteA]
mov edi, eax
cmp edi, 0x20
ja 0x476859
lea ecx, [esp + 0x10]
push ecx
push 0x5a07cc
push accept
mov ecx, esi
call fcn.00476870
test eax, eax
jne 0x476859
mov ebx, dword [sym.imp.KERNEL32.DLL_lstrcatA]
lea edx, [esp + 0x10]
push 0x5a07b8
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push accept
mov ecx, esi
call fcn.00476870
test eax, eax
jne 0x476859
lea edx, [esp + 0x10]
push 0x5a07b0
push edx
call fcn.0048b910
mov esi, eax
add esp, 8
test esi, esi
jne 0x47682a
lea eax, [esp + 0x10]
push 0x5a07ac
push eax
call fcn.0048b910
mov esi, eax
add esp, 8
test esi, esi
jne 0x47682a
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x47682d
mov byte [esi], 0
push 0x59ff74
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8

Function at 0x476870
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 0x4768d2
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 0x47cb20
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4ab318
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x118]
test eax, eax
jne 0x47cbd0
mov eax, dword [0x5a1228]
push esi
mov dword [esp + 8], eax
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call fcn.0049b9aa
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call fcn.0049b9f9
push 0x5a0a44
lea ecx, [esp + 0xc]
call fcn.0049b956
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x47cbb7
push 0x6a
push esi
call dword [sym.imp.USER32.DLL_LoadCursorA]
test eax, eax
je 0x47cbb7
push eax
call dword [sym.imp.USER32.DLL_CopyIcon]
mov dword [edi + 0x118], eax
push esi
call dword [sym.imp.KERNEL32.DLL_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call fcn.0049b5c6
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x47fcd0
Capabilities:
Get number of processors

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4ab7a0
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi]
mov ecx, dword [eax - 8]
test ecx, ecx
je 0x47fe77
mov ecx, dword [0x5a1228]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], ecx
mov ecx, dword [eax - 8]
mov bl, 1
test ecx, ecx
mov byte [esp + 0x28], bl
jle 0x47fdcc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push edi
push ecx
mov ecx, esi
call fcn.0047e9f0
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x2c], 2
call fcn.0049b6b3
lea ecx, [esp + 0x14]
mov byte [esp + 0x28], bl
call fcn.0049b5c6
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push 0x59ff74
call fcn.0049b634
lea edx, [esp + 0x14]
push 0x3d
push edx
lea eax, [esp + 0x24]
push edi
push eax
mov ecx, esi
call fcn.0047edb0
push eax
lea ecx, [esp + 0x34]
mov byte [esp + 0x2c], 3
call fcn.0049b6b3
lea ecx, [esp + 0x18]
mov byte [esp + 0x28], bl
call fcn.0049b5c6
lea ecx, [esp + 0xc]
call fcn.0049ba8e
mov ecx, dword [esp + 0xc]
push 0x5a09b4
push ecx
call fcn.0048a804
add esp, 8
test eax, eax
je 0x47fdf4
mov edx, dword [edi]
mov ecx, dword [esp + 0x10]
mov eax, dword [edx - 8]
cmp ecx, eax
jl 0x47fd2d
mov esi, dword [esp + 0x34]
lea ecx, [esp + 0x30]
mov byte [esp + 0x28], 0
call fcn.0049b5c6
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.0049b5c6
jmp 0x47fe7b
lea eax, [esp + 0x30]
mov ecx, esi
push eax
call fcn.0047fa70
test eax, eax
push 0
je 0x47fe5f
lea ecx, [esp + 0x34]
push 0x64
push ecx
mov ecx, esi
call fcn.0047e110
mov ecx, dword [esp + 0x3c]
test ecx, ecx
je 0x47fe45
cmp eax, 0x64
jg 0x47fe33
mov edx, dword [esp + 0x38]
push eax
push 0x64
push edx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x47fdd0
push 0x64
push eax
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x47fdd0
cmp eax, 0x64
jge 0x47fdcc
mov ecx, dword [esp + 0x34]
push 0x64
push eax
push ecx
call dword [sym.imp.KERNEL32.DLL_MulDiv]
mov esi, eax
jmp 0x47fdd0
mov edx, dword [esp + 0x3c]
lea eax, [esp + 0x34]
push edx
push eax
mov ecx, esi
call fcn.0047e110
mov esi, eax
jmp 0x47fdd0
mov esi, dword [esp + 0x34]
mov eax, dword [esp + 0x38]
cmp esi, eax
jl 0x47fe85
mov eax, esi
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 0x10
Function at 0x49d9d4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x49da0c
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0049ba21
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0049b9f9
jmp 0x49da18
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x49f0c6
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x49f108
call fcn.004a5110
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
cmp eax, edi
je 0x49f108
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_LoadResource]
cmp eax, edi
jne 0x49f0ff
xor eax, eax
jmp 0x49f110
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0049f116
pop edi
pop esi
pop ebx
ret 4

Function at 0x4a5640
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4a566e
push dword [esi]
call dword [sym.imp.KERNEL32.DLL_TlsGetValue]
test eax, eax
je 0x4a568c
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004a55a6
jmp 0x4a568c
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4a568c
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004a55a6
test edi, edi
mov eax, edi
jne 0x4a5676
pop edi
push ebx
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x61817d
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
cld
mov dl, 0x80
movsb byte es:[edi], byte [esi]
call fcn.006181fc
jae 0x618189
xor ecx, ecx
call fcn.006181fc
jae 0x6181b3
xor eax, eax
call fcn.006181fc
jae 0x6181c4
mov al, 0x10
call fcn.006181fc
adc al, al
jae 0x6181a5
jne 0x6181f1
stosb byte es:[edi], al
jmp 0x61818a
call fcn.00618208
dec ecx
loop 0x6181d0
mov eax, ebp
call fcn.00618206
jmp 0x6181f2
lodsb al, byte [esi]
shr eax, 1
je 0x618218
adc ecx, 2
mov ebp, eax
jmp 0x6181f2
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
mov ebp, eax
call fcn.00618206
cmp eax, 0x7d00
jae 0x6181f0
cmp eax, 0x500
jae 0x6181f1
cmp eax, 0x7f
ja 0x6181f2
inc ecx
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x61818a
pop ebp
ret 8
Function at 0x40710c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40715e
test eax, edx
je 0x407161
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x407121
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x407147
add ecx, 4
js 0x407137
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x407144
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x40716d
test edx, edx
jne 0x407114
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a05c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a095
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004043d8
jmp 0x40a09e
mov eax, ebx
mov edx, esi
call fcn.0040433c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a0a8
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a0ca
movzx eax, byte [esp]
jmp 0x40a0cc
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40a75c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40a5d4
mov eax, dword [0x416c0c]
cmp byte [eax], 0
je 0x40a7d8
mov eax, dword [0x416b1c]
call fcn.004030d4
call fcn.00402edc
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.00407958
push eax
lea eax, [esp + 0x50]
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 0x40a820
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40a80e
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x416af8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4197f0]
call fcn.004052f4
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x4134a0
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffefc
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, 0x104
call fcn.00404558
add esp, 0x104
pop ebx
ret
Function at 0x4134d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
xor eax, eax
push ebp
push 0x413518
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
setne bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41351f
lea eax, [ebp - 4]
call fcn.004042e8
ret

Function at 0x413798
Capabilities:
Encrypt data using rc6

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
lea edx, [esp + 4]
mov eax, dword [0x41ba90]
mov ecx, 0x40
call fcn.00402f70
mov dword [0x41b9dc], 0xb7e15163
mov ebx, 0x2b
mov eax, 0x41b9dc
mov edx, dword [eax]
add edx, 0x9e3779b9
mov dword [eax + 4], edx
add eax, 4
dec ebx
jne 0x4137c6
xor ebx, ebx
xor edi, edi
xor esi, esi
xor ebp, ebp
mov dword [esp], 0x84
mov eax, dword [ebx*4 + 0x41b9dc]
add eax, esi
add eax, ebp
mov edx, 3
call fcn.00413678
mov esi, eax
mov dword [ebx*4 + 0x41b9dc], esi
lea edx, [ebp + esi]
mov eax, dword [esp + edi*4 + 4]
add eax, esi
add eax, ebp
call fcn.00413678
mov ebp, eax
mov dword [esp + edi*4 + 4], ebp
lea eax, [ebx + 1]
mov ecx, 0x2c
cdq
idiv ecx
mov ebx, edx
inc edi
and edi, 0x8000000f
jns 0x413836
dec edi
or edi, 0xfffffff0
inc edi
dec dword [esp]
jne 0x4137e6
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4138c0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov ebx, eax
mov eax, dword [0x41ba88]
sub dword [ebx + 8], eax
mov eax, dword [0x41ba84]
sub dword [ebx], eax
mov esi, 0x14
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov dword [ebx + 0xc], edx
mov edx, dword [ebx + 4]
mov dword [ebx + 8], edx
mov edx, dword [ebx]
mov dword [ebx + 4], edx
mov dword [ebx], eax
mov eax, dword [ebx + 0xc]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00413678
mov ebp, eax
mov eax, dword [ebx + 4]
mov edx, eax
add eax, eax
inc eax
imul edx, eax
mov eax, edx
mov edx, 5
call fcn.00413678
mov edi, eax
mov eax, dword [ebx + 8]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x41b9e0]
mov edx, edi
call fcn.00413680
xor eax, ebp
mov dword [ebx + 8], eax
mov eax, dword [ebx]
mov edx, esi
add edx, edx
sub eax, dword [edx*4 + 0x41b9dc]
mov edx, ebp
call fcn.00413680
xor edi, eax
mov dword [ebx], edi
dec esi
test esi, esi
jne 0x4138da
mov eax, dword [0x41b9e0]
sub dword [ebx + 0xc], eax
mov eax, dword [0x41b9dc]
sub dword [ebx + 4], eax
mov al, 1
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x414cc8
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404744
mov eax, dword [ebp - 8]
call fcn.00404744
xor eax, eax
push ebp
push 0x414d56
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, 0x800
call fcn.00402db4
mov ebx, eax
push ebx
push 0
push 0x414d64
mov eax, dword [ebp - 4]
call fcn.00404754
push eax
call sub.kernel32.dll_GetTempFileNameA
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.004044e0
mov eax, dword [ebp - 0xc]
mov ecx, esi
mov edx, dword [ebp - 8]
call fcn.004077dc
mov eax, ebx
call fcn.00402dd0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x414d5d
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040430c
ret
Function at 0x40f000
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d7db
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.00462006
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40f082
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045ff1d
mov eax, dword [eax]
push 0x4851c0
push eax
call fcn.00452d84
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00462291
test bl, bl
je 0x40f082
push 0x4851c0
lea ecx, [esp + 0xc]
call fcn.00462621
push 0x488d3c
lea ecx, [esp + 0xc]
call fcn.00462621
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 0x40f0be
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00462291
jmp 0x40f189
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 0x40f142
lea edx, [esp + 0x7c]
push 0x488d38
push edx
call fcn.00452d84
add esp, 8
test eax, eax
je 0x40f142
lea eax, [esp + 0x7c]
push 0x488d34
push eax
call fcn.00452d84
add esp, 8
test eax, eax
je 0x40f142
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 0x40f0d2
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.00462291
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 0x40f9a0
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 0x40fa02
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 0x40fa10
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x46d85b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x48f1e8]
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 0x40fb48
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40fa76
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462291
xor eax, eax
jmp 0x40fbbf
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004623ce
push esi
lea ecx, [esp + 0xc]
call fcn.0046265d
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 0x40fb9d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0040f9a0
test eax, eax
jne 0x40fb9d
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.0040f9a0
test eax, eax
jne 0x40fb9d
lea eax, [esp + 0x14]
push 0x488d50
push eax
call fcn.00453e90
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fb7c
lea ecx, [esp + 0x14]
push 0x488d4c
push ecx
call fcn.00453e10
mov esi, eax
add esp, 8
test esi, esi
jne 0x40fb7c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40fb7f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046237e
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40fa8e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00462291
xor eax, eax
jmp 0x40fbbf
mov byte [esi], 0
push 0x488d48
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.00462291
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 0x423500
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 0x42356e
cmp si, 0x69
ja 0x42356e
add esi, 0xffd0
cmp si, 0x11
je 0x42353e
push 0x11
call edi
test ax, ax
jge 0x42353e
or esi, 0x2000
cmp si, 0x10
je 0x423553
push 0x10
call edi
test ax, ax
jge 0x423553
or esi, 0x4000
cmp si, 0x12
je 0x423568
push 0x12
call edi
test ax, ax
jge 0x423568
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42357b
mov esi, 0xbd
jmp 0x42352f
cmp si, 0x6e
jne 0x423588
mov esi, 0xbe
jmp 0x42352f
cmp si, 0x6f
jne 0x423529
mov esi, 0xbf
jmp 0x42352f

Function at 0x424c20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x49f878]
xor edx, edx
cmp eax, edx
jne 0x424c46
xor eax, eax
mov byte [eax + 0x49f778], al
inc eax
cmp eax, 0x100
jl 0x424c2e
mov dword [0x49f878], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x49f778
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x424cd7
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 0x424caa
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 0x424c78
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x424d50
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 0x424da3
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 0x424d8a
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