joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55053d
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x711f8c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
mov dword [ebp - 0x40], ecx
push 0x77f034
mov eax, dword [ebp - 0x40]
add eax, 4
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055078b
add esp, 0xc
mov edx, dword [ebp - 0x40]
mov byte [edx], al
push 0x77f044
mov eax, dword [ebp - 0x40]
add eax, 0xc
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055078b
add esp, 0xc
mov edx, dword [ebp - 0x40]
mov byte [edx + 1], al
mov eax, dword [ebp - 0x40]
mov byte [eax + 2], 1
mov ecx, dword [ebp - 0x40]
add ecx, 0x14
push ecx
push 0x77f05c
lea edx, [ebp - 0x18]
push edx
mov ecx, dword [ebp + 8]
call fcn.0059a72c
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00505ff3
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.004125e0
mov edx, dword [ebp - 0x40]
add edx, 0x20
push edx
push 0x77f064
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
call fcn.0059a72c
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x50], ecx
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x50]
push edx
call fcn.005506bf
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.004125e0
mov eax, dword [ebp - 0x40]
add eax, 0x28
push eax
push 0x77f070
lea ecx, [ebp - 0x30]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0059a72c
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x54]
mov dword [ebp - 0x58], edx
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x58]
push eax
call fcn.005506bf
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004125e0
mov ecx, dword [ebp - 0x40]
add ecx, 0x30
push ecx
push 0x77f07c
lea edx, [ebp - 0x3c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0059a510
mov dword [ebp - 0x5c], eax
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x60], eax
mov dword [ebp - 4], 3
mov ecx, dword [ebp - 0x60]
push ecx
call fcn.0055074c
add esp, 8
mov edx, dword [ebp - 0x40]
mov byte [edx + 3], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004125e0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x55d190
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7123a0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], 0xffffffff
mov edx, dword [ebp - 0x10]
mov dword [edx + 8], 0
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x28], 0
mov dword [eax + 0x2c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.004eca57
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.004eca57
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x50], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x54], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov byte [ecx + 0x58], 0
mov edx, dword [ebp - 0x10]
mov byte [edx + 0x59], 0
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x5c], 0
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0053b550
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.004b6b70
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x10
push ecx
call fcn.00531e00
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 0x18
push edx
call fcn.00531e00
add esp, 4
mov eax, dword [ebp - 0x10]
add eax, 0x20
push eax
call fcn.00531e00
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x55d440
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x712464
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [eax + 8]
mov dword [ecx + 8], edx
mov eax, dword [eax + 0xc]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x10], edx
mov dword [ecx + 0x14], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
mov ecx, dword [edx + 0x1c]
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], eax
mov dword [edx + 0x1c], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov edx, dword [eax + 0x24]
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x20], ecx
mov dword [eax + 0x24], edx
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov eax, dword [ecx + 0x28]
mov dword [edx + 0x28], eax
mov ecx, dword [ecx + 0x2c]
mov dword [edx + 0x2c], ecx
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x10]
mov ecx, dword [edx + 0x30]
mov dword [eax + 0x30], ecx
mov edx, dword [edx + 0x34]
mov dword [eax + 0x34], edx
mov eax, dword [ebp + 8]
add eax, 0x38
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.004ecc41
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 8]
add ecx, 0x44
push ecx
mov ecx, dword [ebp - 0x10]
add ecx, 0x44
call fcn.004ecc41
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x50]
mov dword [edx + 0x50], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x54]
mov dword [edx + 0x54], ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x58]
mov byte [edx + 0x58], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov cl, byte [eax + 0x59]
mov byte [edx + 0x59], cl
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x5c]
mov dword [edx + 0x5c], ecx
mov edx, dword [ebp + 8]
add edx, 0x60
push edx
mov ecx, dword [ebp - 0x10]
add ecx, 0x60
call fcn.0055dae0
mov byte [ebp - 4], 2
mov eax, dword [ebp + 8]
add eax, 0x6c
push eax
mov ecx, dword [ebp - 0x10]
add ecx, 0x6c
call fcn.004b7a20
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x570c5b
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x712ca3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x570c90
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
jmp 0x570d61
mov edx, dword [ebp + 8]
push edx
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x570cf1
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004125e0
cmp dword [ebp - 0x14], 0xffffffff
je 0x570cf1
mov eax, dword [ebp - 0x14]
jmp 0x570d61
cmp dword [ebp - 0x10], 0
je 0x570d5e
lea ecx, [ebp - 0x20]
call fcn.004eca57
mov dword [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005758cb
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x570d4f
lea ecx, [ebp - 0x20]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x30], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004125e0
mov eax, dword [ebp - 0x30]
jmp 0x570d61
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004125e0
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x577c8c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], ecx
mov eax, dword [ebp - 0xc]
xor ecx, ecx
mov cl, byte [eax + 5]
test ecx, ecx
je 0x577cc3
mov edx, dword [ebp - 0xc]
xor eax, eax
mov al, byte [edx + 6]
test eax, eax
je 0x577cc3
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ecx + 8]
mov dword [edx], eax
mov ecx, dword [ecx + 0xc]
mov dword [edx + 4], ecx
mov al, 1
jmp 0x577d13
mov dword [ebp - 4], 0
lea edx, [ebp - 4]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x577cf1
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x577cf1
xor al, al
jmp 0x577d13
mov eax, dword [ebp - 4]
xor edx, edx
mov ecx, 0x20
call fcn.0044fb30
mov ecx, dword [ebp - 8]
xor esi, esi
add eax, ecx
adc edx, esi
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x5783f8
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 8], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x578637
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
cmp dword [ebp + 0xc], 0x400000
jbe 0x578650
mov dword [ebp + 0xc], 0x400000
mov dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 8], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov al, byte [ebp - 8]
mov esp, ebp
pop ebp
ret 0xc

