joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51004104
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x51004334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x51004187
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x51004334
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x51004187
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x51004350
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x51004210
xor eax, eax
push ebp
push 0x51004209
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.51003f4c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x510041ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x51004370
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x510041ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51004210
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x5100432a
cmp byte [ebp - 0xd], 0
jne 0x51004257
cmp byte [ebp - 0x12], 0
je 0x5100432a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x51004270
dec ebx
cmp byte [ebx], 0x2e
je 0x5100427f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x5100426f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x5100432a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x510042bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x5100432a
cmp byte [ebp - 0xd], 0
je 0x5100432a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x5100432a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51004210
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x51004334
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x51004187
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x51004334
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x51004187
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x51004350
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x51004210
xor eax, eax
push ebp
push 0x51004209
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.51003f4c
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x510041ee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x51004370
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x510041ee
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51004210
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x5100432a
cmp byte [ebp - 0xd], 0
jne 0x51004257
cmp byte [ebp - 0x12], 0
je 0x5100432a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x51004270
dec ebx
cmp byte [ebx], 0x2e
je 0x5100427f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x5100426f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x5100432a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x510042bc
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x5100432a
cmp byte [ebp - 0xd], 0
je 0x5100432a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x5100432a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x510044c0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x51004526
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.510039b4
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.51002894
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x51004510
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5100452d
lea eax, [ebp - 0x10]
call fcn.51003760
ret

Function at 0x5100641c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x51006455
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.51003850
jmp 0x5100645e
mov eax, ebx
mov edx, esi
call fcn.510037b4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x51006468
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x51006489
mov al, byte [esp]
jmp 0x5100648b
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x51006b10
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x51006988
mov eax, dword [0x510093a4]
cmp byte [eax], 0
je 0x51006b8c
mov eax, dword [0x51009300]
call fcn.51002810
call fcn.510025ec
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.51005910
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x51006bd4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x51006bc2
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x510092e0]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5100a660]
call fcn.51003f10
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x51007580
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x510075e4
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.510039b4
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.510056f0
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x510075eb
lea eax, [ebp - 0xc]
call fcn.51003760
ret

Function at 0x51008204
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc0
push ebx
xor edx, edx
mov dword [ebp - 0x40], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5100828a
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x3c]
xor ecx, ecx
mov edx, 0x3c
call fcn.51002874
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x540
mov eax, ebx
call fcn.51003b60
mov dword [ebp - 0x2c], eax
lea edx, [ebp - 0x40]
mov eax, ebx
call fcn.510057e8
mov eax, dword [ebp - 0x40]
call fcn.51003b60
mov dword [ebp - 0x24], eax
mov eax, 0x51008298
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 5
lea eax, [ebp - 0x3c]
push eax
call sub.shell32.dll_ShellExecuteExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51008291
lea eax, [ebp - 0x40]
call fcn.51003760
ret
Function at 0x6af41ed0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x6af41f2b
cmp byte [esi + ebx - 1], 0xa
je 0x6af41eff
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x6af43118], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x40314f
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
xor ecx, ecx
test eax, eax
jne 0x403176
mov eax, ecx
mov dword [ebp - 4], eax
jmp 0x403179
mov eax, dword [ebp - 4]
push esi
mov esi, dword [ebp + 0xc]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.0040312b
pop esi
leave
ret 8

