joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425b1d
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
mov eax, dword [0x43a180]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
mov eax, pe_nt_image_headers32
cmp ebx, eax
ja 0x425b70
push eax
lea eax, [ebp - 0x204]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp eax, ebx
jne 0x425b70
push edi
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x425b78
push edi
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eaa4
leave
ret 8

Function at 0x426839
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43a180]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, ebp
mov esi, ecx
cmp dword [esi + 0x50], 0
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], eax
je 0x42688a
push edi
call fcn.00428a75
mov esi, eax
test esi, esi
je 0x4268ae
push 4
lea eax, [ebp + 0x10]
push eax
push 4
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
sete al
jmp 0x4268ae
push dword [ebp + 0x10]
lea eax, [ebp - 0x24]
push 0x42e234
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
push dword [esi + 0x64]
lea eax, [ebp - 0x24]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eaa4
leave
ret 0xc

Function at 0x427e88
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x43a180]
xor eax, ebp
cmp dword [ebp + 8], 0x800
mov dword [ebp - 4], eax
push esi
mov esi, ecx
lea eax, [ebp - 0xc]
jne 0x427eb8
push 0x42e2f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
jmp 0x427eca
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x427efc
lea eax, [ebp - 0xc]
push eax
push esi
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.00410cb1
add esp, 0x10
cmp eax, 0xffffffff
je 0x427efc
cmp eax, esi
jae 0x427efc
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x427efe
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0040eaa4
leave
ret
Function at 0x427f21
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x43a180]
push ebx
push esi
xor eax, ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push 0x42e3a4
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x28], ebx
xor esi, esi
call edi
push str.GetUserDefaultUILanguage
push eax
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
je 0x427fcb
call eax
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ebx, 0x3ff
mov edi, 0xfc00
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ecx, cx
and eax, edi
or eax, ecx
push eax
mov dword [ebp - 0x2c], ecx
call esi
push dword [ebp - 0x2c]
mov dword [ebp - 0x48], eax
call esi
push str.GetSystemDefaultUILanguage
push dword [ebp - 0x30]
mov dword [ebp - 0x44], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, ebx
movzx ebx, cx
and eax, edi
or eax, ebx
push eax
call esi
push ebx
mov dword [ebp - 0x40], eax
call esi
mov dword [ebp - 0x3c], eax
push 4
xor ebx, ebx
jmp 0x4280cd
call dword [sym.imp.KERNEL32.dll_GetVersion]
test eax, eax
jns 0x42807b
lea eax, [ebp - 0x2c]
push eax
push 0x20019
push ebx
push str.Control_PanelDesktopResourceLocale
push SysReAllocStringLen
mov dword [ebp - 0x2c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4280ce
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
push ebx
push ebx
push dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0x20
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428070
cmp dword [ebp - 0x34], 1
jne 0x428070
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x24]
push 0x42e314
push eax
call fcn.00410c7b
add esp, 0xc
cmp eax, 1
jne 0x428070
mov eax, dword [ebp - 0x50]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov dword [ebp - 0x28], eax
movzx eax, ax
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
push 2
mov dword [ebp - 0x44], eax
pop esi
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4280ce
push str.ntdll.dll
call edi
cmp eax, ebx
je 0x4280ce
lea ecx, [ebp - 0x28]
push ecx
push 0x427f0b
push 1
push 0x10
push eax
mov dword [ebp - 0x28], ebx
call dword [sym.imp.KERNEL32.dll_EnumResourceLanguagesW]
cmp word [ebp - 0x28], bx
je 0x4280ce
movzx eax, word [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_ConvertDefaultLocale]
mov ecx, eax
and ecx, 0x3ff
movzx edi, cx
and eax, 0xfc00
or eax, edi
push eax
call esi
push edi
mov dword [ebp - 0x48], eax
call esi
mov dword [ebp - 0x44], eax
push 2
pop esi
mov dword [ebp + esi*4 - 0x48], 0x800
inc esi
xor edi, edi
cmp esi, ebx
jle 0x4280f3
push dword [ebp + edi*4 - 0x48]
mov ecx, dword [ebp - 0x4c]
call fcn.00427e88
cmp eax, ebx
pop ecx
jne 0x4280f5
inc edi
cmp edi, esi
jl 0x4280dd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eaa4
leave
ret 4
Function at 0x428106
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push edi
xor edi, edi
mov dword [ecx + 0x9c], edi
cmp dword [str.SoftwareMicrosoftWindowsCurrentVersionPoliciesExplorer], edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
mov ebx, 0x439938
je 0x4281c2
push esi
lea eax, [ebp - 4]
push eax
push 1
push edi
push dword [ebx]
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4281aa
mov esi, dword [ebx + 4]
jmp 0x4281a4
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push edi
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428194
cmp dword [ebp - 0xc], 4
jne 0x428194
cmp dword [ebp - 8], edi
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 4]
je 0x42818c
or dword [eax + 0x9c], ecx
jmp 0x428194
not ecx
and dword [eax + 0x9c], ecx
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 4
mov dword [ebp - 0xc], edi
add esi, 8
mov eax, dword [esi]
cmp eax, edi
jne 0x428158
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add ebx, 8
cmp dword [ebx], edi
mov dword [ebp - 4], edi
jne 0x42813b
pop esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
inc eax
pop ebx
leave
ret

