joyce8/EMBER2024-capa huggingface dataset:
Function at 0x13eb090
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x328
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x328]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x13eb100
xor ecx, ecx
je 0x13eb0f9
push str.SHGetFolderPath_failed
push 0
push 0
push 0
push 4
push 0
push 0
lea ecx, [ebp - 0xc8]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
lea ecx, [ebp - 0xc8]
call fcn.013c4580
jmp 0x13eb0bc
xor al, al
jmp 0x13eb190
lea edx, [ebp - 0x328]
push edx
call fcn.013a9fc9
add esp, 4
push eax
lea eax, [ebp - 0x328]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.013ea3b0
add esp, 0xc
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8f80
lea ecx, [ebp - 0xe4]
call fcn.01310ca0
push str.Mozilla
lea ecx, [ebp - 0x100]
call fcn.01256550
lea edx, [ebp - 0x100]
push edx
mov ecx, dword [ebp + 8]
call fcn.013e8fe0
lea ecx, [ebp - 0x100]
call fcn.01310ca0
push str.Firefox
lea ecx, [ebp - 0x11c]
call fcn.01256550
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8fe0
lea ecx, [ebp - 0x11c]
call fcn.01310ca0
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret
Function at 0x13ebd30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push str.http_shellopencommand
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x13ebd61
xor al, al
jmp 0x13ebe71
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
push ecx
push 0
lea edx, [ebp - 8]
push edx
push 0
push 0x141de40
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 8], 1
je 0x13ebd95
mov dword [ebp - 0x18], 5
jmp 0x13ebde9
cmp dword [ebp - 0x18], 0
jne 0x13ebde9
mov eax, dword [ebp - 0x14]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.01397a7c
add esp, 4
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 8]
push ecx
push 0
push 0x141de44
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0xd], 0
cmp dword [ebp - 0x18], 0
jne 0x13ebe5c
xor ecx, ecx
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov word [eax + edx*2], cx
mov dword [ebp - 0x20], 0
jmp 0x13ebe1b
mov ecx, dword [ebp - 0x20]
add ecx, 1
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp - 0x14]
jae 0x13ebe42
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 4]
movzx edx, word [ecx + eax*2]
push edx
call fcn.013ecba0
add esp, 4
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 4]
mov word [edx + ecx*2], ax
jmp 0x13ebe12
push str.firefox.exe
mov eax, dword [ebp - 4]
push eax
call fcn.013ecb80
add esp, 8
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0xd], al
mov ecx, dword [ebp - 4]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0x28]
push edx
call fcn.01399081
add esp, 4
mov al, byte [ebp - 0xd]
mov esp, ebp
pop ebp
ret
Function at 0x13f0ff0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], ecx
xor eax, eax
je 0x13f1064
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
push str.Deleting_file
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.01259f20
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.013c4580
lea ecx, [ebp - 0x20]
call fcn.01310ca0
jmp 0x13f1009
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x120]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x120]
mov eax, dword [edx + 0x34]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13f1086
xor al, al
jmp 0x13f10db
lea edx, [ebp - 0xfc]
push edx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x119], al
lea ecx, [ebp - 0x118]
call fcn.01254e90
lea ecx, [ebp - 0xfc]
call fcn.01310ca0
mov al, byte [ebp - 0x119]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 4

