joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4491c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ecx
mov eax, dword [esp + 8]
push ebx
push esi
push 0xffffffffffffff9b
push 0
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0
call fcn.004169e0
mov ecx, dword [esp + 8]
push ecx
call fcn.00449680
add esp, 4
test al, al
je 0x44922f
mov bl, 0x3a
mov edx, dword [esp + 8]
mov esi, dword [edx - 8]
cmp esi, 1
je 0x44922f
cmp esi, 3
jne 0x449213
lea ecx, [esp + 8]
call fcn.00416ac0
mov eax, dword [esp + 8]
cmp byte [eax + 1], bl
je 0x44922f
dec esi
lea ecx, [esp + 8]
push esi
call fcn.00417970
mov ecx, dword [esp + 8]
push ecx
call fcn.00449680
add esp, 4
test al, al
jne 0x4491f0
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x449247
test al, 0x10
je 0x449247
mov bl, 1
jmp 0x449249
xor bl, bl
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x449264
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x449264
call fcn.00416980
mov al, bl
pop esi
pop ebx
pop ecx
ret

Function at 0x455db0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
test ecx, ecx
je 0x455ded
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x455ded
mov edx, dword [esp + 0xc]
push edx
push ecx
push eax
call fcn.0046f9ed
add esp, 0xc
cmp eax, 0xffffffff
jne 0x455def
mov eax, dword [esi]
push eax
push str.cant_read_from_file_descriptor__d
call fcn.00425730
add esp, 8
or eax, 0xffffffff
pop esi
ret 8
xor eax, eax
pop esi
ret 8
Function at 0x457c40
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x148
push ebx
push ebp
mov ebp, ecx
xor bl, bl
push esi
push edi
cmp dword [ebp], 0xffffffff
jne 0x457a89
mov eax, dword [ebp + 4]
mov dword [esp + 0x10], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4579b5
mov eax, dword [0x481810]
mov dword [esp + 0x10], eax
jmp 0x4579c9
mov dword [esp + 0x10], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x4579c9
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 0x10]
push eax
call fcn.00449680
add esp, 4
test al, al
jne 0x4579eb
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 1
mov byte [esp + 0x1c], 0x5c
call fcn.00416ea0
mov edx, dword [ebp + 8]
mov eax, dword [edx - 8]
test eax, eax
jne 0x457a08
mov edx, 0x4816f0
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x457a1c
test edx, edx
je 0x457a1a
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
jmp 0x457a1c
xor ecx, ecx
push edx
push ecx
lea ecx, [esp + 0x18]
call fcn.00416ea0
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x18]
push ecx
push edx
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov dword [ebp], eax
mov eax, dword [esp + 0x10]
mov bl, 1
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x457a57
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x457a57
call fcn.00416980
cmp dword [ebp], 0xffffffff
jne 0x457a89
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 2
je 0x457a7a
mov ecx, dword [ebp + 4]
push ecx
push str.Can_not_enumerate_files_in_directory__s
push eax
call fcn.004257a0
add esp, 0xc
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 4
mov edi, dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test bl, bl
je 0x457a97
xor bl, bl
jmp 0x457aa6
mov eax, dword [ebp]
lea edx, [esp + 0x18]
push edx
push eax
call edi
test eax, eax
je 0x457b25
lea eax, [esp + 0x18]
push eax
call fcn.00457b40
lea ecx, [esp + 0x1c]
mov esi, eax
push ecx
call fcn.00457b50
mov cl, byte [esi]
add esp, 8
cmp cl, 0x2e
jne 0x457adf
mov cl, byte [esi + 1]
cmp cl, 0x2e
jne 0x457ad5
mov dl, byte [esi + 2]
test dl, dl
je 0x457ad9
test cl, cl
jne 0x457adf
test byte [ebp + 0xc], 8
je 0x457a8f
mov ecx, dword [ebp + 0xc]
test cl, 1
jne 0x457af1
mov edx, eax
shr edx, 4
test dl, 1
je 0x457a8f
test cl, 2
jne 0x457b00
mov edx, eax
shr edx, 4
test dl, 1
jne 0x457a8f
test cl, 4
jne 0x457b09
test al, 6
jne 0x457a8f
mov ecx, dword [esp + 0x15c]
push esi
call fcn.00416e60
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x148
ret 4
call dword [sym.imp.KERNEL32.DLL_GetLastError]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x148
ret 4
call fcn.00457bd0
test al, al
je 0x457c5c
mov eax, dword [esp + 4]
test eax, eax
je 0x457c5c
mov ecx, dword [ecx]
mov dword [esp + 4], eax
jmp 0x457980
xor al, al
ret 4

