joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43e330
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5b0ac8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x629960]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x629960]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x43e484
cmp byte [ebx + 0x45], 0
je 0x43e484
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x43e390
xor al, al
jmp 0x43e486
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
mov dword [esp + 0x2c], ecx
cmp ecx, 0x10
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
mov dword [esp + 0x28], 8
cmovae eax, dword [esp + 0x18]
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x43e3d0
cmp dword [esp + 0x2c], 0x10
lea eax, [esp + 0x14]
mov ecx, dword [ebx + 0x40]
lea edi, [esp + 0x18]
cmovae edi, dword [esp + 0x18]
lea esi, [esp + 0x18]
cmovae esi, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x2c]
mov edx, dword [ecx]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x43e411
dec eax
je 0x43e415
sub eax, 2
je 0x43e46b
xor bl, bl
jmp 0x43e46d
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
mov edx, dword [esp + 0x18]
cmp ecx, 0x10
mov esi, dword [esp + 0x14]
cmovae eax, edx
sub esi, eax
je 0x43e44c
push dword [ebx + 0x50]
cmp ecx, 0x10
lea eax, [esp + 0x1c]
push esi
cmovae eax, edx
push 1
push eax
call fcn.004a2a2c
add esp, 0x10
cmp esi, eax
jne 0x43e40d
cmp byte [ebx + 0x45], 0
je 0x43e46b
test esi, esi
jne 0x43e3d0
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0043e000
jmp 0x43e3d0
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x43e480
push dword [esp + 0x18]
call fcn.0048c32c
add esp, 4
mov al, bl
jmp 0x43e486
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x43f000
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, ax
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0048d952
Function at 0x43fc10
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b0cfa
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x629960]
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, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004c256c
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x43fcb6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004a252f
push 0x625b10
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004a63a5
push edi
push esi
call fcn.004c243f
add esp, 8
mov eax, esi
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.004a16e5
mov esp, ebp
pop ebp
ret 4