Function at 0x403d0a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x403d49
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x403d49
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403d49
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x403d49
cmp dword [ecx + 0x74], 0xe
jbe 0x403d49
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x409e7e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x409f1b
push ebx
push esi
call fcn.00409e47
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00409d90
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x409ec8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409f1a
push edi
push eax
call fcn.00408956
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x409ee8
call fcn.00408178
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x409f19
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00409d90
add esp, 0x20
test eax, eax
jne 0x409f07
push edi
call fcn.00408178
jmp 0x409f0f
push ebx
call fcn.00408178
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40a585
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413c78
push 0x413c70
push str.FlsAlloc
push 0x1e
call fcn.0040a446
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a5b9
push dword [ebp + 8]
mov ecx, esi
call dword [0x411144]
call esi
jmp 0x40a5bf
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40a603
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x413c88
push 0x413c80
push str.FlsGetValue
push 0x20
call fcn.0040a446
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40a63a
push dword [ebp + 8]
mov ecx, esi
call dword [0x411144]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x40fe60
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x40fe8d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40fe8d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x402960
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c854d
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x58be1c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov ebx, ecx
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4029bd
push esi
push edi
push 0x543f20
call fcn.00406980
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x20]
call fcn.004069c0
push esi
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
call fcn.00406b90
push 1
lea ecx, [ebp - 0x20]
call fcn.00406a90
push eax
mov ecx, ebx
call fcn.00406e90
push esi
push esi
test al, al
jne 0x402a16
push str.ERROR:_Failed_to_add_file_to_zip_file:__s_s_n
call fcn.00406980
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00406a50
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Added_to_archive:__s_s_n
call fcn.00406980
add esp, 0xc
lea ecx, [ebp - 0x20]
call fcn.00406a50
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402f30
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push ecx
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402f65
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x402f82
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x402fc6
push 0
lea eax, [ebp - 8]
push eax
lea eax, [edi - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x402fc6
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 4
lea eax, [ebp - 4]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x402fc6
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4148f0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9b06
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, eax
mov edi, dword [ebp + 0x14]
mov dword [ebx], 0
mov dword [ebp - 0x244], eax
mov dword [esi], 0xffffffff
call fcn.004109b0
test al, al
je 0x41495e
test edi, edi
je 0x414957
mov eax, dword [edi]
mov ecx, edi
push str.GetAttributes:_filename_is_empty
call dword [eax + 0x14]
xor al, al
jmp 0x414a48
push 0x118
lea eax, [ebp - 0x128]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x128]
call fcn.0040e0b0
push dword [ebp - 0x244]
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.0040e880
push 0x5c
push 0x2f
lea ecx, [ebp - 0x128]
call fcn.00410d30
lea ecx, [ebp - 0x128]
call fcn.0040fe30
test eax, eax
jle 0x414a12
push 0x118
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x240]
call fcn.0040e0b0
push edi
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00415260
add esp, 0xc
lea ecx, [ebp - 0x240]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea ecx, [ebp - 0x240]
mov dword [esi], eax
call fcn.0040e140
jmp 0x414a26
lea ecx, [ebp - 0x128]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi], eax
mov edi, dword [esi]
cmp edi, 0xffffffff
jne 0x414a37
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
mov edi, dword [esi]
lea ecx, [ebp - 0x128]
call fcn.0040e140
cmp edi, 0xffffffff
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret
Function at 0x415c60
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c8b86
mov eax, dword fs:[0]
push eax
sub esp, 0x238
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x240]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x14]
push 0x118
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x240]
call fcn.0040e0b0
push 0x118
lea eax, [ebp - 0x128]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x128]
call fcn.0040e0b0
push esi
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 1
call fcn.0040e880
push edi
lea ecx, [ebp - 0x128]
call fcn.0040e880
push 0x5c
push 0x2f
lea ecx, [ebp - 0x240]
call fcn.00410d30
push 0x5c
push 0x2f
lea ecx, [ebp - 0x128]
call fcn.00410d30
movzx eax, byte [ebp + 0x10]
lea ecx, [ebp - 0x128]
push eax
call fcn.004108b0
push eax
lea ecx, [ebp - 0x240]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
setne byte [ebp - 0x241]
test eax, eax
jne 0x415d55
test ebx, ebx
je 0x415d55
mov ecx, ebx
call fcn.00438790
lea ecx, [ebp - 0x128]
call fcn.0040e140
lea ecx, [ebp - 0x240]
call fcn.0040e140
mov al, byte [ebp - 0x241]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret

Function at 0x415d90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9cf6
mov eax, dword fs:[0]
push eax
sub esp, 0x234
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x128]
mov edi, dword [ebp + 0xc]
push 0x118
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x128]
call fcn.0040e0b0
push esi
lea ecx, [ebp - 0x128]
mov dword [ebp - 4], 0
call fcn.0040e880
push 0x5c
push 0x2f
lea ecx, [ebp - 0x128]
call fcn.00410d30
lea ecx, [ebp - 0x128]
call fcn.0040fe30
test eax, eax
jle 0x415e79
push 0x118
lea eax, [ebp - 0x240]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x240]
call fcn.0040e0b0
push 0
lea eax, [ebp - 0x240]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x128]
push eax
call fcn.00415260
add esp, 0xc
lea ecx, [ebp - 0x240]
push 0
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea ecx, [ebp - 0x240]
mov byte [ebp - 4], 0
mov esi, eax
call fcn.0040e140
jmp 0x415e8f
push 0
lea ecx, [ebp - 0x128]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov esi, eax
test esi, esi
jne 0x415eb3
test edi, edi
je 0x415eb3
mov eax, dword [edi]
mov ecx, edi
push 1
push str.createDirWin32
call dword [eax + 0x24]
mov ecx, edi
call fcn.00438790
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x28]
lea ecx, [ebp - 0x128]
call fcn.0040e140
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret
Function at 0x415f90
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9d41
mov eax, dword fs:[0]
push eax
mov eax, 0x1354
call fcn.004a53d0
mov eax, dword [0x58be1c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x112c]
mov edi, dword [ebp + 0xc]
push 0x118
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x112c]
call fcn.0040e0b0
push esi
lea ecx, [ebp - 0x112c]
mov dword [ebp - 4], 0
call fcn.0040e880
push 0x5c
push 0x2f
lea ecx, [ebp - 0x112c]
call fcn.00410d30
lea ecx, [ebp - 0x112c]
call fcn.0040fe30
cmp eax, 0x104
jle 0x41612f
push 0x118
lea eax, [ebp - 0x1244]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x1244]
call fcn.0040e0b0
lea ecx, [ebp - 0x1244]
mov byte [ebp - 4], 1
call fcn.00411660
lea eax, [ebp - 0x1360]
push eax
lea eax, [ebp - 0x1014]
push eax
push 0x800
lea ecx, [ebp - 0x112c]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [ebp - 0x1244]
test eax, eax
je 0x416090
lea eax, [ebp - 0x1014]
push eax
call fcn.004110c0
mov bl, 1
jmp 0x41609e
lea eax, [ebp - 0x112c]
push eax
call fcn.0040ec50
xor bl, bl
push 0x118
lea eax, [ebp - 0x135c]
push 0
push eax
call fcn.004a8410
add esp, 0xc
lea ecx, [ebp - 0x135c]
call fcn.0040e0b0
mov byte [ebp - 4], 2
test bl, bl
je 0x4160d7
push 0x4d0bd0
lea ecx, [ebp - 0x135c]
call fcn.0040e750
lea ecx, [ebp - 0x1244]
call fcn.004104e0
push eax
lea ecx, [ebp - 0x135c]
call fcn.0040e750
lea ecx, [ebp - 0x135c]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x416117
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
mov ecx, 1
cmove esi, ecx
lea ecx, [ebp - 0x135c]
call fcn.0040e140
lea ecx, [ebp - 0x1244]
call fcn.0040e140
jmp 0x416179
lea ecx, [ebp - 0x112c]
call fcn.004108b0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x41617b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test edi, edi
je 0x41616e
push ebx
mov ecx, edi
call fcn.00438880
lea eax, [ebp - 0x112c]
mov ecx, edi
push eax
push str.failedToDeleteFilepath
call fcn.004384c0
cmp ebx, 2
mov eax, 1
cmove esi, eax
test esi, esi
lea ecx, [ebp - 0x112c]
setne bl
call fcn.0040e140
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a4dea
mov esp, ebp
pop ebp
ret