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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
mov dword [ebp - 8], esi
cmp esi, 0xffffffff
je 0x4240fc
call fcn.0042b4db
test al, al
je 0x424084
pop ebp
push ebx
push edx
pop esp
push edi
push eax
pop edx
pop edi
pop edi
push edi
pop esp
pop ebp
pop ebp
push edx
push edi
pop eax
pop eax
push ebp
push ebp
pop edi
push esp
pop ebp
pop esi
pop eax
pop eax
push ebp
pop ebx
push ebx
pop ebp
mov esi, dword [ebp - 8]
call fcn.0042b7d2
test al, al
je 0x4240a1
pop ebp
push ecx
pop eax
push ebp
push ecx
push edx
push esp
pop ebx
push ebp
push ebx
pop esp
push ebp
pop eax
push esi
pop ebp
push ebx
push edi
pop ebx
pop eax
pop edi
mov ebx, dword [ebp + 0x10]
lea eax, [ebp - 4]
and dword [ebp - 4], 0
push 0
push eax
push ebx
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.0042b679
test al, al
je 0x4240ec
push ecx
push esi
pop eax
pop eax
pop esi
pop ecx
push eax
push edx
pop edx
push ebp
pop esp
push ebx
pop edi
push ebx
pop ebp
push edi
push ecx
pop eax
push eax
pop ebx
push edx
push ebp
push edi
push ecx
pop edi
push ecx
push esp
pop eax
pop esi
mov ebx, dword [ebp + 0x10]
cmp dword [ebp - 8], 0
je 0x4240fc
cmp ebx, dword [ebp - 4]
jne 0x4240fc
xor eax, eax
inc eax
jmp 0x4240fe
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x425054
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x4250d3
push ebx
push edi
xor edi, edi
push str.958a208fcb7062e5cb0b4133fd0e8da3
mov dword [ebp + 8], edi
call fcn.0044adc0
mov ebx, dword [ebp + 0xc]
mov edx, edi
pop ecx
test ebx, ebx
je 0x425090
mov cl, byte [edi + str.958a208fcb7062e5cb0b4133fd0e8da3]
xor byte [edx + esi], cl
inc edi
xor ecx, ecx
cmp edi, eax
cmovge edi, ecx
inc edx
cmp edx, ebx
jb 0x42507a
cmp ebx, 1
jle 0x4250c7
cmp byte [esi], 0x37
jne 0x4250c7
mov al, byte [esi + 1]
cmp al, 0x7a
je 0x4250a5
cmp al, 0x5a
jne 0x4250c7
lea eax, [ebp + 8]
push eax
push ebx
push esi
call fcn.004152c0
test eax, eax
je 0x4250c7
mov edx, dword [ebp + 8]
test edx, edx
je 0x4250c7
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
jmp 0x4250d1
mov eax, dword [ebp + 0x10]
mov dword [eax], esi
mov eax, dword [ebp + 0x14]
mov dword [eax], ebx
pop edi
pop ebx
pop esi
pop ebp
ret
Function at 0x42763c
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x30
mov eax, 0x598743
call fcn.00590524
xor esi, esi
mov dword [ebp - 0x18], 0x104
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
call fcn.00432c14
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], esi
call fcn.00432c48
test eax, eax
mov edi, 0xf013f
lea eax, [ebp - 0x10]
push eax
jne 0x42767c
mov edi, 0xf003f
push edi
push esi
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4276dc
push esi
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push esi
push esi
push esi
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4276b7
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4276dc
lea eax, [ebp - 0x18]
push eax
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0x3c]
call fcn.00432c27
call fcn.005904fe
ret 0xc
Function at 0x427b64
Capabilities:
Get common file path

