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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push ebx
push esi
mov esi, eax
mov al, byte [esi]
mov cl, byte [esi + 7]
xor edx, edx
mov bl, al
mov byte [ebp - 4], cl
movzx ecx, word [esi + 8]
mov byte [ebp - 8], bl
cmp dword [edi + 0x20], edx
je 0x40b252
cmp bl, 0x14
je 0x40b252
cmp bl, 0x90
je 0x40b252
cmp bl, 0x91
je 0x40b252
cmp al, 0xff
je 0x40b2bf
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
movzx ebx, bl
xor byte [ebp + ebx - 0x128], 0x80
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
movzx ecx, byte [ebp - 4]
shl ecx, 0x10
mov eax, esi
or ecx, 0xc0000001
call fcn.00409e63
cmp al, 1
jne 0x40b213
or ecx, 0x1000000
cmp byte [edi + 0x17], 0
jne 0x40b225
cmp byte [edi + 0x1d], 0
jne 0x40b225
cmp byte [ebp - 8], 0x12
jne 0x40b240
cmp byte [edi + 0x16], 0
jne 0x40b240
cmp byte [edi + 0x1c], 0
jne 0x40b240
or ecx, 0x20000000
push ecx
push ebx
push 0x105
jmp 0x40b247
push ecx
push ebx
push 0x101
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x40b2bf
cmp al, 0xff
je 0x40b295
mov eax, esi
call fcn.00409e63
cmp al, 1
jne 0x40b270
test byte [edi + 0xc], 4
je 0x40b26b
push 3
jmp 0x40b278
push edx
push 3
jmp 0x40b287
test byte [edi + 0xc], 4
je 0x40b284
push 2
push dword [ebp - 4]
mov cl, bl
call fcn.0040b30d
jmp 0x40b2bf
push edx
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x40b2bf
mov word [ebp - 0x1e], cx
push 0x1c
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
push ecx
xor esi, esi
push eax
mov dword [ebp - 0x24], eax
mov word [ebp - 0x20], si
mov dword [ebp - 0x1c], 6
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
call dword [sym.imp.USER32.dll_SendInput]
mov ecx, edi
call fcn.0040b2ca
pop esi
pop ebx
leave
ret
Function at 0x40b392
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x40b3ac
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x40b47f
push esi
mov dword [ebp - 8], edi
mov dword [ebp - 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp byte [ebp + 0xc], 0
mov dword [ebp - 4], eax
je 0x40b44a
push edi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov edi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push eax
call edi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [0x492450], eax
call esi
mov dword [ebp + 0xc], eax
test ebx, ebx
je 0x40b41f
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x492450]
mov dword [0x49244c], eax
cmp ecx, eax
je 0x40b414
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x49244c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x40b47e
cmp dword [ebp - 8], ecx
jne 0x40b47e
cmp dword [ebp - 0xc], ecx
jne 0x40b47e
mov eax, dword [0x492450]
cmp dword [ebp - 4], eax
jne 0x40b47e
cmp eax, dword [0x49244c]
jne 0x40b47e
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], ecx
jmp 0x40b47e
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp ebx, edi
je 0x40b472
push edi
push dword [0x49244c]
push eax
call esi
mov ecx, dword [0x492450]
mov eax, dword [0x49244c]
cmp ecx, eax
je 0x40b472
push edi
push eax
push ecx
call esi
push edi
push dword [0x492450]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x40b484
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
push edi
mov edi, eax
test edi, edi
js 0x40b501
jne 0x40b498
push 0
jmp 0x40b4fb
cmp edi, 0xf
jae 0x40b4fa
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
je 0x40b4fa
mov dword [ebp - 4], edi
fild dword [ebp - 4]
test edi, edi
jns 0x40b4bd
fadd qword [0x475bd0]
fstp qword [ebp - 0x28]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0x10]
push eax
call esi
mov eax, dword [ebp - 0x10]
sub eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
sbb ecx, dword [ebp - 0x14]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ecx
fild qword [ebp - 8]
fstp qword [ebp - 0x20]
call fcn.0040fbe8
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x40b4c0
jmp 0x40b501
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
leave
ret
Function at 0x40b505
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
xor ebx, ebx
push edi
mov edi, eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 5], 1
mov dword [ebp - 0x10], ebx
cmp dword [edi + 4], ebx
jne 0x40b528
xor al, al
jmp 0x40b6ad
mov eax, dword [ebp + 0x18]
mov esi, dword [ebp + 8]
mov byte [eax], bl
mov eax, dword [ebp + 0x14]
mov byte [eax], bl
mov eax, dword [ebp + 0x10]
mov byte [eax], bl
mov eax, dword [ebp + 0xc]
mov byte [eax], bl
mov dword [esi], ebx
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00403f9e
movzx eax, word [eax]
cmp eax, 0x2b
je 0x40b567
cmp eax, 0x5e
je 0x40b562
cmp eax, 0x21
je 0x40b562
cmp eax, 0x23
jne 0x40b590
cmp eax, 0x2b
jne 0x40b56c
mov eax, dword [ebp + 0xc]
jmp 0x40b588
cmp eax, 0x5e
jne 0x40b576
mov eax, dword [ebp + 0x10]
jmp 0x40b588
cmp eax, 0x21
jne 0x40b580
mov eax, dword [ebp + 0x14]
jmp 0x40b588
cmp eax, 0x23
jne 0x40b58b
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
inc dword [ebp - 0xc]
jmp 0x40b541
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov eax, edi
call fcn.00403f9e
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x40b66a
push 0x40
pop eax
lea esi, [ebp - 0x20]
call fcn.00404171
push edi
push 0x7d
lea edi, [ebp - 0xc]
mov eax, esi
call fcn.0040b347
test al, al
je 0x40b64c
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
push dword [esi*4 + 0x47b920]
call fcn.0045531b
pop ecx
pop ecx
test eax, eax
je 0x40b5ea
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 0x62
jl 0x40b5c9
cmp esi, 0x62
jne 0x40b644
xor edi, edi
lea eax, [ebp - 0x20]
call fcn.00402050
movzx eax, word [eax]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov ecx, dword [ebp + 8]
cwde
mov dword [ecx], eax
cmp eax, 0xffffffff
jne 0x40b61b
lea ecx, [ebp - 0x20]
call fcn.00401a04
jmp 0x40b521
test eax, 0x200
je 0x40b628
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test eax, 0x400
je 0x40b635
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x100
je 0x40b65d
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x40b65d
cmp byte [esi + 0x47baa8], bl
je 0x40b651
mov byte [ebp - 5], bl
jmp 0x40b65d
movzx eax, byte [esi + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
lea ecx, [ebp - 0x20]
call fcn.00401a04
mov esi, dword [ebp + 8]
jmp 0x40b6a4
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40b521
test eax, 0x200
je 0x40b68a
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test eax, 0x400
je 0x40b697
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x100
je 0x40b6a4
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
and dword [esi], 0xff
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40b791
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov ebx, dword [ebp + 8]
mov esi, eax
cmp ebx, esi
jne 0x40b7b0
xor eax, eax
inc eax
jmp 0x40b8c2
push edi
xor edi, edi
cmp esi, edi
jne 0x40b7c5
push edi
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
push ebx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x40b7d9
push 9
push ebx
call dword [sym.imp.USER32.dll_ShowWindow]
push ebx
mov ebx, dword [sym.imp.USER32.dll_SetForegroundWindow]
mov dword [ebp - 0xc], edi
call ebx
test eax, eax
jne 0x40b8b7
push edi
push esi
mov esi, dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push edi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call esi
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
push 1
push eax
push dword [ebp - 4]
mov dword [ebp - 0x10], eax
call esi
push 1
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push 1
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
push dword [ebp + 8]
call ebx
test eax, eax
jne 0x40b893
push edi
push edi
push edi
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
push 0x12
call edi
mov ebx, dword [sym.imp.USER32.dll_keybd_event]
push eax
push 0x12
call ebx
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
xor eax, eax
push eax
push eax
push eax
push 0x12
call edi
push eax
push 0x12
call ebx
push 0
push 2
push 0
push 0x12
call edi
push eax
push 0x12
call ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
xor edi, edi
test eax, eax
je 0x40b89a
mov dword [ebp - 0xc], 4
jmp 0x40b89a
mov dword [ebp - 0xc], 3
push edi
push dword [ebp - 0x10]
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 8]
push dword [ebp - 4]
call esi
push edi
push dword [ebp - 0x10]
push dword [ebp - 8]
call esi
jmp 0x40b8be
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40dc87
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push edi
cmp dword [esi + 8], ebx
jne 0x40dca6
push esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0040dc60
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x40dcef
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40dcd7
push ebx
lea eax, [ebp - 4]
push eax
push 0x10000
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [ebp - 4]
cmp eax, ebx
je 0x40dcef
mov dword [esi + 8], eax
mov dword [esi + 0xc], ebx
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 4]
mov al, byte [eax + ecx]
mov ecx, dword [ebp + 8]
mov byte [edi + ecx], al
inc edi
inc dword [esi + 0xc]
cmp edi, dword [ebp + 0xc]
jb 0x40dcad
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], ebx
pop ebx
leave
ret 8
Function at 0x40dcfd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
je 0x40dd38
push esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0040dc60
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov eax, dword [esi + 0x14]
push 1
push edi
sbb eax, edx
push eax
push ecx
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
push esi
call fcn.0040dc60
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp - 4]
add dword [esi + 0x10], eax
adc dword [esi + 0x14], edi
pop edi
leave
ret 8

Function at 0x40df33
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
add eax, eax
mov dword [ebp + 0x14], eax
xor eax, eax
mov word [esi], ax
lea eax, [ebp - 4]
push eax
push 1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40df7a
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_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x40df7c
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_PostMessageW]
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_SendMessageTimeoutW]
test eax, eax
jne 0x40dfdc
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 0x40e01c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x844
push esi
push 0
push 2
mov dword [ebp - 0x238], 0x22c
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea ecx, [ebp - 0x238]
push ecx
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov esi, dword [ebp + 8]
mov byte [edi], 0
call fcn.0040e215
mov esi, eax
jmp 0x40e0d8
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x40e0e1
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x844]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x214]
push eax
call fcn.0045787e
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.004553a6
push dword [ebp + 8]
lea eax, [ebp - 0x43c]
push eax
call fcn.0045531b
add esp, 0x24
test eax, eax
jne 0x40e0c5
mov eax, dword [ebp - 0x230]
jmp 0x40e0d3
test esi, esi
je 0x40e0d8
mov eax, dword [ebp - 0x230]
cmp esi, eax
jne 0x40e0d8
mov dword [ebx], eax
mov byte [edi], 1
cmp byte [edi], 0
je 0x40e05a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
leave
ret

Function at 0x40e0ef
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.004664c0
lea eax, [ebp - 0x10]
push eax
push 0x800
lea eax, [ebp - 0x1034]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
jne 0x40e11a
xor al, al
leave
ret
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp - 0x10]
shr edi, 2
mov byte [ebx], 0
call fcn.0040e215
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
test edi, edi
je 0x40e20f
cmp byte [ebx], 0
jne 0x40e20f
mov esi, dword [ebp - 4]
lea esi, [ebp + esi*4 - 0x1034]
push dword [esi]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [ebp - 0x10]
push ecx
push 4
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push 0x104
lea eax, [ebp - 0x630]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0xc]
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
test eax, eax
je 0x40e1fa
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x834]
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x630]
push eax
call fcn.0045787e
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004553a6
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call fcn.0045531b
add esp, 0x24
test eax, eax
jne 0x40e1e5
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40e1f7
cmp dword [ebp - 8], 0
je 0x40e1fa
mov esi, dword [esi]
cmp dword [ebp - 8], esi
jne 0x40e1fa
mov eax, dword [ebp + 0xc]
mov dword [eax], esi
mov byte [ebx], 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [ebp - 4]
cmp dword [ebp - 4], edi
jb 0x40e13c
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x40e244
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
xor ebx, ebx
mov edi, eax
xor esi, esi
mov byte [0x48038e], bl
cmp edi, ebx
je 0x40e28a
mov byte [0x48038f], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp - 0xc]
push eax
push 0x40e2cd
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00457bef
add esp, 0x18
mov esi, eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxW]
mov edi, eax
cmp esi, ebx
je 0x40e2b8
push 0xffffffffffffffff
push esi
mov byte [0x48038f], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x48038e], 1
jne 0x40e2c6
or eax, 0xffffffff
jmp 0x40e2c8
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e48c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 8]
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test esi, esi
jne 0x40e4ad
xor al, al
jmp 0x40e5c5
push ebx
push edi
push esi
call fcn.00455447
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.00455031
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455447
mov esi, 0x46e4c0
mov edi, eax
push esi
push edi
call fcn.004553d7
push esi
push ebx
call fcn.00456fac
add esp, 0x18
test eax, eax
je 0x40e58a
push str.StringFileInfo_
push edi
call fcn.004553a6
push esi
push ebx
call fcn.0045732d
add esp, 0x10
test eax, eax
jne 0x40e581
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e561
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
push eax
push 4
lea ebx, [edi + 0x20]
pop edx
mov dword [ebp - 0x10], eax
call fcn.0040fca8
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040fca8
mov ebx, dword [ebp + 0x10]
jmp 0x40e56c
push str.04090000
push edi
call fcn.004553a6
pop ecx
pop ecx
push esi
push edi
call fcn.004553a6
push ebx
push edi
call fcn.004553a6
add esp, 0x10
jmp 0x40e58a
push ebx
push edi
call fcn.004553a6
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0045531b
pop ecx
pop ecx
test eax, eax
jne 0x40e5c8
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.00456e2a
push dword [ebp - 4]
xor eax, eax
mov word [esi + 0x10], ax
call fcn.0045504c
push edi
call fcn.0045504c
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp - 4]
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x40e64c
push esi
push ebx
call fcn.00456fac
pop ecx
pop ecx
test eax, eax
jne 0x40e616
mov ecx, dword [ebp - 8]
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
push dword [ebp + 0xc]
call fcn.0045710b
add esp, 0x18
jmp 0x40e633
mov esi, dword [ebp + 0xc]
push 0x200
push dword [ebp - 8]
push esi
call fcn.00456e2a
add esp, 0xc
xor eax, eax
mov word [esi + 0x400], ax
mov bl, 1
push dword [ebp - 4]
call fcn.0045504c
push edi
call fcn.0045504c
pop ecx
pop ecx
mov al, bl
jmp 0x40e5c3
xor bl, bl
jmp 0x40e635
Function at 0x40e666
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x250
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40e6a0
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e696
or eax, eax
jmp 0x40e6a0
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret

Function at 0x40e81a
Capabilities:
Check if file exists
Delete file
Enumerate files on windows
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa88
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x1c]
mov byte [esp + 0x13], 0
call fcn.0040e6a4
pop ecx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e85f
test al, 0x10
je 0x40e85f
lea eax, [esp + 0x18]
push str..
push eax
call fcn.004553a6
pop ecx
pop ecx
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x88c]
push eax
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0045787e
add esp, 0x14
lea eax, [esp + 0x228]
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x40e92a
cmp bl, 1
jne 0x40e92a
test byte [esp + 0x228], 0x10
jne 0x40e902
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x17], bl
call fcn.004553d7
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004553a6
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004553a6
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40e919
lea eax, [esp + 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e8a9
xor bl, bl
jmp 0x40e8a9
xor bl, bl
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov bl, byte [esp + 0xf]
jmp 0x40e91b
Function at 0x40e930
Capabilities:
Check if file exists
Copy file
Delete file
Enumerate files on windows
Get file attributes
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x10bc
call fcn.004664c0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x444]
xor bl, bl
call fcn.0040e6a4
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x654]
call fcn.0040e6a4
pop ecx
lea eax, [esp + 0x650]
push eax
lea eax, [esp + 0x444]
push eax
call fcn.0040e799
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x440]
push eax
call esi
mov edi, str..
cmp eax, 0xffffffff
je 0x40e9ae
test al, 0x10
je 0x40e9ae
lea eax, [esp + 0x440]
push edi
push eax
call fcn.004553a6
pop ecx
pop ecx
lea eax, [esp + 0x650]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e9d1
test al, 0x10
je 0x40e9d1
lea eax, [esp + 0x650]
push edi
push eax
call fcn.004553a6
pop ecx
pop ecx
lea eax, [esp + 0xec0]
push eax
lea eax, [esp + 0xab4]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x450]
push eax
call fcn.0045787e
add esp, 0x14
lea eax, [esp + 0x860]
push eax
lea eax, [esp + 0x444]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
cmp eax, 0xffffffff
je 0x40eb63
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40eb63
test byte [esp + 0x860], 0x10
jne 0x40eb3e
lea eax, [esp + 0x650]
push eax
lea eax, [esp + 0xec4]
push eax
lea eax, [esp + 0xab8]
push eax
lea eax, [esp + 0x898]
push eax
lea esi, [esp + 0x240]
call fcn.0040eb76
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004553d7
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004553a6
lea eax, [esp + 0x8ac]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004553a6
mov eax, esi
push eax
call fcn.0040e650
add esp, 0x2c
test al, al
je 0x40ead4
cmp byte [ebp + 0x10], 0
je 0x40eb1f
mov eax, esi
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40eb2d
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x230]
jne 0x40eb11
cmp byte [esp + 0x13], 0
jne 0x40eaf6
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40eb1b
push 0
push eax
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
je 0x40eb1f
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40eb1b
push 0
push eax
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x40eb3c
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40eb6f
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40eb61
mov bl, 1
lea eax, [esp + 0x860]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ea2c
mov byte [esp + 0x12], al
jmp 0x40ea2c
xor bl, bl
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret