joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44e8b4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
mov ecx, 5
push 0
push 0
dec ecx
jne 0x44e8bc
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov esi, eax
mov eax, dword [ebp - 4]
call fcn.00404448
xor eax, eax
push ebp
push 0x44ea2e
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
push ebp
push 0x44ea04
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x14]
dec eax
test eax, eax
jl 0x44e9f6
inc eax
mov dword [ebp - 8], eax
xor ebx, ebx
lea ecx, [ebp - 0xc]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0xc]
mov edx, 0x44ea44
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x10]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x10]
mov edx, 0x44ea5c
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x14]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x14]
mov edx, 0x44ea80
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x18]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebp - 0x18]
mov edx, 0x44ea98
call fcn.004043a4
je 0x44e9ec
lea ecx, [ebp - 0x20]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov edx, dword [ebp - 4]
call fcn.004042a4
mov eax, dword [ebp - 0x1c]
mov edx, 6
call fcn.004082b4
push 0xffffffffffffffff
push dword [ebp - 4]
lea ecx, [ebp - 0x28]
mov edx, ebx
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
push dword [ebp - 0x28]
push 0x44eaac
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00404318
mov eax, dword [ebp - 0x24]
call fcn.00404458
push eax
lea edx, [ebp - 0x2c]
xor eax, eax
call fcn.004029e4
mov eax, dword [ebp - 0x2c]
call fcn.00404458
push eax
call sub.kernel32.dll_CopyFileA
inc ebx
dec dword [ebp - 8]
jne 0x44e906
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44ea0b
ret

Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x39e43685
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x25f42098
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40379e
Capabilities:
Write file on windows

