joyce8/EMBER2024-capa huggingface dataset:
Function at 0x54cdb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 8], 0x100000
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jbe 0x54cdcb
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 8], ecx
push 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x14], 0
je 0x54cdf9
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x10]
mov dword [edx], eax
cmp dword [ebp - 0xc], 0
jne 0x54ce0e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x54ce0e
xor eax, eax
jmp 0x54ce2b
cmp dword [ebp - 0xc], 0
je 0x54ce1a
mov byte [ebp - 1], 1
jmp 0x54ce1e
mov byte [ebp - 1], 0
movzx ecx, byte [ebp - 1]
push ecx
call fcn.0054cd40
add esp, 4
mov esp, ebp
pop ebp
ret 0x10

Function at 0x54d9a0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 0
je 0x54d9b5
mov eax, dword [ebp + 0x14]
mov dword [eax], 0
mov dword [ebp - 0x10], 1
cmp dword [ebp + 0x10], 0
jbe 0x54da33
mov dword [ebp - 0xc], 0x8000
mov ecx, dword [ebp - 0xc]
cmp ecx, dword [ebp + 0x10]
jbe 0x54d9d7
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp + 8]
add eax, dword [edx + 8]
adc ecx, dword [edx + 0xc]
mov edx, dword [ebp + 8]
mov dword [edx + 8], eax
mov dword [edx + 0xc], ecx
mov eax, dword [ebp + 0x10]
sub eax, dword [ebp - 8]
mov dword [ebp + 0x10], eax
mov ecx, dword [ebp + 0xc]
add ecx, dword [ebp - 8]
mov dword [ebp + 0xc], ecx
cmp dword [ebp + 0x14], 0
je 0x54da33
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
add eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x14]
mov dword [ecx], eax
cmp dword [ebp - 0x10], 0
je 0x54da3f
mov byte [ebp - 1], 1
jmp 0x54da43
mov byte [ebp - 1], 0
movzx edx, byte [ebp - 1]
push edx
call fcn.0054cd40
add esp, 4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x556fa0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ceb2b
mov eax, dword fs:[0]
push eax
sub esp, 0x88
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x556ff4
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x556ff4
mov al, 1
jmp 0x5571ab
cmp dword [ebp - 0x18], 1
je 0x55700b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x557134
cmp dword [ebp - 0x18], 0
je 0x557134
lea ecx, [ebp - 0x24]
call fcn.00553c20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 1
je 0x557030
mov byte [ebp - 0xd], 1
jmp 0x557034
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055c400
add esp, 0xc
movzx edx, al
test edx, edx
je 0x557125
push 0
lea ecx, [ebp - 0x24]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x557084
mov byte [ebp - 0xe], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x5571ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5570ac
mov byte [ebp - 0xf], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
mov al, byte [ebp - 0xf]
jmp 0x5571ab
lea ecx, [ebp - 0x5c]
call fcn.004495b0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00447710
push eax
lea ecx, [ebp - 0x5c]
call fcn.00559370
movzx eax, al
test eax, eax
jne 0x5570f7
mov byte [ebp - 0x10], 0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004495e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
mov al, byte [ebp - 0x10]
jmp 0x5571ab
lea ecx, [ebp - 0x5c]
call fcn.00448f90
mov byte [ebp - 0x11], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.004495e0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
mov al, byte [ebp - 0x11]
jmp 0x5571ab
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x557145
xor al, al
jmp 0x5571ab
lea ecx, [ebp - 0x94]
call fcn.004495b0
mov dword [ebp - 4], 2
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x94]
call fcn.00559370
movzx edx, al
test edx, edx
jne 0x557188
mov byte [ebp - 0x12], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004495e0
mov al, byte [ebp - 0x12]
jmp 0x5571ab
lea ecx, [ebp - 0x94]
call fcn.00448f90
mov byte [ebp - 0x13], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004495e0
mov al, byte [ebp - 0x13]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x557430
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00447720
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x20c
jae 0x557467
jmp 0x55746c
call fcn.00496028
xor edx, edx
mov eax, dword [ebp - 0x214]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00553ad0
cmp dword [ebp - 0x218], 0
jbe 0x5574c4
cmp dword [ebp - 0x218], 0x104
ja 0x5574c4
mov dword [ebp - 0x21c], 1
jmp 0x5574ce
mov dword [ebp - 0x21c], 0
mov al, byte [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret

Function at 0x5574f0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ceb9a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 1
je 0x55755c
cmp dword [ebp - 0x18], 1
je 0x55755c
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x55755c
mov al, 1
jmp 0x557626
cmp dword [ebp - 0x14], 0
jne 0x55756c
cmp dword [ebp - 0x18], 0
je 0x557624
lea ecx, [ebp - 0x30]
call fcn.00553c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00553c20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 1
je 0x557599
cmp dword [ebp - 0x18], 1
je 0x557599
mov byte [ebp - 0xd], 1
jmp 0x55759d
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x30]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.0055c210
add esp, 0x14
movzx ecx, al
test ecx, ecx
je 0x557609
mov edx, dword [ebp + 0x10]
push edx
lea ecx, [ebp - 0x24]
call fcn.00447710
push eax
lea ecx, [ebp - 0x30]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00447680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x557626
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00447680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00447680
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x557640
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push eax
call fcn.00448e00
add esp, 4
pop ebp
ret
Function at 0x558030
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cec8a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x14], 1
je 0x558098
cmp dword [ebp - 0x18], 1
je 0x558098
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x558098
mov al, 1
jmp 0x55815e
cmp dword [ebp - 0x14], 0
jne 0x5580a8
cmp dword [ebp - 0x18], 0
je 0x55815c
lea ecx, [ebp - 0x30]
call fcn.00553c20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00553c20
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 1
je 0x5580d5
cmp dword [ebp - 0x18], 1
je 0x5580d5
mov byte [ebp - 0xd], 1
jmp 0x5580d9
mov byte [ebp - 0xd], 0
movzx ecx, byte [ebp - 0xd]
push ecx
lea edx, [ebp - 0x24]
push edx
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0055c210
add esp, 0x14
movzx eax, al
test eax, eax
je 0x558141
lea ecx, [ebp - 0x24]
call fcn.00447710
push eax
lea ecx, [ebp - 0x30]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00447680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x55815e
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.00447680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.00447680
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x5582e0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cecd8
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x55832f
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x55832f
mov al, 1
jmp 0x5583b0
cmp dword [ebp - 0x14], 0
je 0x5583ae
lea ecx, [ebp - 0x20]
call fcn.00553c20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x558350
mov byte [ebp - 0xd], 1
jmp 0x558354
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055c400
add esp, 0xc
movzx edx, al
test edx, edx
je 0x55839f
lea ecx, [ebp - 0x20]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x5583b0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x5583c0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cecfb
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.00559b20
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x55842b
mov ecx, dword [ebp - 0x14]
and ecx, 0x10
jne 0x55842b
mov edx, dword [ebp - 0x14]
and edx, 1
je 0x55842b
mov eax, dword [ebp - 0x14]
and eax, 0xfffffffe
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00558510
add esp, 8
movzx edx, al
test edx, edx
jne 0x55842b
xor al, al
jmp 0x5584d6
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 1
je 0x558455
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x558455
mov al, 1
jmp 0x5584d6
cmp dword [ebp - 0x18], 0
je 0x5584d4
lea ecx, [ebp - 0x24]
call fcn.00553c20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x18], 1
je 0x558476
mov byte [ebp - 0xd], 1
jmp 0x55847a
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x24]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055c400
add esp, 0xc
movzx edx, al
test edx, edx
je 0x5584c5
lea ecx, [ebp - 0x24]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x5584d6
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00447680
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x558510
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ced1e
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x558563
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x558563
mov al, 1
jmp 0x5585e8
cmp dword [ebp - 0x14], 0
je 0x5585e6
lea ecx, [ebp - 0x20]
call fcn.00553c20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x558584
mov byte [ebp - 0xd], 1
jmp 0x558588
mov byte [ebp - 0xd], 0
movzx eax, byte [ebp - 0xd]
push eax
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0055c400
add esp, 0xc
movzx eax, al
test eax, eax
je 0x5585d7
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x5585e8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x558600
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ced41
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x558651
push 0
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x558651
mov al, 1
jmp 0x5586eb
cmp dword [ebp - 0x14], 1
je 0x558668
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x5586e9
cmp dword [ebp - 0x14], 0
je 0x5586e9
lea ecx, [ebp - 0x20]
call fcn.00553c20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x558689
mov byte [ebp - 0xd], 1
jmp 0x55868d
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055c400
add esp, 0xc
movzx edx, al
test edx, edx
je 0x5586da
push 0
lea ecx, [ebp - 0x20]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call fcn.00448e00
add esp, 4
mov byte [ebp - 0xe], al
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
mov al, byte [ebp - 0xe]
jmp 0x5586eb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00447680
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x558700
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00447720
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x20c
jae 0x558737
jmp 0x55873c
call fcn.00496028
xor edx, edx
mov eax, dword [ebp - 0x214]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00553ad0
cmp dword [ebp - 0x218], 0
jbe 0x558794
cmp dword [ebp - 0x218], 0x104
ja 0x558794
mov dword [ebp - 0x21c], 1
jmp 0x55879e
mov dword [ebp - 0x21c], 0
mov al, byte [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret
Function at 0x559210
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5cee62
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
call fcn.00448400
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x559257
xor al, al
jmp 0x559353
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x18]
call fcn.0045f750
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x18]
call fcn.00447710
push eax
mov ecx, dword [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x55928e
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x1c]
jbe 0x5592a9
mov byte [ebp - 0xd], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00447680
mov al, byte [ebp - 0xd]
jmp 0x559353
lea ecx, [ebp - 0x34]
call fcn.00553c20
mov byte [ebp - 4], 1
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
jmp 0x5592ce
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
jae 0x559317
lea ecx, [ebp - 0x18]
call fcn.00447710
mov edx, dword [ebp - 0x14]
movzx eax, word [eax + edx*2]
test eax, eax
jne 0x559315
lea ecx, [ebp - 0x18]
call fcn.00447710
mov ecx, dword [ebp - 0x24]
lea edx, [eax + ecx*2]
push edx
lea ecx, [ebp - 0x34]
call fcn.00553ad0
mov eax, dword [ebp - 0x14]
add eax, 1
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x34]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0044b4c0
jmp 0x5592c5
mov edx, dword [ebp - 0x24]
cmp edx, dword [ebp - 0x20]
jne 0x559328
mov dword [ebp - 0x28], 1
jmp 0x55932f
mov dword [ebp - 0x28], 0
mov al, byte [ebp - 0x28]
mov byte [ebp - 0xe], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x34]
call fcn.00447680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00447680
mov al, byte [ebp - 0xe]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x559b20
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ceeee
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x70c0f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0055c2b0
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 1
je 0x559b72
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
je 0x559b72
mov eax, dword [ebp - 0x18]
jmp 0x559beb
cmp dword [ebp - 0x14], 0
je 0x559be8
lea ecx, [ebp - 0x28]
call fcn.00553c20
mov dword [ebp - 4], 0
cmp dword [ebp - 0x14], 1
je 0x559b93
mov byte [ebp - 0xd], 1
jmp 0x559b97
mov byte [ebp - 0xd], 0
movzx edx, byte [ebp - 0xd]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0055c400
add esp, 0xc
movzx edx, al
test edx, edx
je 0x559bd9
lea ecx, [ebp - 0x28]
call fcn.00447710
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00447680
mov eax, dword [ebp - 0x1c]
jmp 0x559beb
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00447680
or eax, 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x559d00
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.00448e00
add esp, 4
mov esp, ebp
pop ebp
ret

Function at 0x559d20
Capabilities:
Write file on windows

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

Function at 0x55a240
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
push 0
lea eax, [ebp - 8]
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.00448e00
add esp, 4
mov byte [ebp - 1], al
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 8]
mov dword [edx], eax
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x55a680
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
movzx ecx, byte [eax + 4]
test ecx, ecx
je 0x55a6b4
mov edx, dword [ebp - 4]
movzx eax, byte [edx + 5]
test eax, eax
je 0x55a6b4
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
mov dword [ecx], eax
mov edx, dword [edx + 0xc]
mov dword [ecx + 4], edx
mov al, 1
jmp 0x55a6f8
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x55a6db
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x55a6db
xor al, al
jmp 0x55a6f8
xor edx, edx
mov eax, dword [ebp - 0xc]
mov cl, 0x20
call fcn.00507ef0
xor ecx, ecx
add eax, dword [ebp - 8]
adc edx, ecx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x55bba0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x70c0f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
call fcn.00447720
mov eax, 2
imul ecx, eax, 0
mov dword [ebp - 0x214], ecx
cmp dword [ebp - 0x214], 0x20c
jae 0x55bbd7
jmp 0x55bbdc
call fcn.00496028
xor edx, edx
mov eax, dword [ebp - 0x214]
mov word [ebp + eax - 0x210], dx
lea ecx, [ebp - 0x210]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x218], eax
lea edx, [ebp - 0x210]
push edx
mov ecx, dword [ebp + 8]
call fcn.00553ad0
cmp dword [ebp - 0x218], 0
jbe 0x55bc34
cmp dword [ebp - 0x218], 0x104
ja 0x55bc34
mov dword [ebp - 0x21c], 1
jmp 0x55bc3e
mov dword [ebp - 0x21c], 0
mov al, byte [ebp - 0x21c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00495c0c
mov esp, ebp
pop ebp
ret