Function at 0x13f10f0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x158], ecx
xor eax, eax
je 0x13f1164
lea ecx, [ebp - 0x20]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
push str.Deleting_folder
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0xe0]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.01259f20
add esp, 8
lea ecx, [ebp - 0xe0]
call fcn.013c4580
lea ecx, [ebp - 0x20]
call fcn.01310ca0
jmp 0x13f1109
lea edx, [ebp - 0xfc]
push edx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
mov ecx, eax
call fcn.0126a780
sub eax, 1
push eax
push 0
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea ecx, [ebp - 0x150]
call fcn.012e4dd0
lea ecx, [ebp - 0x118]
call fcn.01310ca0
lea ecx, [ebp - 0xfc]
call fcn.01310ca0
lea ecx, [ebp - 0x150]
push ecx
lea edx, [ebp - 0x134]
push edx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x151], al
lea ecx, [ebp - 0x134]
call fcn.01254e90
lea ecx, [ebp - 0x150]
call fcn.01310ca0
mov al, byte [ebp - 0x151]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 4
Function at 0x13f1210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
lea eax, [ebp - 0x238]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x13f1246
xor al, al
jmp 0x13f1357
call fcn.013f2470
movzx ecx, al
test ecx, ecx
jne 0x13f1276
push 0x105
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x13f1276
xor al, al
jmp 0x13f1357
lea ecx, [ebp - 0x238]
push ecx
call fcn.013f2450
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x13f12c7
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 - 0x23a]
cmp eax, 0x5c
je 0x13f12c7
push 0xffffffffffffffff
push 0x141e90c
mov ecx, 0x105
sub ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
lea eax, [ebp + edx*2 - 0x238]
push eax
call fcn.013f2500
add esp, 0x10
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x104
jb 0x13f12d7
xor al, al
jmp 0x13f1357
mov ecx, dword [ebp + 8]
call fcn.013e8b20
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.013ea380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8f80
lea ecx, [ebp - 0x20]
call fcn.01310ca0
cmp dword [ebp + 0x10], 0
je 0x13f1315
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8fe0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x13f1347
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x20]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13f1347
mov dword [ebp - 0x240], 0
jmp 0x13f1351
mov dword [ebp - 0x240], 1
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 0xc

Function at 0x13f1370
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x268], ecx
lea eax, [ebp - 0x260]
push eax
push 0
mov ecx, dword [ebp + 0x10]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
lea eax, [ebp - 0x3c]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.013e8bb0
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x261], al
lea ecx, [ebp - 0x58]
call fcn.01254e90
lea ecx, [ebp - 0x3c]
call fcn.01310ca0
lea ecx, [ebp - 0x20]
call fcn.01254e90
movzx edx, byte [ebp - 0x261]
test edx, edx
je 0x13f1418
lea eax, [ebp - 0x260]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.013ea380
add esp, 8
mov eax, dword [ebp + 8]
jmp 0x13f1428
push 0x141e4e2
mov ecx, dword [ebp + 8]
call fcn.01256550
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 0xc
Function at 0x13f1440
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x178
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x178], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x178]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x178]
mov eax, dword [edx + 0x34]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13f147e
xor al, al
jmp 0x13f159e
xor edx, edx
je 0x13f150c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.013e8bb0
push eax
push 0x141ebac
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
push 0x141e9ac
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.01259f20
add esp, 8
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.01259f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.013c4580
lea ecx, [ebp - 0x3c]
call fcn.01310ca0
lea ecx, [ebp - 0x20]
call fcn.01310ca0
jmp 0x13f147e
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.013e8bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x171], al
lea ecx, [ebp - 0x170]
call fcn.01254e90
lea ecx, [ebp - 0x154]
call fcn.01310ca0
lea ecx, [ebp - 0x138]
call fcn.01254e90
lea ecx, [ebp - 0x11c]
call fcn.01310ca0
mov al, byte [ebp - 0x171]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 8
Function at 0x13f15b0
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x238], ecx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x238]
mov edx, dword [ecx]
mov ecx, dword [ebp - 0x238]
mov eax, dword [edx + 0x30]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13f15ee
xor al, al
jmp 0x13f17b1
xor edx, edx
je 0x13f167c
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.013e8bb0
push eax
push str._to
lea ecx, [ebp - 0x3c]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
push str.Moving
push 0
push 0
push 0
push 2
push 0
push 0
lea ecx, [ebp - 0x100]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.01259f20
add esp, 8
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.01259f20
add esp, 8
lea ecx, [ebp - 0x100]
call fcn.013c4580
lea ecx, [ebp - 0x3c]
call fcn.01310ca0
lea ecx, [ebp - 0x20]
call fcn.01310ca0
jmp 0x13f15ee
lea edx, [ebp - 0x11c]
push edx
mov ecx, dword [ebp + 0xc]
call fcn.013e8bb0
push eax
lea eax, [ebp - 0x138]
push eax
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
lea ecx, [ebp - 0x154]
push ecx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea edx, [ebp - 0x170]
push edx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x170]
call fcn.01254e90
lea ecx, [ebp - 0x154]
call fcn.01310ca0
lea ecx, [ebp - 0x138]
call fcn.01254e90
lea ecx, [ebp - 0x11c]
call fcn.01310ca0
movzx eax, byte [ebp - 0x231]
test eax, eax
je 0x13f17af
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x11
je 0x13f176f
xor ecx, ecx
je 0x13f176b
push str.Failed_to_move_file
push 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 2
push 4
push 0x10e
push 0x141ebc0
lea ecx, [ebp - 0x230]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
lea ecx, [ebp - 0x230]
call fcn.013c4580
jmp 0x13f1723
xor al, al
jmp 0x13f17b1
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x238]
call fcn.013e9710
movzx ecx, al
test ecx, ecx
jne 0x13f178d
xor al, al
jmp 0x13f17b1
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x238]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x238]
mov eax, dword [edx + 0x1c]
call eax
movzx ecx, al
test ecx, ecx
jne 0x13f17af
xor al, al
jmp 0x13f17b1
mov al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 8
Function at 0x13f1930
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x60], 0
xor eax, eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
lea ecx, [ebp - 0x60]
push ecx
push 0
lea edx, [ebp - 0x20]
push edx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x65], al
lea ecx, [ebp - 0x3c]
call fcn.01254e90
lea ecx, [ebp - 0x20]
call fcn.01310ca0
movzx ecx, byte [ebp - 0x65]
test ecx, ecx
je 0x13f19b6
xor al, al
jmp 0x13f19de
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x64], eax
cmp dword [ebp - 0x64], 2
je 0x13f19d4
cmp dword [ebp - 0x64], 3
je 0x13f19d4
mov dword [ebp - 0x70], 0
jmp 0x13f19db
mov dword [ebp - 0x70], 1
mov al, byte [ebp - 0x70]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 4