Disassembly:
push 0xc
mov eax, 0x40527e
call fcn.00404d62
push dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
call fcn.00403bb0
xor ebx, ebx
mov dword [ebp - 4], ebx
push 0x1000
call fcn.00403edd
mov esi, eax
pop ecx
test esi, esi
je 0x403837
lea eax, [ebp + 0x10]
mov edx, 0x800
push eax
push dword [ebp - 0x10]
push ecx
mov ecx, esi
call fcn.004036d2
call dword [sym.imp.api_ms_win_core_console_l1_1_0.dll_GetConsoleOutputCP]
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push esi
push ebx
push eax
mov dword [ebp - 0x14], eax
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
mov edi, eax
push edi
call fcn.00403edd
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x40384d
cmp edi, 0xffffffff
jne 0x40382d
mov eax, dword [0x40600c]
cmp eax, 0x40600c
je 0x40382d
test byte [eax + 0x1c], 8
je 0x40382d
cmp byte [eax + 0x19], bl
jne 0x40382d
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00403718
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
xor ebx, ebx
mov edi, ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00403c37
mov eax, edi
call fcn.00404d48
ret
xor eax, eax
push eax
push eax
push edi
push ebx
push 0xffffffffffffffff
push esi
push eax
push dword [ebp - 0x14]
call dword [sym.imp.api_ms_win_core_string_l1_1_0.dll_WideCharToMultiByte]
push 0xfffffffffffffff5
call dword [sym.imp.api_ms_win_core_processenvironment_l1_1_0.dll_GetStdHandle]
push 0
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [edi - 1]
push ecx
push ebx
push eax
call dword [sym.imp.api_ms_win_core_file_l1_1_0.dll_WriteFile]
cmp byte [ebp + 8], 0
je 0x4038b3
call dword [sym.imp.wbemcomn.dll_GetMemLogObject]
push 0xffffffffffffffff
mov ecx, eax
call dword [sym.imp.wbemcomn.dll_public:_void___thiscall_CMemoryLog::Write_long_int_]
mov eax, dword [0x40600c]
cmp eax, 0x40600c
je 0x4038da
test byte [eax + 0x1c], 1
je 0x4038da
cmp byte [eax + 0x19], 2
jb 0x4038da
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xb
jmp 0x4038d4
mov eax, dword [0x40600c]
cmp eax, 0x40600c
je 0x4038da
test byte [eax + 0x1c], 1
je 0x4038da
cmp byte [eax + 0x19], 5
jb 0x4038da
push esi
push dword [eax + 0x14]
push dword [eax + 0x10]
push 0xc
pop ecx
call fcn.00403741
push esi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
push ebx
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
jmp 0x403839
Function at 0x4039fd
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x4060a4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor eax, eax
mov esi, edx
push eax
xor ebx, ebx
mov word [ebp - 0x210], ax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleHandleW]
push 0x104
lea ecx, [ebp - 0x418]
push ecx
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
test eax, eax
je 0x403b98
lea eax, [ebp - 0x428]
push eax
lea eax, [ebp - 0x418]
push eax
push 1
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoSizeExW]
mov dword [ebp - 0x41c], eax
cmp eax, 1
jl 0x403b98
push edi
push eax
call fcn.00403edd
mov edi, eax
pop ecx
test edi, edi
je 0x403b93
push edi
push dword [ebp - 0x41c]
lea eax, [ebp - 0x418]
push ebx
push eax
push 3
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_GetFileVersionInfoExW]
mov ebx, eax
test ebx, ebx
je 0x403b8b
and dword [ebp - 0x41c], 0
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x424]
mov dword [ebp - 0x420], 0x104
push eax
push 0x402200
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
test eax, eax
je 0x403b19
mov ecx, dword [ebp - 0x424]
push 0x401ff8
movsx eax, word [ecx + 2]
push eax
movsx eax, word [ecx]
push eax
push 0x402234
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.004036a7
add esp, 0x18
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
mov ebx, eax
test ebx, ebx
jne 0x403b59
push 0x401ff8
push 0x402270
lea eax, [ebp - 0x20c]
push 0x208
push eax
call fcn.004036a7
add esp, 0x10
lea eax, [ebp - 0x420]
push eax
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push edi
call dword [sym.imp.api_ms_win_core_version_l1_1_0.dll_VerQueryValueW]
mov ebx, eax
test ebx, ebx
je 0x403b8b
mov edx, dword [ebp - 0x41c]
push 0x64
pop ecx
sub edx, esi
lea eax, [ecx - 1]
test eax, eax
je 0x403b86
movzx eax, word [edx + esi]
test ax, ax
je 0x403b7f
mov word [esi], ax
add esi, 2
sub ecx, 1
jne 0x403b64
test ecx, ecx
jne 0x403b86
sub esi, 2
xor eax, eax
mov word [esi], ax
push edi
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete___void__]
pop ecx
mov eax, ebx
pop edi
jmp 0x403b9a
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00404aa0
leave
ret 4
Function at 0x403d01
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x18
mov eax, 0x4052ae
call fcn.00404d62
mov dword [ebp - 0x14], ecx
mov edi, dword [ebp + 0x28]
xor ebx, ebx
push 2
push ebx
push 0x406c50
mov dword [edi], 1
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0xc], ebx
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], ebx
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x403d4c
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov dword [edi + 4], eax
jmp 0x403dfe
mov edx, dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FreeLibrary]
lea ecx, [ebp - 0x24]
push esi
call fcn.00403e5f
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x2c], 0
je 0x403d69
push dword [ebp + 0x30]
jmp 0x403d6a
push ebx
push 0x406430
push 0x4022ac
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
je 0x403da8
push ebx
push esi
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LoadResource]
test eax, eax
je 0x403da8
push eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_LockResource]
push ebx
push esi
mov dword [ebp - 0x10], eax
call dword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_SizeofResource]
mov ecx, dword [ebp - 0x10]
mov ebx, eax
test ecx, ecx
jne 0x403db5
call dword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov ebx, eax
mov dword [edi + 4], ebx
jmp 0x403de2
mov edx, dword [ebp - 0x14]
push edi
push dword [ebp + 0x24]
push dword [ebp + 0x20]
mov eax, dword [edx]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
mov esi, dword [eax + 0x10]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ecx
push ebx
push edx
mov ecx, esi
call dword [0x408198]
call esi
mov ebx, eax
or dword [ebp - 4], 0xffffffff
cmp byte [ebp - 0x24], 0
jne 0x403dfc
push dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov ecx, esi
call dword [0x408198]
call esi
mov eax, ebx
call fcn.00404d48
ret 0x2c