Disassembly:
push 0x240
mov eax, 0x5987de
call fcn.00590558
mov ebx, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor esi, esi
mov dword [ebp - 0x24c], edi
push esi
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x218]
push esi
push 0x19
push eax
push esi
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call esi
test eax, eax
je 0x427c5b
and dword [ebp - 0x220], 0
xor eax, eax
mov dword [ebp - 0x21c], 7
mov word [ebp - 0x230], ax
cmp word [ebp - 0x218], ax
je 0x427be0
lea eax, [ebp - 0x218]
push eax
call fcn.0044a7dd
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x230]
call fcn.004029e0
and dword [ebp - 4], 0
push 0x615b68
call fcn.0044a7dd
pop ecx
push eax
push 0x615b68
lea ecx, [ebp - 0x230]
call fcn.00407140
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push edi
cmovae eax, dword [ebp - 0x230]
mov ecx, ebx
push eax
call fcn.004277c7
mov edi, eax
lea ecx, [ebp - 0x230]
push 0
push 1
test edi, edi
je 0x427c4c
call fcn.00402920
mov eax, edi
jmp 0x427d0d
or dword [ebp - 4], 0xffffffff
call fcn.00402920
mov edi, dword [ebp - 0x24c]
push 0
push 0x10
lea eax, [ebp - 0x218]
push eax
push 0
call esi
test eax, eax
je 0x427d0b
and dword [ebp - 0x238], 0
xor eax, eax
mov dword [ebp - 0x234], 7
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
je 0x427ca2
lea eax, [ebp - 0x218]
push eax
call fcn.0044a7dd
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.004029e0
mov esi, 0x615b68
mov dword [ebp - 4], 1
push esi
call fcn.0044a7dd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x248]
call fcn.00407140
cmp dword [ebp - 0x234], 8
lea eax, [ebp - 0x248]
push edi
cmovae eax, dword [ebp - 0x248]
mov ecx, ebx
push eax
call fcn.004277c7
push 0
lea ecx, [ebp - 0x248]
mov esi, eax
push 1
call fcn.00402920
test esi, esi
je 0x427d0b
mov eax, esi
jmp 0x427d0d
xor eax, eax
call fcn.00590513
ret 4
Function at 0x427d15
Capabilities:
Get installed programs
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
mov esi, ebx
test edi, edi
jne 0x427d3d
xor eax, eax
jmp 0x427e73
lea eax, [ebp - 0x418]
mov dword [ebp - 0x418], ebx
push eax
push 9
push ebx
push str.SoftwareMicrosoftWindowsCurrentVersionUninstall_
push reloc.WS2_32.dll_accept
mov dword [ebp - 0x41c], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x427d36
push 0x208
lea eax, [ebp - 0x20c]
push ebx
push eax
call fcn.0043afd0
add esp, 0xc
mov dword [ebp - 0x420], ebx
lea eax, [ebp - 0x20c]
push 0x104
push eax
push ebx
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x427e61
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x418]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x427e3b
push 0x208
push eax
lea eax, [ebp - 0x414]
mov dword [ebp - 0x424], 0x104
push eax
call fcn.0043afd0
add esp, 0xc
xor eax, eax
inc eax
mov dword [ebp - 0x428], eax
lea eax, [ebp - 0x424]
push eax
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x428]
push eax
push 0
push str.DisplayName
push dword [ebp - 0x41c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x427e2f
lea eax, [ebp - 0x414]
push edi
push eax
call fcn.0043c994
pop ecx
pop ecx
test eax, eax
push 1
pop eax
cmovne esi, eax
push dword [ebp - 0x41c]
call ebx
test esi, esi
jne 0x427e69
mov eax, dword [ebp - 0x420]
lea ecx, [ebp - 0x20c]
push 0x104
inc eax
push ecx
push eax
push dword [ebp - 0x418]
mov dword [ebp - 0x420], eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x427da6
push dword [ebp - 0x418]
call ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae59
mov esp, ebp
pop ebp
ret 4
Function at 0x428961
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test edi, edi
jne 0x428986
xor eax, eax
jmp 0x428a19
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], esi
push esi
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x210]
push eax
push 0x109
push esi
push str.SYSTEMCurrentControlSetServices_
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x428a17
push ebx
push 0x104
lea eax, [ebp - 0x20c]
mov ebx, esi
push eax
push esi
jmp 0x4289f5
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0044a81d
pop ecx
pop ecx
test eax, eax
je 0x428a07
push 0x104
lea eax, [ebp - 0x20c]
inc ebx
push eax
push ebx
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
je 0x4289d4
jmp 0x428a0a
xor esi, esi
inc esi
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041ae59
mov esp, ebp
pop ebp
ret 4
Function at 0x428e17
Capabilities:
Check if file exists
Get common file path
Get startup folder

