joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4055e5
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.00404395
and dword [ebp - 4], 0
cmp dword [0x467190], 0
mov ebx, eax
jne 0x405696
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x405747
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x405747
push eax
call fcn.00404323
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x467190], eax
call esi
push eax
call fcn.00404323
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x467194], eax
call esi
push eax
call fcn.00404323
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x467198], eax
call esi
push eax
call fcn.00404323
pop ecx
mov dword [0x4671a0], eax
test eax, eax
je 0x405696
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404323
pop ecx
mov dword [0x46719c], eax
mov eax, dword [0x46719c]
cmp eax, ebx
je 0x4056ee
cmp dword [0x4671a0], ebx
je 0x4056ee
push eax
call fcn.0040439e
push dword [0x4671a0]
mov esi, eax
call fcn.0040439e
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4056ee
test edi, edi
je 0x4056ee
call esi
test eax, eax
je 0x4056e5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4056e5
test byte [ebp - 0xc], 1
jne 0x4056ee
or dword [ebp + 0x10], 0x200000
jmp 0x405727
mov eax, dword [0x467194]
cmp eax, ebx
je 0x405727
push eax
call fcn.0040439e
pop ecx
test eax, eax
je 0x405727
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x405727
mov eax, dword [0x467198]
cmp eax, ebx
je 0x405727
push eax
call fcn.0040439e
pop ecx
test eax, eax
je 0x405727
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x467190]
call fcn.0040439e
pop ecx
test eax, eax
je 0x405747
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x405749
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x15b9c90
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0xc3f000]
push edi
or ebp, 0xffffffff
jmp 0x15b9cb2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x15b9cb9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15b9ca8
mov eax, 1
add ebx, ebx
jne 0x15b9ccb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x15b9cdc
jne 0x15b9cfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15b9cfb
dec eax
add ebx, ebx
jne 0x15b9ce8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x15b9cc0
add ebx, ebx
jne 0x15b9cf7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x15b9d4d
xor ecx, ecx
sub eax, 3
jb 0x15b9d13
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x15b9d82
sar eax, 1
mov ebp, eax
jmp 0x15b9d1e
add ebx, ebx
jne 0x15b9d1e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15b9cec
inc ecx
add ebx, ebx
jne 0x15b9d2c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x15b9cec
add ebx, ebx
jne 0x15b9d39
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x15b9d2e
jne 0x15b9d4a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x15b9d2e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x15b9d6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x15b9d5e
jmp 0x15b9cae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x15b9d6c
add edi, ecx
jmp 0x15b9cae
pop esi
mov edi, esi
mov ecx, 0x354ba
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x15b9d8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x15b9d8f
lea edi, [esi + 0x11b3000]
mov eax, dword [edi]
or eax, eax
je 0x15b9df7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11c4188]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11c4340]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x15b9db5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x11c4344]
or eax, eax
je 0x15b9df1
mov dword [ebx], eax
add ebx, 4
jmp 0x15b9dd2
call dword [esi + 0x11c4354]
mov ebp, dword [esi + 0x11c4348]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x15b9e2b
sub esp, 0xffffff80
jmp 0xce9d34
Function at 0x409888
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40995b
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x409974
push ebx
push 0x409980
push esi
lea eax, [ebp - 4]
mov edx, 4
call fcn.004033b4
lea eax, [ebp - 0x48]
xor ecx, ecx
mov edx, 0x44
call fcn.0040277c
mov dword [ebp - 0x48], 0x44
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00403414
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x409908
mov al, 0x62
call fcn.00409460
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
call fcn.0040985c
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x58]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
dec eax
je 0x409911
call fcn.0040985c
push edi
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x409962
lea eax, [ebp - 4]
call fcn.00403198
ret

Function at 0x409a14
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
jmp 0x409abd
cmp dword [esi + 0x10], 0x1000
jne 0x409aa9
test byte [esi + 0x15], 1
jne 0x409aa9
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x409a68
cmp eax, 2
je 0x409a68
cmp eax, 0x10
je 0x409a68
cmp eax, 0x20
jne 0x409a7d
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x409a7d
mov bl, 1
xor ebp, ebp
jmp 0x409a8e
mov eax, dword [esi]
add eax, ebp
call fcn.00409a0c
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x409a81
test bl, bl
je 0x409aa9
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409ac8
mov eax, dword [esi + 4]
cmp eax, edi
je 0x409a40
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x43cf63
Capabilities:
Encode data using xor

Disassembly:
mov esi, 0x43ccda
or eax, eax
call fcn.0043cf87
xor dword [edx], esi
and ecx, ecx
add eax, 0x2fcd1bbe
inc edx
cmp edx, edi
jne fcn.0043cf63
mov eax, eax
ret
Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x43b662
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
mov edx, dword [esp]
add esp, 4
inc edi
inc ebx
call fcn.0043b6a4
mov edi, edi
mov edi, edi
xor dword [eax], edx
sub ebx, edi
push 0x7153b474
pop edi
add eax, 1
sub edi, 0x7f0f0df
mov ebx, ebx
sub edi, 0x3078d1c1
cmp eax, esi
jne fcn.0043b662
add edi, edi
ret
Function at 0x402e38
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
add esp, 0xfffffef4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404930
test esi, esi
jne 0x402e6f
push 0x105
lea eax, [esp + 8]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
lea edx, [esp + 4]
mov eax, ebx
call fcn.00404a20
jmp 0x402e90
call sub.kernel32.dll_GetCommandLineA
mov dword [esp], eax
mov edx, ebx
mov eax, dword [esp]
call fcn.00402cd4
mov dword [esp], eax
test esi, esi
je 0x402e90
cmp dword [ebx], 0
je 0x402e90
dec esi
jmp 0x402e77
add esp, 0x10c
pop esi
pop ebx
ret

Function at 0x4039fc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x454020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403a94
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403a74
xor eax, eax
push ebp
push 0x403a6d
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 0x403ab0
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 0x403a74
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [0x454020]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x454020], ax
mov esp, ebp
pop ebp
ret

Function at 0x4047ac
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x456048], 0
je 0x40480d
cmp word [0x45621c], 0xd7b2
jne 0x4047d5
cmp dword [0x456224], 0
jbe 0x4047d5
mov eax, 0x456218
call dword [fcn.00456234]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x454090
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 0x404834
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x454030], 0
jne 0x404829
push 0
push 0x454088
push 0x454090
push 0
call sub.___
pop edx
ret
Function at 0x406584
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x4065ea
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.00404ba0
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.004035c0
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x4065d4
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4065f1
lea eax, [ebp - 0x10]
call fcn.00404930
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00404df0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x408e05
test al, 0x10
jne 0x408e09
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40b818
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 0x40b851
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404a20
jmp 0x40b85a
mov eax, ebx
mov edx, esi
call fcn.00404984
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c83c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40c912
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.004049c8
lea eax, [ebp - 8]
call fcn.00404e40
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.00404df0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40c8fc
mov eax, ebx
call fcn.00402a68
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40c8f5
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 - 8]
call fcn.00404df0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40c8df
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40c924
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40c8df
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c8fc
mov eax, dword [ebp - 0x10]
call fcn.00402a98
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c919
lea eax, [ebp - 8]
call fcn.00404930
ret
Function at 0x40ce78
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 0x40cedc
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.00404ba0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00408a6c
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40cee3
lea eax, [ebp - 0xc]
call fcn.00404930
ret