Function at 0x404e90
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x405698
call fcn.004051a0
xor ecx, ecx
mov eax, dword [ebp + 8]
test eax, eax
je 0x404ef0
cmp eax, 0xffffffff
je 0x404ef0
mov dword [ebp - 4], ecx
mov edx, 0x5a4d
cmp word [eax], dx
jne 0x404ee9
mov edx, dword [eax + 0x3c]
test edx, edx
js 0x404ee9
cmp edx, 0x10000000
jae 0x404ee9
add eax, edx
mov dword [ebp - 0x1c], eax
mov ecx, dword [eax]
sub ecx, 0x4550
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
jmp 0x404ee6
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, ecx
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x404f70
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x404fae
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x404fa6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x404fb0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x404f96
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4050a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x4050d1
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4050d1
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x4050d1
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x421580
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffa87
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x134]
call fcn.00418240
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00418240
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x134]
call fcn.0041a3d0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.0041a3d0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.0041ad00
push 0x5c
push 0x2f
lea ecx, [ebp - 0x1bc]
call fcn.0041ad00
mov byte [ebp - 0x1bd], 0
lea ecx, [ebp - 0xac]
call fcn.0044dd50
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.0044ddd0
movzx edx, al
test edx, edx
je 0x42165e
lea ecx, [ebp - 0x1bc]
call fcn.00419650
push eax
lea ecx, [ebp - 0x134]
call fcn.00419650
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
jmp 0x42173c
lea ecx, [ebp - 0x134]
call fcn.004183d0
test eax, eax
jg 0x421680
lea ecx, [ebp - 0x1bc]
call fcn.004183d0
test eax, eax
jle 0x421713
lea ecx, [ebp - 0x24c]
call fcn.00418240
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.00418240
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.004217b0
add esp, 8
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.004217b0
add esp, 8
lea ecx, [ebp - 0x2d4]
call fcn.00418ce0
push eax
lea ecx, [ebp - 0x24c]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dl
mov byte [ebp - 0x1bd], dl
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.00418350
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00418350
jmp 0x42173c
lea ecx, [ebp - 0x1bc]
call fcn.00418ce0
push eax
lea ecx, [ebp - 0x134]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
movzx ecx, byte [ebp - 0x1bd]
test ecx, ecx
jne 0x421755
cmp dword [ebp + 0x10], 0
je 0x421755
mov ecx, dword [ebp + 0x10]
call fcn.00435890
mov dl, byte [ebp - 0x1bd]
mov byte [ebp - 0x2d5], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0044ddb0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00418350
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.00418350
mov al, byte [ebp - 0x2d5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x4218e0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffb0c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x94]
call fcn.00418240
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a3d0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041ad00
lea ecx, [ebp - 0x134]
call fcn.0044dd50
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
call fcn.0044ddd0
movzx ecx, al
test ecx, ecx
je 0x4219a8
lea ecx, [ebp - 0x94]
call fcn.00419650
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne dl
mov byte [ebp - 0x255], dl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418350
mov al, byte [ebp - 0x255]
jmp 0x421b7b
lea ecx, [ebp - 0x94]
call fcn.004183d0
cmp eax, 0x104
jle 0x421aae
lea ecx, [ebp - 0x1bc]
call fcn.00418240
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00421210
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.00418240
mov byte [ebp - 4], 3
push 0x64d69c
lea ecx, [ebp - 0x24c]
call fcn.00419e90
lea ecx, [ebp - 0x1bc]
call fcn.0041a0b0
push eax
lea ecx, [ebp - 0x24c]
call fcn.00419e90
lea ecx, [ebp - 0x24c]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x421a4f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x421a4f
mov dword [ebp - 0x1c0], 1
cmp dword [ebp - 0x1c0], 0
setne dl
mov byte [ebp - 0x256], dl
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00418350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.00418350
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418350
mov al, byte [ebp - 0x256]
jmp 0x421b7b
lea ecx, [ebp - 0x94]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x421b21
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
cmp dword [ebp + 0xc], 0
je 0x421b0e
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00435930
lea ecx, [ebp - 0x94]
call fcn.0041a0b0
push eax
push str.failedToDeleteFilepath
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
call eax
cmp dword [ebp - 0x254], 2
jne 0x421b21
mov dword [ebp - 0x250], 1
cmp dword [ebp - 0x250], 0
setne cl
mov byte [ebp - 0x257], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418350
mov al, byte [ebp - 0x257]
jmp 0x421b7b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x422b50
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffcc1
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0xffffffff
mov ecx, dword [ebp + 8]
call fcn.004183d0
test eax, eax
jne 0x422bbb
cmp dword [ebp + 0x14], 0
je 0x422bb4
push str.GetAttributes:_filename_is_empty
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x14]
mov edx, dword [eax + 0x14]
call edx
xor al, al
jmp 0x422d24
lea ecx, [ebp - 0x94]
call fcn.00418240
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a3d0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041ad00
lea ecx, [ebp - 0x94]
call fcn.004183d0
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x134]
call fcn.0044dd50
mov byte [ebp - 4], 1
cmp dword [ebp - 0x138], 0x104
jge 0x422c6c
lea ecx, [ebp - 0x94]
call fcn.00419330
movzx ecx, al
test ecx, ecx
jne 0x422c3b
lea ecx, [ebp - 0x134]
call fcn.0044ddd0
movzx edx, al
test edx, edx
je 0x422c6c
lea ecx, [ebp - 0x94]
call fcn.00419650
push eax
call fcn.004249c0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x422c67
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x422cec
cmp dword [ebp - 0x138], 0
jle 0x422cc2
lea ecx, [ebp - 0x1c4]
call fcn.00418240
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.004217b0
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.00418d00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.00418350
jmp 0x422cd9
lea ecx, [ebp - 0x94]
call fcn.00418d00
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp + 0xc]
cmp dword [eax], 0xffffffff
jne 0x422cec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
xor eax, eax
cmp dword [edx], 0xffffffff
setne al
mov byte [ebp - 0x1c5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418350
mov al, byte [ebp - 0x1c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x4230e0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffc6c
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x13c]
call fcn.00418240
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0041a3d0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x13c]
call fcn.0041ad00
lea ecx, [ebp - 0xac]
call fcn.0044dd50
mov byte [ebp - 4], 1
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xac]
call fcn.0044ddd0
movzx ecx, al
test ecx, ecx
je 0x423184
push 0
lea ecx, [ebp - 0x13c]
call fcn.00419650
push eax
call fcn.00424980
add esp, 8
mov dword [ebp - 0xb0], eax
jmp 0x4231fd
lea ecx, [ebp - 0x13c]
call fcn.004183d0
test eax, eax
jle 0x4231e3
lea ecx, [ebp - 0x1c4]
call fcn.00418240
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.004217b0
add esp, 8
push 0
lea ecx, [ebp - 0x1c4]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xb0], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.00418350
jmp 0x4231fd
push 0
lea ecx, [ebp - 0x13c]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x423253
cmp dword [ebp + 0xc], 0
je 0x423253
lea ecx, [ebp - 0x1ec]
call fcn.0041d9d0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1ec]
call fcn.00420c80
lea ecx, [ebp - 0x1ec]
call fcn.004b5930
push eax
push str.errorMsg
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov eax, dword [edx + 0x2c]
call eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1ec]
call fcn.0041dda0
cmp dword [ebp - 0xb0], 0
setne cl
mov byte [ebp - 0x1ed], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0044ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00418350
mov al, byte [ebp - 0x1ed]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret
Function at 0x4232b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ffcc1
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x6e8da0]
xor eax, ebp
mov dword [ebp - 0x98], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x94]
call fcn.00418240
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a3d0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041ad00
push 0
push 1
lea ecx, [ebp - 0x94]
push ecx
call fcn.00421ba0
add esp, 0xc
lea ecx, [ebp - 0x134]
call fcn.0044dd50
mov byte [ebp - 4], 1
mov dword [ebp - 0x138], 0
lea ecx, [ebp - 0x134]
call fcn.0044ddd0
movzx edx, al
test edx, edx
je 0x42336f
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x94]
call fcn.00419650
push eax
call fcn.004249a0
add esp, 8
movzx ecx, al
mov dword [ebp - 0x138], ecx
jmp 0x4233ec
lea ecx, [ebp - 0x94]
call fcn.004183d0
test eax, eax
jle 0x4233d0
lea ecx, [ebp - 0x1c4]
call fcn.00418240
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.004217b0
add esp, 8
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1c4]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x138], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1c4]
call fcn.00418350
jmp 0x4233ec
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x94]
call fcn.00418ce0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x138], eax
cmp dword [ebp - 0x138], 0
setne al
mov byte [ebp - 0x1c5], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044ddb0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418350
mov al, byte [ebp - 0x1c5]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.005dbda3
mov esp, ebp
pop ebp
ret

Function at 0x4249a0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
pop ebp
ret