joyce8/EMBER2024-capa huggingface dataset:
Function at 0x450164
Capabilities:
Check if file exists

Disassembly:
push 0xac
mov eax, 0x4b4e34
call fcn.004991ba
mov esi, ecx
mov edi, edx
push esi
mov dword [ebp - 0x60], edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x45018f
mov eax, 0x44f
jmp 0x45031a
push esi
call fcn.0044fb02
pop ecx
test eax, eax
je 0x4501a8
mov edx, edi
mov ecx, esi
call fcn.0044fc9b
jmp 0x45031a
push esi
push 0x4cb3fc
push str.__s__l___s_
lea ecx, [ebp - 0x4c]
call fcn.0042f9b3
add esp, 0xc
xor ebx, ebx
mov dword [ebp - 4], ebx
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0xf
call fcn.0040492f
mov byte [ebp - 4], 3
cmp dword [ebp - 0x34], 8
mov eax, dword [ebp - 0x48]
jae 0x4501e3
lea eax, [ebp - 0x48]
lea ecx, [ebp - 0x30]
push ecx
push eax
call fcn.0044f9e4
pop ecx
pop ecx
mov dword [ebp - 0x5c], eax
cmp eax, ebx
jne 0x450301
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x450206
lea eax, [ebp - 0x2c]
push 0x4cb44c
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.0042f7f9
add esp, 0xc
mov byte [ebp - 4], 4
push dword [ebp - 0x74]
lea edi, [ebp - 0x80]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x50], ebx
call fcn.0040c5c5
push dword [ebp - 0x70]
lea edi, [ebp - 0x80]
lea esi, [ebp - 0x68]
call fcn.0040c5c5
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x450247
cmp eax, dword [ebp - 0x68]
je 0x45024c
call fcn.00497df5
mov eax, dword [ebp - 0x54]
cmp eax, dword [ebp - 0x64]
je 0x4502f0
lea esi, [ebp - 0x58]
call fcn.00427a9f
push str.___________________
push eax
call fcn.00443210
test eax, eax
jne 0x450274
inc dword [ebp - 0x50]
jmp 0x4502e3
cmp dword [ebp - 0x50], 1
jne 0x4502dd
lea esi, [ebp - 0x58]
call fcn.00427a9f
cmp dword [eax + 0x14], 0x35
jbe 0x4502e3
call fcn.00427a9f
push 0xffffffffffffffff
push 0x35
push eax
lea esi, [ebp - 0xb8]
call fcn.0040c494
push eax
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 5
call fcn.004011d5
pop ecx
push eax
mov eax, dword [ebp - 0x60]
mov byte [ebp - 4], 6
call fcn.0041317b
push ebx
push 1
lea esi, [ebp - 0x9c]
call fcn.00403ead
push ebx
push 1
lea ecx, [ebp - 0xb8]
mov byte [ebp - 4], 4
call fcn.00403db0
jmp 0x4502e3
cmp dword [ebp - 0x50], 2
je 0x4502f0
lea esi, [ebp - 0x58]
call fcn.00403666
jmp 0x45022d
lea esi, [ebp - 0x80]
call fcn.00403fe9
push dword [ebp - 0x80]
call fcn.00497e2f
pop ecx
push ebx
push 1
lea ecx, [ebp - 0x30]
call fcn.00403db0
push ebx
push 1
lea esi, [ebp - 0x4c]
call fcn.00403ead
mov eax, dword [ebp - 0x5c]
call fcn.0049923d
ret
Function at 0x450320
Capabilities:
Check if file exists
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x18]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [ebx]
push esi
push edi
mov dword [ebp + 8], 1
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebx]
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov dword [ebp - 0x14], eax
call fcn.0043a0e2
test al, al
jne 0x4503c9
call fcn.00431223
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x45036d
mov eax, dword [eax + 4]
jmp 0x450370
add eax, 4
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4503b8
lea esi, [ebp - 0xc]
call fcn.00431223
cmp dword [eax + 0x18], 8
jb 0x45038e
mov edi, dword [eax + 4]
jmp 0x450391
lea edi, [eax + 4]
lea esi, [ebp - 0xc]
call fcn.00431223
add eax, 0x1c
cmp dword [eax + 0x18], 8
jb 0x4503a7
mov eax, dword [eax + 4]
jmp 0x4503aa
add eax, 4
push 1
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4503bc
and dword [ebp + 8], 0
lea esi, [ebp - 0xc]
call fcn.00431b04
jmp 0x450340
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4503d1
Capabilities:
Check if file exists

