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

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73ab68
mov eax, dword fs:[0]
push eax
push ecx
push ebx
sub esp, 0x38
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x1c], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x34], 0xff
jb 0x546e4c
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x30]
movups xmm0, xmmword [0x7ea398]
push eax
push 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x30], 0
push eax
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 4], 0
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
js 0x546f21
mov edx, dword [ebp - 0x30]
test edx, edx
je 0x546f21
mov ecx, edx
mov dword [ebp - 0x3c], 0
xor eax, eax
mov dword [ebp - 0x38], 7
mov word [ebp - 0x4c], ax
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x546ea6
sub ecx, edi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x4c]
call fcn.00426d40
mov edx, esi
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x4c]
call fcn.0053bd60
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], 0
call fcn.00426ce0
push 1
push 0x79f118
mov ecx, esi
call fcn.0044ab30
push 5
push 0x7ea10c
mov ecx, esi
call fcn.0044ab30
push 1
push 0x79f118
mov ecx, esi
call fcn.0044ab30
push dword [ebp - 0x30]
xor esi, esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
jmp 0x546f26
mov esi, 1
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
Function at 0x547790
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73ac48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x5478b8
mov eax, dword [edx + 0x10]
test eax, eax
je 0x5478b8
cmp byte [ebp + 8], 0
jne 0x5478ad
cmp dword [ecx + 0x14], 0x10
jb 0x5477e5
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
jb 0x5477f3
mov edx, dword [edx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptProtectData]
test eax, eax
je 0x5478b8
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00426e90
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x54785c
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x547879
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426e90
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x5478a9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x54789f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x5478d8
push edx
push ecx
call fcn.006d0bf7
add esp, 8
xor eax, eax
jmp 0x5478bd
push esi
call fcn.005475c0
add esp, 4
jmp 0x5478bd
mov eax, 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.006d0965
mov esp, ebp
pop ebp
ret
call fcn.006f1bea
int3
Function at 0x547ab0
Capabilities:
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73ac48
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x10]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x547bd8
mov eax, dword [edx + 0x10]
test eax, eax
je 0x547bd8
cmp byte [ebp + 8], 0
jne 0x547bcd
cmp dword [ecx + 0x14], 0x10
jb 0x547b05
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 0x10
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x40], edi
jb 0x547b13
mov edx, dword [edx]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x38]
mov dword [ebp - 0x34], edx
push eax
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x547bd8
push dword [ebp - 0x30]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x18], 0
push dword [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.00426e90
mov dword [ebp - 4], 0
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 0x10
jb 0x547b7c
mov eax, dword [esi]
mov byte [eax], 0
lea eax, [ebp - 0x28]
cmp esi, eax
je 0x547b99
cmp dword [ebp - 0x14], 0x10
mov ecx, esi
push dword [ebp - 0x18]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.00426e90
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x547bc9
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x547bbf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x547bf8
push edx
push ecx
call fcn.006d0bf7
add esp, 8
xor eax, eax
jmp 0x547bdd
push esi
call fcn.005478e0
add esp, 4
jmp 0x547bdd
mov eax, 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.006d0965
mov esp, ebp
pop ebp
ret
call fcn.006f1bea
int3
Function at 0x548110
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73acc6
mov eax, dword fs:[0]
push eax
sub esp, 0x440
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
push 0xf
push str.unknown_machine
call fcn.00426e90
push 0x200
lea eax, [ebp - 0x210]
push 0
push eax
call fcn.006e9470
add esp, 0xc
mov dword [ebp - 0x414], 0x100
lea eax, [ebp - 0x414]
mov esi, 0xff
push eax
lea eax, [ebp - 0x210]
push eax
push 5
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x5482ed
xor eax, eax
mov dword [ebp - 0x438], 0
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x434], 7
mov word [ebp - 0x448], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x5481b4
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x448]
call fcn.00426d40
mov dword [ebp - 4], 0
cmp dword [ebp - 0x438], 0
je 0x548215
cmp dword [ebp - 0x434], 8
lea ecx, [ebp - 0x448]
mov edx, ebx
cmovae ecx, dword [ebp - 0x448]
call fcn.0053b970
lea ecx, [ebp - 0x448]
xor esi, esi
call fcn.00426ce0
mov eax, esi
jmp 0x5482f2
push 0x200
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.006e9470
add esp, 0xc
mov dword [ebp - 0x418], 0x100
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x410]
push eax
push 1
call dword [sym.imp.KERNEL32.dll_GetComputerNameExW]
test eax, eax
je 0x5482de
xor eax, eax
mov dword [ebp - 0x420], 0
lea ecx, [ebp - 0x410]
mov dword [ebp - 0x41c], 7
mov word [ebp - 0x430], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x548280
sub ecx, edx
lea eax, [ebp - 0x410]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00426d40
mov byte [ebp - 4], 1
cmp dword [ebp - 0x420], 0
je 0x5482ce
cmp dword [ebp - 0x41c], 8
lea ecx, [ebp - 0x430]
mov edx, ebx
cmovae ecx, dword [ebp - 0x430]
call fcn.0053b970
xor esi, esi
jmp 0x5482d3
mov esi, 0xff
lea ecx, [ebp - 0x430]
call fcn.00426ce0
lea ecx, [ebp - 0x448]
call fcn.00426ce0
mov eax, esi
jmp 0x5482f2
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret

Function at 0x548310
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x800
lea eax, [ebp - 0x804]
mov esi, ecx
push 0
push eax
call fcn.006e9470
add esp, 0xc
lea eax, [ebp - 0x804]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x3fe
ja 0x54838f
lea eax, [ebp - 0x804]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x548360
sub eax, edx
mov ecx, esi
sar eax, 1
push eax
lea eax, [ebp - 0x804]
push eax
call fcn.00426d40
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x548560
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x739988
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 0x10
jb 0x5485a8
mov ecx, dword [ecx]
lea edx, [ebp - 0x28]
call fcn.0053bbc0
test al, al
je 0x5485ec
cmp dword [ebp - 0x18], 0
je 0x5485ec
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x5485ec
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x5485f1
mov esi, 1
lea ecx, [ebp - 0x28]
call fcn.00426ce0
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.006d0965
mov esp, ebp
pop ebp
ret

Function at 0x548cf0
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
jb 0x548d0b
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
push 0x2011f
push 0
push ecx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x548d60
cmp dword [esi + 0x14], 8
jb 0x548d2e
mov esi, dword [esi]
push 0
push 0x100
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
push dword [ebp - 8]
neg eax
sbb esi, esi
and esi, 1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
pop esi
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x548d80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73ae30
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x857060]
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 esi, edx
mov dword [ebp - 0x20], ecx
cmp dword [esi + 0x14], 8
mov edi, 1
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, esi
jb 0x548dc8
mov eax, dword [esi]
lea edx, [ebp - 0x18]
push edx
push 0
push 0
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x548e5d
mov dword [ebp - 4], eax
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006d0f4b
add esp, 4
mov ebx, eax
cmp dword [esi + 0x14], 8
jb 0x548e09
mov esi, dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x20]
push ebx
push 0
push 0
push esi
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x548e42
mov edx, ebx
lea esi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x548e27
mov ecx, dword [ebp - 0x1c]
sub edx, esi
sar edx, 1
push edx
push ebx
call fcn.00426d40
xor edi, edi
push ebx
call fcn.006d0c28
add esp, 4
jmp 0x548e5d
mov eax, edi
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.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x548e80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73ae70
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x857060]
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 dword [ebp - 0x24], edx
mov eax, ecx
mov dword [ebp - 0x28], eax
xor ebx, ebx
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
lea ecx, [ebp - 0x20]
mov esi, 2
push ecx
push 0
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x549013
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
inc eax
mul esi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006d0f4b
add esp, 4
mov edi, eax
push dword [ebp - 0x20]
call fcn.006d0f4b
add esp, 4
mov esi, eax
lea eax, [ebp - 0x20]
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x28]
push edi
push ebx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x548feb
mov eax, dword [ebp - 0x1c]
xor ecx, ecx
mov dword [ebp - 0x48], ecx
mov dword [ebp - 0x44], 7
mov word [edi + eax*2], cx
mov ecx, edi
xor eax, eax
mov word [ebp - 0x58], ax
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x548f60
sub ecx, edx
sar ecx, 1
push ecx
push edi
lea ecx, [ebp - 0x58]
call fcn.00426d40
mov byte [ebp - 4], 1
xor eax, eax
mov word [ebp - 0x40], ax
mov eax, esi
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 7
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x548f96
sub eax, edx
lea ecx, [ebp - 0x40]
sar eax, 1
push eax
push esi
call fcn.00426d40
mov ecx, dword [ebp - 0x24]
lea eax, [ebp - 0x58]
push eax
mov byte [ebp - 4], 2
call fcn.004b95f0
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 0
call fcn.00426ce0
lea ecx, [ebp - 0x58]
call fcn.00426ce0
push edi
call fcn.006d0c28
push esi
call fcn.006d0c28
mov eax, dword [ebp - 0x28]
add esp, 8
inc ebx
jmp 0x548ec8
push edi
call fcn.006d0c28
push esi
call fcn.006d0c28
add esp, 8
mov eax, 1
jmp 0x549015
xor eax, eax
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.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x549040
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73aea8
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x857060]
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 dword [ebp - 0x48], ecx
xor edi, edi
mov dword [ebp - 4], edi
mov esi, dword [edx]
mov ebx, dword [edx + 4]
nop dword [eax + eax]
cmp esi, ebx
je 0x54910f
push esi
lea ecx, [ebp - 0x44]
call fcn.00449230
lea eax, [esi + 0x18]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x2c]
call fcn.00449230
mov byte [ebp - 4], 0
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
cmovae edx, dword [ebp - 0x2c]
cmp dword [ebp - 0x30], 8
cmovae ecx, dword [ebp - 0x44]
add eax, eax
push eax
mov eax, dword [ebp - 0x48]
push edx
push 1
push 0
push ecx
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x2c]
test eax, eax
je 0x5490ed
mov edi, 1
call fcn.00426ce0
lea ecx, [ebp - 0x44]
call fcn.00426ce0
jmp 0x54910f
call fcn.00426ce0
lea ecx, [ebp - 0x44]
call fcn.00426ce0
add esi, 0x30
jmp 0x549080
mov eax, edi
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.006d0965
mov esp, ebp
pop ebp
ret

