joyce8/EMBER2024-capa huggingface dataset:
Function at 0x410f4e
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0x104
and dword [esp], 0
push ebp
mov ebp, dword [esp + 0x10c]
cmp dword [ebp + 0x148], 0
je 0x410ffa
lea eax, [esp + 8]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov al, 0x80
cmp byte [esp + 0x19], al
jne 0x410f91
test byte [ebp + 0x145], 1
jne 0x410f91
mov dword [esp + 4], 8
cmp byte [esp + 0x1a], al
jne 0x410fa5
test byte [ebp + 0x144], 0x20
jne 0x410fa5
or dword [esp + 4], 1
cmp byte [esp + 0xa8], al
je 0x410fb4
cmp byte [esp + 0x18], al
jne 0x410fc2
test byte [ebp + 0x144], 0x40
jne 0x410fc2
or dword [esp + 4], 2
cmp byte [esp + 0xa9], al
jne 0x410fd9
test byte [ebp + 0x144], 0x80
jne 0x410fd9
or dword [esp + 4], 4
cmp byte [esp + 0x63], al
jne 0x4110cf
test byte [ebp + 0x145], 2
jne 0x4110cf
or dword [esp + 4], 0x10
jmp 0x4110cf
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call edi
mov ebx, dword [sym.imp.USER32.dll_GetKeyState]
mov esi, 0x8000
test si, ax
jne 0x411020
push 0x11
call ebx
test si, ax
je 0x411031
test byte [ebp + 0x145], 1
jne 0x411031
mov dword [esp + 0x10], 8
push 0x12
call edi
test si, ax
jne 0x411043
push 0x12
call ebx
test si, ax
je 0x411051
test byte [ebp + 0x144], 0x20
jne 0x411051
or dword [esp + 0x10], 1
mov ebp, 0xa0
push ebp
call edi
test si, ax
jne 0x411066
push ebp
call ebx
test si, ax
je 0x41107b
mov eax, dword [esp + 0x118]
test byte [eax + 0x144], 0x40
jne 0x41107b
or dword [esp + 0x10], 2
mov ebp, 0xa1
push ebp
call edi
test si, ax
jne 0x411090
push ebp
call ebx
test si, ax
je 0x4110a5
mov eax, dword [esp + 0x118]
test byte [eax + 0x144], 0x80
jne 0x4110a5
or dword [esp + 0x10], 4
push 0x5b
call edi
test si, ax
jne 0x4110b7
push 0x5b
call ebx
test si, ax
je 0x4110cc
mov eax, dword [esp + 0x118]
test byte [eax + 0x145], 2
jne 0x4110cc
or dword [esp + 0x10], 0x10
pop edi
pop esi
pop ebx
mov eax, dword [esp + 4]
pop ebp
add esp, 0x104
ret 4
Function at 0x4111fe
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
mov ebx, dword [ebp + 8]
test bl, 0x1f
je 0x41140f
mov eax, dword [esi + 0x148]
push edi
xor edi, edi
cmp eax, edi
je 0x411379
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x411379
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov edi, ebx
and edi, 0x10
mov al, 0x80
je 0x411250
or byte [ebp - 0xb5], al
mov dword [ebp - 0xc], ebx
and dword [ebp - 0xc], 2
je 0x411262
or byte [ebp - 0x100], al
or byte [ebp - 0x70], al
mov dword [ebp - 0x10], ebx
and dword [ebp - 0x10], 4
je 0x411274
or byte [ebp - 0x100], al
or byte [ebp - 0x6f], al
mov dword [ebp - 4], ebx
and dword [ebp - 4], 8
je 0x411283
or byte [ebp - 0xff], al
mov dword [ebp - 8], ebx
and dword [ebp - 8], 1
je 0x411292
or byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
test edi, edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
mov ebx, 0x100
je 0x4112c7
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 1
push eax
push 0x5b
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 0xc], 0
je 0x4112e6
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 0x10], 0
je 0x411305
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 1
push eax
push 0x10
push ebx
push dword [esi + 0x148]
call edi
cmp dword [ebp - 4], 0
je 0x411324
movzx eax, byte [esi + 0x14c]
shl eax, 0x10
or eax, 1
push eax
push 0x11
push ebx
push dword [esi + 0x148]
call edi
xor eax, eax
cmp dword [ebp - 8], eax
je 0x411405
cmp dword [ebp - 4], eax
jne 0x41135d
test dword [ebp + 8], ebx
jne 0x41135d
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0x20000001
push eax
push 0x12
push 0x104
push dword [esi + 0x148]
call edi
jmp 0x411405
cmp dword [ebp - 8], eax
je 0x411405
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 1
push eax
push 0x12
push ebx
jmp 0x411350
test bl, 0x10
je 0x411393
xor eax, eax
mov al, byte [esi + 0x151]
push edi
xor ebx, ebx
push eax
push 0x5b
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 2
je 0x4113b1
xor eax, eax
mov al, byte [esi + 0x14f]
push edi
xor ebx, ebx
push eax
push 0xa0
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 4
je 0x4113cf
xor eax, eax
mov al, byte [esi + 0x150]
push edi
xor ebx, ebx
push eax
push 0xa1
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 8
je 0x4113ea
xor eax, eax
mov al, byte [esi + 0x14c]
push edi
xor ebx, ebx
push eax
push 0x11
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 1
je 0x411405
xor eax, eax
mov al, byte [esi + 0x14d]
push edi
xor ebx, ebx
push eax
push 0x12
mov eax, esi
call fcn.00410b59
mov edi, dword [esi + 4]
push esi
call fcn.00411cc3
pop edi
pop ebx
leave
ret 4
Function at 0x411414
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
test byte [ebp + 8], 0x1f
je 0x411629
mov eax, dword [esi + 0x148]
push ebx
push edi
xor edi, edi
cmp eax, edi
je 0x41159a
push eax
call dword [sym.imp.USER32.dll_GetParent]
test eax, eax
je 0x41159a
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
mov eax, dword [ebp + 8]
mov ebx, dword [sym.imp.USER32.dll_PostMessageA]
and eax, 1
mov dword [ebp - 0xc], eax
mov edi, 0x101
je 0x411490
test byte [ebp + 8], 8
jne 0x411490
test byte [ebp + 9], 1
jne 0x411490
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xe0000001
push eax
push 0x12
push 0x105
jmp 0x4114a7
test eax, eax
je 0x4114af
movzx eax, byte [esi + 0x14d]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x12
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 8
mov dword [ebp - 4], eax
je 0x4114d5
movzx eax, byte [esi + 0x14c]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x11
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 2
mov dword [ebp - 8], eax
je 0x4114fb
movzx eax, byte [esi + 0x14f]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 4
mov dword [ebp - 0x10], eax
je 0x411521
movzx eax, byte [esi + 0x150]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x10
push edi
push dword [esi + 0x148]
call ebx
mov eax, dword [ebp + 8]
and eax, 0x10
mov dword [ebp + 8], eax
je 0x411547
movzx eax, byte [esi + 0x151]
shl eax, 0x10
or eax, 0xc0000001
push eax
push 0x5b
push edi
push dword [esi + 0x148]
call ebx
xor ecx, ecx
cmp dword [ebp + 8], ecx
mov al, 0x80
je 0x411556
xor byte [ebp - 0xb5], al
cmp dword [ebp - 8], ecx
je 0x411564
xor byte [ebp - 0x100], al
xor byte [ebp - 0x70], al
cmp dword [ebp - 0x10], ecx
je 0x411572
xor byte [ebp - 0x100], al
xor byte [ebp - 0x6f], al
cmp dword [ebp - 4], ecx
je 0x41157d
xor byte [ebp - 0xff], al
cmp dword [ebp - 0xc], ecx
je 0x411588
xor byte [ebp - 0xfe], al
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x41161f
test byte [ebp + 8], 1
push 2
pop ebx
je 0x4115b6
xor eax, eax
mov al, byte [esi + 0x14d]
push edi
push eax
push 0x12
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 8
je 0x4115cf
xor eax, eax
mov al, byte [esi + 0x14c]
push edi
push eax
push 0x11
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], bl
je 0x4115ea
xor eax, eax
mov al, byte [esi + 0x14f]
push edi
push eax
push 0xa0
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 4
je 0x411606
xor eax, eax
mov al, byte [esi + 0x150]
push edi
push eax
push 0xa1
mov eax, esi
call fcn.00410b59
test byte [ebp + 8], 0x10
je 0x41161f
xor eax, eax
mov al, byte [esi + 0x151]
push edi
push eax
push 0x5b
mov eax, esi
call fcn.00410b59
mov edi, dword [esi]
push esi
call fcn.00411cc3
pop edi
pop ebx
leave
ret 4
Function at 0x411650
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [edi + 0x148], ecx
mov esi, eax
je 0x411713
cmp ebx, 0x14
je 0x411713
cmp ebx, 0x90
je 0x411713
cmp ebx, 0x91
je 0x411713
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 0x100], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
shl esi, 0x10
or esi, 1
cmp byte [ebp + 8], 1
je 0x4116cf
mov eax, ebx
call fcn.004110dd
cmp al, 1
jne 0x4116d5
or esi, 0x1000000
mov ecx, dword [edi + 0x144]
test cl, 0x21
mov eax, 0x100
jne 0x4116ea
cmp ebx, 0x12
jne 0x41170e
test cl, 8
jne 0x41170e
test eax, ecx
jne 0x41170e
or esi, 0x20000000
push esi
push ebx
push 0x104
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x411738
push esi
push ebx
push eax
jmp 0x411700
cmp byte [ebp + 8], 1
je 0x41172b
mov eax, ebx
call fcn.004110dd
cmp al, 1
je 0x41172b
push ecx
push esi
push ebx
xor ebx, ebx
jmp 0x411731
push ecx
push esi
push ebx
xor ebx, ebx
inc ebx
mov eax, edi
call fcn.00410b59
push edi
mov edi, dword [edi + 4]
call fcn.00411cc3
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x411748
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
xor ecx, ecx
cmp dword [edi + 0x148], ecx
mov esi, eax
je 0x411812
cmp ebx, 0x14
je 0x411812
cmp ebx, 0x90
je 0x411812
cmp ebx, 0x91
je 0x411812
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x4117b9
mov eax, ebx
call fcn.004110dd
cmp al, 1
jne 0x4117bf
or esi, 0x1000000
mov eax, dword [edi + 0x144]
test al, 0x21
jne 0x4117ce
cmp ebx, 0x12
jne 0x4117e6
test al, 8
jne 0x4117e6
test ah, 1
jne 0x4117e6
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x4117ed
push esi
push ebx
push 0x101
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + ebx - 0x100]
xor byte [eax], 0x80
lea eax, [ebp - 0x100]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x411837
cmp byte [ebp + 8], 1
je 0x41182a
mov eax, ebx
call fcn.004110dd
cmp al, 1
je 0x41182a
push ecx
push esi
push ebx
push 2
jmp 0x41182f
push ecx
push esi
push ebx
push 3
mov eax, edi
pop ebx
call fcn.00410b59
push edi
mov edi, dword [edi]
call fcn.00411cc3
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x411cc3
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
test edi, edi
jl 0x411d63
jne 0x411ce0
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x411d63
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x119]
neg al
push esi
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x411d5b
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x411d5b
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
sub eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
sbb ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], ecx
fild qword [ebp - 0x18]
fstp qword [ebp - 0x28]
fild qword [ebp - 0x20]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x28]
fdiv qword [ebp - 0x30]
fmul qword [0x45de18]
fstp qword [ebp - 0x30]
fld qword [ebp - 0x30]
call fcn.0045659c
cmp eax, edi
jb 0x411d12
jmp 0x411d62
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop esi
leave
ret 4
Function at 0x411d67
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp byte [eax], bl
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x411d85
xor al, al
jmp 0x411ea0
push eax
call fcn.00415d3b
mov ecx, dword [ebp + 0x14]
mov byte [edi], bl
mov byte [ecx], bl
mov ecx, dword [ebp + 0x10]
mov byte [esi], bl
push eax
mov dword [ebp - 0x10], eax
mov byte [ecx], bl
call fcn.00448e50
inc eax
push eax
call fcn.00448ad8
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x411dc9
cmp al, 0x5e
je 0x411dc5
cmp al, 0x21
je 0x411dc5
cmp al, 0x23
jne 0x411ded
cmp al, 0x2b
jne 0x411dd1
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x411dea
cmp al, 0x5e
jne 0x411dda
mov byte [esi], 1
jmp 0x411dea
cmp al, 0x21
jne 0x411de3
mov eax, dword [ebp + 0x14]
jmp 0x411dcc
cmp al, 0x23
jne 0x411dea
mov byte [edi], 1
inc ebx
jmp 0x411daf
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x411e51
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00411c86
test eax, eax
jne 0x411e3d
push dword [ebp - 8]
mov esi, dword [ebp - 0xc]
push dword [esi*4 + 0x462520]
call fcn.00448971
test eax, eax
pop ecx
pop ecx
je 0x411e2f
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x411e0e
cmp esi, 0x62
je 0x411e3d
cmp byte [esi + 0x4626a8], 0
je 0x411e43
mov byte [ebp - 1], 0
jmp 0x411e82
mov eax, dword [esi*4 + 0x462710]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x411e82
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 0xc]
movsx eax, ax
test ah, 2
mov dword [ecx], eax
je 0x411e6a
mov byte [esi], 1
test byte [ecx + 1], 4
je 0x411e76
mov eax, dword [ebp + 0x14]
mov byte [eax], 1
test byte [ecx + 1], 1
je 0x411e82
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
mov eax, dword [ebp + 0xc]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044896c
push dword [ebp - 8]
call fcn.0044896c
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0x10
Function at 0x411f55
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push esi
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [esp + 0x1c]
mov esi, eax
cmp edi, esi
jne 0x411f72
xor eax, eax
inc eax
jmp 0x41206e
push ebp
xor ebp, ebp
cmp esi, ebp
jne 0x411f87
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x411f9b
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x41206d
push ebx
push ebp
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov edi, eax
mov dword [esp + 0x18], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push ebp
push dword [esp + 0x28]
mov ebx, eax
mov dword [esp + 0x24], ebx
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push ebx
mov dword [esp + 0x1c], eax
call esi
push 1
push edi
push ebx
call esi
push 1
push dword [esp + 0x14]
push edi
call esi
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
mov dword [esp + 0x14], eax
jne 0x412053
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyA]
push ebp
push ebp
push ebp
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push ebp
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push ebp
push 2
push ebp
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [esp + 0x24]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
push ebp
push dword [esp + 0x14]
push ebx
call esi
push ebp
push edi
push ebx
call esi
push ebp
push dword [esp + 0x14]
push edi
call esi
mov eax, dword [esp + 0x14]
pop ebx
pop ebp
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x41213c
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x412155
inc edi
add eax, 8
cmp edi, 0x10
jl 0x412148
cmp edi, 0x10
jne 0x41215e
xor eax, eax
jmp 0x4121c8
cmp byte [esi + 0x18], 1
jne 0x41219f
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp + 0xc]
push ebx
push 0x438
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 4
push 0x1000
push dword [ebp + 8]
mov dword [esi + edi*8 + 0x1c], eax
push ebx
push eax
mov eax, esi
lea edi, [esi + edi*8 + 0x20]
call fcn.0041225e
call eax
jmp 0x4121c6
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea edi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [edi], eax
pop edi
pop ebx
pop ebp
ret 8
Function at 0x413d85
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x413db3
mov ebx, dword [edi]
push 0
push edi
push ebx
push dword [esp + 0x14]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x413dd8
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x413dd4
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0044a23f
mov dword [edi], eax
mov eax, dword [esi + 4]
add esp, 0x10
test byte [eax + 0xc], 0x20
je 0x413dd8
and dword [edi], 0
xor al, al
jmp 0x413dda
mov al, 1
pop ebx
ret 4

Function at 0x4142b5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
mov byte [esi], 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4142f2
lea eax, [ebp + 0x14]
push eax
push esi
push 0
push 0
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x4142f4
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
xor esi, esi
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push 0x1f4
push 2
push esi
push esi
push 0x10
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x414354
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
push esi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
leave
ret
Function at 0x4149c1
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x4149e1
xor al, al
jmp 0x414b74
push ebx
push edi
push esi
call fcn.00448ad8
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoA
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.00448e50
add eax, 0x1a
push eax
call fcn.00448ad8
mov esi, 0x45ac08
mov edi, eax
push esi
push edi
call fcn.004489e0
push esi
push ebx
call fcn.00448c50
add esp, 0x18
test eax, eax
je 0x414aab
push str.StringFileInfo_
push edi
call fcn.004489f0
push esi
push ebx
call fcn.00448fc0
add esp, 0x10
test eax, eax
jne 0x414aa2
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x414a82
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.004161dc
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.004161dc
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x414a8f
push str.04090000
push edi
call fcn.004489f0
pop ecx
pop ecx
push esi
push edi
call fcn.004489f0
push ebx
push edi
call fcn.004489f0
add esp, 0x10
jmp 0x414aab
push ebx
push edi
call fcn.004489f0
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.00448971
test eax, eax
pop ecx
pop ecx
jne 0x414ae7
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.00449220
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044896c
push edi
call fcn.0044896c
add esp, 0x14
mov al, 1
jmp 0x414b72
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x414b60
push esi
push ebx
call fcn.00448c50
test eax, eax
pop ecx
pop ecx
jne 0x414b3b
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
mov esi, ecx
mov edx, 0xffff
and esi, edx
push esi
shr ecx, 0x10
push ecx
mov ecx, eax
and ecx, edx
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
push dword [ebp + 0xc]
call fcn.00448edb
add esp, 0x18
jmp 0x414b4e
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.00449220
add esp, 0xc
push dword [ebp - 4]
call fcn.0044896c
push edi
call fcn.0044896c
mov al, 1
jmp 0x414b70
push dword [ebp - 4]
call fcn.0044896c
push edi
call fcn.0044896c
xor al, al
pop ecx
pop ecx
pop edi
pop ebx
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x414bc9
lea eax, [ebp - 0x140]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x414bbc
or eax, eax
leave
ret
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x140]
leave
ret
Function at 0x414bcb
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x414be1
test al, 0x10
je 0x414be1
mov al, 1
ret
xor al, al
ret

Function at 0x414d77
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x66c
push dword [ebp + 8]
lea eax, [ebp - 0x10c]
mov byte [ebp - 1], 0
call fcn.00414be4
lea eax, [ebp - 0x10c]
push eax
call fcn.00414bcb
test al, al
pop ecx
pop ecx
je 0x414db7
lea eax, [ebp - 0x10c]
push str..
push eax
call fcn.004489f0
pop ecx
pop ecx
push ebx
push esi
lea eax, [ebp - 0x66c]
push eax
lea eax, [ebp - 0x564]
push eax
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.00449745
add esp, 0x14
lea eax, [ebp - 0x24c]
push eax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x414e7a
cmp bl, 1
jne 0x414e7a
test byte [ebp - 0x24c], 0x10
jne 0x414e60
lea eax, [ebp - 0x45c]
push eax
lea eax, [ebp - 0x10c]
push eax
mov byte [ebp - 1], bl
call fcn.004489e0
lea eax, [ebp - 0x354]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004489f0
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x10c]
push eax
call fcn.004489f0
add esp, 0x18
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
cmp eax, 1
jne 0x414e76
lea eax, [ebp - 0x24c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x414e01
xor bl, bl
jmp 0x414e01
xor bl, bl
jmp 0x414e7d
mov bl, byte [ebp - 1]
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
leave
ret