Function at 0x428585
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, 0x42b695
call fcn.00410280
sub esp, 0x228
mov eax, dword [0x43a180]
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], esp
lea edx, [ebp - 0x228]
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
push edx
push eax
push ecx
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x22c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov esi, eax
test esi, esi
jne 0x428693
push 0x104
lea eax, [ebp - 0x220]
push eax
push 0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov esi, eax
test esi, esi
jne 0x428667
and dword [ebp - 4], eax
lea eax, [ebp - 0x220]
push eax
lea ecx, [ebp - 0x224]
call fcn.00401d60
lea eax, [ebp - 0x224]
push eax
push dword [ebp - 0x228]
mov byte [ebp - 4], 1
call fcn.00428585
mov ecx, dword [ebp - 0x224]
mov esi, eax
test esi, esi
setne bl
add ecx, 0xfffffff0
mov byte [ebp - 4], 0
call fcn.00401560
test bl, bl
jne 0x428667
or dword [ebp - 4], 0xffffffff
jmp 0x4285d2
cmp esi, 0x103
je 0x428677
cmp esi, 0x3f2
jne 0x428687
push dword [edi]
push dword [ebp - 0x230]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x14]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040eaa4
leave
ret 8
Function at 0x428cc6
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov edi, dword [esp + 0x10]
test edi, edi
jle 0x428cfb
cmp edi, dword [esi + 0xc]
jge 0x428cfb
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x428cfb
cmp edi, dword [eax + 8]
jge 0x428cfb
mov eax, dword [eax + 0xc]
mov edi, dword [eax + edi*4]
jmp 0x428cfd
xor edi, edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, edi
pop edi
pop esi
pop ebx
ret 4

Function at 0x428e01
Capabilities:
Allocate thread local storage

Disassembly:
xor eax, eax
push esi
mov esi, ecx
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x18], 4
mov dword [esi + 4], eax
mov dword [esi + 8], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x428e35
jmp fcn.0041d5bc
lea eax, [esi + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, esi
pop esi
ret

Function at 0x428ea6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
lea esi, [edi + 0x1c]
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 8]
xor ebx, ebx
cmp eax, ebx
jle 0x428f9f
cmp eax, dword [edi + 0xc]
jge 0x428f9f
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov esi, eax
cmp esi, ebx
je 0x428ef7
mov ecx, dword [ebp + 8]
cmp ecx, dword [esi + 8]
jl 0x428f88
cmp dword [ebp + 0xc], ebx
je 0x428f88
jmp 0x428f21
push 0x10
call fcn.00428b92
cmp eax, ebx
je 0x428f0d
mov ecx, eax
call fcn.00428df8
mov esi, eax
jmp 0x428f0f
xor esi, esi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov ecx, dword [edi + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esi + eax], ecx
mov dword [edi + 0x14], esi
mov eax, dword [esi + 0xc]
cmp eax, ebx
jne 0x428f38
mov eax, dword [edi + 0xc]
shl eax, 2
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
jmp 0x428f48
mov ecx, dword [edi + 0xc]
push 2
shl ecx, 2
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_LocalReAlloc]
cmp eax, ebx
jne 0x428f5a
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call fcn.0041d5bc
mov ecx, dword [esi + 8]
mov dword [esi + 0xc], eax
mov edx, dword [edi + 0xc]
sub edx, ecx
shl edx, 2
push edx
lea eax, [eax + ecx*4]
push ebx
push eax
call fcn.00410220
mov eax, dword [edi + 0xc]
add esp, 0xc
push esi
mov dword [esi + 8], eax
push dword [edi]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 0xc]
cmp eax, ebx
je 0x428f9a
cmp ecx, dword [esi + 8]
jge 0x428f9a
mov edx, dword [ebp + 0xc]
mov dword [eax + ecx*4], edx
push dword [ebp - 4]
jmp 0x428fa0
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x42905e
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x42908c
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4290aa
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00428fc8
jmp 0x4290aa
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4290aa
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
push eax
mov ecx, esi
call fcn.00428fc8
test edi, edi
mov eax, edi
jne 0x429094
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
mov ecx, dword [0x43d6f4]
test ecx, ecx
je 0x42915d
jmp 0x42905d
ret 8
Function at 0x402570
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x200
lea eax, [esp + 0x100]
push ebx
push esi
push edi
push ebp
mov esi, ecx
push eax
push 0x100
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x214]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
test edi, edi
jle 0x4025fa
mov eax, dword [esp + 0x214]
mov bl, byte [eax + ebp]
cmp bl, 0x5c
jne 0x4025f1
mov byte [esp + ebp + 0x10], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4025f1
lea eax, [esp + 0x10]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esp + 0x10]
lea ecx, [esi + 0x50]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0x40]
lea edx, [esp + 0x10]
push edx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov byte [esp + ebp + 0x10], bl
inc ebp
cmp ebp, edi
jl 0x4025a5
lea eax, [esp + 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov eax, dword [esp + 0x214]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
dec edi
js 0x402633
mov eax, 0x5c
cmp byte [esp + edi + 0x10], al
je 0x40262e
dec edi
jns 0x402623
jmp 0x402633
mov byte [esp + edi + 0x10], 0
lea edi, [esi + 0x50]
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x40265f
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
mov ebx, dword [ecx]
call dword [ebx + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x200
ret 4
Function at 0x4030c0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x200
push esi
mov eax, dword [ecx + 4]
mov esi, ecx
test eax, eax
je 0x4030f5
push eax
lea eax, [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 4]
push ecx
mov ecx, esi
call fcn.00401640
lea ecx, [esp + 4]
push 5
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
pop esi
add esp, 0x200
ret

Function at 0x4037c0
Capabilities:
Create directory
Get common file path
Set current directory

Disassembly:
sub esp, 0x204
push ebx
push esi
mov esi, dword [esp + 0x210]
push edi
push ebp
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x403887
lea eax, [esp + 0x114]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
call edi
mov ebx, eax
test ebx, ebx
je 0x40381b
lea eax, [esp + 0x114]
push eax
call edi
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x204
ret
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
mov ebp, 2
mov dword [esp + 0x14], eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
cmp dword [esp + 0x10], ebp
jle 0x40386d
mov bl, byte [esi + ebp]
cmp bl, 0x5c
jne 0x403862
mov byte [esp + ebp + 0x14], 0
lea eax, [esp + 0x14]
push eax
call edi
test eax, eax
jne 0x403862
lea eax, [esp + 0x14]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [esp + ebp + 0x14], bl
inc ebp
cmp ebp, dword [esp + 0x10]
jl 0x40383d
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push esi
call edi
mov esi, eax
lea eax, [esp + 0x114]
push eax
call edi
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x204
ret

Function at 0x4038b0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x100
lea eax, [esp]
push esi
push edi
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ecx, dword [esp + 0x10c]
mov edi, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push ecx
call edi
mov esi, eax
lea eax, [esp + 8]
push eax
call edi
mov eax, esi
pop edi
pop esi
add esp, 0x100
ret
Function at 0x4039e0
Capabilities:
Create shortcut via ishelllink

Disassembly:
sub esp, 0x210
lea eax, [esp]
push esi
push eax
push 0x40c090
push 1
push 0
push 0x40c030
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jge 0x403a0e
xor eax, eax
pop esi
add esp, 0x210
ret
mov eax, dword [esp + 0x218]
mov ecx, dword [esp + 4]
push eax
push ecx
mov eax, dword [ecx]
call dword [eax + 0x50]
mov ecx, dword [esp + 0x21c]
mov edx, dword [esp + 4]
mov eax, dword [edx]
push ecx
push edx
call dword [eax + 0x2c]
mov ecx, dword [esp + 0x224]
mov edx, dword [esp + 0x220]
mov eax, dword [esp + 4]
push ecx
mov esi, dword [eax]
push edx
push eax
call dword [esi + 0x44]
mov ecx, dword [esp + 0x22c]
mov eax, dword [esp + 4]
mov esi, dword [eax]
push ecx
push eax
call dword [esi + 0x1c]
lea ecx, [esp + 8]
mov eax, dword [esp + 4]
push ecx
push 0x40c380
push eax
mov esi, dword [eax]
call dword [esi]
test eax, eax
jge 0x403a7f
xor eax, eax
pop esi
add esp, 0x210
ret
lea eax, [esp + 0xc]
push 0x104
mov ecx, dword [esp + 0x22c]
push eax
push 0xffffffffffffffff
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [esp + 0xc]
push 2
mov eax, dword [esp + 0xc]
push ecx
push eax
mov esi, dword [eax]
call dword [esi + 0x18]
mov esi, eax
mov eax, dword [esp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 8]
mov ecx, dword [esp + 4]
push ecx
mov eax, dword [ecx]
call dword [eax + 8]
mov eax, esi
pop esi
add esp, 0x210
ret

Function at 0x403d70
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Set file attributes

Disassembly:
sub esp, 0x1c0
lea eax, [esp]
push ebx
push esi
push edi
mov esi, dword [esp + 0x1d0]
push ebp
push esi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push eax
call edi
lea ecx, [esp + 0x10]
push str..
push ecx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
call ebx
lea ecx, [esp + 0x90]
lea eax, [esp + 0x10]
push ecx
mov ebp, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
push eax
call ebp
cmp eax, 0xffffffff
mov ebp, eax
je 0x403e38
cmp byte [esp + 0xbc], 0x2e
je 0x403e1e
lea eax, [esp + 0x10]
push esi
push eax
call edi
lea eax, [esp + 0x10]
push 0x40d184
push eax
call ebx
lea eax, [esp + 0xbc]
lea ecx, [esp + 0x10]
push eax
push ecx
call ebx
test byte [esp + 0x90], 0x10
je 0x403e03
lea eax, [esp + 0x10]
push eax
call fcn.00403d70
add esp, 4
jmp 0x403e1e
lea eax, [esp + 0x10]
push pe_nt_image_headers32
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [esp + 0x90]
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x403dbd
push ebp
call dword [sym.imp.KERNEL32.dll_FindClose]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c0
ret
Function at 0x403fe0
Capabilities:
Get file size

Disassembly:
sub esp, 0x110
lea eax, [esp + 0x10]
push ebx
push esi
push edi
push ebp
push 0x40d678
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [esp + 0x124]
lea eax, [esp + 0x20]
push ecx
xor edi, edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x20]
push edi
push eax
call dword [sym.imp.KERNEL32.dll__lopen]
cmp eax, 0xffffffff
mov esi, eax
je 0x404061
lea eax, [esp + 0x10]
push edi
push esi
mov dword [eax], edi
mov dword [eax + 4], edi
mov dword [eax + 8], edi
mov word [eax + 0xc], di
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xe
mov ebx, eax
jb 0x40405a
lea eax, [esp + 0x10]
push 0xe
push eax
mov ebp, dword [sym.imp.KERNEL32.dll__lread]
push esi
call ebp
cmp word [esp + 0x10], 0x4d42
je 0x40407b
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
mov ecx, dword [esp + 0x128]
xor eax, eax
pop ebp
pop edi
pop esi
mov dword [ecx], 0
pop ebx
add esp, 0x110
ret
sub ebx, 0xe
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov edi, eax
push ebx
push edi
push esi
call ebp
push edi
call fcn.004040c0
mov ecx, dword [esp + 0x12c]
add esp, 4
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll__lclose]
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x110
ret

Function at 0x405650
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x28
lea eax, [esp + 8]
push ebx
push esi
push edi
mov esi, dword [esp + 0x3c]
push ebp
push eax
mov edi, dword [sym.imp.USER32.dll_GetWindowRect]
push esi
call edi
lea eax, [esp + 0x28]
mov ecx, dword [esp + 0x44]
push eax
push ecx
call edi
mov ecx, dword [esp + 0x28]
mov ebx, dword [esp + 0x20]
sub ebx, ecx
mov ebp, dword [esp + 0x24]
sub ebp, dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.USER32.dll_ScreenToClient]
mov eax, dword [esp + 0x14]
push 0
mov ecx, dword [esp + 0x14]
push ebp
push ebx
push eax
push ecx
push esi
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [esp + 0x44]
push 0
push ecx
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
call esi
push 0x3ec
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push edi
call ebx
push 0
push eax
call esi
push 0x3fb
push edi
call ebx
push 0
push eax
call esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x28
ret

Function at 0x405700
Capabilities:
Get disk size

Disassembly:
sub esp, 0x60
mov eax, dword [0x40def8]
push esi
push eax
call fcn.004050f0
mov dx, word [0x40f238]
lea ecx, [esp + 0x18]
mov word [ecx], dx
add esp, 4
mov esi, eax
mov eax, 0x40f238
mov al, byte [0x40f23a]
lea edx, [esp + 4]
mov byte [ecx + 2], al
lea eax, [esp + 0x10]
lea ecx, [esp + 0xc]
push eax
lea eax, [esp + 0xc]
push ecx
lea ecx, [esp + 0x1c]
push edx
mov byte [esp + 0x23], 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x405761
mov eax, 1
pop esi
add esp, 0x60
ret
mov eax, dword [esp + 4]
imul eax, dword [esp + 8]
imul eax, dword [esp + 0xc]
cmp eax, esi
pop esi
sbb eax, eax
add esp, 0x60
inc eax
ret