joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b350
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp ebx, edi
jne 0x40b36a
mov eax, dword [ebp + 8]
cmp byte [eax + 9], 0
je 0x40b43d
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 0x40b408
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 [0x492490], eax
call esi
mov dword [ebp + 0xc], eax
test ebx, ebx
je 0x40b3dd
lea eax, [ebp - 0xc]
push eax
push ebx
call edi
mov ecx, dword [0x492490]
mov dword [0x49248c], eax
cmp ecx, eax
je 0x40b3d2
push 1
push eax
push ecx
call esi
mov dword [ebp - 8], eax
mov eax, dword [0x49248c]
push 1
push eax
push dword [ebp - 4]
call esi
mov dword [ebp - 0xc], eax
xor ecx, ecx
cmp dword [ebp + 0xc], ecx
jne 0x40b43c
cmp dword [ebp - 8], ecx
jne 0x40b43c
cmp dword [ebp - 0xc], ecx
jne 0x40b43c
mov eax, dword [0x492490]
cmp dword [ebp - 4], eax
jne 0x40b43c
cmp eax, dword [0x49248c]
jne 0x40b43c
mov eax, dword [ebp + 8]
mov dword [eax + 0x20], ecx
jmp 0x40b43c
mov esi, dword [sym.imp.USER32.dll_AttachThreadInput]
cmp ebx, edi
je 0x40b430
push edi
push dword [0x49248c]
push eax
call esi
mov ecx, dword [0x492490]
mov eax, dword [0x49248c]
cmp ecx, eax
je 0x40b430
push edi
push eax
push ecx
call esi
push edi
push dword [0x492490]
push dword [ebp - 4]
call esi
pop esi
pop edi
leave
ret 8

Function at 0x40b442
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 0x40b4bf
jne 0x40b456
push 0
jmp 0x40b4b9
cmp edi, 0xf
jae 0x40b4b8
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x18]
push eax
call esi
test eax, eax
je 0x40b4b8
mov dword [ebp - 4], edi
fild dword [ebp - 4]
test edi, edi
jns 0x40b47b
fadd qword [0x475bc0]
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.0040fbf8
fdivr qword [ebp - 0x20]
fcomp qword [ebp - 0x28]
fnstsw ax
test ah, 5
jnp 0x40b47e
jmp 0x40b4bf
push edi
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
leave
ret
Function at 0x40b4c3
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 0x40b4e6
xor al, al
jmp 0x40b66b
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.00403f7b
movzx eax, word [eax]
cmp eax, 0x2b
je 0x40b525
cmp eax, 0x5e
je 0x40b520
cmp eax, 0x21
je 0x40b520
cmp eax, 0x23
jne 0x40b54e
cmp eax, 0x2b
jne 0x40b52a
mov eax, dword [ebp + 0xc]
jmp 0x40b546
cmp eax, 0x5e
jne 0x40b534
mov eax, dword [ebp + 0x10]
jmp 0x40b546
cmp eax, 0x21
jne 0x40b53e
mov eax, dword [ebp + 0x14]
jmp 0x40b546
cmp eax, 0x23
jne 0x40b549
mov eax, dword [ebp + 0x18]
mov byte [eax], 1
inc dword [ebp - 0xc]
jmp 0x40b4ff
mov edx, dword [ebp - 0xc]
inc dword [ebp - 0xc]
mov eax, edi
call fcn.00403f7b
movzx eax, word [eax]
cmp eax, 0x7b
jne 0x40b628
push 0x40
pop eax
lea esi, [ebp - 0x20]
call fcn.0040414e
push edi
push 0x7d
lea edi, [ebp - 0xc]
mov eax, esi
call fcn.0040b305
test al, al
je 0x40b60a
push dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
push dword [esi*4 + 0x47b968]
call fcn.0045553b
pop ecx
pop ecx
test eax, eax
je 0x40b5a8
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 0x62
jl 0x40b587
cmp esi, 0x62
jne 0x40b602
xor edi, edi
lea eax, [ebp - 0x20]
call fcn.0040202d
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 0x40b5d9
lea ecx, [ebp - 0x20]
call fcn.00401a04
jmp 0x40b4df
test eax, 0x200
je 0x40b5e6
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test eax, 0x400
je 0x40b5f3
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x100
je 0x40b61b
mov eax, dword [ebp + 0xc]
mov byte [eax], 1
jmp 0x40b61b
cmp byte [esi + 0x47baf0], bl
je 0x40b60f
mov byte [ebp - 5], bl
jmp 0x40b61b
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 0x40b662
push eax
call dword [sym.imp.USER32.dll_VkKeyScanW]
cwde
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x40b4df
test eax, 0x200
je 0x40b648
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 1
test eax, 0x400
je 0x40b655
mov ecx, dword [ebp + 0x14]
mov byte [ecx], 1
test eax, 0x100
je 0x40b662
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 0x40b74f
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 0x40b76e
xor eax, eax
inc eax
jmp 0x40b880
push edi
xor edi, edi
cmp esi, edi
jne 0x40b783
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 0x40b797
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 0x40b875
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 0x40b851
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 0x40b858
mov dword [ebp - 0xc], 4
jmp 0x40b858
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 0x40b87c
mov dword [ebp - 0xc], 2
mov eax, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40dc5f
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 0x40dc7e
push esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
call fcn.0040dc38
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
xor edi, edi
cmp dword [ebp + 0xc], ebx
jbe 0x40dcc7
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 8]
jne 0x40dcaf
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 0x40dcc7
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 0x40dc85
add dword [esi + 0x10], edi
mov eax, edi
pop edi
adc dword [esi + 0x14], ebx
pop ebx
leave
ret 8
Function at 0x40dcd5
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
xor edi, edi
cmp dword [esi + 8], edi
je 0x40dd10
push esi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
call fcn.0040dc38
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.0040dc38
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 0x40df0b
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 0x40df52
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 0x40df54
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 0x40dfb4
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 0x40dff4
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.0040e1ed
mov esi, eax
jmp 0x40e0b0
lea eax, [ebp - 0x238]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x40e0b9
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.00457a9e
lea eax, [ebp - 0x640]
push eax
lea eax, [ebp - 0x43c]
push eax
call fcn.004555c6
push dword [ebp + 8]
lea eax, [ebp - 0x43c]
push eax
call fcn.0045553b
add esp, 0x24
test eax, eax
jne 0x40e09d
mov eax, dword [ebp - 0x230]
jmp 0x40e0ab
test esi, esi
je 0x40e0b0
mov eax, dword [ebp - 0x230]
cmp esi, eax
jne 0x40e0b0
mov dword [ebx], eax
mov byte [edi], 1
cmp byte [edi], 0
je 0x40e032
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
leave
ret

