joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10053790
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101055b6
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x1014857c]
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
mov dword [ebp - 0x424], ecx
call fcn.1003b460
mov ecx, eax
call fcn.1003f580
mov edi, eax
call fcn.1003b460
mov ecx, eax
call fcn.1003f5a0
mov ebx, eax
call fcn.1003b320
mov ecx, eax
call fcn.1002bc90
mov ecx, dword [eax]
sub ecx, 0x10
push ecx
call fcn.10007860
lea esi, [eax + 0x10]
mov dword [ebp - 0x430], esi
push str.deskhelp
push esi
mov dword [ebp - 4], 0
call fcn.100ab682
add esp, 0xc
test eax, eax
jne 0x1005381d
xor edi, edi
xor ebx, ebx
call fcn.1003b320
mov ecx, eax
call fcn.1002c030
xor edx, edx
mov ecx, edi
test eax, eax
cmovne ecx, edx
mov dword [ebp - 0x428], ecx
call fcn.1003b320
mov ecx, eax
call fcn.1002c0a0
xor ecx, ecx
test eax, eax
push ebx
cmovne edi, ecx
push edi
push dword [ebp - 0x428]
push str.CInstaller::CreateShortCutAndUninstalReg___create_deskshort_d__create_startmenu_shortcut_d_create_uninstaller_reg_d
call fcn.10050650
mov eax, dword [ebp - 0x424]
add esp, 0x10
push ebx
push edi
push dword [ebp - 0x428]
push dword [eax + 0x7c]
push ecx
mov edi, esp
mov dword [ebp - 0x42c], edi
mov eax, dword [eax + 4]
sub eax, 0x10
push eax
call fcn.10007860
add esp, 4
lea ecx, [ebp - 0x444]
add eax, 0x10
mov dword [edi], eax
call fcn.10065ba0
mov byte [ebp - 4], 1
test ebx, ebx
je 0x100538b1
lea ecx, [ebp - 0x444]
call fcn.10066b30
jmp 0x1005395c
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e2a0
mov eax, dword [ebp - 0x424]
add esp, 0xc
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
push str.Uninstall.exe
push dword [eax + 4]
lea eax, [ebp - 0x218]
push eax
call edi
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.1008e2a0
mov eax, dword [ebp - 0x424]
add esp, 0xc
push str.Takeaway.exe
push dword [eax + 4]
lea eax, [ebp - 0x420]
push eax
call edi
mov ecx, dword [ebp - 0x424]
lea eax, [ebp - 0x42c]
push eax
lea eax, [ebp - 0x420]
mov dword [ebp - 0x42c], 0
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.10055340
test eax, eax
je 0x1005394c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
push 0
push str.CInstaller::CreateShortCutAndUninstalReg_create_uninstaller_reg_d__renameresult_d
call fcn.10050650
add esp, 0xc
cmp dword [ebp - 0x428], 0
jne 0x10053969
test ebx, ebx
je 0x10053974
lea ecx, [ebp - 0x444]
call fcn.100662a0
lea ecx, [ebp - 0x444]
call fcn.10065d80
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1005399e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
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.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x10053e70
Capabilities:
Get session user name
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1010562b
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x1014857c]
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
mov esi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10053ebe
mov eax, 1
jmp 0x10053ff3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10053ed0
xor eax, eax
jmp 0x10053ff3
lea ecx, [ebp - 0x220]
call fcn.10063e60
push 0x1a
lea ecx, [ebp - 0x220]
mov dword [ebp - 4], 0
call fcn.10064030
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10053f20
push 0xf003f
push eax
push 0x1011a350
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.10064170
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0x105
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x220]
call fcn.10063ed0
mov dword [ebp - 0x224], eax
test eax, eax
je 0x10053f81
push 0xf003f
push eax
push 0x1011a350
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.10064170
push dword [ebp - 0x224]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x10053f95
mov esi, 1
jmp 0x10053fe6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x10053fa4
xor esi, esi
jmp 0x10053fe6
push 1
lea ecx, [ebp - 0x220]
call fcn.10064030
mov esi, eax
test esi, esi
je 0x10053fd9
push 0xf003f
push esi
push 0x1011a350
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [ebp - 0x220]
call fcn.10064170
push esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp + 0x10]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov esi, eax
lea ecx, [ebp - 0x220]
call fcn.10063e70
mov eax, esi
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.100810f8
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10054c30
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101057db
mov eax, dword fs:[0]
push eax
sub esp, 0xa34
mov eax, dword [0x1014857c]
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, ecx
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0x218]
add edi, 4
push str.UtilsAssist.dll
push dword [edi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
push 0x7d0
lea eax, [ebp - 0x9e8]
push 0
push eax
call fcn.1008e2a0
lea eax, [ebp - 0x218]
push eax
push str.C:WindowsSystem32Rundll32.exe___s__wWinMain
lea eax, [ebp - 0x9e8]
push 0x3e8
push eax
call fcn.1000bf20
push 0x40
lea eax, [ebp - 0xa3c]
mov dword [ebp - 0xa40], 0x44
push 0
push eax
call fcn.1008e2a0
add esp, 0x28
lea eax, [ebp - 0x9fc]
push eax
lea eax, [ebp - 0xa40]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x9e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov eax, dword [ebp - 0x9fc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10054d15
push eax
call esi
mov eax, dword [ebp - 0x9f8]
test eax, eax
je 0x10054d22
push eax
call esi
push str.Rundll_helper.
call fcn.10050650
add esp, 4
call fcn.1004ec90
push 0
push str.UtilsAssist.exe
push eax
mov ecx, dword [eax]
call dword [ecx + 0x44]
push str.dolphinsrv.exe
lea eax, [ebp - 0x9ec]
push edi
push eax
call fcn.10029630
add esp, 0xc
mov dword [ebp - 4], 0
call fcn.1004ec90
push str._AUTORUN2
push dword [ebp - 0x9ec]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x44]
mov edx, dword [ebp - 0x9ec]
or eax, 0xffffffff
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x10054d98
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
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.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x10057de0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10105ee3
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x1014857c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x74
call fcn.1004d0b0
mov esi, eax
add esp, 4
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 0
test esi, esi
je 0x10057ef3
mov dword [esi], vtable.CSetupConfig.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
lea ecx, [esi + 0x3c]
mov dword [esi + 0x34], 0x64
mov dword [esi + 0x38], reloc.OLEAUT32.dll_SysReAllocString
call fcn.10006720
lea ecx, [esi + 0x40]
call fcn.10006720
lea ecx, [esi + 0x44]
call fcn.10006720
lea ecx, [esi + 0x48]
call fcn.10006720
lea ecx, [esi + 0x4c]
call fcn.10006720
lea ecx, [esi + 0x50]
call fcn.10006720
lea ecx, [esi + 0x54]
call fcn.10006720
lea ecx, [esi + 0x5c]
mov byte [ebp - 4], 0xb
mov dword [esi + 0x58], 0xc8
call fcn.10067800
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 0xc
call fcn.10067800
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1005aa50
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2010
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x2004]
push edi
mov edi, dword [ebp + 0xc]
push 0x2000
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0x200c]
push eax
push esi
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x1005aaf7
cmp eax, 0x1fff
ja 0x1005aaf7
lea ecx, [ebp - 0x2004]
push ecx
push eax
push 0
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x1005aaf7
lea eax, [ebp - 0x2010]
push eax
lea eax, [ebp - 0x2008]
push eax
push 0x1010fab8
lea eax, [ebp - 0x2004]
push eax
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1005aaf7
mov eax, dword [ebp - 0x2008]
movzx eax, word [eax + 0xa]
mov dword [edi], eax
mov eax, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.100810f8
mov esp, ebp
pop ebp
ret 8