Function at 0x54ebe0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x1c]
xorps xmm0, xmm0
push eax
lea eax, [esp + 0x10]
movlpd qword [esp + 0x18], xmm0
push eax
push dword [ecx]
xor bl, bl
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x54ec4d
mov eax, dword [esp + 8]
mov dword [esi], eax
mov eax, dword [esp + 0xc]
mov dword [esi + 4], eax
mov al, 1
pop esi
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret 4
Function at 0x54f250
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73b606
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x857060]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x208
lea eax, [ebp - 0x218]
xor bl, bl
push 0
push eax
call fcn.006e9470
add esp, 0xc
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x54f348
xor eax, eax
mov dword [ebp - 0x220], 0
lea ecx, [ebp - 0x218]
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x54f2d7
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00426d40
lea edx, [ebp - 0x230]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x248]
call fcn.0054ecd0
mov byte [ebp - 4], 1
cmp esi, eax
je 0x54f32e
cmp dword [eax + 0x14], 8
mov edx, eax
jb 0x54f323
mov edx, dword [eax]
push dword [eax + 0x10]
mov ecx, esi
push edx
call fcn.00426d40
lea ecx, [ebp - 0x248]
call fcn.00426ce0
lea ecx, [ebp - 0x230]
call fcn.00426ce0
mov al, 1
jmp 0x54f34a
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x55a8e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x73cdbe
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x857060]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
xor eax, eax
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], 7
mov word [edi + 0x18], ax
mov dword [edi + 0x40], eax
mov dword [edi + 0x44], 7
mov word [edi + 0x30], ax
lea esi, [edi + 0x48]
mov byte [ebp - 4], 2
push 0x40
mov dword [ebp - 0x10], esi
mov dword [esi], eax
mov dword [esi + 4], eax
call fcn.006d0976
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [esi], eax
xor eax, eax
mov word [edi + 0x50], ax
mov dword [edi + 0x60], 0
mov dword [edi + 0x64], 7
mov dword [edi + 0x68], eax
mov dword [edi + 0x6c], eax
mov dword [edi + 0x70], eax
mov word [edi + 0x74], ax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x561a50
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x23c
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x30]
push esi
mov esi, dword [ebp + 0xc]
push edi
push 0x799430
push 0x104
push eax
mov dword [esp + 0x1c], edx
mov edi, ecx
mov dword [esp + 0x20], ebx
call fcn.00703ff1
add esp, 0xc
mov dword [esp + 0x34], 0
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [esp + 0x1c], xmm0
mov eax, edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x28], 0x43
jb 0x561abb
mov eax, dword [edi]
push eax
lea eax, [esp + 0x3c]
push 0x104
push eax
call fcn.00703ff1
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x561b1a
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x561ade
mov eax, dword [edi]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push eax
call esi
test eax, eax
jne 0x561b1a
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
jne 0x561b1a
mov ebx, dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
nop dword [eax]
lea eax, [esp + 0x38]
push eax
call ebx
test eax, eax
je 0x561b16
lea eax, [esp + 0x38]
push eax
call esi
test eax, eax
je 0x561b00
mov ebx, dword [esp + 0x14]
cmp dword [ebx + 0x14], 8
lea eax, [esp + 0x38]
mov dword [esp + 0x30], eax
mov dword [esp + 0x2c], 0x561470
jb 0x561b32
mov ebx, dword [ebx]
lea eax, [esp + 0x1c]
mov dword [esp + 0x24], ebx
push eax
push 0x11
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x561b70
mov ecx, dword [esp + 0x10]
push 1
push 0x7eed14
call fcn.00426d40
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov esi, eax
test esi, esi
je 0x561c16
lea eax, [esp + 0x38]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x561bbd
mov eax, dword [esp + 0x14]
push esi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [esp + 0x14]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea ecx, [esp + 0x38]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x561bc4
sub ecx, edx
lea eax, [esp + 0x38]
sar ecx, 1
push ecx
push eax
mov ecx, edi
call fcn.00426d40
mov esi, dword [esp + 0x10]
mov ecx, esi
push 1
push 0x7ec0e0
call fcn.00426d40
cmp dword [edi + 0x10], 0
je 0x561c16
mov edx, esi
mov ecx, edi
call fcn.00561620
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x244]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret
Function at 0x561c30
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x857060]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, ecx
lea eax, [ebp + 8]
lea ecx, [esp + 0x10]
xor bl, bl
cmp dword [ebp + 0x1c], 8
xorps xmm0, xmm0
push ecx
cmovae eax, dword [ebp + 8]
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x10]
movlpd qword [esp + 0x18], xmm0
push ecx
push eax
movlpd qword [esp + 0x28], xmm0
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x561c9f
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov dword [esi], ecx
mov dword [esi + 4], eax
cmp eax, dword [ebp + 0x24]
jb 0x561c9f
ja 0x561c9d
cmp ecx, dword [ebp + 0x20]
jb 0x561c9f
mov bl, 1
lea ecx, [ebp + 8]
call fcn.00426ce0
mov ecx, dword [esp + 0x24]
mov al, bl
pop esi
pop ebx
xor ecx, esp
call fcn.006d0965
mov esp, ebp
pop ebp
ret