Function at 0x40e0c7
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1034
call fcn.004666e0
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 0x40e0f2
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.0040e1ed
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
test edi, edi
je 0x40e1e7
cmp byte [ebx], 0
jne 0x40e1e7
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 0x40e1d2
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.00457a9e
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x220]
push eax
call fcn.004555c6
push dword [ebp + 8]
lea eax, [ebp - 0x220]
push eax
call fcn.0045553b
add esp, 0x24
test eax, eax
jne 0x40e1bd
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x40e1cf
cmp dword [ebp - 8], 0
je 0x40e1d2
mov esi, dword [esi]
cmp dword [ebp - 8], esi
jne 0x40e1d2
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 0x40e114
pop edi
mov al, 1
pop esi
leave
ret
Function at 0x40e21c
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 [0x4803ce], bl
cmp edi, ebx
je 0x40e262
mov byte [0x4803cf], 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 0x40e2a5
push ebx
push ebx
mov dword [ebp - 8], edi
call fcn.00457e0f
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 0x40e290
push 0xffffffffffffffff
push esi
mov byte [0x4803cf], bl
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x4803ce], 1
jne 0x40e29e
or eax, 0xffffffff
jmp 0x40e2a0
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40e464
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 0x40e485
xor al, al
jmp 0x40e59d
push ebx
push edi
push esi
call fcn.00455667
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.00455251
xor ecx, ecx
push 2
add eax, 0x1a
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00455667
mov esi, 0x46e4b0
mov edi, eax
push esi
push edi
call fcn.004555f7
push esi
push ebx
call fcn.004571cc
add esp, 0x18
test eax, eax
je 0x40e562
push str.StringFileInfo_
push edi
call fcn.004555c6
push esi
push ebx
call fcn.0045754d
add esp, 0x10
test eax, eax
jne 0x40e559
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 0x40e539
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.0040fcb8
mov eax, dword [ebp - 0x10]
shr eax, 0x10
lea ebx, [edi + 0x28]
push eax
call fcn.0040fcb8
mov ebx, dword [ebp + 0x10]
jmp 0x40e544
push str.04090000
push edi
call fcn.004555c6
pop ecx
pop ecx
push esi
push edi
call fcn.004555c6
push ebx
push edi
call fcn.004555c6
add esp, 0x10
jmp 0x40e562
push ebx
push edi
call fcn.004555c6
pop ecx
pop ecx
push str.DefaultLangCodepage
push ebx
call fcn.0045553b
pop ecx
pop ecx
test eax, eax
jne 0x40e5a0
mov esi, dword [ebp + 0xc]
push 8
lea eax, [edi + 0x20]
push eax
push esi
call fcn.0045704a
push dword [ebp - 4]
xor eax, eax
mov word [esi + 0x10], ax
call fcn.0045526c
push edi
call fcn.0045526c
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 0x40e624
push esi
push ebx
call fcn.004571cc
pop ecx
pop ecx
test eax, eax
jne 0x40e5ee
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.0045732b
add esp, 0x18
jmp 0x40e60b
mov esi, dword [ebp + 0xc]
push 0x200
push dword [ebp - 8]
push esi
call fcn.0045704a
add esp, 0xc
xor eax, eax
mov word [esi + 0x400], ax
mov bl, 1
push dword [ebp - 4]
call fcn.0045526c
push edi
call fcn.0045526c
pop ecx
pop ecx
mov al, bl
jmp 0x40e59b
xor bl, bl
jmp 0x40e60d
Function at 0x40e63e
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 0x40e678
lea eax, [esp]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x40e66e
or eax, eax
jmp 0x40e678
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp]
mov esp, ebp
pop ebp
ret