Function at 0x41b160
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
lea ebx, [ebp - 0xc]
mov esi, 0x456884
cmp dword [esi], 0
jne 0x41b206
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov edx, dword [0x456880]
mov dword [eax], edx
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, 0x454410
mov ecx, 2
call fcn.00402c94
mov edx, 0x41b138
mov eax, dword [ebp - 8]
add eax, 5
call fcn.0041b158
mov edx, dword [ebp - 8]
mov dword [edx + 6], eax
mov eax, dword [ebp - 8]
add eax, 0xa
mov dword [ebx], eax
mov eax, dword [ebx]
mov byte [eax], 0xe8
mov eax, dword [ebp - 8]
lea edx, [eax + 4]
mov eax, dword [ebx]
call fcn.0041b158
mov edx, dword [ebx]
mov dword [edx + 1], eax
mov eax, dword [ebx]
mov edx, dword [esi]
mov dword [eax + 5], edx
mov eax, dword [ebx]
mov dword [esi], eax
add dword [ebx], 0xd
mov eax, dword [ebx]
sub eax, dword [ebp - 8]
cmp eax, 0xffc
jl 0x41b1cd
mov eax, dword [ebp - 8]
mov dword [0x456880], eax
mov eax, dword [esi]
mov dword [ebp - 4], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [ebx]
mov eax, dword [eax + 5]
mov dword [esi], eax
mov eax, dword [ebx]
mov edx, dword [ebp + 8]
mov dword [eax + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [eax + 9], edx
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x41c784
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 0x41c78a
ret

Function at 0x41ec50
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 0x41eca1
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41ec88
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41ec78
jmp 0x41eca1
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 0x41ec89
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42a0d8
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 0x42a155
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00429b38
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 0x42a0fd
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.00429738
cmp dword [ebp - 4], 0
je 0x42a13f
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.00404df0
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 0x42a15c
lea eax, [ebp - 4]
call fcn.00404930
ret

Function at 0x42cf68
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 [0x456ae8], 0
je 0x42d0b7
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x455034]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x42d0b7
mov eax, dword [0x456aec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x456ae8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x42d086
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x456ae8]
call fcn.0041464c
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x42d07e
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x42d07e
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x42d07e
mov eax, dword [ebp - 0x14]
call fcn.00435b4c
push eax
call sub.____3
test eax, eax
je 0x42d07e
push ebp
call fcn.0042cf24
pop ecx
test al, al
jne 0x42d07e
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x42d03a
mov eax, dword [ebp - 0x14]
call fcn.0043467c
dec eax
jle 0x42d07e
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.00403d90
cmp byte [ebp - 1], 0
je 0x42d07e
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x42d07e
mov edx, dword [ebp - 0x14]
mov eax, dword [0x456aec]
call fcn.0042c6f0
inc edi
dec ebx
jne 0x42cfcd
mov eax, dword [0x456aec]
cmp dword [eax + 8], 0
jle 0x42d09e
mov eax, dword [0x456aec]
call fcn.0042c780
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x42d0b7
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0042cd8c
pop ecx
test al, al
jne 0x42d0b7
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 0x43069c
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 0x4306e8
mov eax, esi
call fcn.00445d40
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4306e8
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x250], 0
je 0x4306e8
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 0x430827
mov eax, dword [ebx]
cmp eax, 0x100
jb 0x430728
cmp eax, 0x108
ja 0x430728
mov eax, esi
call fcn.00445d40
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x43081e
mov ecx, ebx
mov edx, esi
mov eax, dword [ebp - 0x14]
mov edi, dword [eax]
call dword [edi + 0xf0]
test al, al
jne 0x430827
jmp 0x43081e
mov eax, dword [ebx]
cmp eax, 0x200
jb 0x430807
cmp eax, 0x20a
ja 0x430807
test byte [esi + 0x50], 0x80
jne 0x43075a
sub eax, 0x203
je 0x430757
sub eax, 3
je 0x430757
sub eax, 3
jne 0x43075a
sub dword [ebx], 2
mov eax, dword [ebx]
sub eax, 0x200
je 0x43076e
dec eax
je 0x430783
dec eax
je 0x4307a0
dec eax
je 0x430783
jmp 0x4307a7
mov ecx, ebx
mov eax, dword [0x455034]
mov eax, dword [eax]
mov edx, esi
call fcn.0044f608
jmp 0x43081e
cmp byte [esi + 0x5d], 1
jne 0x430799
mov eax, esi
mov si, 0xffed
call fcn.00403d90
jmp 0x430827
or word [esi + 0x54], 1
jmp 0x43081e
and word [esi + 0x54], 0xfffe
jmp 0x43081e
mov eax, dword [0x456aa4]
cmp byte [eax + 0x20], 0
je 0x43081e
mov eax, dword [0x456aa4]
cmp dword [eax + 0x1c], 0
je 0x43081e
mov eax, dword [ebx]
mov edx, dword [0x456aa4]
cmp eax, dword [edx + 0x1c]
jne 0x43081e
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.00445c84
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.00403d90
jmp 0x430827
cmp eax, 0xb00b
jne 0x43081e
mov edx, dword [ebx + 8]
push edx
mov ecx, dword [ebx + 4]
mov edx, eax
mov eax, esi
call fcn.0042efcc
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