Function at 0x45c810
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ecx], 0x47c478
jmp fcn.0040bb80
Function at 0x45c8f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, ecx
mov dword [esi], 0x47c268
call fcn.0045c930
mov ecx, dword [esi + 0x124]
test ecx, ecx
je 0x45c90f
mov eax, dword [ecx]
push 1
call dword [eax + 4]
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x45c920
mov edx, dword [ecx]
push 1
call dword [edx + 4]
mov ecx, esi
pop esi
jmp fcn.0045c810

Function at 0x45d480
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [ecx], 0x47c850
mov dword [ecx + 0x124], 0x47c818
jmp fcn.004411e0

Function at 0x45f750
Capabilities:
Get common file path

Disassembly:
sub esp, 0x10c
mov eax, dword [0x481810]
push esi
lea ecx, [esp + 0xc]
push 0x104
push ecx
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
lea edx, [esp + 0xc]
lea ecx, [esp + 8]
push edx
call fcn.00416e60
lea eax, [esp + 4]
lea ecx, [esp + 8]
push eax
push 1
mov byte [esp + 0xc], 0x5c
call fcn.00416ea0
mov esi, dword [esp + 0x114]
mov eax, dword [esp + 8]
mov dword [esi], 0
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x45f7b5
mov ecx, dword [0x481810]
mov dword [esi], ecx
jmp 0x45f7c7
mov dword [esi], eax
mov ecx, dword [eax - 0xc]
cmp ecx, 0xffffffff
je 0x45f7c7
inc ecx
mov dword [eax - 0xc], ecx
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
mov eax, dword [eax - 0xc]
cmp eax, 0xffffffff
je 0x45f7de
dec eax
test eax, eax
mov dword [ecx], eax
jne 0x45f7de
call fcn.00416980
mov eax, esi
pop esi
add esp, 0x10c
ret