Function at 0x1005ae70
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x210], 1
lea eax, [ebp - 0x214]
mov dword [ebp - 0x214], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x210]
push eax
push str.ProgramFilesDir
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x1005aef7
push dword [ebp - 0x214]
lea eax, [ebp - 0x20c]
push eax
push str.ProgramFiles
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x1005af25
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1005af00
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x1005af25
mov dword [ebp + ecx*2 - 0x20c], 0x5c
push 0x103
push str.Internet_ExplorerIEXPLORE.EXE
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.100be12e
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x210]
add esp, 0x10
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1005aa50
cmp dword [ebp - 0x210], 7
mov ecx, dword [ebp - 4]
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
Function at 0x1005af80
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x1014732c]
test ecx, ecx
js 0x1005afb4
xor eax, eax
test ecx, ecx
setne al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
push 0x118
xorps xmm0, xmm0
mov dword [0x1014732c], 0
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x124], 0
push 0
push eax
movups xmmword [ebp - 0x144], xmm0
movups xmmword [ebp - 0x134], xmm0
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1005b025
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1005b07b
push 0x1010fb40
push 0x1010fa9c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005b07b
lea ecx, [ebp - 0x144]
push ecx
call eax
mov ax, word [ebp - 0x144]
cmp ax, 9
je 0x1005b05c
cmp ax, 6
jne 0x1005b07b
mov dword [0x1014732c], 1
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4