Function at 0x441eb0
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push edx
mov esi, ecx
mov dword [ebp - 0x20], 0
call dword [sym.imp.USER32.dll_OpenClipboard]
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
jne 0x441f12
call dword [sym.imp.USER32.dll_CloseClipboard]
push edi
mov dword [esi + 0x14], 0xf
mov ecx, esi
mov dword [esi + 0x10], edi
push 0x60e134
mov byte [esi], 0
call fcn.00437370
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x441f48
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x60e134
mov ecx, esi
call fcn.004372e0
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
push eax
lea ecx, [ebp - 0x1c]
call fcn.004372e0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.00440840
cmp dword [ebp - 8], 0x10
jb 0x441f7a
push dword [ebp - 0x1c]
call fcn.0048c32c
add esp, 4
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x441ff0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x103
lea eax, [ebp - 0x107]
mov dword [ebp - 0x10c], 0
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x108], 0
call fcn.004a3440
add esp, 0xc
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x44205c
mov eax, dword [esi]
jmp 0x44205e
mov eax, esi
lea edx, [ebp - 0x108]
cmp edx, eax
jb 0x4420b1
cmp ecx, 0x10
jb 0x442071
mov edx, dword [esi]
jmp 0x442073
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
lea edx, [ebp - 0x108]
cmp eax, edx
jbe 0x4420b1
cmp ecx, 0x10
jb 0x44208b
mov eax, dword [esi]
jmp 0x44208d
mov eax, esi
push 2
lea ecx, [ebp - 0x108]
sub ecx, eax
push ecx
push esi
mov ecx, esi
call fcn.004374f0
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jae 0x4420c2
push dword [esi + 0x10]
mov ecx, esi
push 2
call fcn.00437700
cmp dword [esi + 0x14], 0x10
jb 0x4420cc
mov ecx, dword [esi]
jmp 0x4420ce
mov ecx, esi
mov ax, word [ebp - 0x108]
mov word [ecx], ax
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 2
jb 0x4420e9
mov eax, dword [esi]
jmp 0x4420eb
mov eax, esi
mov ecx, dword [ebp - 4]
mov byte [eax + 2], 0
xor ecx, ebp
mov eax, esi
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x442100
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
xor eax, eax
mov dword [ebp - 0x210], 0
push 0x206
push eax
mov word [ebp - 0x20c], ax
mov esi, ecx
lea eax, [ebp - 0x20a]
push eax
call fcn.004a3440
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
mov ecx, dword [esi + 0x14]
cmp ecx, 8
jb 0x44216f
mov eax, dword [esi]
jmp 0x442171
mov eax, esi
lea edx, [ebp - 0x20c]
cmp edx, eax
jb 0x4421c7
cmp ecx, 8
jb 0x442184
mov edx, dword [esi]
jmp 0x442186
mov edx, esi
mov eax, dword [esi + 0x10]
lea eax, [edx + eax*2]
lea edx, [ebp - 0x20c]
cmp eax, edx
jbe 0x4421c7
cmp ecx, 8
jb 0x44219f
mov eax, dword [esi]
jmp 0x4421a1
mov eax, esi
lea ecx, [ebp - 0x20c]
sub ecx, eax
push 2
sar ecx, 1
push ecx
push esi
mov ecx, esi
call fcn.00437e60
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
cmp ecx, 2
jae 0x4421d8
push dword [esi + 0x10]
mov ecx, esi
push 2
call fcn.00437fc0
cmp dword [esi + 0x14], 8
jb 0x4421e2
mov ecx, dword [esi]
jmp 0x4421e4
mov ecx, esi
mov eax, dword [ebp - 0x20c]
mov dword [ecx], eax
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 2
jb 0x4421fd
mov eax, dword [esi]
jmp 0x4421ff
mov eax, esi
xor ecx, ecx
mov word [eax + 4], cx
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x4423b0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1652
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x103
mov dword [ebp - 4], 0
lea eax, [ebp - 0x113]
push 0
mov dword [ebp - 0x118], 0
push eax
mov dword [ebp - 0x11c], esi
mov byte [ebp - 0x114], 0
call fcn.004a3440
add esp, 0xc
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
mov byte [esi], 0
push 0
push 0x60e134
call fcn.00437370
push 1
push 0x26
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push eax
push 0
mov dword [ebp - 0x118], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x442479
cmp byte [ebp - 0x114], 0
je 0x442498
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
jmp 0x442470
mov al, byte [ecx]
inc ecx
test al, al
jne 0x442470
jmp 0x4424ac
push 0x104
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.004a3440
add esp, 0xc
cmp byte [ebp - 0x114], 0
jne 0x44249c
xor ecx, ecx
jmp 0x4424ae
lea ecx, [ebp - 0x114]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4424a5
sub ecx, edx
push ecx
lea eax, [ebp - 0x114]
mov ecx, esi
push eax
call fcn.00437370
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x443100
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x443115
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x443154
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x443150
lea ebx, [ebx]
cmp esi, edx
jae 0x443154
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
dec ecx
jne 0x443140
cmp esi, edx
jb 0x443159
xor eax, eax
pop esi
pop ebp
ret
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop ebp
ret

