joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408789
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_MapVirtualKeyA]
cmp dword [edi + 0x148], 0
mov esi, eax
je 0x40885f
cmp ebx, 0x14
je 0x40885f
cmp ebx, 0x90
je 0x40885f
cmp ebx, 0x91
je 0x40885f
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 0x408815
cmp ebx, 0x2d
je 0x40880f
mov eax, ebx
call fcn.0040820d
jmp 0x408811
mov al, dl
cmp al, dl
jne 0x40881b
or esi, 0x1000000
mov ecx, dword [edi + 0x144]
test dl, cl
mov eax, 0x100
jne 0x408833
test eax, ecx
jne 0x408833
cmp ebx, 0x12
jne 0x40884e
test cl, 8
jne 0x40884e
test cx, 0x800
jne 0x40884e
or esi, 0x20000000
push esi
push ebx
push 0x104
jmp 0x408851
push esi
push ebx
push eax
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40888c
xor edx, edx
inc edx
cmp byte [ebp + 8], dl
je 0x408881
cmp ebx, 0x2d
je 0x408875
mov eax, ebx
call fcn.0040820d
jmp 0x408877
mov al, dl
cmp al, dl
je 0x408881
push esi
push ebx
xor ebx, ebx
jmp 0x408885
push esi
push ebx
mov ebx, edx
mov eax, edi
call fcn.00407c56
push edi
mov edi, dword [edi + 4]
call fcn.00408e3d
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40889c
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_MapVirtualKeyA]
cmp dword [edi + 0x148], 0
mov esi, eax
je 0x408975
cmp ebx, 0x14
je 0x408975
cmp ebx, 0x90
je 0x408975
cmp ebx, 0x91
je 0x408975
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 0x408915
cmp ebx, 0x2d
je 0x40890f
mov eax, ebx
call fcn.0040820d
jmp 0x408911
mov al, 1
cmp al, 1
jne 0x40891b
or esi, 0x1000000
mov eax, dword [edi + 0x144]
test al, 1
jne 0x408930
test ax, 0x100
jne 0x408930
cmp ebx, 0x12
jne 0x408949
test al, 8
jne 0x408949
test ax, 0x800
jne 0x408949
or esi, 0x20000000
push esi
push ebx
push 0x105
jmp 0x408950
push esi
push ebx
push 0x101
push dword [edi + 0x148]
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp + ebx - 0x104]
xor byte [eax], 0x80
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_SetKeyboardState]
jmp 0x4089a1
cmp byte [ebp + 8], 1
je 0x408995
cmp ebx, 0x2d
je 0x408989
mov eax, ebx
call fcn.0040820d
jmp 0x40898b
mov al, 1
cmp al, 1
je 0x408995
push esi
push ebx
push 2
jmp 0x408999
push esi
push ebx
push 3
pop ebx
mov eax, edi
call fcn.00407c56
push edi
mov edi, dword [edi]
call fcn.00408e3d
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x408e3d
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 0x408ed1
jne 0x408e55
push 0
jmp 0x408ecb
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x119]
neg al
sbb eax, eax
and eax, 0x28
add eax, 0xf
cmp edi, eax
jae 0x408eca
mov esi, dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
lea eax, [esp + 0x10]
push eax
call esi
test eax, eax
je 0x408eca
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 [0x46c980]
call fcn.004634e6
cmp eax, edi
jb 0x408e88
jmp 0x408ed1
push edi
call dword [sym.imp.KERNEL32.DLL_Sleep]
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x408ed8
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 0x408ef6
xor al, al
jmp 0x409010
push eax
call fcn.0040ceec
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.0044d720
inc eax
push eax
call fcn.0044d086
add esp, 0xc
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x10]
mov al, byte [ecx + ebx]
cmp al, 0x2b
je 0x408f3a
cmp al, 0x5e
je 0x408f36
cmp al, 0x21
je 0x408f36
cmp al, 0x23
jne 0x408f5e
cmp al, 0x2b
jne 0x408f3f
mov eax, dword [ebp + 0xc]
jmp 0x408f4f
cmp al, 0x5e
jne 0x408f48
mov byte [esi], 1
jmp 0x408f5b
cmp al, 0x21
jne 0x408f54
mov eax, dword [ebp + 0x10]
mov byte [eax], 1
jmp 0x408f5b
cmp al, 0x23
jne 0x408f5b
mov byte [edi], 1
inc ebx
jmp 0x408f20
mov al, byte [ecx + ebx]
inc ebx
cmp al, 0x7b
mov byte [ebp - 0x18], al
mov dword [ebp - 0x14], ebx
jne 0x408fc0
mov ebx, dword [ebp - 8]
lea edx, [ebp - 0x14]
mov esi, ecx
add al, 2
call fcn.00408e00
test eax, eax
jne 0x408fac
mov esi, dword [ebp - 0xc]
push ebx
push dword [esi*4 + 0x472440]
call fcn.0044ced6
test eax, eax
pop ecx
pop ecx
je 0x408f9e
inc esi
cmp esi, 0x62
mov dword [ebp - 0xc], esi
jl 0x408f7f
cmp esi, 0x62
je 0x408fac
cmp byte [esi + 0x4725c8], 0
je 0x408fb2
mov byte [ebp - 1], 0
jmp 0x408ff2
mov eax, dword [esi*4 + str._f_b_b..__reepqrstuvwxyz________t___]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
jmp 0x408ff2
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 0x408fda
mov byte [esi], 1
test ax, 0x400
je 0x408fe6
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test ax, 0x100
je 0x408ff2
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
mov eax, dword [ebp + 8]
push dword [ebp - 0x10]
and dword [eax], 0xff
call fcn.0044d0f0
push dword [ebp - 8]
call fcn.0044d0f0
mov al, byte [ebp - 1]
pop ecx
pop ecx
pop esi
pop ebx
leave
ret 0xc
Function at 0x409045
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 0x409061
push ebp
push str.Shell_TrayWnd
call dword [sym.imp.USER32.dll_FindWindowA]
mov esi, eax
mov edi, dword [esp + 0x20]
push edi
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x409079
push 9
push edi
call dword [sym.imp.USER32.dll_ShowWindow]
push edi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
cmp eax, ebp
jne 0x40914b
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 0x409131
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 edi
pop esi
pop ebp
add esp, 0x10
ret 4
Function at 0x40921f
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 0x40923c
inc edi
add eax, 8
cmp edi, 0x10
jl 0x40922f
cmp edi, 0x10
jne 0x409248
xor eax, eax
jmp 0x4092e8
cmp byte [esi + 0x18], 1
jne 0x4092bf
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 0x40929b
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
cmp eax, ebx
mov dword [esi], eax
je 0x40929b
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 0x4092a7
mov eax, 0x427696
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 0x4092e6
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 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 0x40ad4d
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [esi]
test al, 3
je 0x40adcd
push ebx
xor ebx, ebx
inc ebx
test bl, al
je 0x40ad76
lea eax, [ebp - 8]
push eax
push dword [esi + 4]
call fcn.00450968
mov eax, dword [ebp - 8]
or eax, dword [ebp - 4]
pop ecx
pop ecx
jne 0x40adcc
mov eax, dword [esi]
test al, 0x20
je 0x40ad91
push dword [esi + 4]
push 2
push ebx
push 0x4699d8
call fcn.00450b32
mov dword [esi + 0xc], ebx
jmp 0x40adc9
test al, 0x40
je 0x40adae
push dword [esi + 4]
push 2
push ebx
push 0x4699dc
call fcn.00450b32
mov dword [esi + 0xc], 2
jmp 0x40adc9
test al, al
jns 0x40adcc
push dword [esi + 4]
push 3
push ebx
push 0x4699e0
call fcn.00450b32
mov dword [esi + 0xc], 4
add esp, 0x10
pop ebx
leave
ret

Function at 0x40ae01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and dword [esi + 0xc], 0
push edi
push 0x4699e4
push dword [ebp + 8]
mov byte [esi + 8], 0
call fcn.00450849
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x40ae8c
push ebx
push edi
push 3
lea eax, [ebp + 8]
push 1
push eax
call fcn.0045019d
push edi
mov ebx, eax
call fcn.00450c26
add esp, 0x14
push 2
pop eax
cmp ebx, eax
jb 0x40ae69
cmp byte [ebp + 8], 0xff
jne 0x40ae58
cmp byte [ebp + 9], 0xfe
jne 0x40ae69
mov dword [esi + 0xc], 1
jmp 0x40ae87
cmp byte [ebp + 8], 0xfe
jne 0x40ae69
cmp byte [ebp + 9], 0xff
jne 0x40ae69
mov dword [esi + 0xc], eax
jmp 0x40ae87
cmp ebx, 3
jb 0x40ae8b
cmp byte [ebp + 8], 0xef
jne 0x40ae8b
cmp byte [ebp + 9], 0xbb
jne 0x40ae8b
cmp byte [ebp + 0xa], 0xbf
jne 0x40ae8b
mov dword [esi + 0xc], 4
mov byte [esi + 8], 1
pop ebx
pop edi
pop ebp
ret 4
Function at 0x40af53
Capabilities:
Read file on windows

Disassembly:
test byte [esi], 4
push ebx
je 0x40af83
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 0x40afa9
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 0x40afab
push dword [esi + 4]
push dword [edi]
push 1
push dword [esp + 0x14]
call fcn.0045019d
mov dword [edi], eax
push dword [esi + 4]
call fcn.004501e7
add esp, 0x14
test eax, eax
je 0x40afa9
and dword [edi], 0
jmp 0x40af7f
mov al, 1
pop ebx
ret 4

Function at 0x40b2a8
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, dword [esi + 0x58]
cmp dword [esi + 0x5c], edi
jne 0x40b327
cmp edi, 4
jle 0x40b2b9
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.00450420
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.0044f370
push dword [esi + 4]
lea eax, [esi + 0x14]
push 0x40
push 1
push eax
mov dword [esi + 0x54], edi
call fcn.0045019d
and dword [esi + 0x5c], 0
add esp, 0x28
test eax, eax
mov dword [esi + 0x58], eax
jne 0x40b327
push dword [esi + 4]
call fcn.004501b8
test eax, eax
pop ecx
jne 0x40b322
push dword [esi + 4]
call fcn.004501e7
test eax, eax
pop ecx
jne 0x40b322
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 0x40b440
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 0x40b4a0
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 0x40b8c7
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 [0x473552], bl
je 0x40b90d
mov byte [0x473553], 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 0x40b94e
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.004514d7
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_MessageBoxA]
cmp esi, ebx
mov edi, eax
je 0x40b939
push 0xffffffffffffffff
push esi
mov byte [0x473553], bl
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp byte [0x473552], 1
jne 0x40b947
or eax, 0xffffffff
jmp 0x40b949
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40baaa
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_GetFileAttributesA]
xor ebx, ebx
cmp eax, 0xffffffff
je 0x40bace
test al, 0x10
je 0x40bace
cmp byte [0x47d63d], bl
je 0x40bace
mov al, 1
jmp 0x40bb20
push esi
push ebx
push 0x2000080
push 3
push ebx
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40baf3
xor al, al
jmp 0x40bb1f
cmp dword [ebp + 0x10], ebx
jne 0x40bafe
push dword [ebp + 0xc]
push ebx
jmp 0x40bb0e
cmp dword [ebp + 0x10], 1
push ebx
jne 0x40bb0b
push ebx
push dword [ebp + 0xc]
jmp 0x40bb0f
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 0x40bb23
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 0x40bb43
xor al, al
jmp 0x40bc46
push ebx
push edi
push esi
call fcn.0044d086
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.0044d720
add eax, 0x1a
push eax
call fcn.0044d086
mov esi, 0x469344
mov edi, eax
push esi
push edi
call fcn.0044cf30
push esi
push ebx
call fcn.0044d5b0
add esp, 0x18
test eax, eax
je 0x40bc0d
push str.StringFileInfo_
push edi
call fcn.0044cf40
push esi
push ebx
call fcn.0044d830
add esp, 0x10
test eax, eax
jne 0x40bc04
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 0x40bbe4
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
push ebx
push 4
lea edx, [edi + 0x10]
pop ecx
call fcn.0040d36f
shr ebx, 0x10
lea edx, [edi + 0x14]
push ebx
call fcn.0040d36f
mov ebx, dword [ebp + 0x10]
add esp, 8
jmp 0x40bbf1
push str.04090000
push edi
call fcn.0044cf40
pop ecx
pop ecx
push esi
push edi
call fcn.0044cf40
push ebx
push edi
call fcn.0044cf40
add esp, 0x10
jmp 0x40bc0d
push ebx
push edi
call fcn.0044cf40
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0044ced6
test eax, eax
pop ecx
pop ecx
jne 0x40bc49
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x10]
push eax
push esi
call fcn.0044fbe0
push dword [ebp - 4]
mov byte [esi + 8], 0
call fcn.0044d0f0
push edi
call fcn.0044d0f0
add esp, 0x14
mov al, 1
pop edi
pop ebx
pop esi
leave
ret
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 0x40bcbf
push esi
push ebx
call fcn.0044d5b0
test eax, eax
pop ecx
pop ecx
jne 0x40bc96
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.0044d7ab
add esp, 0x18
jmp 0x40bca9
push 0x200
push dword [ebp - 8]
push dword [ebp + 0xc]
call fcn.0044fbe0
add esp, 0xc
mov bl, 1
push dword [ebp - 4]
call fcn.0044d0f0
push edi
call fcn.0044d0f0
pop ecx
pop ecx
mov al, bl
jmp 0x40bc44
xor bl, bl
jmp 0x40bcab

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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x140
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40bd12
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x40bd08
or eax, eax
jmp 0x40bd12
push eax
call dword [sym.imp.KERNEL32.DLL_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret
Function at 0x40beb4
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, 0x670
push ebx
push esi
push dword [ebp + 8]
lea eax, [esp + 0x14]
mov byte [esp + 0x13], 0
call fcn.0040bd16
pop ecx
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40bef9
test al, 0x10
je 0x40bef9
lea eax, [esp + 0x10]
push str..
push eax
call fcn.0044cf40
pop ecx
pop ecx
lea eax, [esp + 0x570]
push eax
lea eax, [esp + 0x46c]
push eax
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x36c]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.0044fa34
add esp, 0x14
lea eax, [esp + 0x118]
push eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
mov bl, 1
je 0x40bfca
cmp bl, 1
jne 0x40bfca
test byte [esp + 0x118], 0x10
jne 0x40bfa2
lea eax, [esp + 0x360]
push eax
lea eax, [esp + 0x14]
push eax
mov byte [esp + 0x17], bl
call fcn.0044cf30
lea eax, [esp + 0x260]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.0044cf40
lea eax, [esp + 0x154]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0044cf40
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp eax, 1
jne 0x40bfb9
lea eax, [esp + 0x118]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40bf46
xor bl, bl
jmp 0x40bf46
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 0x40bfbb
Function at 0x40bfd0
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
sub esp, 0x98c
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x22c]
xor bl, bl
call fcn.0040bd16
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x334]
call fcn.0040bd16
pop ecx
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x22c]
push eax
call fcn.0040be11
mov esi, dword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
pop ecx
mov byte [esp + 0x17], al
pop ecx
lea eax, [esp + 0x228]
push eax
call esi
cmp eax, 0xffffffff
mov edi, str..
je 0x40c04a
test al, 0x10
je 0x40c04a
lea eax, [esp + 0x228]
push edi
push eax
call fcn.0044cf40
pop ecx
pop ecx
lea eax, [esp + 0x330]
push eax
call esi
cmp eax, 0xffffffff
je 0x40c06d
test al, 0x10
je 0x40c06d
lea eax, [esp + 0x330]
push edi
push eax
call fcn.0044cf40
pop ecx
pop ecx
lea eax, [esp + 0x890]
push eax
lea eax, [esp + 0x57c]
push eax
lea eax, [esp + 0x688]
push eax
lea eax, [esp + 0x794]
push eax
lea eax, [esp + 0x238]
push eax
call fcn.0044fa34
add esp, 0x14
lea eax, [esp + 0x438]
push eax
lea eax, [esp + 0x22c]
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x14], eax
mov byte [esp + 0x12], 1
je 0x40c205
mov edi, dword [sym.imp.KERNEL32.DLL_CopyFileA]
cmp byte [esp + 0x12], 1
jne 0x40c205
test byte [esp + 0x438], 0x10
jne 0x40c1e0
lea eax, [esp + 0x330]
push eax
lea eax, [esp + 0x894]
push eax
lea eax, [esp + 0x580]
push eax
lea eax, [esp + 0x470]
push eax
lea esi, [esp + 0x130]
call fcn.0040c218
lea eax, [esp + 0x798]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0044cf30
lea eax, [esp + 0x698]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.0044cf40
lea eax, [esp + 0x484]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.0044cf40
mov eax, esi
push eax
call fcn.0040bcc3
add esp, 0x2c
test al, al
je 0x40c176
cmp byte [ebp + 0x10], 0
je 0x40c1c1
mov eax, esi
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiA]
test eax, eax
mov eax, esi
push eax
je 0x40c1cf
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x120]
jne 0x40c1b3
cmp byte [esp + 0x13], 0
jne 0x40c198
push eax
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
jmp 0x40c1bd
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
je 0x40c1c1
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
jmp 0x40c1bd
push 0
push eax
lea eax, [esp + 0x20]
push eax
call edi
test eax, eax
jne 0x40c1de
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.DLL_FindClose]
xor al, al
jmp 0x40c211
lea eax, [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileA]
test eax, eax
je 0x40c203
mov bl, 1
lea eax, [esp + 0x438]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.DLL_FindNextFileA]
test eax, eax
jne 0x40c0cb
mov byte [esp + 0x12], al
jmp 0x40c0cb
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