Function at 0x1005b280
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 8], 5
jne 0x1005b32f
cmp dword [eax + 0xc], 1
jb 0x1005b32f
push 0x208
lea eax, [ebp - 0x20c]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
mov dword [ebp - 0x214], 1
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x214]
push eax
push str.CSDVersion
push str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x1005b32f
lea eax, [ebp - 0x20c]
push str.Service_Pack_2
push eax
call fcn.100ab682
add esp, 8
test eax, eax
js 0x1005b32f
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
Function at 0x1005b640
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1318
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 0x800
mov dword [ebp - 0x1318], eax
lea eax, [ebp - 0x1304]
push 0
push eax
call fcn.1008e2a0
push 0x800
lea eax, [ebp - 0xb04]
push 0
push eax
call fcn.1008e2a0
add esp, 0x18
lea eax, [ebp - 0x1304]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push 0xfe
lea eax, [ebp - 0x102]
push 0
push eax
call fcn.1008e2a0
mov edi, dword [sym.imp.SHLWAPI.dll_PathCombineW]
add esp, 0xc
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
xor eax, eax
xorps xmm0, xmm0
mov word [ebp - 0x104], ax
lea eax, [ebp - 0x1314]
push eax
movups xmmword [ebp - 0x1314], xmm0
call dword [sym.imp.ole32.dll_CoCreateGuid]
push 0x200
lea eax, [ebp - 0x304]
push 0
push eax
call fcn.1008e2a0
movzx eax, byte [ebp - 0x1305]
push eax
movzx eax, byte [ebp - 0x1306]
push eax
movzx eax, byte [ebp - 0x1307]
push eax
movzx eax, byte [ebp - 0x1308]
push eax
movzx eax, byte [ebp - 0x1309]
push eax
movzx eax, byte [ebp - 0x130a]
push eax
movzx eax, byte [ebp - 0x130b]
push eax
movzx eax, byte [ebp - 0x130c]
push eax
movzx eax, word [ebp - 0x130e]
push eax
movzx eax, word [ebp - 0x1310]
push eax
push dword [ebp - 0x1314]
lea eax, [ebp - 0x304]
push str._08X__04X__04x__02X_02X__02X_02X_02X_02X_02X_02X
push eax
call fcn.1000b350
lea eax, [ebp - 0x304]
add esp, 0x40
lea edx, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x1005b770
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x304]
push eax
lea eax, [ebp - 0x104]
push 0x80
push eax
call fcn.100abba7
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
lea eax, [ebp - 0x1304]
push eax
lea eax, [ebp - 0xb04]
push eax
call edi
push str..tmp
lea eax, [ebp - 0xb04]
push 0x400
push eax
call fcn.100ab9a1
add esp, 0xc
lea eax, [ebp - 0xb04]
push eax
call ebx
test eax, eax
je 0x1005b7f5
inc esi
cmp esi, 0xa
jl 0x1005b6c2
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0xb04]
lea esi, [edx + 2]
nop
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x1005b800
mov ecx, dword [ebp - 0x1318]
lea eax, [ebp - 0xb04]
sub edx, esi
sar edx, 1
push edx
push eax
call fcn.10009760
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x1005b880
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.10081560
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x1005b8db
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
mov esi, dword [edi + 4]
test esi, esi
je 0x1005b9ac
mov ecx, dword [edi + 8]
test ecx, ecx
jle 0x1005b9ac
mov eax, ecx
cdq
and edx, 0xfff
add eax, edx
sar eax, 0xc
mov dword [ebp - 0x1010], eax
and ecx, 0x80000fff
jns 0x1005b915
dec ecx
or ecx, 0xfffff000
inc ecx
xor edi, edi
mov dword [ebp - 0x100c], ecx
mov dword [ebp - 0x1008], 0
test eax, eax
jle 0x1005b97a
nop dword [eax + eax]
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1008e4b0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1005b9ac
inc edi
add esi, 0x1000
cmp edi, dword [ebp - 0x1010]
jl 0x1005b930
mov ecx, dword [ebp - 0x100c]
test ecx, ecx
jle 0x1005b9ac
push ecx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.1008e4b0
add esp, 0xc
lea eax, [ebp - 0x1008]
push 0
push eax
push dword [ebp - 0x100c]
lea eax, [ebp - 0x1004]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100810f8
mov esp, ebp
pop ebp
ret 4
Function at 0x1005c270
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x78
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x70], ecx
movups xmmword [ecx], xmm0
test eax, eax
je 0x1005c37c
push ebx
push esi
push 1
push 3
push esi
push 1
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
test ebx, ebx
je 0x1005c36a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0xffffffff
je 0x1005c354
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebp - 0x78], eax
test eax, eax
je 0x1005c354
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1005c34f
push 2
push esi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push ebx
call esi
push 0
push 0
push 0
push ebx
mov edi, eax
call esi
mov eax, dword [ebp - 0x70]
xorps xmm0, xmm0
push 0
mov esi, 1
movups xmmword [eax], xmm0
lea eax, [ebp - 0x6c]
push eax
call fcn.10068f30
push edi
mov edi, dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push edi
push eax
call fcn.10068f80
lea eax, [ebp - 0x6c]
push eax
call fcn.10068c60
mov eax, dword [ebp - 0x70]
add esp, 0x18
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x78]
call edi
push ebx
call edi
pop edi
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
pop ebx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.100810f8
mov esp, ebp
pop ebp
ret
Function at 0x1005cab0
Capabilities:
Delete directory