Function at 0x443220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa04
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x9fb]
push 0x9f5
push 0
push eax
mov esi, ecx
mov byte [ebp - 0x9fc], 0
call fcn.004a3440
add esp, 0xc
mov dword [ebp - 0xa00], 0x9f6
lea eax, [ebp - 0xa00]
push eax
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xa04]
push eax
push 0
push str.InstallLocation
push dword [esi + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4432d5
cmp word [ebp - 0x9fc], ax
je 0x4432af
lea eax, [ebp - 0x9fc]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4432a0
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x9fc]
mov ecx, edi
push eax
call fcn.00438260
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004a16e5
mov esp, ebp
pop ebp
ret 8
Function at 0x443de0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x629960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004374f0
lea ecx, [ebp - 0x28]
call fcn.00444f60
mov esi, eax
add esp, 0x18
lea eax, [ebp + 8]
cmp eax, esi
je 0x443e71
cmp dword [ebp + 0x1c], 0x10
jb 0x443e56
push dword [ebp + 8]
call fcn.0048c32c
add esp, 4
push esi
lea ecx, [ebp + 8]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
call fcn.00437970
cmp dword [ebp - 0x14], 0x10
jb 0x443e82
push dword [ebp - 0x28]
call fcn.0048c32c
add esp, 4
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
jne 0x443eac
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.imagehlp.dll_MakeSureDirectoryPathExists]
cmp dword [ebp + 0x1c], 0x10
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call esi
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 0x10
jb 0x443ed0
push dword [ebp + 8]
call fcn.0048c32c
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 0x444280
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1f60
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
push ebx
push esi
mov eax, dword [0x629960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov bh, dl
mov byte [ebp - 0x11], cl
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x34], ax
lea ecx, [ebp - 0x34]
lea eax, [ebp + 0xc]
mov dword [ebp - 0x20], 7
push eax
mov dword [ebp - 0x24], 0
call fcn.00437e60
sub esp, 0x18
mov byte [ebp - 4], 1
mov esi, esp
xor eax, eax
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x34]
push eax
call fcn.00437e60
mov ecx, esi
call fcn.0044d760
add esp, 0x18
call fcn.00443c80
add esp, 0x18
mov bl, al
cmp dword [ebp - 0x20], 8
jb 0x444328
push dword [ebp - 0x34]
call fcn.0048c32c
add esp, 4
test bl, bl
je 0x444361
xor ecx, ecx
mov eax, 1
cmp byte [ebp - 0x11], cl
cmovne ecx, eax
test bh, bh
je 0x444340
or ecx, 4
cmp byte [ebp + 8], 0
je 0x444349
or ecx, 2
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
push ecx
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
cmp dword [ebp + 0x20], 8
jb 0x444372
push dword [ebp + 0xc]
call fcn.0048c32c
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 0x444390
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1eb8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x629960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 0x20]
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
lea eax, [ebp + 8]
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push eax
mov byte [ecx], 0
call fcn.004374f0
lea ecx, [ebp - 0x24]
call fcn.0044d8c0
add esp, 0x18
lea eax, [ebp - 0x24]
cmp dword [ebp - 0x10], 8
cmovae eax, dword [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov cl, al
and cl, 1
mov byte [esi], cl
mov ecx, eax
shr ecx, 2
shr eax, 1
and cl, 1
and al, 1
mov byte [ebx], cl
cmp dword [ebp - 0x10], 8
mov byte [edi], al
jb 0x44442e
push dword [ebp - 0x24]
call fcn.0048c32c
add esp, 4
xor eax, eax
mov dword [ebp - 0x10], 7
cmp dword [ebp + 0x1c], 0x10
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
jb 0x444453
push dword [ebp + 8]
call fcn.0048c32c
add esp, 4
mov al, 1
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 0x444470
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b1f90
mov eax, dword fs:[0]
push eax
sub esp, 0x20
push ebx
push esi
mov eax, dword [0x629960]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 4], 0
push 0xffffffffffffffff
push eax
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
lea eax, [ebp + 8]
mov dword [ebp - 0x14], 7
push eax
mov dword [ebp - 0x18], 0
call fcn.00437e60
sub esp, 0x18
mov byte [ebp - 4], 1
mov esi, esp
xor eax, eax
sub esp, 0x18
mov ecx, esp
push 0xffffffffffffffff
mov dword [ecx + 0x14], 7
mov dword [ecx + 0x10], 0
push eax
mov word [ecx], ax
lea eax, [ebp - 0x28]
push eax
call fcn.00437e60
mov ecx, esi
call fcn.0044d760
add esp, 0x18
call fcn.00443c80
add esp, 0x18
mov bl, al
cmp dword [ebp - 0x14], 8
jb 0x444513
push dword [ebp - 0x28]
call fcn.0048c32c
add esp, 4
test bl, bl
jne 0x44451b
mov bl, 1
jmp 0x444549
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
push 0x80
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
cmp dword [ebp + 0x1c], 8
lea eax, [ebp + 8]
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne bl
cmp dword [ebp + 0x1c], 8
jb 0x44455a
push dword [ebp + 8]
call fcn.0048c32c
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 0x446490
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2590
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x629960]
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
xor eax, eax
mov byte [ebp - 0x18], 0
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x17], eax
mov word [ebp - 0x13], ax
mov byte [ebp - 0x11], al
call fcn.00441ff0
mov dword [ebp - 4], 0
xor ebx, ebx
mov edi, 0x41
push edi
lea eax, [ebp - 0x18]
push str._c:_
push eax
call fcn.00447b30
sub esp, 0xc
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], 0
cmp byte [ebp - 0x18], 0
jne 0x446510
xor ecx, ecx
jmp 0x44651f
lea ecx, [ebp - 0x18]
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446516
sub ecx, esi
push ecx
lea eax, [ebp - 0x18]
mov ecx, edx
push eax
call fcn.00437370
call fcn.004489f0
add esp, 0x18
test al, al
jne 0x446657
sub esp, 0x18
mov edx, esp
mov dword [edx + 0x14], 0xf
mov dword [edx + 0x10], 0
mov byte [edx], al
cmp byte [ebp - 0x18], al
jne 0x446559
xor ecx, ecx
jmp 0x446569
lea ecx, [ebp - 0x18]
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x446560
sub ecx, esi
push ecx
lea eax, [ebp - 0x18]
mov ecx, edx
push eax
call fcn.00437370
call fcn.00446910
add esp, 0x18
cmp eax, 4
je 0x446657
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x446657
sub esp, 0x18
mov esi, esp
mov dword [ebp - 0x34], esp
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x4465be
mov eax, dword [esi]
jmp 0x4465c0
mov eax, esi
lea edx, [ebp - 0x18]
cmp edx, eax
jb 0x4465fb
cmp ecx, 0x10
jb 0x4465d0
mov edx, dword [esi]
jmp 0x4465d2
mov edx, esi
mov eax, dword [esi + 0x10]
add eax, edx
lea edx, [ebp - 0x18]
cmp eax, edx
jbe 0x4465fb
cmp ecx, 0x10
jb 0x4465e7
mov ecx, dword [esi]
jmp 0x4465e9
mov ecx, esi
push 1
lea eax, [ebp - 0x18]
sub eax, ecx
mov ecx, esi
push eax
push esi
call fcn.004374f0
jmp 0x446630
cmp ecx, 1
jae 0x44660c
push dword [esi + 0x10]
mov ecx, esi
push 1
call fcn.00437700
cmp dword [esi + 0x14], 0x10
jb 0x446616
mov ecx, dword [esi]
jmp 0x446618
mov ecx, esi
mov al, byte [ebp - 0x18]
mov byte [ecx], al
cmp dword [esi + 0x14], 0x10
mov dword [esi + 0x10], 1
jb 0x44662c
mov esi, dword [esi]
mov byte [esi + 1], 0
sub esp, 0x18
mov byte [ebp - 4], 1
mov eax, esp
lea ecx, [ebp - 0x30]
push 1
push 0
push eax
call fcn.00436be0
mov byte [ebp - 4], 0
call fcn.0044d9c0
add esp, 0x30
test al, al
jne 0x446657
inc ebx
inc edi
cmp edi, 0x5a
jle 0x4464e1
cmp dword [ebp - 0x1c], 0x10
jb 0x446672
push dword [ebp - 0x30]
call fcn.0048c32c
add esp, 4
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.004a16e5
mov esp, ebp
pop ebp
ret
Function at 0x446690
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b25d0
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x4466da
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
jmp 0x44676c
push 1
push 0
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp + 8]
call fcn.00436be0
push 0x60e2a4
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004407a0
add esp, 4
cmp dword [ebp - 0x4c], 0x10
jb 0x446711
push dword [ebp - 0x60]
call fcn.0048c32c
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x40]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x44673b
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x2c]
jmp 0x446749
xorps xmm0, xmm0
movlpd qword [ebp - 0x48], xmm0
mov esi, dword [ebp - 0x44]
mov edi, dword [ebp - 0x48]
cmp dword [ebp - 0x14], 0x10
jb 0x44675a
push dword [ebp - 0x28]
call fcn.0048c32c
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x44677d
push dword [ebp + 8]
call fcn.0048c32c
add esp, 4
mov edx, esi
mov eax, edi
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.004a16e5
mov esp, ebp
pop ebp
ret

Function at 0x4467a0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b2610
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x629960]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
cmp dword [ebp + 0x18], 0
jne 0x4467da
xor bl, bl
jmp 0x44684c
push 1
push 0
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.00436be0
push 0x60e2b4
mov edx, eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.004407a0
add esp, 4
cmp dword [ebp - 0x2c], 0x10
jb 0x446811
push dword [ebp - 0x40]
call fcn.0048c32c
add esp, 4
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 5
sete bl
cmp dword [ebp - 0x14], 0x10
jb 0x44683a
push dword [ebp - 0x28]
call fcn.0048c32c
add esp, 4
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [ebp + 0x1c], 0x10
jb 0x44685d
push dword [ebp + 8]
call fcn.0048c32c
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a16e5
mov esp, ebp
pop ebp
ret