Disassembly:
push 0x5c
mov eax, 0x4b5598
call fcn.004991ba
mov esi, ecx
push esi
mov edi, edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4503f6
mov eax, 0x44f
jmp 0x4504ac
push edi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x45040b
mov eax, 0x450
jmp 0x4504ac
push esi
call fcn.0044fb02
pop ecx
test eax, eax
je 0x450424
push edi
mov ecx, esi
call fcn.0044fdc9
pop ecx
jmp 0x4504ac
lea eax, [ebp - 0x68]
push eax
call fcn.0041e15a
and dword [ebp - 4], 0
push edi
push esi
push 0x4cb3fc
push str.__s__x___s___r__o__s___y
lea ecx, [ebp - 0x2c]
call fcn.0042f9b3
add esp, 0x10
push 0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x30], 0xf
call fcn.0040492f
mov byte [ebp - 4], 7
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x450469
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x48]
push ecx
push eax
call fcn.0044f9e4
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x48]
mov edi, eax
call fcn.00403db0
test edi, edi
je 0x450491
lea eax, [ebp - 0x68]
push eax
call fcn.00450320
pop ecx
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00403ead
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x68]
push eax
call fcn.00430f6d
mov eax, edi
call fcn.0049923d
ret
Function at 0x451311
Capabilities:
Check if file exists

Disassembly:
push 0xc0
mov eax, 0x4bc625
call fcn.004991ba
mov eax, dword [ebp + 8]
mov dword [ebp - 0xb0], ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0xb4], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0xb8], ecx
mov ecx, dword [ebp + 0x14]
mov edi, edx
mov dword [ebp - 0xbc], ecx
mov ecx, dword [ebp + 0x18]
xor ebx, ebx
mov dword [ebp - 0xac], eax
mov dword [ebp - 0xc0], ecx
cmp edi, ebx
je 0x45156f
cmp eax, ebx
je 0x45156f
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451379
push 4
jmp 0x451571
push edi
call fcn.00411bf6
pop ecx
test eax, eax
jne 0x45138b
push 0xd
jmp 0x451571
push edi
call fcn.0042d2cc
mov esi, edx
mov ecx, eax
or ecx, esi
mov dword [ebp - 0xcc], eax
jne 0x4513a6
push 7
jmp 0x451571
cmp esi, ebx
ja 0x4513b1
cmp eax, 0x40000000
jbe 0x4513b8
push 6
jmp 0x451571
push ebx
push ebx
push 3
push ebx
push 7
push SysReAllocString
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xa8], eax
cmp eax, ebx
je 0x4513da
cmp eax, 0xffffffff
jne 0x4513ec
lea eax, [ebp - 0xa8]
call fcn.0040681e
push 5
jmp 0x451571
lea eax, [ebp - 0xa8]
call fcn.0040681e
mov eax, dword [ebp - 0xcc]
shrd eax, esi, 0xb
mov dword [ebp - 0xa8], eax
shr esi, 0xb
mov eax, esi
mov esi, dword [ebp - 0xa8]
lea eax, [ebp - 0xa4]
push eax
add esi, 0x1388
call fcn.004505cb
push edi
lea eax, [ebp - 0xa0]
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0xa4], 1
call fcn.00403e86
push dword [ebp - 0xac]
lea eax, [ebp - 0x84]
push eax
call fcn.00403e86
push 0xffffffffffffffff
push ebx
push dword [ebp - 0xb8]
lea ecx, [ebp - 0x4c]
call fcn.00403caa
push 0xffffffffffffffff
push ebx
push dword [ebp - 0xb4]
lea ecx, [ebp - 0x30]
call fcn.00403caa
push edi
call fcn.004510d5
pop ecx
push dword [ebp - 0xac]
call fcn.004510d5
pop ecx
push edi
call fcn.004510fb
pop ecx
push dword [ebp - 0xc0]
lea eax, [ebp - 0xa4]
push ebx
push dword [ebp - 0xbc]
push esi
push eax
call fcn.00450b18
add esp, 0x14
push edi
mov dword [ebp - 0xa8], eax
call fcn.004511e8
pop ecx
cmp dword [ebp - 0xa8], ebx
jne 0x45155c
push edi
call fcn.004510d5
pop ecx
push dword [ebp - 0xac]
call fcn.004510d5
mov esi, dword [ebp - 0xbc]
pop ecx
cmp dword [esi + 0x14], ebx
jne 0x451501
push 0xffffffffffffffff
push ebx
push dword [ebp - 0xb8]
mov ecx, esi
call fcn.00403caa
push 0xffffffffffffffff
push ebx
push dword [ebp - 0xb4]
lea ecx, [esi + 0x1c]
call fcn.00403caa
push dword [ebp - 0xb8]
push esi
call fcn.0040cc31
pop ecx
pop ecx
cmp dword [ebp - 0xb0], ebx
jne 0x451538
mov ebx, dword [ebp - 0xac]
push str..docwmtmp
push ebx
call fcn.0042f966
mov dword [ebp - 0xb0], edi
test eax, eax
jne 0x451538
mov dword [ebp - 0xb0], ebx
mov ecx, dword [ebp - 0xb4]
lea eax, [esi + 0x1c]
push eax
push esi
push dword [ebp - 0xb0]
push 0x4c3304
push dword [ebp - 0xac]
call fcn.00450c8f
add esp, 0x14
lea edi, [ebp - 0xa4]
call fcn.00450ac3
mov eax, dword [ebp - 0xa8]
jmp 0x451572
push 3
pop eax
call fcn.0049923d
ret
Function at 0x45165a
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x34
mov eax, 0x4bc798
call fcn.004991ba
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov edi, ecx
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x14]
mov esi, edx
mov dword [ebp - 0x38], eax
test edi, edi
je 0x4517ef
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451699
push 4
jmp 0x4517f1
push edi
call fcn.00411bf6
pop ecx
test eax, eax
jne 0x4516ab
push 0xd
jmp 0x4517f1
push edi
call fcn.00413dfe
pop ecx
test al, al
je 0x4516be
xor eax, eax
inc eax
jmp 0x4517f2
and dword [ebp - 0x34], 0
push edi
call fcn.0042d928
test eax, eax
je 0x4516e9
push 0
xor eax, eax
push edi
inc eax
call fcn.0042d949
test eax, eax
jne 0x4516e2
push 5
jmp 0x4517f1
mov dword [ebp - 0x34], 1
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x451709
cmp eax, 0xffffffff
jne 0x451723
cmp dword [ebp - 0x34], 0
je 0x451719
push 1
push edi
xor eax, eax
call fcn.0042d949
lea eax, [ebp - 0x30]
call fcn.0040681e
jmp 0x4516db
lea eax, [ebp - 0x30]
call fcn.0040681e
lea ecx, [ebp - 0x2c]
call fcn.004515d6
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x451743
lea eax, [ebp - 0x28]
push dword [ebp - 0x38]
mov ecx, esi
push dword [ebp - 0x40]
mov edx, edi
push dword [ebp - 0x3c]
push ebx
push eax
call fcn.00451578
mov ebx, eax
add esp, 0x14
test ebx, ebx
jne 0x4517bc
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x14], 8
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x28]
jae 0x451776
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push edi
push eax
call esi
test eax, eax
jne 0x4517ac
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x45179d
lea eax, [ebp - 0x28]
push 1
push edi
push eax
call esi
test eax, eax
jne 0x4517ac
push 8
pop ebx
jmp 0x4517bc
cmp dword [ebp - 0x30], 0xffffffff
je 0x4517bc
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x4517c8
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x34], 0
je 0x4517df
push 1
push edi
xor eax, eax
call fcn.0042d949
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00403ead
mov eax, ebx
jmp 0x4517f2
push 3
pop eax
call fcn.0049923d
ret
Function at 0x451853
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bc762
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x4e8070]
xor eax, esp
mov dword [esp + 0xd4], eax
push ebx
push edi
mov eax, dword [0x4e8070]
xor eax, esp
push eax
lea eax, [esp + 0xe8]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [esp + 0x14], ecx
mov ecx, dword [ebp + 0x10]
mov dword [esp + 0x1c], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
test esi, esi
je 0x451a65
test ebx, ebx
je 0x451a65
test eax, eax
je 0x451a65
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4518d8
push 4
jmp 0x451a67
push esi
call fcn.00411bf6
pop ecx
test eax, eax
jne 0x4518ea
push 0xd
jmp 0x451a67
push esi
call fcn.0042d2cc
mov edi, edx
mov dword [esp + 0x24], eax
or eax, edi
jne 0x451901
push 7
jmp 0x451a67
xor eax, eax
cmp edi, eax
ja 0x451911
cmp dword [esp + 0x24], 0x40000000
jbe 0x451918
push 6
jmp 0x451a67
push eax
push eax
push 3
push eax
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
test eax, eax
je 0x451938
cmp eax, 0xffffffff
jne 0x451948
lea eax, [esp + 0x10]
call fcn.0040681e
push 5
jmp 0x451a67
lea eax, [esp + 0x10]
call fcn.0040681e
push esi
call fcn.00413dfe
pop ecx
test al, al
jne 0x451963
push 2
jmp 0x451a67
mov eax, dword [esp + 0x24]
shrd eax, edi, 0xb
shr edi, 0xb
mov edi, eax
mov eax, 0x7d0
cmp edi, eax
jae 0x45197b
mov edi, eax
lea eax, [esp + 0x4c]
push eax
call fcn.004505cb
and dword [esp + 0xf0], 0
push esi
lea eax, [esp + 0x54]
push eax
mov dword [esp + 0x54], 2
call fcn.00403e86
push ebx
lea eax, [esp + 0x70]
push eax
call fcn.00403e86
push esi
call fcn.004510d5
pop ecx
push ebx
call fcn.004510d5
pop ecx
push esi
call fcn.004510fb
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x50]
push 1
push dword [esp + 0x20]
push edi
push eax
call fcn.00450b18
add esp, 0x14
push esi
mov dword [esp + 0x14], eax
call fcn.004511e8
xor edi, edi
pop ecx
cmp dword [esp + 0x10], edi
jne 0x451a56
push esi
call fcn.004510d5
pop ecx
push ebx
call fcn.004510d5
pop ecx
cmp dword [esp + 0x14], edi
jne 0x451a16
push str..docwmtmp
push ebx
call fcn.0042f966
mov dword [esp + 0x14], esi
test eax, eax
jne 0x451a16
mov dword [esp + 0x14], ebx
push 0x4c102f
lea ecx, [esp + 0x34]
call fcn.00403461
mov eax, dword [esp + 0x18]
lea ecx, [eax + 0x1c]
push ecx
push eax
push dword [esp + 0x1c]
lea ecx, [esp + 0x3c]
push dword [esp + 0x2c]
mov byte [esp + 0x100], 1
push ebx
call fcn.00450c8f
add esp, 0x14
push edi
push 1
lea ecx, [esp + 0x38]
call fcn.00403db0
lea edi, [esp + 0x4c]
call fcn.00450ac3
mov eax, dword [esp + 0x10]
jmp 0x451a68
push 3
pop eax
mov ecx, dword [esp + 0xe8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xd4]
xor ecx, esp
call fcn.0049795f
mov esp, ebp
pop ebp
ret
Function at 0x451ae7
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push 0x30
mov eax, 0x4bcac6
call fcn.004991ba
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, ecx
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov esi, edx
mov dword [ebp - 0x38], eax
test edi, edi
je 0x451c6a
test esi, esi
je 0x451c6a
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451b28
push 4
jmp 0x451c6c
push edi
call fcn.00411bf6
pop ecx
test eax, eax
jne 0x451b3a
push 0xd
jmp 0x451c6c
and dword [ebp - 0x34], 0
push edi
call fcn.0042d928
test eax, eax
je 0x451b65
push 0
xor eax, eax
push edi
inc eax
call fcn.0042d949
test eax, eax
jne 0x451b5e
push 5
jmp 0x451c6c
mov dword [ebp - 0x34], 1
xor eax, eax
push eax
push eax
push 3
push eax
push eax
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x451b85
cmp eax, 0xffffffff
jne 0x451b9f
cmp dword [ebp - 0x34], 0
je 0x451b95
push 1
push edi
xor eax, eax
call fcn.0042d949
lea eax, [ebp - 0x30]
call fcn.0040681e
jmp 0x451b57
lea eax, [ebp - 0x30]
call fcn.0040681e
lea ecx, [ebp - 0x2c]
call fcn.004515d6
and dword [ebp - 4], 0
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x451bbf
lea eax, [ebp - 0x28]
push dword [ebp - 0x38]
mov ecx, ebx
push dword [ebp - 0x3c]
mov edx, edi
push esi
push eax
call fcn.00451a8b
add esp, 0x10
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x451c36
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x14], 8
mov ebx, eax
mov eax, dword [ebp - 0x28]
jae 0x451bef
lea eax, [ebp - 0x28]
mov esi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
push 1
push edi
push eax
call esi
test eax, eax
jne 0x451c29
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x451c16
lea eax, [ebp - 0x28]
push 1
push edi
push eax
call esi
test eax, eax
jne 0x451c29
mov dword [ebp - 0x30], 8
jmp 0x451c36
cmp ebx, 0xffffffff
je 0x451c36
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x451c42
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x34], 0
je 0x451c59
push 1
push edi
xor eax, eax
call fcn.0042d949
push 0
push 1
lea esi, [ebp - 0x2c]
call fcn.00403ead
mov eax, dword [ebp - 0x30]
jmp 0x451c6d
push 3
pop eax
call fcn.0049923d
ret
Function at 0x451cca
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4bc5ec
mov eax, dword fs:[0]
push eax
sub esp, 0xac
mov eax, dword [0x4e8070]
xor eax, esp
mov dword [esp + 0xa4], eax
push ebx
push edi
mov eax, dword [0x4e8070]
xor eax, esp
push eax
lea eax, [esp + 0xb8]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x14], eax
cmp esi, ebx
jne 0x451d25
push 3
pop eax
jmp 0x451dd2
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x451d34
push 4
jmp 0x451d1f
push esi
call fcn.00411bf6
pop ecx
test eax, eax
jne 0x451d43
push 0xd
jmp 0x451d1f
push ebx
push ebx
push 3
pop edi
push edi
push ebx
push 7
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x10], eax
cmp eax, ebx
je 0x451d65
cmp eax, 0xffffffff
jne 0x451d72
lea eax, [esp + 0x10]
call fcn.0040681e
push 5
jmp 0x451d1f
lea eax, [esp + 0x10]
call fcn.0040681e
lea eax, [esp + 0x1c]
push eax
call fcn.004505cb
push esi
lea eax, [esp + 0x24]
mov dword [esp + 0xc4], ebx
push eax
mov dword [esp + 0x24], edi
call fcn.00403e86
push esi
call fcn.004510fb
pop ecx
push dword [esp + 0x14]
lea eax, [esp + 0x20]
push 1
push dword [esp + 0x20]
push 0x7d0
push eax
call fcn.00450b18
add esp, 0x14
push esi
mov ebx, eax
call fcn.004511e8
pop ecx
lea edi, [esp + 0x1c]
call fcn.00450ac3
mov eax, ebx
mov ecx, dword [esp + 0xb8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0xa4]
xor ecx, esp
call fcn.0049795f
mov esp, ebp
pop ebp
ret