Disassembly:
push edi
mov edi, ecx
mov eax, dword [edi]
cmp eax, dword [eax]
je 0x1005cad5
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
push esi
lea esi, [eax + 4]
mov eax, dword [esi]
push dword [eax + 8]
call ebx
mov ecx, dword [edi]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x1005cac1
pop esi
pop ebx
mov ecx, edi
pop edi
jmp fcn.1005ca20

Function at 0x1005cb20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10106566
mov eax, dword fs:[0]
push eax
sub esp, 0x810
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x800
lea eax, [ebp - 0x810]
push 0
push eax
call fcn.1008e2a0
add esp, 0xc
lea eax, [ebp - 0x810]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], eax
call fcn.100081d0
mov ecx, eax
test ecx, ecx
je 0x1005cc43
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x814], eax
lea eax, [ebp - 0x810]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x814]
call fcn.10007750
test al, al
jne 0x1005cbcc
lea eax, [ebp - 0x810]
push eax
lea ecx, [ebp - 0x814]
call fcn.10009730
lea eax, [ebp - 0x818]
mov dword [ebp - 4], 1
push eax
push ecx
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], 0
mov ecx, esp
push eax
call fcn.10006650
call fcn.1005dba0
mov edx, dword [ebp - 0x814]
add esp, 8
mov esi, eax
mov dword [ebp - 4], 0xffffffff
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x1005cc22
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor eax, eax
test esi, esi
setne al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100076a0
int3

Function at 0x1005ccb0
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x1014857c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x1011babc]
mov dword [ebp - 0xc], eax
mov eax, dword [0x1011bac0]
mov dword [ebp - 8], eax
mov ax, word [ebp + 8]
mov word [ebp - 0xc], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x1005cd19
lea eax, [ebp - 0x14]
xorps xmm0, xmm0
push eax
push 0
push 0
lea eax, [ebp - 0xc]
movlpd qword [ebp - 0x14], xmm0
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x1005cd19
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100810f8
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
xor edx, edx
call fcn.100810f8
mov esp, ebp
pop ebp
ret