joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443540
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x598fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x15c
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ecx], vtable.ui::MenuBar.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x20], 0
mov dword [ecx + 0x24], 0
mov dword [ecx + 0x28], 0
mov dword [ecx + 0x2c], 0
mov dword [ecx + 0x30], 0
mov dword [ecx + 0x34], 0
mov dword [ebp - 4], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
mov dword [ecx + 0x40], 0
mov dword [ecx + 0x44], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x70], 0
cmp dword [0x6174c4], 0
mov byte [ebp - 4], 4
jne 0x443676
mov dword [0x6174c4], ecx
mov eax, ecx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push 0xf
push str.c:ent_slave_rootworkspace_vncconnect_buildsclients_vnc_7.6.xlabelcon_windows_64_rvcoreuilibsuimenubar.cxx
push str._inst_
lea ecx, [ebp - 0x160]
call fcn.00465850
push eax
call fcn.004658d0
int3
Function at 0x447e50
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599250
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword fs:[0x2c]
mov ecx, dword [0x61a9fc]
mov ecx, dword [eax + ecx*4]
mov eax, dword [0x617510]
cmp eax, dword [ecx + 4]
jg 0x447f88
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x447eac
push eax
push 0x617504
call fcn.00448170
add esp, 8
jmp 0x447f0e
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x18]
call fcn.0046c430
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
push 0x617504
call fcn.00448170
add esp, 8
cmp byte [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
je 0x447efe
test eax, eax
je 0x447efe
push dword [ebp - 0x18]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
call fcn.0054454b
add esp, 4
mov dword [ebp - 4], 0xffffffff
push 0xffffffffffffffff
push 0
call fcn.00448d00
add esp, 8
mov dword [ebp + 0x10], eax
mov edx, dword [0x617508]
mov dword [ebp - 4], 2
cmp dword [0x61750c], edx
je 0x447f3f
xor ecx, ecx
mov dword [edx], eax
add dword [0x617508], 4
jmp 0x447f51
lea eax, [ebp + 0x10]
mov ecx, 0x617504
push eax
push edx
call fcn.00405c50
mov ecx, dword [ebp + 0x10]
push ecx
call fcn.0054454b
mov ecx, dword [0x617508]
add esp, 4
sub ecx, dword [0x617504]
mov eax, dword [ebp + 8]
sar ecx, 2
dec ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [0x617504]
mov dword [ecx], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
push 0x617510
call fcn.00544b4e
add esp, 4
cmp dword [0x617510], 0xffffffff
jne 0x447e95
push 0x5a8d00
call fcn.0054492b
push 0x617510
call fcn.00544b04
add esp, 8
jmp 0x447e95

Function at 0x447fc0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x599278
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x448007
push eax
push dword [ebp + 8]
call fcn.00448170
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push 1
push 0xffffffffffffffff
push 0xfde9
push eax
lea ecx, [ebp - 0x18]
call fcn.0046c430
push dword [ebp - 0x14]
mov dword [ebp - 4], 0
push dword [ebp + 8]
call fcn.00448170
add esp, 8
cmp byte [ebp - 0x10], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 4], 1
je 0x448057
test eax, eax
je 0x448057
push dword [ebp - 0x18]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x14]
add esp, 8
push eax
call fcn.0054454b
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x45c2b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b486
mov eax, dword fs:[0]
push eax
sub esp, 0x374
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x37c], ebx
mov dword [ebp - 0x364], ebx
mov dword [ebp - 0x380], ebx
mov dword [ebx], 0
xor edi, edi
mov dword [ebp - 4], 0
mov dword [ebp - 0x36c], edi
mov dword [ebp - 0x368], edi
lea esi, [ebp - 0x218]
mov byte [ebp - 4], 1
mov eax, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, 0x104
jbe 0x45c3d0
xor ebx, ebx
add eax, 0xa
mov dword [ebp - 0x364], eax
mov byte [ebp - 4], 2
mov esi, ebx
je 0x45c3b0
test ebx, ebx
je 0x45c34f
cmp eax, dword [ebp - 0x368]
jle 0x45c3b0
push eax
call fcn.00449270
xor ecx, ecx
mov dword [ebp - 0x368], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00544c6b
add esp, 8
mov esi, eax
test ebx, ebx
je 0x45c39d
mov ebx, dword [ebp - 0x368]
lea eax, [ebx - 1]
push eax
push edi
push esi
call fcn.00566d5b
xor eax, eax
push edi
mov word [esi + ebx*2 - 2], ax
call fcn.0054454b
add esp, 0x10
jmp 0x45c3a2
xor eax, eax
mov word [esi], ax
mov eax, dword [ebp - 0x364]
mov edi, esi
mov dword [ebp - 0x36c], edi
push edi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ebx, esi
cmp eax, dword [ebp - 0x364]
ja 0x45c332
mov ebx, dword [ebp - 0x37c]
test eax, eax
je 0x45c46c
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x378]
call fcn.0046c430
mov esi, dword [ebp - 0x374]
push dword [ebx]
mov dword [ebp - 0x374], 0
mov dword [ebp - 0x378], 0
call fcn.0054454b
add esp, 4
mov dword [ebx], esi
cmp byte [ebp - 0x370], 0
mov eax, dword [ebp - 0x374]
mov byte [ebp - 4], 3
je 0x45c43f
test eax, eax
je 0x45c43f
push dword [ebp - 0x378]
push eax
call fcn.0045fa10
mov eax, dword [ebp - 0x374]
add esp, 8
push eax
call fcn.0054454b
push edi
call fcn.0054454b
add esp, 8
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
call fcn.00566cbc
lea ecx, [ebp - 0x360]
push dword [eax]
push str.GetCurrentDirectory
call fcn.0040a6b0
push 0x5f5000
lea eax, [ebp - 0x360]
push eax
call fcn.005461fc
int3