Function at 0x46ab60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x488a38
cmp edx, dword [eax]
je 0x46ab82
add eax, 8
inc ecx
cmp eax, 0x488ac8
jl 0x46ab73
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x488a38]
jne 0x46acb0
mov eax, dword [0x49238c]
cmp eax, 1
je 0x46ac8a
test eax, eax
jne 0x46abb3
cmp dword [0x488614], 1
je 0x46ac8a
cmp edx, 0xfc
je 0x46acb0
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameA]
test eax, eax
jne 0x46abea
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.0046d5b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.0046d530
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x46ac2d
lea eax, [ebp - 0x1a4]
push eax
call fcn.0046d530
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x47d820
push edi
call fcn.004668f0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.0046d5b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.0046d5c0
lea eax, [ebp - 0xa0]
push 0x47d800
push eax
call fcn.0046d5c0
push dword [esi + 0x488a3c]
lea eax, [ebp - 0xa0]
push eax
call fcn.0046d5c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0047027a
add esp, 0x2c
pop edi
jmp 0x46acb0
lea eax, [ebp + 8]
lea esi, [esi + 0x488a3c]
push 0
push eax
push dword [esi]
call fcn.0046d530
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.DLL_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.DLL_WriteFile]
pop esi
leave
ret
Function at 0x402050
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
bswap eax
ror esi, 0xba
bswap esi
imul esi
neg edi
rcr ebx, 0x28
not edi
neg ebx
mov edi, 0xca
inc edi
mov edx, 0x6c
or edx, 0xc8
neg esi
rcl esi, 0x52
dec edi
not edi
imul eax
and edi, 0xb2
rol edi, 0xe5
imul eax
inc ebx
mov edi, 0x26
inc edx
bswap edx
bswap esi
not edx
neg edx
mov eax, 0x7c
rol edx, 0x94
rcr edi, 0xd0
neg esi
rcr esi, 0x33
not edx
dec esi
ror esi, 0x3e
imul edi
rol edi, 0x15
add edi, 0xb5
rol esi, 0x18
and ebx, 0x65
bswap esi
not ebx
sub eax, 0xab
not ebx
not eax
not esi
mov ebx, 0x65
imul edx
rol ebx, 0x94
not esi
xor ecx, ecx
xor edi, edi
mov edx, 0x39
sbb edx, 0xeb
and esi, 0x72
ror ebx, 0x4f
not ebx
or eax, 0x2b
sbb eax, 0x49
neg edx
and edi, 0xa4
neg ebx
not ebx
not eax
bswap eax
bswap edx
sub esi, 0x15
and eax, 0x51
or edi, 0x61
add esi, 0xc8
mov ebx, 0xfa
and edx, 0x1c
rcr eax, 0x6d
or edx, 0x5a
sbb edx, 0xf2
and esi, 0x1d
imul ebx
or eax, 0x35
bswap esi
sub edi, 0x1e
bswap edi
bswap edi
neg esi
sbb eax, 0xf0
rcl eax, 0xdd
imul ebx
imul edi
rol ebx, 0xcc
dec edi
bswap esi
bswap edx
add eax, 0x3e
neg edx
dec esi
imul esi
sub esi, 0x95
bswap edx
inc esi
bswap esi
imul edi
bswap ebx
inc esi
mov ecx, dword [ebp + 0xc]
neg esi
bswap edi
not esi
ror eax, 0x36
not ebx
rcr edx, 0x61
not edi
inc eax
mov eax, 0x37
not edi
dec edx
inc esi
bswap edi
or ebx, 0xa6
imul ebx
ror eax, 0xa9
sub edi, 0x2f
or esi, 0x57
bswap esi
rcr ebx, 0x25
sbb eax, 0x98
mov edx, 0xa1
sbb edi, 0xd9
rol edi, 0x99
not edi
sub esi, 0xf6
and edi, 0x5b
bswap ebx
and edi, 0x29
neg esi
dec eax
inc edx
sbb edx, 0x31
mov esi, 0xe9
neg eax
dec edx
mov eax, 0x39
dec edx
dec edx
inc ebx
sub edi, 0x2c
imul esi
sub esi, 0xe8
bswap edx
imul esi
dec edi
not eax
neg esi
or edx, 0x75
dec ebx
mov edi, dword [ebp + 8]
mov esi, eax
mov esi, esi
mov ebx, ebx
not byte [edi]
mov ebx, ebx
mov eax, esi
mov ebx, eax
sub byte [edi], 0x35
xor eax, esi
mov ebx, eax
xor eax, esi
add byte [edi], 0x57
xor esi, esi
mov ebx, esi
xor eax, eax
imul byte [edi]
inc edi
loop 0x402200
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4078b4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x41612c]
jne 0x4078be
repz ret
jmp fcn.0040b562
Function at 0x40ddcc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004094a9
and dword [ebp - 4], 0
cmp dword [0x417a38], 0
mov ebx, eax
jne 0x40de7d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40df2e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40df2e
push eax
call fcn.00409437
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x417a38], eax
call esi
push eax
call fcn.00409437
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x417a3c], eax
call esi
push eax
call fcn.00409437
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x417a40], eax
call esi
push eax
call fcn.00409437
pop ecx
mov dword [0x417a48], eax
test eax, eax
je 0x40de7d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00409437
pop ecx
mov dword [0x417a44], eax
mov eax, dword [0x417a44]
cmp eax, ebx
je 0x40ded5
cmp dword [0x417a48], ebx
je 0x40ded5
push eax
call fcn.004094b2
push dword [0x417a48]
mov esi, eax
call fcn.004094b2
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40ded5
test edi, edi
je 0x40ded5
call esi
test eax, eax
je 0x40decc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40decc
test byte [ebp - 0xc], 1
jne 0x40ded5
or dword [ebp + 0x10], 0x200000
jmp 0x40df0e
mov eax, dword [0x417a3c]
cmp eax, ebx
je 0x40df0e
push eax
call fcn.004094b2
pop ecx
test eax, eax
je 0x40df0e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40df0e
mov eax, dword [0x417a40]
cmp eax, ebx
je 0x40df0e
push eax
call fcn.004094b2
pop ecx
test eax, eax
je 0x40df0e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x417a38]
call fcn.004094b2
pop ecx
test eax, eax
je 0x40df2e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40df30
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x421740
Capabilities:
Encode data using xor

Disassembly:
xor dl, dl
mov dl, byte [edi]
xor dl, bl
mov byte [edi], dl
inc edi
cmp edi, ecx
jne fcn.00421740
ret
Function at 0x403330
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x45300c]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x4033c8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4033a8
xor eax, eax
push ebp
push 0x4033a1
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 0x4033e4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4033a8
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x45300c]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x45300c], ax
mov esp, ebp
pop ebp
ret

