joyce8/EMBER2024-capa huggingface dataset:
Function at 0x437b50
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x8000
call fcn.004915d0
push ebp
mov ebp, dword [0x4a9c68]
push esi
push edi
push 0x7fff
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov edi, eax
cmp edi, 0x7fff
jb 0x437c7a
push 1
push 1
lea ecx, [edi - 1]
push ecx
push 0
push ebp
call fcn.00474ce0
test eax, eax
jne 0x437ba0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
cmp byte [ebp + 0x17], 0
jne 0x437bab
mov esi, dword [ebp + 0xc]
jmp 0x437bad
mov esi, ebp
test byte [esi + 0x15], 8
je 0x437bba
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437bd3
test byte [esi + 0x15], 4
je 0x437bce
mov eax, esi
call fcn.0042ec60
mov eax, dword [esi + 8]
jmp 0x437be3
cmp al, 2
jne 0x437bde
call fcn.00401000
jmp 0x437be3
mov eax, 0x4ab626
push edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x437c35
cmp byte [ebp + 0x17], al
jne 0x437bfa
mov esi, dword [ebp + 0xc]
jmp 0x437bfc
mov esi, ebp
test byte [esi + 0x15], 8
je 0x437c09
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x437c22
test byte [esi + 0x15], 4
je 0x437c1d
mov eax, esi
call fcn.0042ec60
mov eax, dword [esi + 8]
jmp 0x437c32
cmp al, 2
jne 0x437c2d
call fcn.00401000
jmp 0x437c32
mov eax, 0x4ab626
mov byte [eax], 0
cmp byte [ebp + 0x17], 0
jne 0x437c40
mov eax, dword [ebp + 0xc]
jmp 0x437c42
mov eax, ebp
cmp byte [eax + 0x17], 2
jne 0x437c67
cmp dword [0x4ac3ec], 0
je 0x437c67
push 1
mov ecx, 0x4ac3e0
call fcn.00404340
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
and byte [eax + 0x15], 0x86
mov eax, 1
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
lea eax, [esp + 0xc]
test edi, edi
jne 0x437c87
mov eax, 0x4987f9
push 1
push 0
push edi
push eax
push ebp
call fcn.00474ce0
pop edi
pop esi
pop ebp
add esp, 0x8000
ret
Function at 0x43a3f0
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 0x43a428
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43a4a3
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 0x43a420
mov eax, dword [esp + 0x10]
cmp eax, ebx
je 0x43a420
dec eax
mov dword [esp + 0x10], eax
cmp byte [esp + eax + 0x18], bl
jne 0x43a487
cmp eax, ebx
je 0x43a4a3
lea ecx, [esp + 0x18]
cmp byte [ecx + eax - 1], bl
jne 0x43a481
dec eax
jne 0x43a478
mov dword [esp + 0x10], eax
jmp 0x43a49f
inc eax
mov dword [esp + 0x10], eax
cmp eax, 0x104
jb 0x43a49b
mov byte [esp + 0x18], bl
xor eax, eax
jmp 0x43a4a3
mov byte [esp + eax + 0x18], bl
cmp eax, ebx
jne 0x43a4b1
cmp edi, ebx
jne 0x43a4b1
mov edi, 0x100
jmp 0x43a404
mov esi, dword [esp + 0x120]
cmp esi, ebx
je 0x43a4ce
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 0x43a4c4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret
Function at 0x43db90
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [0x4a9c68]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x43dc7e
cmp byte [edi + 1], 0
jne 0x43dbfa
mov byte [esp + 0x14], cl
cmp cl, 0xa
jne 0x43dbca
mov al, 0xd
jmp 0x43dc6f
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43dbee
cmp cl, 0xff
jne 0x43dbee
xor al, al
jmp 0x43dc6f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43dc6f
movzx esi, cl
test esi, 0xffffff80
jne 0x43dc17
push 2
push esi
call fcn.0048633e
add esp, 8
test eax, eax
je 0x43dc17
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x43dc3b
mov al, byte [edi + 1]
call fcn.00409310
cmp al, 0x4b
jne 0x43dc3b
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00486784
add esp, 0xc
jmp 0x43dc6f
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a7180]
push edi
push eax
call fcn.00484e01
add esp, 8
test eax, eax
je 0x43dcb1
inc esi
cmp esi, 0x6d
jl 0x43dc40
mov eax, edi
call fcn.00411c10
movzx ecx, ax
test cx, cx
je 0x43dc7e
call fcn.00412370
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0
jne 0x43dcfb
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044e3d0
mov edi, eax
add esp, 4
test edi, edi
jne 0x43dcbe
push 1
push eax
push 0xffffffffffffffff
push 0x4987f9
push ebp
call fcn.00474ce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov cl, byte [esi*8 + 0x4a7184]
mov byte [esp + 0x13], cl
jmp 0x43dc73
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edx
call fcn.0044e670
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov ebx, ebp
call fcn.00474630
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov ecx, dword [esp + 0x12c]
movzx ebx, byte [ecx]
test ebx, 0xffffff80
jne 0x43dd1f
push 2
push ebx
call fcn.0048633e
add esp, 8
test eax, eax
je 0x43dd1f
and bl, 0xdf
cmp bl, 0x50
je 0x43dd32
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43dd37
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044e5c0
add esp, 4
test al, al
mov eax, 0x49da38
jne 0x43dd52
mov eax, 0x49da3c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.00474ce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
Function at 0x43dd70
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4a9c68]
push edi
call fcn.00412b30
test esi, esi
je 0x43dede
cmp byte [esi], 0
je 0x43dede
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00487da0
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 0x43ddc0
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43dde9
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43dede
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
test byte [0x4acfd0], 1
jne 0x43de17
or dword [0x4acfd0], 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 [0x4acfcc], eax
jmp 0x43de1c
mov eax, dword [0x4acfcc]
test eax, eax
je 0x43de6a
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 0x43dede
cmp byte [ebp + 0xc], 0
je 0x43de57
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43deac
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43deac
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 0x43dede
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43de9b
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 [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push ecx
call fcn.00474ce0
mov eax, dword [0x4a9c68]
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 [0x4a6440]
cmp byte [edx + 0xe4], 0
jne 0x43df0b
mov eax, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push eax
call fcn.00474ce0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4987f9
push 0
push 0x499ee8
call fcn.0042e170
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43fc90
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 0x43fcbd
cmp byte [0x4ac380], al
je 0x43fd64
call fcn.004094e0
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ac380], 0
push ebp
push esi
mov esi, 0x4aa520
jne 0x43fcd1
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43fd2c
cmp byte [edi], 0
je 0x43fd42
cmp byte [edi + 1], 0x3a
jne 0x43fd42
cmp byte [edi + 2], 0
jne 0x43fd42
push esi
push edi
call fcn.00484e01
add esp, 8
test eax, eax
je 0x43fd42
push edi
lea eax, [esp + 0x10]
push 0x49dca8
push eax
call fcn.00485338
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43fd42
push esi
push 0x104
call ebp
test eax, eax
jne 0x43fd42
push 0x103
push edi
push esi
call fcn.00487da0
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ac380], 0
pop esi
pop ebp
je 0x43fd64
mov edx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push edx
call fcn.00474ce0
pop ebx
add esp, 0x10c
ret
Function at 0x440360
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
mov ebp, ecx
test edi, edi
je 0x4404e2
cmp byte [edi], 0
je 0x4404e2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4403bb
mov ecx, dword [0x4a6440]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042e260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.00486ffa
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x4404a9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4403d5
sub eax, edx
cmp eax, 0x104
jb 0x440423
mov eax, dword [0x4a6440]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe4], cl
jne 0x44041c
mov eax, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push eax
call fcn.00474ce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x4404fb
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00487da0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.00440360
cmp byte [ebx + 1], 0
je 0x440497
mov esi, dword [0x4aa51c]
cmp byte [esi + 0x17], 0
jne 0x44045c
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x440469
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x440482
test byte [esi + 0x15], 4
je 0x44047d
mov eax, esi
call fcn.0042ec60
mov eax, dword [esi + 8]
jmp 0x440492
cmp al, 2
jne 0x44048d
call fcn.00401000
jmp 0x440492
mov eax, 0x4ab626
cmp byte [eax], 0x31
jne 0x4404a9
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4a6440]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042e260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a6440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x4403f9
push 0x4987f9
push 0
push 0x499ee8
call fcn.0042e170
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x4411b0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x441235
cmp byte [edi + 0x17], 0
jne 0x4411ca
mov esi, dword [edi + 0xc]
jmp 0x4411cc
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x4411da
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4411f3
test byte [esi + 0x15], 4
je 0x4411ee
mov eax, esi
call fcn.0042ec60
mov eax, dword [esi + 8]
jmp 0x441203
cmp al, 2
jne 0x4411fe
call fcn.00401000
jmp 0x441203
mov eax, 0x4ab626
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x441210
mov esi, dword [edi + 0xc]
jmp 0x441212
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x44122c
test byte [esi + 0x15], bl
je 0x441224
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x441268
mov esi, 0x4ac590
mov ebx, dword [esi]
jmp 0x441268
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00474770
add esp, 0xc
test eax, eax
jne 0x441260
mov edx, dword [0x4a6440]
mov dword [edx + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x4412a9
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x44129e
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
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 [0x4a6440]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x4412c4
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x4412d4
push ebp
call fcn.00484e18
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042e260
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x441590
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040cdb0
test al, al
je 0x4415b8
push 0x10
push 0
push edi
call fcn.00486784
add esp, 0xc
jmp 0x4415c1
push edi
call fcn.00486386
add esp, 4
cmp eax, 1
je 0x441626
call fcn.00452cf0
test al, al
je 0x441626
mov eax, dword [0x4a6440]
cmp byte [eax + 0xe4], 0
jne 0x441601
mov ecx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474ce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x4987f9
push 0
push 0x499ee8
call fcn.0042e170
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
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 0x441674
mov edx, dword [0x4a6440]
cmp byte [edx + 0xe4], 0
jne 0x441601
push 1
push 0
push eax
mov eax, dword [0x4aa51c]
push 0x499ee8
push eax
call fcn.00474ce0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x441680
sub eax, edx
cmp eax, 0x104
jb 0x441695
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0048d700
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.0048775e
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x441701
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x441701
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x441701
push 0
lea ecx, [esp + 0x18]
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 0x441703
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042e260
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x441730
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4a9c68]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00412b30
test esi, esi
je 0x4417e5
cmp byte [esi], 0
je 0x4417e5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44179c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x441819
mov eax, dword [0x4aa51c]
push 1
push 0
push esi
push 0x499ee8
push eax
call fcn.00474ce0
pop esi
add esp, 0x80
ret
mov edx, dword [0x4aa51c]
mov ecx, dword [0x4a6440]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push edx
mov dword [ecx + 0x30], 0
call fcn.00474ce0
mov edx, esi
lea eax, [esp + 4]
call fcn.00473030
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4a9c68]
push eax
call fcn.00474ce0
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a6440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x441819
mov ecx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474ce0
pop esi
add esp, 0x80
ret
push 0x4987f9
push 0
push 0x499ee8
mov ecx, edi
call fcn.0042e170
pop esi
add esp, 0x80
ret
Function at 0x442660
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4a9c68]
sub esp, 0x148
push ebx
push esi
call fcn.00412b30
test edi, edi
je 0x4427ce
cmp byte [edi], 0
je 0x4427ce
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 0x4426c0
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 0x44272b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x44270c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x442802
mov edx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push edx
call fcn.00474ce0
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 0x442733
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44275b
push 2
push esi
call fcn.0048633e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44275b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x442772
sub edx, 2
jne 0x442788
push edx
push 0x100000
jmp 0x442779
push 0
push 0x400
push eax
push ecx
call fcn.00493870
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4aa51c]
mov eax, dword [0x4a6440]
push 1
push 0
push 0xffffffffffffffff
push 0x498884
push ecx
mov dword [eax + 0x30], 0
call fcn.00474ce0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4a9c68]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a6440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x442802
mov ecx, dword [0x4aa51c]
push 1
push 0
push 0xffffffffffffffff
push 0x499ee8
push ecx
call fcn.00474ce0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4987f9
push 0
push 0x499ee8
call fcn.0042e170
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44e5c0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44e5c7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44e5ef
dec eax
je 0x44e5e1
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 0x44e5fc
cmp bl, 3
jne 0x44e603
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44e629
cmp dword [0x4a9e54], 0
je 0x44e619
movzx ecx, bl
mov al, byte [ecx + 0x4a9d40]
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 [0x4a9e50], 0
je 0x44e658
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.004115d0
test al, al
je 0x44e64b
push 1
call fcn.00411400
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4a9d40]
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 0x44eba0
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 0x44ebe1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44ebe1
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 0x44ebfc
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44ec02
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4ace60], 1
mov ebx, eax
jne 0x44ec32
or dword [0x4ace60], 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 [0x4ace5c], eax
jmp 0x44ec37
mov eax, dword [0x4ace5c]
test ebx, ebx
jne 0x44ed34
test eax, eax
je 0x44ed34
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44ed34
cmp byte [esp + 0x11c], 0
je 0x44eca9
push 0x5c
push edi
call fcn.00486ffa
add esp, 8
test eax, eax
je 0x44ed34
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44ec80
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.004859e0
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 0x44eced
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00486f36
add esp, 0xc
test eax, eax
jne 0x44eced
cmp byte [esi + edi], 0x5c
je 0x44ed0f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44ecb5
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.004859e0
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 0x451ec0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x451f74
cmp byte [eax], bl
je 0x451f74
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 0x451ef6
sub eax, edx
cmp eax, ebx
je 0x451f10
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x451f10
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x451f17
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.0042e260
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a6440]
cmp byte [edx + 0xe4], bl
jne 0x451f9f
mov eax, dword [0x4aa51c]
push 1
push ebx
push 0xffffffffffffffff
push 0x499ee8
push eax
call fcn.00474ce0
pop ebx
add esp, 0x12c
ret
push 0x4987f9
push ebx
push 0x499ee8
mov ecx, esi
call fcn.0042e170
pop ebx
add esp, 0x12c
ret