Function at 0x45ccd0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.0045cd60
add esp, 4
test al, al
je 0x45cd05
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45cd15
cmp eax, 3
jne 0x45cd26
mov ecx, dword [ebp - 4]
xor al, al
xor ecx, ebp
pop esi
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push esi
call sub.KERNEL32.dll_GetLastError
push eax
lea eax, [ebp - 0x14c]
push str.fileExists__s_
push eax
call fcn.0045c7b0
add esp, 0x10
lea eax, [ebp - 0x14c]
push 0x5fe430
push eax
call fcn.005461fc
int3
Function at 0x45cd60
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b5e0
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.00481da0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x45cde1
test ecx, ecx
je 0x45cde1
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
test bl, bl
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45ce00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b608
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [eax]
mov eax, dword [eax + 4]
cmp esi, eax
mov dword [ebp + 0xc], eax
je 0x45cf73
mov ebx, dword [ebp + 0x10]
mov edx, dword [esi]
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
cmp byte [edx], 0
je 0x45ce82
mov eax, edx
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x45ce58
sub eax, edi
mov al, byte [eax + edx - 1]
cmp al, 0x5c
je 0x45ce6d
cmp al, 0x2f
jne 0x45ce82
push ebx
push edx
lea eax, [ebp - 0x14]
push 0x5abe70
push eax
call fcn.004493c0
add esp, 0x10
jmp 0x45ce97
push ebx
push 0x5c
push edx
lea eax, [ebp - 0x14]
push str._s_c_s
push eax
call fcn.004493c0
add esp, 0x14
mov edi, dword [ebp - 0x14]
push 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
call fcn.0054454b
push dword [ebp - 0x14]
call fcn.0054454b
add esp, 8
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x18], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push edi
call fcn.00481da0
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp byte [ebp - 0x18], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 4], 1
je 0x45cf1a
test ecx, ecx
je 0x45cf1a
mov eax, dword [ebp - 0x20]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x1c]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0xffffffff
test bl, bl
jne 0x45cf50
push edi
call fcn.0054454b
add esi, 4
add esp, 4
cmp esi, dword [ebp + 0xc]
jmp 0x45ce35
mov esi, dword [ebp + 8]
push 0
mov dword [esi], edi
call fcn.0054454b
add esp, 4
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
mov dword [eax], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45cf90
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b63b
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x27c]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x10]
push 1
push 0x5af24c
push eax
mov dword [ebp - 0x290], esi
mov dword [ebp - 4], 0
call fcn.004a1820
mov byte [ebp - 4], 1
nop
lea ecx, [ebp - 0x27c]
call fcn.004a1a10
test eax, eax
je 0x45d152
push dword [ebp - 0x1c]
call fcn.0045e4c0
add esp, 4
test al, al
je 0x45d05d
push edi
push dword [ebp - 0x1c]
lea eax, [ebp - 0x28c]
push eax
call fcn.0045cf90
mov ecx, dword [ebp - 0x28c]
add esp, 0xc
push 0
test ecx, ecx
je 0x45d055
mov dword [ebp - 0x28c], 0
mov dword [esi], ecx
call fcn.0054454b
add esp, 4
lea ecx, [ebp - 0x27c]
call fcn.004a19c0
jmp 0x45d171
call fcn.0054454b
add esp, 4
mov eax, dword [ebp - 0x18]
test edi, edi
je 0x45d097
test eax, eax
je 0x45cff0
mov ecx, edi
nop word [eax + eax]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x45d090
test dl, dl
je 0x45d08c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x45d090
add ecx, 2
add eax, 2
test dl, dl
jne 0x45d070
xor eax, eax
jmp 0x45d09b
sbb eax, eax
or eax, 1
jmp 0x45d09b
neg eax
sbb eax, eax
test eax, eax
jne 0x45cff0
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp - 0x1c]
lea ecx, [ebp - 0x288]
mov dword [ebp - 0x288], eax
mov dword [ebp - 0x284], eax
mov byte [ebp - 0x280], al
call fcn.00481da0
push dword [ebp - 0x284]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
cmp byte [ebp - 0x280], 0
mov ecx, dword [ebp - 0x284]
mov byte [ebp - 4], 2
je 0x45d10d
test ecx, ecx
je 0x45d10d
mov eax, dword [ebp - 0x288]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x284]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x288], 0
mov dword [ebp - 0x284], 0
mov byte [ebp - 4], 1
test bl, bl
je 0x45cff0
push 0xffffffffffffffff
push dword [ebp - 0x1c]
call fcn.00448d00
add esp, 8
mov dword [esi], eax
lea ecx, [ebp - 0x27c]
call fcn.004a19c0
jmp 0x45d171
lea ecx, [ebp - 0x27c]
call fcn.004a19c0
jmp 0x45d16b
mov dword [esi], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
Function at 0x45dd50
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push esi
push dword [ebp + 0x10]
push 1
push eax
call fcn.00566050
add esp, 0x10
test eax, eax
jle 0x45dd8c
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
push esi
call fcn.00565db8
add esp, 4
test eax, eax
jne 0x45ddbe
lea eax, [ebp - 0x14c]
push str.reading_from_file_failed
push eax
call fcn.0046c120
add esp, 8
lea eax, [ebp - 0x14c]
push 0x5fe46c
push eax
call fcn.005461fc
push str.End_of_file
lea ecx, [ebp - 0x148]
call fcn.0040b070
push 0x5f51a4
lea eax, [ebp - 0x148]
push eax
call fcn.005461fc
int3

