joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4395a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push ebx
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
push esi
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esp + 0x14]
push eax
mov ecx, edi
or ecx, 1
push ecx
push ebx
push str.SOFTWAREAutoHotkey
push reloc.OLEAUT32.dll_SysReAllocString
call ebp
test eax, eax
je 0x4395d8
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439653
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
push ebx
push ebx
push str.InstallDir
push ecx
mov dword [esp + 0x28], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edx, dword [esp + 0x14]
push edx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
jne 0x4395d0
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x4395d0
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x439637
cmp eax, ebx
je 0x439653
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x439631
dec eax
jne 0x439628
mov dword [esp + 0x10], eax
jmp 0x43964f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43964b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x439653
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x439661
cmp edi, ebx
jne 0x439661
mov edi, 0x100
jmp 0x4395b4
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43967e
lea ecx, [esp + 0x18]
mov edx, ecx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
cmp dl, bl
jne 0x439674
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43cae0
Capabilities:
Get keyboard layout

Disassembly:
sub esp, 0x11c
push ebx
push ebp
mov ebp, dword [0x4ab1e8]
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push 0
push 0
mov eax, esi
call fcn.00412350
add esp, 0xc
mov byte [esp + 0x13], al
test al, al
jne 0x43cb7c
push 0
lea ebx, [esp + 0x18]
mov eax, esi
call fcn.0044d4a0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43cb40
push 1
push eax
push 0xffffffffffffffff
push 0x499861
push ebp
call fcn.00475300
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x28]
mov dword [esp + 0x18], eax
push 0
push ecx
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
call fcn.0044d740
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00474c50
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
mov edx, dword [esp + 0x12c]
movzx ebx, byte [edx]
test ebx, 0xffffff80
jne 0x43cba0
push 2
push ebx
call fcn.0048698e
add esp, 8
test eax, eax
je 0x43cba0
and bl, 0xdf
cmp bl, 0x50
je 0x43cbb3
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43cbb8
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044d690
add esp, 4
test al, al
mov eax, 0x49ece8
jne 0x43cbd3
mov eax, 0x49ecec
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00475300
pop edi
pop ebp
pop ebx
add esp, 0x11c
ret 4
Function at 0x43cbf0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4ab1e8]
push edi
call fcn.004133c0
test esi, esi
je 0x43cd5e
cmp byte [esi], 0
je 0x43cd5e
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.004883f0
lea eax, [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0x134], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43cc40
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43cc69
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43cd5e
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4ae580], 1
jne 0x43cc97
or dword [0x4ae580], 1
push str.GetDiskFreeSpaceExA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae57c], eax
jmp 0x43cc9c
mov eax, dword [0x4ae57c]
test eax, eax
je 0x43ccea
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x43cd5e
cmp byte [ebp + 0xc], 0
je 0x43ccd7
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43cd2c
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43cd2c
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43cd5e
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43cd1b
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x4998ac
push ecx
call fcn.00475300
mov eax, dword [0x4ab1e8]
push 0x18
push edi
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x4a7978]
test byte [edx + 0xe0], 1
jne 0x43cd8b
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push eax
call fcn.00475300
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499861
push 0
push 0x49afb0
call fcn.0042d440
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43eb00
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call ebx
test eax, eax
jne 0x43eb2d
cmp byte [0x4ad93c], al
je 0x43ebd4
call fcn.00409350
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ad93c], 0
push ebp
push esi
mov esi, 0x4abaa8
jne 0x43eb41
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43eb9c
cmp byte [edi], 0
je 0x43ebb2
cmp byte [edi + 1], 0x3a
jne 0x43ebb2
cmp byte [edi + 2], 0
jne 0x43ebb2
push esi
push edi
call fcn.00485451
add esp, 8
test eax, eax
je 0x43ebb2
push edi
lea eax, [esp + 0x10]
push 0x49ef58
push eax
call fcn.00485988
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43ebb2
push esi
push 0x104
call ebp
test eax, eax
jne 0x43ebb2
push 0x103
push edi
push esi
call fcn.004883f0
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ad93c], 0
pop esi
pop ebp
je 0x43ebd4
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x4998ac
push edx
call fcn.00475300
pop ebx
add esp, 0x10c
ret
Function at 0x43f1a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x108
push ebp
push edi
mov edi, dword [esp + 0x114]
mov ebp, ecx
test edi, edi
je 0x43f301
cmp byte [edi], 0
je 0x43f301
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f1f7
mov ecx, dword [0x4a7978]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042d4e0
pop edi
pop ebp
add esp, 0x108
ret 4
push ebx
push 0x5c
push edi
call fcn.004877de
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f2c9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f212
sub eax, edx
cmp eax, 0x104
jb 0x43f278
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x6f
jne 0x43f259
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push eax
call fcn.00475300
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
push 0x499861
push 0
push 0x49afb0
mov ecx, ebp
call fcn.0042d440
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
push esi
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x18]
push edi
push ecx
call fcn.004883f0
add esp, 0xc
lea edx, [esp + 0x14]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x18], 0
call fcn.0043f1a0
cmp byte [ebx + 1], 0
pop esi
je 0x43f2b8
mov ecx, dword [0x4abaa0]
push 0
push 1
call fcn.00401210
cmp byte [eax], 0x31
jne 0x43f2c9
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x108
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [esp + 0xc], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0xc]
mov ecx, dword [0x4a7978]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042d4e0
pop ebx
pop edi
pop ebp
add esp, 0x108
ret 4
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x43f337
mov eax, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push eax
call fcn.00475300
pop edi
pop ebp
add esp, 0x108
ret 4
push 0x499861
push 0
push 0x49afb0
call fcn.0042d440
pop edi
pop ebp
add esp, 0x108
ret 4
Function at 0x43ff90
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
xor edi, edi
cmp ebp, edi
je 0x43ffe0
push edi
push 1
mov ecx, ebp
call fcn.00401210
cmp byte [ebp + 0x17], 0
mov dword [esp + 0x24], eax
jne 0x43ffba
mov esi, dword [ebp + 0xc]
jmp 0x43ffbc
mov esi, ebp
cmp byte [esi + 0x17], 1
jne 0x43ffd7
test byte [esi + 0x15], 8
je 0x43ffcf
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x44000e
mov esi, 0x4adb38
mov ebx, dword [esi]
jmp 0x44000e
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push edi
call fcn.00474d90
add esp, 0xc
test eax, eax
jne 0x44000a
mov edx, dword [0x4a7978]
mov dword [edx + 0x30], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x440056
mov eax, dword [esp + 0x24]
mov dword [esp + 0x20], edi
test eax, eax
je 0x44004b
push 0
lea ecx, [esp + 0x24]
push ecx
push ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x440071
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebp, ebp
jne 0x440082
mov edx, dword [esp + 0x24]
push edx
call fcn.00485468
add esp, 4
mov edx, dword [esp + 0x1c]
test edi, edi
sete al
movzx ecx, al
push ecx
push edx
call fcn.0042d4e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x4400b0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, edi
test edi, edi
je 0x4400db
mov dl, byte [edi]
test dl, dl
je 0x440117
mov ecx, 0x49f004
mov al, 0x3f
cmp dl, al
je 0x440117
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4400c7
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x4400c0
cmp byte [edi], 0
je 0x440117
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [esp + 8], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
mov ecx, dword [0x4a7978]
push edx
push ebx
mov dword [ecx + 0x30], eax
call fcn.0042d4e0
pop esi
add esp, 8
ret
push 0
push 0
push 0x4400a0
push 0
push 1
push edi
mov ecx, ebx
call fcn.00440590
mov ecx, dword [0x4a7978]
xor eax, eax
cmp dword [ecx + 0xe4], eax
pop esi
sete al
add esp, 8
ret
Function at 0x440150
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x10c
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
call fcn.0040d480
test al, al
je 0x440176
push 0x10
push 0
push edi
call fcn.00486e26
add esp, 0xc
jmp 0x44017f
push edi
call fcn.004869d6
add esp, 4
mov ebx, 1
cmp eax, ebx
je 0x4401e6
call fcn.00451d70
test al, al
je 0x4401e6
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], bl
jne 0x4401c1
mov ecx, dword [0x4abaa0]
push ebx
push 0
push 0xffffffffffffffff
push 0x49afb0
push ecx
call fcn.00475300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov ecx, dword [esp + 0x120]
push 0x499861
push 0
push 0x49afb0
call fcn.0042d440
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x440232
mov edx, dword [0x4a7978]
test byte [edx + 0xe0], bl
jne 0x4401c1
push ebx
push 0
push eax
mov eax, dword [0x4abaa0]
push 0x49afb0
push eax
call fcn.00475300
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
mov esi, dword [esp + 0x124]
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x440240
sub eax, edx
cmp eax, 0x104
jb 0x440255
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
call fcn.0048dd50
lea edx, [esp + 0x20]
add esp, 0xc
push edx
call fcn.00487e00
add esp, 4
push 0xa
lea eax, [esp + 0x18]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4402c1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4402c1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4402c1
push 0
lea ecx, [esp + 0x14]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x4402c3
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x120]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d4e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 8
Function at 0x4402f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4ab1e8]
sub esp, 0x80
push esi
mov esi, eax
call fcn.004133c0
test esi, esi
je 0x4403a5
cmp byte [esi], 0
je 0x4403a5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44035c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x4403d9
mov eax, dword [0x4abaa0]
push 1
push 0
push esi
push 0x49afb0
push eax
call fcn.00475300
pop esi
add esp, 0x80
ret
mov edx, dword [0x4abaa0]
mov ecx, dword [0x4a7978]
push 1
push 0
push 0xffffffffffffffff
push 0x4998ac
push edx
mov dword [ecx + 0x30], 0
call fcn.00475300
mov edx, esi
lea eax, [esp + 4]
call fcn.004734a0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4ab1e8]
push eax
call fcn.00475300
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x4403d9
mov ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push ecx
call fcn.00475300
pop esi
add esp, 0x80
ret
push 0x499861
push 0
push 0x49afb0
mov ecx, edi
call fcn.0042d440
pop esi
add esp, 0x80
ret
Function at 0x440d10
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4ab1e8]
sub esp, 0x148
push ebx
push esi
call fcn.004133c0
test edi, edi
je 0x440e7e
cmp byte [edi], 0
je 0x440e7e
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x440d70
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x440ddb
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x440dbc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x440eb2
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push edx
call fcn.00475300
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x440de3
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x440e0b
push 2
push esi
call fcn.0048698e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x440e0b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x440e22
sub edx, 2
jne 0x440e38
push edx
push 0x100000
jmp 0x440e29
push 0
push 0x400
push eax
push ecx
call fcn.00493ec0
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4abaa0]
mov eax, dword [0x4a7978]
push 1
push 0
push 0xffffffffffffffff
push 0x4998ac
push ecx
mov dword [eax + 0x30], 0
call fcn.00475300
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4ab1e8]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x440eb2
mov ecx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push ecx
call fcn.00475300
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x499861
push 0
push 0x49afb0
call fcn.0042d440
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d690
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44d697
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44d6bf
dec eax
je 0x44d6b1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x44d6cc
cmp bl, 3
jne 0x44d6d3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44d6f9
cmp dword [0x4ab3d4], 0
je 0x44d6e9
movzx ecx, bl
mov al, byte [ecx + 0x4ab2c0]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4ab3d0], 0
je 0x44d728
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411c50
test al, al
je 0x44d71b
push 1
call fcn.00411a80
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4ab2c0]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x44dc70
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44dcb1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44dcb1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x44dccc
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44dcd2
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4ae410], 1
mov ebx, eax
jne 0x44dd02
or dword [0x4ae410], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4ae40c], eax
jmp 0x44dd07
mov eax, dword [0x4ae40c]
test ebx, ebx
jne 0x44de04
test eax, eax
je 0x44de04
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44de04
cmp byte [esp + 0x11c], 0
je 0x44dd79
push 0x5c
push edi
call fcn.004877de
add esp, 8
test eax, eax
je 0x44de04
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44dd50
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.00486030
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x44ddbd
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0048771a
add esp, 0xc
test eax, eax
jne 0x44ddbd
cmp byte [esi + edi], 0x5c
je 0x44dddf
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44dd85
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.00486030
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x450ff0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x4510a4
cmp byte [eax], bl
je 0x4510a4
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451026
sub eax, edx
cmp eax, ebx
je 0x451040
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x451040
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451047
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.0042d4e0
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a7978]
test byte [edx + 0xe0], 1
jne 0x4510d0
mov eax, dword [0x4abaa0]
push 1
push ebx
push 0xffffffffffffffff
push 0x49afb0
push eax
call fcn.00475300
pop ebx
add esp, 0x12c
ret
push 0x499861
push ebx
push 0x49afb0
mov ecx, esi
call fcn.0042d440
pop ebx
add esp, 0x12c
ret
Function at 0x4510f0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4ab1e8]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.004133c0
test edi, edi
je 0x451268
cmp byte [edi], 0
je 0x451268
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x451189
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x45116a
mov ecx, dword [0x4abaa0]
push 1
push esi
push 0xffffffffffffffff
push 0x49afb0
push ecx
call fcn.00475300
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x499861
push 0
push 0x49afb0
mov ecx, ebp
call fcn.0042d440
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00485609
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x45123d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49bc2c
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45123d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.00472550
push ebx
call fcn.00485468
mov eax, dword [0x4abaa0]
mov edx, dword [0x4a7978]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4998ac
push eax
mov dword [edx + 0x30], 0
call fcn.00475300
mov edx, dword [0x4ab1e8]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00475300
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a7978]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00485468
add esp, 4
push ebp
call fcn.0042fd10
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a7978]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x45129f
mov edx, dword [0x4abaa0]
push 1
push 0
push 0xffffffffffffffff
push 0x49afb0
push edx
call fcn.00475300
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x499861
push 0
push 0x49afb0
mov ecx, ebp
call fcn.0042d440
pop edi
pop ebp
add esp, 0x8c
ret 4