Function at 0x40e7f2
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.0040e67c
pop ecx
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x40e837
test al, 0x10
je 0x40e837
lea eax, [esp + 0x18]
push str..
push eax
call fcn.004555c6
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.00457a9e
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 0x40e902
cmp bl, 1
jne 0x40e902
test byte [esp + 0x228], 0x10
jne 0x40e8da
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x17], bl
call fcn.004555f7
lea eax, [esp + 0x480]
push eax
lea eax, [esp + 0x24]
push eax
call fcn.004555c6
lea eax, [esp + 0x264]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.004555c6
add esp, 0x18
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x40e8f1
lea eax, [esp + 0x228]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40e881
xor bl, bl
jmp 0x40e881
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 0x40e8f3
Function at 0x40e908
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.004666e0
push ebx
push esi
push edi
push dword [ebp + 8]
lea eax, [esp + 0x444]
xor bl, bl
call fcn.0040e67c
pop ecx
push dword [ebp + 0xc]
lea eax, [esp + 0x654]
call fcn.0040e67c
pop ecx
lea eax, [esp + 0x650]
push eax
lea eax, [esp + 0x444]
push eax
call fcn.0040e771
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 0x40e986
test al, 0x10
je 0x40e986
lea eax, [esp + 0x440]
push edi
push eax
call fcn.004555c6
pop ecx
pop ecx
lea eax, [esp + 0x650]
push eax
call esi
cmp eax, 0xffffffff
je 0x40e9a9
test al, 0x10
je 0x40e9a9
lea eax, [esp + 0x650]
push edi
push eax
call fcn.004555c6
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.00457a9e
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 0x40eb3b
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0x12], 1
jne 0x40eb3b
test byte [esp + 0x860], 0x10
jne 0x40eb16
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.0040eb4e
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.004555f7
lea eax, [esp + 0xcd0]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.004555c6
lea eax, [esp + 0x8ac]
push eax
lea eax, [esp + 0x44]
push eax
call fcn.004555c6
mov eax, esi
push eax
call fcn.0040e628
add esp, 0x2c
test al, al
je 0x40eaac
cmp byte [ebp + 0x10], 0
je 0x40eaf7
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 0x40eb05
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
lea eax, [esp + 0x230]
jne 0x40eae9
cmp byte [esp + 0x13], 0
jne 0x40eace
push eax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x40eaf3
push 0
push eax
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
je 0x40eaf7
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x40eaf3
push 0
push eax
lea eax, [esp + 0x28]
push eax
call edi
test eax, eax
jne 0x40eb14
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
jmp 0x40eb47
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x40eb39
mov bl, 1
lea eax, [esp + 0x860]
push eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40ea04
mov byte [esp + 0x12], al
jmp 0x40ea04
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
Function at 0x40ed5d
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push 0x103
push dword [ebp + 8]
lea eax, [ebp - 0x20c]
push eax
call fcn.0045704a
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0x20c]
push eax
call fcn.00455251
add esp, 0x10
test eax, eax
je 0x40eda5
lea eax, [ebp + eax*2 - 0x20e]
cmp word [eax], 0x5c
jne 0x40eda5
xor ecx, ecx
mov word [eax], cx
push esi
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x40ee37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
cmp eax, 2
jne 0x40eddd
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
je 0x40ede2
mov al, 1
jmp 0x40ee3d
cmp eax, 3
jne 0x40ee3b
lea eax, [ebp - 0x20c]
push eax
call fcn.0040f873
mov esi, eax
push 0x5c
push esi
call fcn.00457f1a
add esp, 0xc
test eax, eax
jne 0x40ee08
push esi
call fcn.0045526c
pop ecx
jmp 0x40ee3b
push ebx
xor ecx, ecx
push esi
mov word [eax], cx
call fcn.0040ed5d
push esi
mov bl, al
call fcn.0045526c
pop ecx
pop ecx
test bl, bl
je 0x40ee32
push 0
lea eax, [ebp - 0x20c]
push eax
call edi
test eax, eax
setne bl
mov al, bl
pop ebx
jmp 0x40ee3d
test al, 0x10
jne 0x40edd9
xor al, al
pop edi
pop esi
leave
ret