Function at 0x45de40
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b800
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.00481da0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x45dec0
test ecx, ecx
je 0x45dec0
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45df50
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b820
mov eax, dword fs:[0]
push eax
sub esp, 0x30
push ebx
push esi
push edi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
test edi, edi
jle 0x45e12d
dec edi
test edi, edi
jle 0x45e0ea
lea eax, [edi + 1]
push eax
push ecx
push ebx
lea eax, [ebp - 0x1c]
push str._s_s_d
push eax
call fcn.0040c750
push edi
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x14]
push str._s_s_d
push eax
call fcn.0040c750
add esp, 0x28
mov dword [ebp - 0x30], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x2c], 0
mov byte [ebp - 0x28], 0
mov ebx, dword [eax]
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
call fcn.00481da0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45e016
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45e016
cmp byte [ebp - 0x28], 0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 4], 0
je 0x45e0aa
jmp 0x45e094
mov esi, dword [ebp - 0x2c]
lea ecx, [ebp - 0x3c]
push 1
push 0xffffffffffffffff
push 0xfde9
push ebx
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x34], 0
call fcn.00481da0
push esi
push dword [ebp - 0x38]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
cmp byte [ebp - 0x34], 0
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 4], 1
je 0x45e06d
test ecx, ecx
je 0x45e06d
mov eax, dword [ebp - 0x3c]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x38]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
cmp byte [ebp - 0x28], 0
mov dword [ebp - 4], 2
je 0x45e0a7
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x45e0aa
mov eax, dword [ebp - 0x30]
add eax, eax
push eax
push ecx
call fcn.0045fa10
add esp, 8
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
push dword [ebp - 0x14]
call fcn.0054454b
push dword [ebp - 0x1c]
call fcn.0054454b
mov ebx, dword [ebp + 8]
dec edi
mov ecx, dword [ebp + 0xc]
add esp, 8
test edi, edi
jg 0x45df92
push ecx
push ebx
lea eax, [ebp - 0x14]
push str._s_s1
push eax
call fcn.0040c750
mov esi, dword [eax]
mov eax, dword [ebp + 0xc]
push eax
push ebx
lea eax, [ebp - 0x1c]
push 0x5abe70
push eax
call fcn.0040c750
push esi
push dword [eax]
call fcn.0045e170
push dword [ebp - 0x1c]
call fcn.0054454b
push dword [ebp - 0x14]
call fcn.0054454b
mov ecx, dword [ebp + 0xc]
add esp, 0x30
push ecx
push ebx
lea eax, [ebp - 0x24]
push 0x5abe70
push eax
call fcn.0040c750
push dword [eax]
push ebx
call fcn.0045e170
push dword [ebp - 0x24]
mov bl, al
call fcn.0054454b
add esp, 0x1c
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e170
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b840
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 0xc]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x1c], 0
call fcn.00481da0
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x45e1d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x45e1d9
xor bl, bl
jmp 0x45e24e
mov esi, dword [ebp - 0x20]
lea ecx, [ebp - 0x18]
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.00481da0
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne bl
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x45e237
test ecx, ecx
je 0x45e237
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp byte [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 4], 1
je 0x45e274
test ecx, ecx
je 0x45e274
mov eax, dword [ebp - 0x24]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x20]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x45e4c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b860
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
mov eax, dword [0x613384]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 1
push 0xffffffffffffffff
push 0xfde9
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
mov byte [ebp - 0x10], 0
call fcn.00481da0
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp byte [ebp - 0x10], 0
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 4], 0
je 0x45e53d
test ecx, ecx
je 0x45e53d
mov eax, dword [ebp - 0x18]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x14]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
cmp ebx, 0xffffffff
je 0x45e562
test bl, 0x10
je 0x45e562
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x45e580
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b88b
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x613384]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0x164], 0
mov dword [ebp - 0x160], 0
mov byte [ebp - 0x15c], 0
push 1
push 0xffffffffffffffff
push 0xfde9
push esi
lea ecx, [ebp - 0x164]
mov dword [ebp - 4], 0
call fcn.00481da0
push 0
push dword [ebp - 0x160]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
cmp byte [ebp - 0x15c], 0
mov ecx, dword [ebp - 0x160]
mov dword [ebp - 4], 1
je 0x45e629
test ecx, ecx
je 0x45e629
mov eax, dword [ebp - 0x164]
add eax, eax
push eax
push ecx
call fcn.0045fa10
mov ecx, dword [ebp - 0x160]
add esp, 8
push ecx
call fcn.0054454b
add esp, 4
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x45e65a
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00544c5a
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
mov edi, eax
call fcn.0045e4c0
add esp, 4
test al, al
je 0x45e68a
cmp byte [ebp + 0xc], 0
je 0x45e686
cmp byte [ebp + 0x10], 0
je 0x45e686
push esi
push 0xffffffffffffffff
call fcn.0045d7d0
add esp, 8
xor al, al
jmp 0x45e63f
push esi
push edi
lea eax, [ebp - 0x158]
push str.mkDir__s_
push eax
call fcn.0045c7b0
add esp, 0x10
lea eax, [ebp - 0x158]
push 0x5fe430
push eax
call fcn.005461fc
int3