Function at 0x13f19f0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x7c], ecx
push 1
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
call fcn.013e8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
lea edx, [ebp - 0x58]
push edx
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x75], al
lea ecx, [ebp - 0x74]
call fcn.01254e90
lea ecx, [ebp - 0x58]
call fcn.01310ca0
lea ecx, [ebp - 0x3c]
call fcn.01254e90
lea ecx, [ebp - 0x20]
call fcn.01310ca0
mov al, byte [ebp - 0x75]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 8
Function at 0x13f1a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x13f1ac6
xor al, al
jmp 0x13f1b56
call fcn.013f2470
movzx ecx, al
test ecx, ecx
jne 0x13f1af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x13f1af3
xor al, al
jmp 0x13f1b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.013f2450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
call fcn.013f24b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.01254e90
lea ecx, [ebp - 0x20]
call fcn.01310ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 4
Function at 0x13f1d80
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x274], ecx
movzx eax, byte [ebp + 0xc]
neg eax
sbb eax, eax
and eax, 0xfffffff9
add eax, 0x23
mov dword [ebp - 0x5c], eax
push 1
mov ecx, dword [ebp - 0x5c]
push ecx
lea edx, [ebp - 0x270]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
jne 0x13f1dca
xor al, al
jmp 0x13f1f7a
call fcn.013f2470
movzx eax, al
test eax, eax
jne 0x13f1dfa
push 0x105
lea ecx, [ebp - 0x270]
push ecx
lea edx, [ebp - 0x270]
push edx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x13f1dfa
xor al, al
jmp 0x13f1f7a
push 0xffffffffffffffff
push 0x141ea6c
push 0x105
lea eax, [ebp - 0x270]
push eax
call fcn.013f2570
add esp, 0x10
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov ecx, dword [ebp - 0x274]
add ecx, 4
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.013f2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x20]
call fcn.01254e90
cmp dword [ebp - 0x60], 0
jbe 0x13f1ea1
mov eax, dword [ebp - 0x60]
movzx ecx, word [ebp + eax*2 - 0x272]
cmp ecx, 0x5c
je 0x13f1ea1
push 0xffffffffffffffff
push 0x141eb0c
mov edx, 0x105
sub edx, dword [ebp - 0x60]
push edx
mov eax, dword [ebp - 0x60]
lea ecx, [ebp + eax*2 - 0x270]
push ecx
call fcn.013f2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
push 0xffffffffffffffff
mov edx, dword [ebp - 0x274]
add edx, 0x20
push edx
lea eax, [ebp - 0x3c]
push eax
call fcn.013bd370
add esp, 8
mov ecx, eax
call fcn.01254c40
push eax
mov ecx, 0x105
sub ecx, dword [ebp - 0x60]
push ecx
mov edx, dword [ebp - 0x60]
lea eax, [ebp + edx*2 - 0x270]
push eax
call fcn.013f2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
lea ecx, [ebp - 0x3c]
call fcn.01254e90
cmp dword [ebp - 0x60], 0
jbe 0x13f1f2a
mov ecx, dword [ebp - 0x60]
movzx edx, word [ebp + ecx*2 - 0x272]
cmp edx, 0x5c
je 0x13f1f2a
push 0xffffffffffffffff
push 0x141ebbc
mov eax, 0x105
sub eax, dword [ebp - 0x60]
push eax
mov ecx, dword [ebp - 0x60]
lea edx, [ebp + ecx*2 - 0x270]
push edx
call fcn.013f2500
add esp, 0x10
add eax, dword [ebp - 0x60]
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x60], 0x104
jb 0x13f1f37
xor al, al
jmp 0x13f1f7a
mov ecx, dword [ebp + 8]
call fcn.013e8b20
lea eax, [ebp - 0x270]
push eax
lea ecx, [ebp - 0x58]
push ecx
call fcn.013ea380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8f80
lea ecx, [ebp - 0x58]
call fcn.01310ca0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x274]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x274]
mov eax, dword [edx + 0x20]
call eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 8
Function at 0x13f2000
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
mov eax, dword [0x14716ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
cmp dword [ebp + 0xc], 0
jne 0x13f2026
xor al, al
jmp 0x13f223c
lea ecx, [ebp - 0x218]
call fcn.012550e0
mov dword [ebp - 0x1fc], 0
push 4
lea eax, [ebp - 0x224]
push eax
mov ecx, dword [ebp + 8]
call fcn.013e9310
movzx ecx, al
test ecx, ecx
je 0x13f20a1
lea edx, [ebp - 0x224]
push edx
lea ecx, [ebp - 0x20]
call fcn.01256550
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.013bd370
add esp, 8
push eax
lea ecx, [ebp - 0x218]
call fcn.0125fd10
lea ecx, [ebp - 0x3c]
call fcn.01254e90
lea ecx, [ebp - 0x20]
call fcn.01310ca0
lea ecx, [ebp - 0x218]
call fcn.01254c40
mov dword [ebp - 0x1fc], eax
jmp 0x13f2108
push 0x141ec5c
push 2
push 0
lea edx, [ebp - 0x74]
push edx
lea eax, [ebp - 0x58]
push eax
mov ecx, dword [ebp + 8]
call fcn.013e8e60
mov ecx, eax
call fcn.0125b350
push eax
call fcn.0125e3d0
add esp, 8
mov byte [ebp - 0x231], al
lea ecx, [ebp - 0x74]
call fcn.01310ca0
lea ecx, [ebp - 0x58]
call fcn.01310ca0
movzx ecx, byte [ebp - 0x231]
test ecx, ecx
je 0x13f2108
mov byte [ebp - 0x232], 0
lea ecx, [ebp - 0x218]
call fcn.01254e90
mov al, byte [ebp - 0x232]
jmp 0x13f223c
mov edx, dword [ebp - 0x1fc]
push edx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x228], eax
mov eax, dword [ebp - 0x228]
and eax, 4
jne 0x13f2131
mov ecx, dword [ebp - 0x228]
and ecx, 0
je 0x13f219b
xor edx, edx
je 0x13f217e
lea eax, [ebp - 0x224]
push eax
push str._remove_or_unknown_drive
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x138]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
push eax
call fcn.012516a0
add esp, 8
lea ecx, [ebp - 0x138]
call fcn.013c4580
jmp 0x13f2131
mov byte [ebp - 0x233], 0
lea ecx, [ebp - 0x218]
call fcn.01254e90
mov al, byte [ebp - 0x233]
jmp 0x13f223c
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x230]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 0x1fc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x13f21da
mov byte [ebp - 0x234], 1
lea ecx, [ebp - 0x218]
call fcn.01254e90
mov al, byte [ebp - 0x234]
jmp 0x13f223c
xor edx, edx
je 0x13f2217
push str._GetDiskFreeSpaceEx_returns_error
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [ebp - 0x1f8]
call fcn.013c4170
mov ecx, eax
call fcn.013bf550
push eax
call fcn.012516a0
add esp, 8
lea ecx, [ebp - 0x1f8]
call fcn.013c4580
jmp 0x13f21da
mov byte [ebp - 0x235], 0
lea ecx, [ebp - 0x218]
call fcn.01254e90
mov al, byte [ebp - 0x235]
jmp 0x13f223c
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01398a41
mov esp, ebp
pop ebp
ret 8