Disassembly:
push 0x83c
mov eax, 0x598964
call fcn.00590558
mov edi, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
xor ebx, ebx
push ebx
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x218]
push ebx
push 0x1a
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [ebp - 0x834], 7
mov dword [ebp - 0x838], ebx
mov word [ebp - 0x848], ax
cmp word [ebp - 0x218], ax
je 0x428e82
lea eax, [ebp - 0x218]
push eax
call fcn.0044a7dd
pop ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x848]
call fcn.004029e0
mov dword [ebp - 4], ebx
mov ebx, str.MicrosoftInternet_ExplorerQuick_LaunchUser_PinnedTaskBar_
push ebx
call fcn.0044a7dd
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x848]
call fcn.00407140
xor ebx, ebx
cmp word [esi], bx
jne 0x428ebc
mov eax, ebx
jmp 0x428ec3
push esi
call fcn.0044a7dd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00407140
mov esi, str..lnk
push esi
call fcn.0044a7dd
pop ecx
push eax
push esi
lea ecx, [ebp - 0x848]
call fcn.00407140
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmovae eax, dword [ebp - 0x848]
push eax
call esi
test eax, eax
je 0x428fd1
push 0x208
lea eax, [ebp - 0x830]
push ebx
push eax
call fcn.0043afd0
push 0x208
lea eax, [ebp - 0x628]
push ebx
push eax
call fcn.0043afd0
cmp dword [ebp - 0x834], 8
lea eax, [ebp - 0x848]
cmovae eax, dword [ebp - 0x848]
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.0044a7bb
add esp, 0x20
lea eax, [ebp - 0x628]
mov ecx, edi
push eax
lea eax, [ebp - 0x830]
push eax
call fcn.00427522
push 0x208
lea eax, [ebp - 0x420]
push ebx
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
lea eax, [ebp - 0x628]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
lea eax, [ebp - 0x420]
push eax
call fcn.0044a7dd
pop ecx
test eax, eax
jne 0x428fbf
lea eax, [ebp - 0x628]
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.0044a7bb
pop ecx
pop ecx
lea eax, [ebp - 0x420]
push eax
call esi
test eax, eax
je 0x428fd1
xor esi, esi
inc esi
jmp 0x428fd3
mov esi, ebx
push ebx
push 1
lea ecx, [ebp - 0x848]
call fcn.00402920
mov eax, esi
call fcn.00590513
ret 4
Function at 0x428fec
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov al, byte [0x62332c]
test al, al
jne 0x429085
push ebx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x20c]
xor ebx, ebx
inc ebx
push ebx
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42907c
lea eax, [ebp - 0x20c]
push eax
call fcn.0044ab3b
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0043c994
pop ecx
pop ecx
test eax, eax
jne 0x429074
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0043c994
pop ecx
pop ecx
test eax, eax
je 0x42907c
mov byte [0x62332c], bl
jmp 0x429082
mov bl, byte [0x62332c]
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ae59
mov esp, ebp
pop ebp
ret
Function at 0x429b4e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
push 0x208
xor esi, esi
mov edi, ecx
push esi
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x17
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x429bb9
lea eax, [ebp - 0x20c]
push 0x615b68
push eax
call fcn.0044a74a
pop ecx
pop ecx
push ebx
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00429093
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae59
mov esp, ebp
pop ebp
ret 4

Function at 0x42bb9f
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0044a7dd
mov dword [ebp - 4], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b158
push dword [ebp + 8]
mov ebx, eax
push ebx
mov dword [ebp - 8], ebx
call fcn.0044a7bb
add esp, 0x10
call fcn.0042b9fa
test al, al
je 0x42bbf5
push ecx
push ebp
push eax
pop esp
pop ecx
push edx
pop esp
pop ebp
pop ecx
push esp
push ebx
push edx
pop edi
pop esp
pop ebp
pop edx
push edx
push ecx
pop ecx
mov eax, dword [ebp - 4]
xor edi, edi
xor esi, esi
inc edi
test eax, eax
js 0x42bc5b
cmp word [ebx + esi*2], 0x5c
jne 0x42bc52
call fcn.0042b748
test al, al
je 0x42bc24
pop eax
push esi
pop eax
pop esp
pop edx
pop ebp
pop ebx
push edi
push edx
push edi
pop edx
push edx
push ebp
push eax
push ebp
push edx
mov ebx, dword [ebp - 8]
movzx eax, word [ebx + esi*2]
mov dword [ebp - 0xc], eax
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42bc48
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42bc59
mov eax, dword [ebp - 0xc]
mov word [ebx + esi*2], ax
mov eax, dword [ebp - 4]
inc esi
cmp esi, eax
jle 0x42bc01
jmp 0x42bc5b
xor edi, edi
push ebx
call fcn.0041b120
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42bc6b
Capabilities:
Get common file path
Get disk information

Disassembly:
push 0x22c
mov eax, 0x598c5e
call fcn.00590558
mov eax, dword [ebp + 8]
xor esi, esi
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push esi
push esi
mov dword [ebp - 0x238], eax
call ebx
mov edi, eax
test edi, edi
je 0x42bd91
push 0x208
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor ecx, ecx
lea esi, [edi + 1]
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041b158
push esi
xor ecx, ecx
mov dword [ebp - 0x234], eax
push ecx
push eax
call fcn.0043afd0
add esp, 0x10
push dword [ebp - 0x234]
push edi
call ebx
mov ebx, dword [ebp - 0x234]
xor eax, eax
mov esi, ebx
cmp word [ebx], ax
je 0x42bd8a
mov bh, byte [ebp + 0xc]
mov bl, byte [ebp + 0x10]
mov edi, dword [ebp - 0x238]
test bh, bh
je 0x42bd2b
lea eax, [ebp - 0x218]
push esi
push eax
call fcn.0043c994
pop ecx
pop ecx
test eax, eax
jne 0x42bd70
test bl, bl
je 0x42bd3d
movzx eax, byte [esi]
push eax
call fcn.0042c829
pop ecx
test al, al
jne 0x42bd70
push esi
lea ecx, [ebp - 0x230]
call fcn.004026c0
xor ecx, ecx
lea eax, [ebp - 0x230]
mov dword [ebp - 4], ecx
mov ecx, edi
push eax
call fcn.004247b4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x230]
xor eax, eax
push eax
push 1
call fcn.00402920
push esi
call fcn.0044a7dd
pop ecx
lea esi, [esi + eax*2]
xor eax, eax
add esi, 2
cmp word [esi], ax
jne 0x42bd14
mov ebx, dword [ebp - 0x234]
push ebx
call fcn.0041b120
pop ecx
call fcn.00590513
ret
Function at 0x42bd97
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x20c]
push ebx
push esi
mov dword [ebp - 0x218], eax
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x214], eax
xor eax, eax
push eax
push 0x1a
push ecx
push eax
call fcn.0042c6ce
lea eax, [ebp - 0x20c]
push eax
call fcn.0044a7dd
add esp, 0x14
mov dword [ebp - 0x210], eax
call fcn.0042b451
test al, al
je 0x42be06
pop esi
push ebx
pop edi
push ecx
pop ebx
push edi
pop ebp
push ecx
push ebx
push ebx
push esi
pop edx
push eax
push ecx
pop edi
push edx
push edi
pop ebx
pop esp
pop esi
push edx
pop ebp
push eax
call fcn.0042b382
test al, al
je 0x42be26
pop esi
pop ecx
push ecx
pop ebp
push ebp
push ebp
push ebx
push edi
pop ebp
push esp
push ecx
pop edi
push eax
push eax
push ebx
push ebp
pop edx
pop edx
push esi
pop ebp
pop edi
pop ecx
push ecx
call fcn.0042b8e6
test al, al
je 0x42be48
push esp
push edi
push edi
push esp
pop esi
pop ecx
push ecx
pop edi
push ecx
pop esp
push ebp
push esi
pop edx
push edx
pop ebx
push esp
pop eax
pop esi
pop eax
pop edx
push ecx
pop esp
push eax
pop edi
push ecx
cmp dword [ebp - 0x210], 0
je 0x42bf18
mov esi, 0x615b68
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044a74a
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
call fcn.0044a74a
lea eax, [ebp - 0x20c]
push esi
push eax
call fcn.0044a74a
add esp, 0x18
call fcn.0042b634
test al, al
je 0x42beb1
push eax
push esp
push ebx
pop esp
push esp
push eax
pop ebp
push edi
pop ebp
push ecx
pop ebp
push ecx
push eax
push esi
push edi
push edi
pop ecx
pop ebx
pop ebp
pop eax
push ebp
push eax
push edi
pop esp
pop ebx
push esp
push ebx
push ecx
push ebp
push edi
pop esp
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42becf
lea eax, [ebp - 0x20c]
push eax
call fcn.0042bb9f
pop ecx
call fcn.0042b2b3
test al, al
je 0x42beea
pop edi
pop ecx
push eax
pop ecx
pop ebx
push ebp
push eax
push esp
pop edx
pop eax
pop eax
pop ebp
pop ebx
pop esp
pop ecx
push esi
pop ecx
pop eax
cmp word [ebp - 0x20c], 0
jne 0x42bef8
xor eax, eax
jmp 0x42bf05
lea eax, [ebp - 0x20c]
push eax
call fcn.0044a7dd
pop ecx
mov ecx, dword [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.004029e0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041ae59
mov esp, ebp
pop ebp
ret
Function at 0x42bf29
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0x4c
mov eax, 0x598caf
call fcn.00590558
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x38], ebx
xor eax, eax
inc eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042bc6b
mov dword [edi + 0x14], 7
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [edi + 0x10], ebx
jb 0x42bf71
mov eax, dword [edi]
jmp 0x42bf73
mov eax, edi
xor ecx, ecx
mov word [eax], cx
mov esi, dword [ebp - 0x40]
xorps xmm0, xmm0
mov dword [ebp - 0x44], 1
movlpd qword [ebp - 0x30], xmm0
cmp esi, dword [ebp - 0x3c]
je 0x42c034
mov eax, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
mov dword [ebp - 0x34], eax
push esi
lea ecx, [ebp - 0x28]
call fcn.00402720
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 2
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
je 0x42c018
cmp eax, 5
je 0x42c018
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [ebp - 0x58]
push ecx
lea ecx, [ebp - 0x30]
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x42c018
mov ecx, dword [ebp - 0x2c]
cmp ecx, ebx
jb 0x42c018
mov eax, dword [ebp - 0x30]
ja 0x42bff8
cmp eax, dword [ebp - 0x34]
jbe 0x42c018
lea edx, [ebp - 0x28]
cmp edi, edx
je 0x42c013
push 0xffffffffffffffff
push 0
mov eax, edx
mov ecx, edi
push eax
call fcn.00402ae0
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov ebx, ecx
push 0
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.00402920
add esi, 0x18
cmp esi, dword [ebp - 0x3c]
jne 0x42bf9c
lea ecx, [ebp - 0x40]
call fcn.00407470
mov eax, edi
call fcn.00590513
ret
Function at 0x42c226
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x61e0b8]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x623528], 0
push ebx
push esi
push edi
je 0x42c269
call fcn.0042b2b3
test al, al
je 0x42c30e
pop edi
pop ecx
push eax
pop ecx
pop ebx
push ebp
push eax
push esp
pop edx
pop eax
pop eax
pop ebp
pop ebx
pop esp
pop ecx
push esi
pop ecx
pop eax
jmp 0x42c30e
call fcn.0042b382
test al, al
je 0x42c283
pop esp
pop ebx
push ebx
pop ebp
pop eax
pop ebp
push edi
push esi
push edi
pop edx
push edx
push ebp
push esp
push ebp
pop eax
push esi
push edx
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.0043afd0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 1
push 0x1a
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x42c2f3
lea eax, [ebp - 0x20c]
push eax
call fcn.0044ab3b
lea eax, [ebp - 0x20c]
mov dword [esp], str.config_systemprofile
push eax
call fcn.0043c994
pop ecx
pop ecx
test eax, eax
jne 0x42c2ec
lea eax, [ebp - 0x20c]
push str.documents_and_settingslocalservice
push eax
call fcn.0043c994
pop ecx
pop ecx
test eax, eax
je 0x42c2f3
mov byte [0x623528], 1
call fcn.0042b4db
test al, al
je 0x42c30e
push ebp
pop esp
pop esi
push ecx
pop edi
push ebx
push ebx
push esi
pop ebp
pop ebp
push ebp
push ecx
push esp
pop edi
pop esi
push esp
push esp
pop ebx
mov ecx, dword [ebp - 4]
mov al, byte [0x623528]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0041ae59
mov esp, ebp
pop ebp
ret