joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54e874
Capabilities:
Copy file
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
xor eax, eax
push ebp
push 0x54e93d
push dword fs:[eax]
mov dword fs:[eax], esp
push dword [0x57a280]
push 0x54e954
lea eax, [ebp - 0xc]
call fcn.005464a4
push dword [ebp - 0xc]
push 0x54e960
lea eax, [ebp - 4]
mov edx, 4
call fcn.00404c70
push 0
mov eax, dword [ebp - 4]
call fcn.00404db0
mov ebx, eax
push ebx
lea edx, [ebp - 0x10]
xor eax, eax
call fcn.00403028
mov eax, dword [ebp - 0x10]
call fcn.00404db0
push eax
call sub.kernel32.dll_CopyFileA
mov edx, 0x54e970
mov eax, dword [ebp - 4]
call fcn.005513a0
call sub.kernel32.dll_GetCurrentProcessId
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x14]
call fcn.00409b34
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 8]
mov edx, 0x54e97c
call fcn.00404bfc
push 5
push 0
mov eax, dword [ebp - 8]
call fcn.00404db0
push eax
push ebx
push 0x54e980
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54e944
lea eax, [ebp - 0x14]
mov edx, 5
call fcn.004048f8
ret

Function at 0x54e9f8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push ebx
push esi
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da0
mov eax, dword [ebp + 0xc]
call fcn.00404da0
xor eax, eax
push ebp
push 0x54eb14
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
cmp word [eax + 0x42], 0
je 0x54ea71
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov ecx, 0x54eb2c
mov edx, 0x54eb40
call fcn.00550d50
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404bb8
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 0x10]
mov ebx, dword [eax - 4]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax - 4]
mov ecx, dword [eax + 0x38]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
cmp byte [ebp + 8], 0
je 0x54ea7b
xor ebx, ebx
jmp 0x54ea80
mov ebx, 1
sub esi, 1
jb 0x54ea8c
je 0x54eac1
dec esi
je 0x54eae9
jmp 0x54eaf1
push ebx
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.0040a39c
mov eax, dword [ebp - 0xc]
call fcn.00404db0
push eax
mov eax, dword [ebp + 0xc]
call fcn.00404db0
push eax
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
push 0x54eb4c
push 0
call sub.shell32.dll_ShellExecuteA
jmp 0x54eaf1
push 0
push dword [ebp - 4]
push 0x54eb5c
push dword [ebp + 0xc]
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404c70
mov eax, dword [ebp - 0x10]
xor ecx, ecx
mov edx, ebx
call fcn.0054718c
jmp 0x54eaf1
mov eax, dword [ebp - 4]
call fcn.0040a2fc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54eb1b
lea eax, [ebp - 0x10]
mov edx, 4
call fcn.004048f8
lea eax, [ebp + 0xc]
call fcn.004048d4
ret
Function at 0x54fed0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe6c
push ebx
xor ebx, ebx
mov dword [ebp - 0x194], ebx
mov dword [ebp - 0x190], ebx
mov dword [ebp - 0x18c], ebx
mov dword [ebp - 0x188], ebx
mov dword [ebp - 0x15c], ebx
mov ebx, ecx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x160], eax
lea eax, [ebp - 0x158]
mov edx, dword [0x40866c]
call fcn.004053d4
xor eax, eax
push ebp
push 0x55016e
push dword fs:[eax]
mov dword fs:[eax], esp
test bl, bl
je 0x54ffea
mov eax, dword [ebp - 0x160]
cmp word [eax + 0x42], 0
je 0x54ff84
lea eax, [ebp - 0x188]
push eax
mov ecx, 0x550184
mov edx, 0x55019c
mov eax, dword [ebp - 0x160]
call fcn.00550d50
lea eax, [ebp - 0x188]
mov edx, dword [ebp - 0x164]
call fcn.00404bb8
mov edx, dword [ebp - 0x188]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
xor eax, eax
mov dword [ebp - 0x182], eax
xor eax, eax
mov dword [ebp - 0x182], eax
mov dword [ebp - 0x17e], 3
lea eax, [ebp - 0x18c]
mov ecx, 0x5501b4
mov edx, dword [ebp - 0x164]
call fcn.00404bfc
mov eax, dword [ebp - 0x18c]
call fcn.00404db0
mov dword [ebp - 0x17a], eax
mov eax, 0x5501b8
mov dword [ebp - 0x176], eax
mov word [ebp - 0x172], 0x414
lea eax, [ebp - 0x182]
push eax
call sub.shell32.dll_SHFileOperationA
jmp 0x550124
lea eax, [ebp - 0x15c]
mov edx, dword [ebp - 0x164]
call fcn.0040496c
mov eax, dword [ebp - 0x160]
cmp word [eax + 0x42], 0
je 0x550050
lea eax, [ebp - 0x190]
push eax
mov ecx, 0x550184
mov edx, 0x55019c
mov eax, dword [ebp - 0x160]
call fcn.00550d50
lea eax, [ebp - 0x190]
mov edx, dword [ebp - 0x15c]
call fcn.00404bb8
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x160]
mov ecx, dword [eax + 0x38]
mov ebx, dword [ebp - 0x160]
mov eax, dword [ebx + 0x44]
call dword [ebx + 0x40]
mov eax, dword [ebp - 0x15c]
call fcn.00404bb0
mov edx, dword [ebp - 0x15c]
cmp byte [edx + eax - 1], 0x5c
jne 0x550085
mov eax, dword [ebp - 0x15c]
call fcn.00404bb0
mov edx, eax
lea eax, [ebp - 0x15c]
mov ecx, 1
call fcn.00404e50
lea eax, [ebp - 0x194]
mov ecx, 0x5501c4
mov edx, dword [ebp - 0x15c]
call fcn.00404bfc
mov eax, dword [ebp - 0x194]
lea ecx, [ebp - 0x158]
mov edx, 0x3f
call fcn.0040a26c
test eax, eax
jne 0x550102
xor eax, eax
push ebp
push 0x5500fb
push dword fs:[eax]
mov dword fs:[eax], esp
push ebp
call fcn.0054fdc8
pop ecx
jmp 0x5500d3
push ebp
call fcn.0054fdc8
pop ecx
lea eax, [ebp - 0x158]
call fcn.0040a2bc
test eax, eax
je 0x5500cc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550102
lea eax, [ebp - 0x158]
call fcn.0040a2e0
ret
mov eax, dword [ebp - 0x164]
call fcn.0054fc90
test al, al
je 0x550124
mov cl, 1
mov edx, dword [ebp - 0x164]
mov eax, dword [ebp - 0x160]
call fcn.0054fed0
mov eax, dword [ebp - 0x164]
call fcn.0040a03c
mov ebx, eax
xor bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550175
lea eax, [ebp - 0x194]
mov edx, 4
call fcn.004048f8
lea eax, [ebp - 0x15c]
call fcn.004048d4
lea eax, [ebp - 0x158]
mov edx, dword [0x40866c]
call fcn.004054a4
ret
Function at 0x550d94
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], ecx
mov ebx, edx
mov esi, eax
xor eax, eax
push ebp
push 0x550e6b
push dword fs:[eax]
mov dword fs:[eax], esp
cmp word [esi + 0x42], 0
je 0x550de8
lea eax, [ebp - 0x24]
push eax
mov ecx, 0x550e84
mov edx, 0x550e9c
mov eax, esi
call fcn.00550d50
lea eax, [ebp - 0x24]
mov edx, ebx
call fcn.00404bb8
mov edx, dword [ebp - 0x24]
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x44]
call dword [esi + 0x40]
xor edx, edx
mov eax, ebx
call fcn.0040a1d8
xor eax, eax
mov dword [ebp - 0x1f], eax
xor eax, eax
mov dword [ebp - 0x1f], eax
mov dword [ebp - 0x1b], 3
lea eax, [ebp - 0x28]
mov ecx, 0x550eb4
mov edx, ebx
call fcn.00404bfc
mov eax, dword [ebp - 0x28]
call fcn.00404db0
mov dword [ebp - 0x17], eax
mov eax, 0x550eb8
mov dword [ebp - 0x13], eax
mov word [ebp - 0xf], 0x14
lea eax, [ebp - 0x1f]
push eax
call sub.shell32.dll_SHFileOperationA
test eax, eax
sete byte [ebp - 1]
mov eax, ebx
call fcn.0040a02c
test al, al
je 0x550e50
mov edx, 0x550ec4
mov eax, ebx
call fcn.005513a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x550e72
lea eax, [ebp - 0x28]
mov edx, 2
call fcn.004048f8
ret

Function at 0x550f0c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef4
mov ebx, edx
push esp
push eax
push 0
call sub.shell32.dll_SHGetSpecialFolderLocation
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
call sub.shell32.dll_SHGetPathFromIDListA
mov eax, ebx
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.00404b44
add esp, 0x10c
pop ebx
ret

Function at 0x550f48
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemDirectoryA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x550f93
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
add esp, 0x100
pop ebx
ret

Function at 0x550f9c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffef8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
test eax, eax
je 0x550fed
mov eax, ebx
mov edx, esp
mov ecx, 0x105
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x551003
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
jmp 0x551003
mov ecx, 0x551014
mov dl, 1
mov eax, dword [0x40868c]
call fcn.0040dd30
call fcn.00404248
add esp, 0x108
pop ebx
ret
Function at 0x5510b8
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xffffff00
mov ebx, eax
push esp
push pe_nt_image_headers32
call sub.kernel32.dll_GetTempPathA
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00404b44
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, dword [ebx]
cmp byte [edx + eax - 1], 0x5c
jne 0x5510ff
mov eax, dword [ebx]
call fcn.00404bb0
mov edx, eax
mov eax, ebx
mov ecx, 1
call fcn.00404e50
add esp, 0x100
pop ebx
ret

Function at 0x5511bc
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffe8
call fcn.00551108
cmp al, 3
je 0x5511dd
push esp
push 0xf00ff
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
je 0x551230
call fcn.00551108
cmp al, 3
je 0x551227
lea eax, [esp + 0xc]
push eax
push 0x551234
push 0
call sub.advapi32.dll_LookupPrivilegeValueA
mov dword [esp + 8], 1
mov dword [esp + 0x14], 2
xor eax, eax
mov dword [esp + 4], eax
lea eax, [esp + 4]
push eax
push 0
push 0
lea eax, [esp + 0x14]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
push 0
push 2
call sub.user32.dll_ExitWindowsEx
add esp, 0x18
ret
Function at 0x5513a0
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404da0
mov eax, dword [ebp - 8]
call fcn.00404da0
xor eax, eax
push ebp
push 0x551527
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_GetVersion_1
mov ebx, eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea edx, [ebp - 0xc]
mov eax, 8
call fcn.00409b84
mov eax, dword [ebp - 0xc]
cmp byte [eax], 0x30
jne 0x551438
mov eax, dword [ebp - 8]
mov edx, 0x55153c
call fcn.00404cfc
jne 0x55141a
push 4
push 0
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5514ff
push 5
mov eax, dword [ebp - 8]
call fcn.00404db0
push eax
mov eax, dword [ebp - 4]
call fcn.00404db0
push eax
call sub.kernel32.dll_MoveFileExA
jmp 0x5514ff
mov dl, 1
mov eax, dword [0x41cbec]
call fcn.00403974
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x5514f8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov ecx, 0x551548
mov edx, dword [0x57a2d0]
call fcn.00404bfc
mov eax, dword [ebp - 0x14]
call fcn.0040a02c
test al, al
jne 0x551483
mov edx, 0x551560
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
jmp 0x5514a1
lea eax, [ebp - 0x18]
mov ecx, 0x551548
mov edx, dword [0x57a2d0]
call fcn.00404bfc
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x68]
push dword [ebp - 8]
push 0x551578
push dword [ebp - 4]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.00404c70
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
call fcn.0042048c
lea eax, [ebp - 0x20]
mov ecx, 0x551548
mov edx, dword [0x57a2d0]
call fcn.00404bfc
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x74]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5514ff
mov eax, dword [ebp - 0x10]
call fcn.004039a4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55152e
lea eax, [ebp - 0x20]
mov edx, 4
call fcn.004048f8
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004048f8
ret
Function at 0x41bb18
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x41bb1e
ret
Function at 0x421470
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdf17
mov eax, dword fs:[0]
push eax
sub esp, 0x2cc
mov eax, dword [0x6a1da0]
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.00418120
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00418120
mov byte [ebp - 4], 1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x134]
call fcn.0041a2b0
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x1bc]
call fcn.0041a2b0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x134]
call fcn.0041abe0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x1bc]
call fcn.0041abe0
mov byte [ebp - 0x1bd], 0
lea ecx, [ebp - 0xac]
call fcn.0044dc60
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xac]
call fcn.0044dce0
movzx edx, al
test edx, edx
je 0x42154e
lea ecx, [ebp - 0x1bc]
call fcn.00419530
push eax
lea ecx, [ebp - 0x134]
call fcn.00419530
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
setne al
mov byte [ebp - 0x1bd], al
jmp 0x42162c
lea ecx, [ebp - 0x134]
call fcn.004182b0
test eax, eax
jg 0x421570
lea ecx, [ebp - 0x1bc]
call fcn.004182b0
test eax, eax
jle 0x421603
lea ecx, [ebp - 0x24c]
call fcn.00418120
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2d4]
call fcn.00418120
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x24c]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.004216a0
add esp, 8
lea eax, [ebp - 0x2d4]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.004216a0
add esp, 8
lea ecx, [ebp - 0x2d4]
call fcn.00418bc0
push eax
lea ecx, [ebp - 0x24c]
call fcn.00418bc0
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.00418230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x24c]
call fcn.00418230
jmp 0x42162c
lea ecx, [ebp - 0x1bc]
call fcn.00418bc0
push eax
lea ecx, [ebp - 0x134]
call fcn.00418bc0
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 0x421645
cmp dword [ebp + 0x10], 0
je 0x421645
mov ecx, dword [ebp + 0x10]
call fcn.004357b0
mov dl, byte [ebp - 0x1bd]
mov byte [ebp - 0x2d5], dl
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xac]
call fcn.0044dcc0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1bc]
call fcn.00418230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x134]
call fcn.00418230
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.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x4217d0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cdf9c
mov eax, dword fs:[0]
push eax
sub esp, 0x24c
mov eax, dword [0x6a1da0]
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.00418120
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a2b0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041abe0
lea ecx, [ebp - 0x134]
call fcn.0044dc60
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x134]
call fcn.0044dce0
movzx ecx, al
test ecx, ecx
je 0x421898
lea ecx, [ebp - 0x94]
call fcn.00419530
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.0044dcc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418230
mov al, byte [ebp - 0x255]
jmp 0x421a6b
lea ecx, [ebp - 0x94]
call fcn.004182b0
cmp eax, 0x104
jle 0x42199e
lea ecx, [ebp - 0x1bc]
call fcn.00418120
mov byte [ebp - 4], 2
lea eax, [ebp - 0x1bc]
push eax
lea ecx, [ebp - 0x94]
push ecx
call fcn.00421100
add esp, 8
lea ecx, [ebp - 0x24c]
call fcn.00418120
mov byte [ebp - 4], 3
push 0x61b5bc
lea ecx, [ebp - 0x24c]
call fcn.00419d70
lea ecx, [ebp - 0x1bc]
call fcn.00419f90
push eax
lea ecx, [ebp - 0x24c]
call fcn.00419d70
lea ecx, [ebp - 0x24c]
call fcn.00418bc0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x1c0], eax
cmp dword [ebp - 0x1c0], 0
jne 0x42193f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x42193f
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.00418230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x1bc]
call fcn.00418230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x134]
call fcn.0044dcc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418230
mov al, byte [ebp - 0x256]
jmp 0x421a6b
lea ecx, [ebp - 0x94]
call fcn.00418bc0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x421a11
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x254], eax
cmp dword [ebp + 0xc], 0
je 0x4219fe
mov eax, dword [ebp - 0x254]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.00435850
lea ecx, [ebp - 0x94]
call fcn.00419f90
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 0x421a11
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.0044dcc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418230
mov al, byte [ebp - 0x257]
jmp 0x421a6b
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x98]
xor ecx, ebp
call fcn.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x422a40
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce151
mov eax, dword fs:[0]
push eax
sub esp, 0x1bc
mov eax, dword [0x6a1da0]
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.004182b0
test eax, eax
jne 0x422aab
cmp dword [ebp + 0x14], 0
je 0x422aa4
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 0x422c14
lea ecx, [ebp - 0x94]
call fcn.00418120
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x94]
call fcn.0041a2b0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x94]
call fcn.0041abe0
lea ecx, [ebp - 0x94]
call fcn.004182b0
mov dword [ebp - 0x138], eax
lea ecx, [ebp - 0x134]
call fcn.0044dc60
mov byte [ebp - 4], 1
cmp dword [ebp - 0x138], 0x104
jge 0x422b5c
lea ecx, [ebp - 0x94]
call fcn.00419210
movzx ecx, al
test ecx, ecx
jne 0x422b2b
lea ecx, [ebp - 0x134]
call fcn.0044dce0
movzx edx, al
test edx, edx
je 0x422b5c
lea ecx, [ebp - 0x94]
call fcn.00419530
push eax
call fcn.004248b0
add esp, 4
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0xffffffff
jne 0x422b57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x422bdc
cmp dword [ebp - 0x138], 0
jle 0x422bb2
lea ecx, [ebp - 0x1c4]
call fcn.00418120
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x94]
push eax
call fcn.004216a0
add esp, 8
lea ecx, [ebp - 0x1c4]
call fcn.00418be0
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.00418230
jmp 0x422bc9
lea ecx, [ebp - 0x94]
call fcn.00418be0
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 0x422bdc
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.0044dcc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.00418230
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.005aec53
mov esp, ebp
pop ebp
ret
Function at 0x422fd0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ce0fc
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x6a1da0]
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.00418120
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x13c]
call fcn.0041a2b0
push 0x5c
push 0x2f
lea ecx, [ebp - 0x13c]
call fcn.0041abe0
lea ecx, [ebp - 0xac]
call fcn.0044dc60
mov byte [ebp - 4], 1
mov dword [ebp - 0xb0], 0
lea ecx, [ebp - 0xac]
call fcn.0044dce0
movzx ecx, al
test ecx, ecx
je 0x423074
push 0
lea ecx, [ebp - 0x13c]
call fcn.00419530
push eax
call fcn.00424870
add esp, 8
mov dword [ebp - 0xb0], eax
jmp 0x4230ed
lea ecx, [ebp - 0x13c]
call fcn.004182b0
test eax, eax
jle 0x4230d3
lea ecx, [ebp - 0x1c4]
call fcn.00418120
mov byte [ebp - 4], 2
lea edx, [ebp - 0x1c4]
push edx
lea eax, [ebp - 0x13c]
push eax
call fcn.004216a0
add esp, 8
push 0
lea ecx, [ebp - 0x1c4]
call fcn.00418bc0
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.00418230
jmp 0x4230ed
push 0
lea ecx, [ebp - 0x13c]
call fcn.00418bc0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0
jne 0x423143
cmp dword [ebp + 0xc], 0
je 0x423143
lea ecx, [ebp - 0x1ec]
call fcn.0041d8c0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x1ec]
call fcn.00420b70
lea ecx, [ebp - 0x1ec]
call fcn.004a9ae0
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.0041dc90
cmp dword [ebp - 0xb0], 0
setne cl
mov byte [ebp - 0x1ed], cl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0xac]
call fcn.0044dcc0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call fcn.00418230
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.005aec53
mov esp, ebp
pop ebp
ret