Function at 0x4528da
Capabilities:
Get disk information

Disassembly:
push 0x28
mov eax, 0x4b4d33
call fcn.004991ba
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 4], ebx
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x24], ebx
call fcn.0041036b
mov dword [ebp - 4], ebx
mov dword [ebp - 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ebx
mov ecx, dword [ebp - 0x18]
xor eax, eax
inc eax
shl eax, cl
mov ecx, dword [ebp - 0x20]
test ecx, eax
je 0x452956
lea eax, [ebp - 0x11]
push eax
mov al, byte [ebp - 0x18]
add al, 0x61
movzx eax, al
push eax
mov byte [ebp - 0x11], bl
call fcn.004528ad
pop ecx
pop ecx
test al, al
je 0x452956
cmp byte [ebp - 0x11], bl
je 0x452956
mov al, byte [ebp - 0x18]
add al, 0x41
mov byte [ebp - 0x11], al
lea eax, [ebp - 0x11]
push eax
push dword [ebp - 0x1c]
lea edi, [ebp - 0x30]
call fcn.004103c9
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x1a
jl 0x452910
mov eax, dword [ebp - 0x1c]
call fcn.0049923d
ret
Function at 0x452968
Capabilities:
Read file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x1a8]
sub esp, 0x228
mov eax, dword [0x4e8070]
xor eax, ebp
mov dword [ebp + 0x1a4], eax
movsx eax, byte [ebp + 0x1b0]
push ebx
push esi
push eax
push str.._c:
lea esi, [ebp - 0x78]
call fcn.0042fa11
cmp dword [ebp - 0x60], 0x10
mov eax, dword [ebp - 0x74]
pop ecx
pop ecx
jae 0x4529a8
lea eax, [ebp - 0x74]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp esi, ebx
je 0x4529cb
cmp esi, 0xffffffff
jne 0x4529f9
lea eax, [ebp - 0x7c]
call fcn.0040681e
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.00403db0
xor eax, eax
mov ecx, dword [ebp + 0x1a4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049795f
add ebp, 0x1a8
leave
ret 4
push 0x1ff
lea eax, [ebp - 0x5b]
push ebx
push eax
mov byte [ebp - 0x5c], bl
call fcn.00499dd0
add esp, 0xc
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x200
lea eax, [ebp - 0x5c]
push eax
push esi
mov dword [ebp - 0x80], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x452a43
xor esi, esi
lea eax, [ebp - 0x7c]
call fcn.0040681e
push ebx
push 1
lea ecx, [ebp - 0x78]
call fcn.00403db0
mov eax, esi
jmp 0x4529e0
cmp dword [ebp + 0x184], 0x1a6c0089
jne 0x452a2a
mov esi, dword [ebp + 0x188]
jmp 0x452a2c
Function at 0x452a8a
Capabilities:
Check if file exists
Get file attributes
Read file on windows
Set file attributes
Write file on windows

Disassembly:
push 0x38
mov eax, 0x4b3d72
call fcn.004991ba
push dword [ebp + 0xc]
lea eax, [ebp - 0x2c]
push dword [ebp + 8]
call fcn.00452a57
pop ecx
pop ecx
xor ebx, ebx
push 0x10
mov dword [ebp - 4], ebx
pop esi
cmp dword [ebp + 0x10], ebx
jne 0x452ac4
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x452abe
lea eax, [ebp - 0x28]
push eax
call fcn.0042cb41
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x452acf
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x452b07
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x452ae5
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x452b07
mov ecx, dword [ebp - 0x28]
or eax, 6
cmp dword [ebp - 0x14], esi
jae 0x452aff
lea ecx, [ebp - 0x28]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x28]
cmp dword [ebp - 0x14], esi
jae 0x452b12
lea eax, [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
neg ecx
push 3
sbb ecx, ecx
push ebx
and ecx, 0x70000000
push ebx
add ecx, 0x10000000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov dword [ebp - 0x40], esi
cmp esi, ebx
je 0x452b8d
cmp esi, 0xffffffff
je 0x452b8d
xor eax, eax
mov byte [ebp - 0x30], bl
lea edi, [ebp - 0x2f]
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x38]
push eax
push 4
pop edi
push edi
lea eax, [ebp - 0x30]
push eax
push esi
mov dword [ebp - 0x38], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 0x38], edi
jne 0x452b88
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x40]
call fcn.0040681e
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.00403db0
mov eax, esi
call fcn.0049923d
ret 0xc
cmp dword [ebp + 0x10], ebx
je 0x452b91
xor esi, esi
jmp 0x452b6b
push ebx
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
call fcn.0042dd90
push ebx
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x34]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push esi
mov dword [ebp - 0x34], ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [ebp - 0x34], edi
jne 0x452b8d
mov esi, dword [ebp - 0x3c]
jmp 0x452b6b