Function at 0x404090
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x454048], 0
je 0x4040f1
cmp word [0x45421c], 0xd7b2
jne 0x4040b9
cmp dword [0x454224], 0
jbe 0x4040b9
mov eax, 0x454218
call dword [0x454234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x453054
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 0x404118
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x45301c], 0
jne 0x40410d
push 0
push 0x453074
push 0x453054
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x409544
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 0x40957d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004042fc
jmp 0x409586
mov eax, ebx
mov edx, esi
call fcn.00404260
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x409590
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 0x4095b1
mov al, byte [esp]
jmp 0x4095b3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x409c38
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x409ab0
mov eax, dword [0x453ec4]
cmp byte [eax], 0
je 0x409ca0
mov eax, dword [0x453d24]
call fcn.00402c4c
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040877c
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff5
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 0x409ce8
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x409cd6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x453ce4]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x454714]
call fcn.004058f8
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 0x40a748
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40a7ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404474
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004084bc
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40a7b3
lea eax, [ebp - 0xc]
call fcn.0040420c
ret
Function at 0x41c4cc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x454a20
cmp dword [edi], 0
jne 0x41c548
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x454a1c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4534bc
mov ecx, 2
call fcn.004028d4
mov edx, 0x41c4a4
lea eax, [esi + 5]
call fcn.0041c4c4
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041c4c4
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 0x41c51d
mov dword [0x454a1c], 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 0x41d6dc
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 0x41d6e2
ret

Function at 0x41fb1c
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41fb6d
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41fb54
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41fb44
jmp 0x41fb6d
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41fb55
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c0ac
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42bff8
call sub.user32.dll_EnumWindows
ret

Function at 0x42c1d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42c24d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042bc1c
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42c1f5
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042b874
cmp dword [ebp - 4], 0
je 0x42c237
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.004046bc
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42c254
lea eax, [ebp - 4]
call fcn.0040420c
ret

Function at 0x42eeb8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x454ba8], 0
je 0x42f007
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x453e6c]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42f007
mov eax, dword [0x454bac]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x454ba8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42efd6
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x454ba8]
call fcn.00413a18
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42efce
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42efce
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42efce
mov eax, dword [ebp - 0x14]
call fcn.004379d0
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x42efce
push ebp
call fcn.0042ee74
pop ecx
test al, al
jne 0x42efce
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42ef8a
mov eax, dword [ebp - 0x14]
call fcn.00436564
dec eax
jle 0x42efce
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004036b4
cmp byte [ebp - 1], 0
je 0x42efce
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42efce
mov edx, dword [ebp - 0x14]
mov eax, dword [0x454bac]
call fcn.0042e63c
inc edi
dec ebx
jne 0x42ef1d
mov eax, dword [0x454bac]
cmp dword [eax + 8], 0
jle 0x42efee
mov eax, dword [0x454bac]
call fcn.0042e6cc
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42f007
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042ecdc
pop ecx
test al, al
jne 0x42f007
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4325d0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
test byte [esi + 0x1c], 0x10
je 0x43261c
mov eax, esi
call fcn.00447e0c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43261c
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x43261c
mov ecx, ebx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x250]
mov edx, esi
mov edi, dword [eax]
call dword [edi + 0x24]
test al, al
jne 0x432760
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x43265c
cmp eax, 0x108
ja 0x43265c
mov eax, esi
call fcn.00447e0c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x432757
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xec]
test al, al
jne 0x432760
jmp 0x432757
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x43273e
cmp eax, 0x20a
ja 0x43273e
test byte [esi + 0x50], 0x80
jne 0x43268e
sub eax, 0x203
je 0x43268b
sub eax, 3
je 0x43268b
sub eax, 3
jne 0x43268e
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x4326a2
dec eax
je 0x4326b7
dec eax
je 0x4326d7
dec eax
je 0x4326b7
jmp 0x4326de
mov ecx, ebx
mov eax, dword [0x453e6c]
mov eax, dword [eax]
mov edx, esi
call fcn.00451440
jmp 0x432757
cmp byte [esi + 0x5d], 1
jne 0x4326cd
mov eax, esi
mov si, 0xffed
call fcn.004036b4
jmp 0x432760
or word [esi + 0x54], 1
jmp 0x432757
and word [esi + 0x54], 0xfffe
jmp 0x432757
mov eax, dword [0x454b64]
cmp byte [eax + 0x20], 0
je 0x432757
mov eax, dword [0x454b64]
cmp dword [eax + 0x1c], 0
je 0x432757
mov eax, dword [ebx]
mov edx, dword [0x454b64]
cmp eax, dword [edx + 0x1c]
jne 0x432757
lea eax, [ebp - 0x114]
push eax
call sub.user32.dll_GetKeyboardState
mov eax, dword [ebx]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
call fcn.00447d50
mov byte [ebp - 0xc], al
mov ax, word [ebx + 4]
mov word [ebp - 0xa], ax
mov eax, dword [ebx + 8]
mov dword [ebp - 8], eax
lea edx, [ebp - 0x10]
mov eax, esi
mov si, 0xffc9
call fcn.004036b4
jmp 0x432760
mov eax, dword [ebx]
cmp eax, 0xb00b
jne 0x432757
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.00430ef0
mov edx, ebx
mov eax, esi
mov ecx, dword [eax]
call dword [ecx - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret