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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x248], 0
mov esi, eax
je 0x40890b
cmp ebx, 0x14
je 0x40890b
cmp ebx, 0x90
je 0x40890b
cmp ebx, 0x91
je 0x40890b
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
or byte [ebp + ebx - 0x104], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
xor edx, edx
shl esi, 0x10
inc edx
or esi, edx
cmp byte [ebp + 8], dl
je 0x4088c1
cmp ebx, 0x2d
je 0x4088bb
mov eax, ebx
call fcn.004082b9
jmp 0x4088bd
mov al, dl
cmp al, dl
jne 0x4088c7
or esi, 0x1000000
mov ecx, dword [edi + 0x244]
test dl, cl
mov eax, 0x100
jne 0x4088df
test eax, ecx
jne 0x4088df
cmp ebx, 0x12
jne 0x4088fa
test cl, 8
jne 0x4088fa
test cx, 0x800
jne 0x4088fa
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x4088fd
push esi
push ebx
push eax
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
jmp 0x408938
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x40892d
cmp ebx, 0x2d
je 0x408921
mov eax, ebx
call fcn.004082b9
jmp 0x408923
mov al, dl
cmp al, dl
je 0x40892d
push esi
push ebx
xor ebx, ebx
jmp 0x408931
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.00407d02
push edi
mov edi, dword [edi + 4]
call fcn.00408ee9
pop edi
pop esi
pop ebx
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
push edi
mov ebx, eax
push 0
push ebx
mov edi, ecx
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
cmp dword [edi + 0x248], 0
mov esi, eax
je 0x408a21
cmp ebx, 0x14
je 0x408a21
cmp ebx, 0x90
je 0x408a21
cmp ebx, 0x91
je 0x408a21
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
shl esi, 0x10
or esi, 0xc0000001
cmp byte [ebp + 8], 1
je 0x4089c1
cmp ebx, 0x2d
je 0x4089bb
mov eax, ebx
call fcn.004082b9
jmp 0x4089bd
mov al, 1
cmp al, 1
jne 0x4089c7
or esi, 0x1000000
mov eax, dword [edi + 0x244]
test al, 1
jne 0x4089dc
test ax, 0x100
jne 0x4089dc
cmp ebx, 0x12
jne 0x4089f5
test al, 8
jne 0x4089f5
test ax, 0x800
jne 0x4089f5
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x4089fc
push esi
push ebx
push 0x101
push dword [edi + 0x248]
call dword [sym.imp.USER32.dll_PostMessageW]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x408a4d
cmp byte [ebp + 8], 1
je 0x408a41
cmp ebx, 0x2d
je 0x408a35
mov eax, ebx
call fcn.004082b9
jmp 0x408a37
mov al, 1
cmp al, 1
je 0x408a41
push esi
push ebx
push 2
jmp 0x408a45
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.00407d02
push edi
mov edi, dword [edi]
call fcn.00408ee9
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408ee9
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
test edi, edi
push esi
jl 0x408f7d
jne 0x408f01
push 0
jmp 0x408f77
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x219]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x408f76
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x408f76
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceFrequency]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
lea eax, [esp + 8]
push eax
call esi
mov eax, dword [esp + 8]
sub eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
sbb ecx, dword [esp + 0x14]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
fild qword [esp + 0x18]
fild qword [esp + 0x20]
fdivp st(1)
fmul qword [0x470338]
call fcn.00464806
cmp eax, edi
jb 0x408f34
jmp 0x408f7d
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408f84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
xor ebx, ebx
cmp word [eax], bx
push esi
mov esi, ecx
mov byte [ebp - 1], 1
mov dword [ebp - 0xc], ebx
jne 0x408fa3
xor al, al
jmp 0x4090c0
push eax
or eax, 0xffffffff
call fcn.0040d90e
mov ecx, dword [ebp + 0x10]
mov byte [ecx], bl
mov ecx, dword [ebp + 0xc]
push eax
mov dword [ebp - 0x10], eax
mov byte [edi], bl
mov byte [esi], bl
mov byte [ecx], bl
call fcn.0044f530
inc eax
push eax
call fcn.0044d3f6
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x408fea
cmp al, 0x5e
je 0x408fe6
cmp al, 0x21
je 0x408fe6
cmp al, 0x23
jne 0x40900e
cmp al, 0x2b
jne 0x408fef
mov eax, dword [ebp + 0xc]
jmp 0x408fff
cmp al, 0x5e
jne 0x408ff8
mov byte [esi], 1
jmp 0x40900b
cmp al, 0x21
jne 0x409004
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x40900b
cmp al, 0x23
jne 0x40900b
mov byte [edi], 1
inc ebx
jmp 0x408fd0
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x409070
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00408eac
test eax, eax
jne 0x40905c
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x476438]
call fcn.00462515
test eax, eax
pop ecx
pop ecx
je 0x40904e
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x40902f
cmp esi, 0x62
je 0x40905c
cmp byte [esi + 0x4765c0], 0
je 0x409062
mov byte [ebp - 1], 0
jmp 0x4090a2
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x4090a2
push dword [ebp - 0x18]
call dword [sym.imp.USER32.dll_VkKeyScanA]
mov ecx, dword [ebp + 8]
movsx eax, ax
test ax, 0x200
mov dword [ecx], eax
je 0x40908a
mov byte [esi], 1
test ax, 0x400
je 0x409096
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x4090a2
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044d460
push dword [ebp - 8]
call fcn.0044d460
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x40915f
Capabilities:
Find taskbar
Log keystrokes

Disassembly:
sub esp, 0x10
push ebp
push esi
mov esi, eax
xor ebp, ebp
cmp esi, ebp
push edi
jne 0x40917b
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x409193
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x409265
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 0x40924b
mov edi, dword [sym.imp.USER32.dll_MapVirtualKeyW]
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 edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x409339
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, eax
push edi
xor ebx, ebx
xor edi, edi
lea eax, [esi + 0x20]
cmp dword [eax], ebx
je 0x409356
inc edi
add eax, 8
cmp edi, 0x10
jl 0x409349
cmp edi, 0x10
jne 0x409362
xor eax, eax
jmp 0x409402
cmp byte [esi + 0x18], 1
jne 0x4093d9
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
lea eax, [esi + edi*8 + 0x1c]
push ebx
push 0x438
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
cmp dword [esi + 8], ebx
jne 0x4093b5
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x4093b5
push str.VirtualAllocEx
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, ebx
jne 0x4093c1
mov eax, 0x427b3d
mov ecx, dword [ebp + 0xc]
push 4
push 0x1000
push dword [ebp + 8]
lea esi, [esi + edi*8 + 0x20]
push ebx
push dword [ecx]
call eax
jmp 0x409400
push ebx
push dword [ebp + 8]
push ebx
push 4
push ebx
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
push ebx
push ebx
push ebx
push 0xf001f
mov dword [esi + edi*8 + 0x1c], eax
push eax
lea esi, [esi + edi*8 + 0x20]
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov dword [esi], eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x40ae87
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40af07
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40aeb0
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.0045041b
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40af06
mov eax, dword [esi]
test al, 0x20
je 0x40aecb
push dword [esi + 4]
push 2
push ebx
push 0x46ae30
call fcn.004505e5
mov dword [esi + 0xc], ebx
jmp 0x40af03
test al, 0x40
je 0x40aee8
push dword [esi + 4]
push 2
push ebx
push 0x46ae34
call fcn.004505e5
mov dword [esi + 0xc], 2
jmp 0x40af03
test al, al
jns 0x40af06
push dword [esi + 4]
push 3
push ebx
push str.rb
call fcn.004505e5
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40af3b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x46ae3c
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.004502fc
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40afc6
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.004509f1
push edi
mov ebx, eax
call fcn.004506d9
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40afa3
cmp byte [ebp + 8], 0xff
jne 0x40af92
cmp byte [ebp + 9], 0xfe
jne 0x40afa3
mov dword [esi + 0xc], 1
jmp 0x40afc1
cmp byte [ebp + 8], 0xfe
jne 0x40afa3
cmp byte [ebp + 9], 0xff
jne 0x40afa3
mov dword [esi + 0xc], eax
jmp 0x40afc1
cmp ebx, 3
jb 0x40afc5
cmp byte [ebp + 8], 0xef
jne 0x40afc5
cmp byte [ebp + 9], 0xbb
jne 0x40afc5
cmp byte [ebp + 0xa], 0xbf
jne 0x40afc5
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40b086
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40b0b6
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 0x40b0dc
and dword [edi], eax
push 1
push eax
push ebx
push dword [esi + 4]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
xor al, al
jmp 0x40b0de
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.004509f1
mov dword [edi], eax
push dword [esi + 4]
call fcn.00450a3b
add esp, 0x14
test eax, eax
je 0x40b0dc
and dword [edi], 0
jmp 0x40b0b2
mov al, 1
pop ebx
ret 4

Function at 0x40b3f7
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b476
cmp edi, 4
jle 0x40b408
push 4
pop edi
push 4
pop eax
sub eax, edi
push eax
lea eax, [edi + esi + 0x10]
push eax
lea eax, [esi + 0x10]
push eax
call fcn.00450c60
mov eax, dword [esi + 0x58]
sub eax, edi
lea eax, [eax + esi + 0x14]
push edi
push eax
mov eax, esi
sub eax, edi
add eax, 0x14
push eax
call fcn.0044f750
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.004509f1
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b476
push dword [esi + 4]
call fcn.00450a0c
test eax, eax
pop ecx
jne 0x40b471
push dword [esi + 4]
call fcn.00450a3b
test eax, eax
pop ecx
jne 0x40b471
pop edi
ret
or eax, 0xffffffff
pop edi
ret
mov ecx, dword [esi + 0x5c]
movzx eax, byte [ecx + esi + 0x14]
inc ecx
mov dword [esi + 0x5c], ecx
pop edi
ret

Function at 0x40b58f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0x14]
push edi
add eax, eax
mov dword [ebp + 0x14], eax
lea eax, [ebp - 4]
push eax
push 1
xor edi, edi
push edi
push dword [ebp + 0xc]
mov word [esi], di
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40b5dc
lea eax, [ebp + 0x14]
push eax
push esi
push edi
push edi
push dword [ebp + 0x10]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp + 0x14], edi
je 0x40b5d3
shr dword [ebp + 0x14], 1
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
leave
ret

Function at 0x40b5df
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 0x40b63f
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 0x40ba48
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
cmp edi, ebx
mov byte [0x477662], bl
je 0x40ba8e
mov byte [0x477663], 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 0x40bacf
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00451734
add esp, 0x18
mov esi, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [sym.imp.USER32.dll_MessageBoxW]
cmp esi, ebx
mov edi, eax
je 0x40baba
push 0xffffffffffffffff
push esi
mov byte [0x477663], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x477662], 1
jne 0x40bac8
or eax, 0xffffffff
jmp 0x40baca
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40bc52
test al, 0x10
je 0x40bc52
cmp byte [0x48984d], bl
je 0x40bc52
mov al, 1
jmp 0x40bca4
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40bc77
xor al, al
jmp 0x40bca3
cmp dword [ebp + 0x10], ebx
jne 0x40bc82
push dword [ebp + 0xc]
push ebx
jmp 0x40bc92
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40bc8f
push ebx
push dword [ebp + 0xc]
jmp 0x40bc93
push dword [ebp + 0xc]
push ebx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov al, 1
pop esi
pop ebx
pop ebp
ret
Function at 0x40bca7
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 sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
jne 0x40bcc7
xor al, al
jmp 0x40bddc
push ebx
push edi
push esi
call fcn.0044d3f6
pop ecx
push eax
push esi
push 0
push dword [ebp + 8]
mov dword [ebp - 4], eax
call sub.VERSION.dll_GetFileVersionInfoW
mov ebx, dword [ebp + 0x10]
push ebx
call fcn.0044d9c3
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0044d3f6
mov esi, 0x46a584
mov edi, eax
push esi
push edi
call fcn.0044d37c
push esi
push ebx
call fcn.0044d935
add esp, 0x18
test eax, eax
je 0x40bda2
push str.StringFileInfo_
push edi
call fcn.0044d352
push esi
push ebx
call fcn.0044dc06
add esp, 0x10
test eax, eax
jne 0x40bd99
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push str.VarFileInfoTranslation
push dword [ebp - 4]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40bd79
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.0040d555
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040d555
mov ebx, dword [ebp + 0x10]
jmp 0x40bd84
push str.04090000
push edi
call fcn.0044d352
pop ecx
pop ecx
push esi
push edi
call fcn.0044d352
push ebx
push edi
call fcn.0044d352
add esp, 0x10
jmp 0x40bda2
push ebx
push edi
call fcn.0044d352
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044d2c1
test eax, eax
pop ecx
pop ecx
jne 0x40bddf
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0044ff8a
push dword [ebp - 4]
and word [esi + 0x10], 0
call fcn.0044d460
push edi
call fcn.0044d460
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 sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x40be55
push esi
push ebx
call fcn.0044d935
test eax, eax
pop ecx
pop ecx
jne 0x40be2c
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.0044d9d9
add esp, 0x18
jmp 0x40be3f
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0044ff8a
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044d460
push edi
call fcn.0044d460
pop ecx
pop ecx
mov al, bl
jmp 0x40bdda
xor bl, bl
jmp 0x40be41

Function at 0x40be6e
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 0x40bea8
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40be9e
or eax, eax
jmp 0x40bea8
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40c043
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, 0xca8
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040beac
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40c088
test al, 0x10
je 0x40c088
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044d352
pop ecx
pop ecx
lea eax, [esp + 0xaa0]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x68c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0044fee5
add esp, 0x14
lea eax, [esp + 0x220]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40c159
cmp bl, 1
jne 0x40c159
test byte [esp + 0x220], 0x10
jne 0x40c131
lea eax, [esp + 0x680]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044d37c
lea eax, [esp + 0x478]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044d352
lea eax, [esp + 0x25c]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044d352
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x40c148
lea eax, [esp + 0x220]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c0d5
xor bl, bl
jmp 0x40c0d5
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 0x40c14a
Function at 0x40c15f
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, 0x12dc
call fcn.004528c0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x43c]
xor bl, bl
call fcn.0040beac
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x64c]
call fcn.0040beac
pop ecx
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x43c]
push eax
call fcn.0040bf9e
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x438]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c1dd
test al, 0x10
je 0x40c1dd
lea eax, [esp + 0x438]
push edi
push eax
call fcn.0044d352
pop ecx
pop ecx
lea eax, [esp + 0x648]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c200
test al, 0x10
je 0x40c200
lea eax, [esp + 0x648]
push edi
push eax
call fcn.0044d352
pop ecx
pop ecx
lea eax, [esp + 0x10d8]
push eax
lea eax, [esp + 0xaac]
push eax
lea eax, [esp + 0xcc0]
push eax
lea eax, [esp + 0xed4]
push eax
lea eax, [esp + 0x448]
push eax
call fcn.0044fee5
add esp, 0x14
lea eax, [esp + 0x858]
push eax
lea eax, [esp + 0x43c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c398
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40c398
test byte [esp + 0x858], 0x10
jne 0x40c373
lea eax, [esp + 0x648]
push eax
lea eax, [esp + 0x10dc]
push eax
lea eax, [esp + 0xab0]
push eax
lea eax, [esp + 0x890]
push eax
lea esi, [esp + 0x238]
call fcn.0040c3ab
lea eax, [esp + 0xed8]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044d37c
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044d352
lea eax, [esp + 0x8a4]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044d352
mov eax, esi
push eax
call fcn.0040be59
add esp, 0x2c
test al, al
je 0x40c309
cmp byte [ebp + 0x10], 0
je 0x40c354
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
mov eax, esi
push eax
je 0x40c362
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x228]
jne 0x40c346
cmp byte [esp + 0x13], 0
jne 0x40c32b
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
jmp 0x40c350
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c354
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
jmp 0x40c350
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c371
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40c3a4
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileW]
test eax, eax
je 0x40c396
mov bl, 1
lea eax, [esp + 0x858]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x40c25e
mov byte [esp + 0x12], al
jmp 0x40c25e
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