Function at 0x578786
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push eax
call fcn.004ee930
add esp, 4
mov esp, ebp
pop ebp
ret
Function at 0x578d34
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7131fa
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x578d78
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
je 0x578d73
mov al, 1
jmp 0x578e58
jmp 0x578e56
mov eax, dword [ebp + 8]
push eax
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x578ddc
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x2c]
push eax
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x38], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004125e0
cmp dword [ebp - 0x20], 0
je 0x578ddc
mov al, 1
jmp 0x578e58
cmp dword [ebp - 0x10], 0
je 0x578e56
lea ecx, [ebp - 0x1c]
call fcn.004eca57
mov dword [ebp - 4], 1
xor edx, edx
cmp dword [ebp - 0x10], 1
setne dl
push edx
lea eax, [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005758cb
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x578e47
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x1c]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x30], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004125e0
mov al, byte [ebp - 0x30]
jmp 0x578e58
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004125e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x578e93
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x713216
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x578ed3
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
test eax, eax
je 0x578ece
mov al, 1
jmp 0x578fab
jmp 0x578fa9
mov edx, dword [ebp + 8]
push edx
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x578f33
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004125e0
cmp dword [ebp - 0x20], 0
je 0x578f33
mov al, 1
jmp 0x578fab
cmp dword [ebp - 0x10], 0
je 0x578fa9
lea ecx, [ebp - 0x1c]
call fcn.004eca57
mov dword [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005758cb
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x578f9a
lea ecx, [ebp - 0x1c]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x30], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004125e0
mov al, byte [ebp - 0x30]
jmp 0x578fab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004125e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x578fb9
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x713244
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x578ffd
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x578ff8
mov al, 1
jmp 0x57917c
jmp 0x57917a
mov eax, dword [ebp + 8]
push eax
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x14], 1
je 0x5790af
cmp dword [ebp - 0x10], 1
je 0x5790af
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x50]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
call fcn.004b6540
push eax
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x5c], ecx
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x5c]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x48]
call fcn.004125e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.004125e0
cmp dword [ebp - 0x30], 0
je 0x5790af
mov al, 1
jmp 0x57917c
cmp dword [ebp - 0x14], 0
jne 0x5790bf
cmp dword [ebp - 0x10], 0
je 0x57917a
lea ecx, [ebp - 0x20]
call fcn.004eca57
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004eca57
mov byte [ebp - 4], 3
cmp dword [ebp - 0x14], 1
je 0x5790ef
cmp dword [ebp - 0x10], 1
je 0x5790ef
mov dword [ebp - 0x60], 1
jmp 0x5790f6
mov dword [ebp - 0x60], 0
mov dl, byte [ebp - 0x60]
push edx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00576429
add esp, 0x14
and eax, 0xff
test eax, eax
je 0x57915f
lea ecx, [ebp - 0x2c]
call fcn.004b6540
push eax
lea ecx, [ebp - 0x20]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x4c], al
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004125e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004125e0
mov al, byte [ebp - 0x4c]
jmp 0x57917c
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.004125e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004125e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x57936d
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x71328e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x5793af
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x5793aa
mov al, 1
jmp 0x5794a1
jmp 0x57949f
mov edx, dword [ebp + 8]
push edx
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x579414
push 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
push ecx
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [ebp - 0x34]
mov dword [ebp - 0x38], edx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x38]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004125e0
cmp dword [ebp - 0x20], 0
je 0x579414
mov al, 1
jmp 0x5794a1
cmp dword [ebp - 0x10], 1
je 0x579427
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x57949f
cmp dword [ebp - 0x10], 0
je 0x57949f
lea ecx, [ebp - 0x1c]
call fcn.004eca57
mov dword [ebp - 4], 1
xor eax, eax
cmp dword [ebp - 0x10], 1
setne al
push eax
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005758cb
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x579490
push 0
lea ecx, [ebp - 0x1c]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x30], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004125e0
mov al, byte [ebp - 0x30]
jmp 0x5794a1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004125e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x579a90
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x713306
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push eax
call fcn.00570c5b
add esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x579af6
mov ecx, dword [ebp - 0x10]
and ecx, 0x10
test ecx, ecx
jne 0x579af6
mov edx, dword [ebp - 0x10]
and edx, 1
test edx, edx
je 0x579af6
mov eax, dword [ebp - 0x10]
and al, 0xfe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00578d34
add esp, 8
and eax, 0xff
test eax, eax
jne 0x579af6
xor al, al
jmp 0x579bf4
xor edx, edx
mov dl, byte [0x7d2e18]
test edx, edx
jne 0x579b1c
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x579b17
mov al, 1
jmp 0x579bf4
jmp 0x579bf2
mov ecx, dword [ebp + 8]
push ecx
call fcn.005756c7
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x579b7c
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x30]
push eax
call fcn.004edc1e
add esp, 8
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x3c]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004125e0
cmp dword [ebp - 0x24], 0
je 0x579b7c
mov al, 1
jmp 0x579bf4
cmp dword [ebp - 0x14], 0
je 0x579bf2
lea ecx, [ebp - 0x20]
call fcn.004eca57
mov dword [ebp - 4], 1
xor edx, edx
cmp dword [ebp - 0x14], 1
setne dl
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.005758cb
add esp, 0xc
and eax, 0xff
test eax, eax
je 0x579be3
lea ecx, [ebp - 0x20]
call fcn.004b6540
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call fcn.004ee930
add esp, 4
mov byte [ebp - 0x34], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004125e0
mov al, byte [ebp - 0x34]
jmp 0x579bf4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004125e0
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x579f53
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x713378
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x394
mov dword [ebp - 0x10], 0x114
mov ecx, dword [ebp + 8]
call fcn.004ba6c0
xor eax, eax
mov al, byte [0x7d2e18]
test eax, eax
jne 0x579fe0
mov byte [ebp - 0x128], 0
lea ecx, [ebp - 0x128]
push ecx
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x579fbf
cmp dword [ebp - 0x12c], 0x114
jb 0x579fc6
xor al, al
jmp 0x57a1a7
mov byte [ebp - 0x14], 0
lea edx, [ebp - 0x128]
push edx
mov ecx, dword [ebp + 8]
call fcn.004ebaa4
mov al, 1
jmp 0x57a1a7
mov word [ebp - 0x36c], 0
lea eax, [ebp - 0x36c]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x13c], eax
cmp dword [ebp - 0x13c], 0
jne 0x57a011
xor al, al
jmp 0x57a1a7
cmp dword [ebp - 0x13c], 0x114
jae 0x57a07d
mov word [ebp - 0x144], 0
lea ecx, [ebp - 0x36c]
push ecx
lea edx, [ebp - 0x378]
push edx
call fcn.004edc90
add esp, 8
mov dword [ebp - 0x394], eax
mov eax, dword [ebp - 0x394]
mov dword [ebp - 0x398], eax
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x398]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004ebb28
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x378]
call fcn.004125e0
mov al, 1
jmp 0x57a1a7
lea ecx, [ebp - 0x138]
call fcn.004eca57
mov dword [ebp - 4], 1
mov edx, dword [ebp - 0x13c]
push edx
lea ecx, [ebp - 0x138]
call fcn.004b6550
push eax
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x140], eax
cmp dword [ebp - 0x140], 0
jne 0x57a0e2
mov byte [ebp - 0x37c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.004125e0
mov al, byte [ebp - 0x37c]
jmp 0x57a1a7
mov ecx, dword [ebp - 0x13c]
push ecx
lea ecx, [ebp - 0x138]
call fcn.0057aaf0
lea ecx, [ebp - 0x138]
call fcn.004e9dc0
cmp eax, dword [ebp - 0x140]
jne 0x57a118
mov edx, dword [ebp - 0x13c]
sub edx, 1
cmp edx, dword [ebp - 0x140]
je 0x57a139
mov byte [ebp - 0x380], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.004125e0
mov al, byte [ebp - 0x380]
jmp 0x57a1a7
lea ecx, [ebp - 0x138]
call fcn.004b6540
push eax
lea eax, [ebp - 0x38c]
push eax
call fcn.004edc90
add esp, 8
mov dword [ebp - 0x39c], eax
mov ecx, dword [ebp - 0x39c]
mov dword [ebp - 0x3a0], ecx
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x3a0]
push edx
mov ecx, dword [ebp + 8]
call fcn.004ebb28
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38c]
call fcn.004125e0
mov byte [ebp - 0x390], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x138]
call fcn.004125e0
mov al, byte [ebp - 0x390]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret