joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10050b30
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1009f920
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x18], 1
mov eax, 4
mov dword [ebp - 0x20], eax
xor edi, edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x20]
push edx
push 0x100a649c
push 0x100a6464
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
cmp eax, edi
jne 0x10050bde
mov dword [ebp - 4], edi
lea esi, [ebp - 0x44]
call fcn.1004fd70
push edi
mov eax, dword [ebp - 0x14]
push eax
lea esi, [ebp - 0x38]
call fcn.1004fdb0
mov ecx, esi
push ecx
lea esi, [ebp - 0x2c]
lea eax, [ebp - 0x44]
call fcn.100477e0
cmp dword [ebp - 0x24], edi
jne 0x10050bd7
mov ecx, esi
call fcn.1004fd40
mov esi, eax
call fcn.10050c00
cmp esi, eax
jge 0x10050bd7
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
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 0x10050c00
Capabilities:
Access peb ldr_data
Read .ini file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1009f8f8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
lea eax, [esp + 0xc]
push eax
call fcn.1000ffe0
mov dword [esp + 0x30], 0
lea ecx, [esp + 0xc]
push ecx
push 0x66
call fcn.1006bcb0
push str.optconfig.ini
lea esi, [esp + 0x18]
call fcn.1006c300
mov edx, dword [esp + 0x18]
add esp, 0xc
push edx
push ecx
mov esi, 7
call fcn.1006c580
add esp, 4
push eax
call fcn.1006c900
test eax, eax
je 0x10050cde
mov ecx, dword [0x100adfd0]
mov dx, word [0x100adfd4]
mov dword [esp + 0x10], ecx
mov ecx, dword [0x100adfd8]
mov dword [esp + 0x18], ecx
mov ecx, dword [eax + 0xc]
mov word [esp + 0x14], dx
mov edx, dword [0x100adfdc]
mov dword [esp + 0x1c], edx
test ecx, ecx
je 0x10050cc7
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
push esi
lea edx, [esp + 0x1c]
push edx
lea edx, [esp + 0x18]
push edx
push ecx
call eax
jmp 0x10050cdc
mov eax, dword [eax]
push eax
push 7
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.100025b0
mov eax, esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.100755ed
mov esp, ebp
pop ebp
ret
Function at 0x10051510
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push ebx
push ebp
push esi
push edi
mov ebp, ecx
cmp dword [ebp + 0x10], 0
je 0x100515e1
push 0x100a6424
push 0x100a63cc
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov esi, dword [ebp + 4]
test esi, esi
je 0x100515e1
mov ebx, 1
cmp dword [ebp + 0x10], ebx
jne 0x1005155a
call fcn.10054060
jmp 0x10051566
push ebp
push esi
mov edi, esi
call fcn.10055680
mov dword [ebp + 8], eax
cmp dword [ebp + 0xc], 0
jne 0x100515e1
cmp dword [ebp + 0x10], 2
jne 0x100515e1
push 0
call fcn.10076dd4
mov esi, dword [sym.imp.SHLWAPI.dll_SHSetValueW]
add esp, 4
push 4
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
push 4
push 0x100a6404
push 0x100a63cc
push reloc.OLEAUT32.dll_SysReAllocString
call esi
call fcn.10051460
push 4
lea ecx, [esp + 0x18]
push ecx
push 4
push 0x100a6414
push 0x100a63cc
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x2c], eax
call esi
push 4
lea edx, [esp + 0x14]
push edx
push 4
push str.notify
push str.SOFTWARE360Safe_softmgrdg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x28], ebx
call esi
pop edi
xor eax, eax
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x10051790
Capabilities:
Get disk information
Get disk size

Disassembly:
push 0xffffffffffffffff
push 0x1009bf50
mov eax, dword fs:[0]
push eax
sub esp, 0x240
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x238], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x254]
mov dword fs:[0], eax
mov eax, dword [esp + 0x264]
mov dword [esp + 0x30], eax
add eax, 0x18
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor ebx, ebx
mov dword [esp + 0x25c], ebx
lea ebp, [ebx + 0x43]
mov eax, dword [0x100ad27c]
mov cx, word [0x100ad280]
xor edx, edx
mov dword [esp + 0x34], eax
mov eax, dword [0x100adb6c]
mov word [esp + 0x3a], dx
mov word [esp + 0x38], cx
mov ecx, dword [0x100adb70]
lea edx, [esp + 0x3c]
mov dword [esp + 0x3c], eax
push edx
mov word [esp + 0x38], bp
mov dword [esp + 0x44], ecx
mov word [esp + 0x40], bp
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x10051967
push 0x206
lea ecx, [esp + 0x4a]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x50], ax
call fcn.10079c60
add esp, 0xc
push 0x104
lea edx, [esp + 0x48]
push edx
lea eax, [esp + 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
test eax, eax
je 0x10051967
push 0x100c49e4
push 0x3c
call fcn.10075b5a
add esp, 8
mov dword [esp + 0x20], eax
mov byte [esp + 0x25c], 1
cmp eax, ebx
je 0x1005189d
push eax
call fcn.10051720
mov edi, eax
jmp 0x1005189f
xor edi, edi
mov byte [esp + 0x25c], bl
mov dword [esp + 0x20], edi
cmp edi, ebx
je 0x100519b2
lea eax, [esp + 0x44]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100518c0
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x48]
mov esi, edi
call fcn.10007450
lea eax, [esp + 0x34]
lea esi, [edi + 0x1c]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100518e5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x38]
call fcn.10007450
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x5c
lea eax, [esp + 0x2c]
push eax
mov word [esp + 0x40], cx
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x44]
push eax
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ebx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x10051958
mov ecx, dword [esp + 0x24]
imul ecx, dword [esp + 0x18]
mov dword [edi + 0x38], ecx
mov edi, dword [esp + 0x30]
lea ebx, [esp + 0x20]
call fcn.10051f70
xor ebx, ebx
jmp 0x10051967
push edi
call fcn.100519d0
push edi
call fcn.100755e2
add esp, 4
inc ebp
cmp bp, 0x5a
jbe 0x100517f0
mov dword [esp + 0x25c], 0xffffffff
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x254]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.100755ed
add esp, 0x24c
ret 4
mov dword [esp + 0x25c], 0xffffffff
mov edx, dword [esp + 0x1c]
push edx
jmp 0x10051982
Function at 0x10053a20
Capabilities:
Get file size
Write file on windows

Disassembly:
mov al, byte [esi]
sub esp, 0x10
cmp al, byte [esp + 0x14]
je 0x10053af9
test al, al
je 0x10053a52
mov eax, dword [esi + 0x20]
cmp eax, 0xffffffff
je 0x10053a49
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x20], 0xffffffff
cmp byte [esi], 0
jne 0x10053af3
cmp dword [esi + 0x18], 0
je 0x10053af3
cmp dword [esi + 0x1c], 8
jb 0x10053a67
mov eax, dword [esi + 8]
jmp 0x10053a6a
lea eax, [esi + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi + 0x20], eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
cmp eax, 0xffffffff
je 0x10053af3
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [esi + 0x20]
lea eax, [esp + 8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10053af3
cmp dword [esp + 8], 0
jne 0x10053af3
cmp dword [esp + 0xc], 0
jne 0x10053af3
mov ecx, dword [esi + 0x20]
push 0
lea edx, [esp + 8]
push edx
push 2
lea eax, [esp + 0xc]
push eax
push ecx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], 0xfe
mov dword [esp + 0x18], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dl, byte [esp + 0x14]
mov byte [esi], dl
add esp, 0x10
ret 4

Function at 0x10053d40
Capabilities:
Modify service

Disassembly:
sub esp, 8
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebx, eax
mov dword [esp + 0xc], ebx
cmp ebx, esi
je 0x10053e1d
mov eax, dword [esp + 0x14]
push edi
push 7
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov edi, eax
cmp edi, esi
je 0x10053e02
lea ecx, [esp + 0xc]
push ecx
push esi
push esi
push edi
mov dword [esp + 0x1c], esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x10053e02
mov eax, dword [esp + 0xc]
push ebp
push 0x100c49e4
push eax
mov ebp, eax
call fcn.10076988
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x10053dfd
lea edx, [esp + 0x10]
push edx
push ebp
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
je 0x10053df4
cmp dword [ebx + 4], 2
je 0x10053df4
cmp dword [esp + 0x20], esi
je 0x10053def
push esi
push esi
push esi
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push edi
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov esi, eax
neg esi
sbb esi, esi
neg esi
jmp 0x10053df4
mov esi, 1
push ebx
call fcn.10076993
add esp, 4
mov ebx, dword [esp + 0x14]
pop ebp
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
call ebx
test edi, edi
je 0x10053e12
push edi
call ebx
pop edi
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, esi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x10053e40
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100a0a48
mov eax, dword fs:[0]
push eax
sub esp, 0x2a8
mov eax, dword [0x100c230c]
xor eax, ebp
mov dword [ebp - 0x18], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
xor ebx, ebx
mov dword [ebp - 0x228], ebx
xor eax, eax
mov word [ebp - 0x224], ax
push 0x206
push ebx
lea ecx, [ebp - 0x222]
push ecx
call fcn.10079c60
add esp, 0xc
push 0x104
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.PrefetchNTOSBOOT_B00DFAAD.pf
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x224]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10054021
mov dword [ebp - 4], ebx
wait
sub esp, 0x1c
mov dword [ebp - 0x22c], esp
lea eax, [ebp - 0x224]
mov ecx, esp
call fcn.10006660
mov byte [ebp - 4], 1
mov byte [ebp - 4], bl
lea esi, [ebp - 0x264]
call fcn.10053bf0
add esp, 0x1c
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov esi, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x254], ecx
mov dword [ebp - 0x250], edx
mov dword [ebp - 0x24c], esi
mov dword [ebp - 0x248], eax
lea esi, [ebp - 0x254]
lea eax, [ebp - 0x270]
call fcn.10053a00
mov dword [ebp - 0x234], ebx
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x22c], ebx
lea edx, [ebp - 0x2b0]
push edx
call fcn.100416c0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x234]
push ecx
lea ecx, [ebp - 0x22c]
mov edx, eax
call fcn.10041da0
mov esi, eax
mov byte [ebp - 4], bl
lea edx, [ebp - 0x2b0]
push edx
call fcn.100417a0
cmp esi, ebx
je 0x10054019
mov eax, dword [ebp - 0x230]
push eax
mov ecx, dword [ebp - 0x234]
push ecx
lea esi, [ebp - 0x260]
call fcn.1004fdb0
lea edx, [ebp - 0x270]
push edx
lea esi, [ebp - 0x238]
lea eax, [ebp - 0x260]
call fcn.100477e0
cmp dword [ebp - 0x230], ebx
jne 0x10054019
fldz
fstp qword [ebp - 0x244]
call fcn.1006c390
cmp eax, ebx
je 0x10053fdd
cmp dword [eax], 3
jl 0x10053fdd
fld qword [0x100b0a88]
fstp qword [ebp - 0x244]
lea ecx, [ebp - 0x238]
call fcn.100476b0
fcomp qword [ebp - 0x244]
fnstsw ax
test ah, 0x41
jne 0x10054019
cmp dword [ebp + 8], ebx
jne 0x10054006
mov dword [ebp - 0x228], 1
jmp 0x10054019
lea eax, [ebp - 0x224]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [ebp - 0x228], eax
wait
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x228]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.100755ed
mov esp, ebp
pop ebp
ret 4
Function at 0x10054150
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b4008
push 0x10079d40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0x40
jne 0x1005419f
lea ecx, [ebp - 0x1c]
push ecx
push 0xf013f
jmp 0x100541a8
lea edx, [ebp - 0x1c]
push edx
push 0xf003f
push edi
push str.SYSTEMCurrentControlSetControlSession_ManagerMemory_ManagementPrefetchParameters
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, edi
jne 0x100541e1
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 4
push edi
push str.EnablePrefetcher
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.10054217
mov ecx, dword [ebp + 0x14]
mov dword [ecx], esi
cmp esi, edi
mov eax, 1
je 0x100541fe
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x10054230
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b3fe8
push 0x10079d40
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor edi, edi
mov dword [ebp + 8], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 4], edi
cmp dword [ecx + 4], 0x40
jne 0x1005427f
lea edx, [ebp + 8]
push edx
push 0xf013f
jmp 0x10054288
lea ecx, [ebp + 8]
push ecx
push 0xf003f
push edi
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
cmp esi, edi
jne 0x100542be
mov edx, dword [ebp + 0x18]
push edx
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp + 0x10]
push ecx
push edi
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xfffffffe
call fcn.100542f4
mov edx, dword [ebp + 0x1c]
mov dword [edx], esi
cmp esi, edi
mov eax, 1
je 0x100542db
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100545a0
Capabilities:
Get file version info

Disassembly:
push 0xffffffffffffffff
push 0x1009bebd
mov eax, dword fs:[0]
push eax
mov eax, 0x201c
call fcn.10088280
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x2018], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x2030]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2040]
xor ebx, ebx
push 0x1fff
lea eax, [esp + 0x31]
push ebx
mov dword [esp + 0x1c], ebx
push eax
mov dword [esp + 0x34], ebp
mov esi, ecx
mov byte [esp + 0x38], bl
call fcn.10079c60
add esp, 0xc
lea ecx, [esp + 0x20]
push ecx
push esi
mov dword [esp + 0x28], ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
cmp eax, ebx
je 0x100546d2
cmp eax, 0x1fff
ja 0x100546d2
lea edx, [esp + 0x2c]
push edx
push eax
push ebx
push esi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
jne 0x1005464c
push ebp
mov ecx, 0x100a6f30
call fcn.10002500
jmp 0x100546dd
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push 0x100a7ba8
lea edx, [esp + 0x38]
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x34], ebx
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x1005463c
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
lea eax, [esp + 0x18]
push eax
call fcn.1000ffe0
mov dword [esp + 0x2038], 1
movzx ecx, di
push ecx
movzx edx, si
shr edi, 0x10
push edi
push edx
shr esi, 0x10
push esi
push str._d._d._d._d
lea edi, [esp + 0x2c]
call fcn.10012130
add esp, 0x14
mov eax, edi
push eax
push ebp
call fcn.100024a0
mov dword [esp + 0x14], 1
mov byte [esp + 0x2038], bl
mov ecx, edi
call fcn.100025b0
jmp 0x100546ec
push ebp
mov ecx, 0x100a6f30
call fcn.10002500
mov dword [esp + 0x2038], ebx
mov dword [esp + 0x14], 1
mov eax, ebp
mov ecx, dword [esp + 0x2030]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2018]
xor ecx, esp
call fcn.100755ed
add esp, 0x2028
ret
Function at 0x100548b0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x1009be56
mov eax, dword fs:[0]
push eax
sub esp, 0x654
mov eax, dword [0x100c230c]
xor eax, esp
mov dword [esp + 0x650], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100c230c]
xor eax, esp
push eax
lea eax, [esp + 0x668]
mov dword fs:[0], eax
mov eax, dword [esp + 0x678]
mov ebp, dword [esp + 0x67c]
push 0x206
xor ebx, ebx
lea edx, [esp + 0x7a]
xor ecx, ecx
push ebx
push edx
mov dword [esp + 0x24], eax
xor edi, edi
mov word [esp + 0x80], cx
call fcn.10079c60
xor eax, eax
add esp, 0xc
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], ax
mov dword [esp + 0x670], ebx
push 0x104
lea ecx, [esp + 0x78]
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea eax, [esp + 0x74]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x10054950
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x78]
lea esi, [esp + 0x5c]
call fcn.10007450
lea edx, [esp + 0x30]
push edx
mov eax, esi
push eax
mov ecx, 2
xor edx, edx
call fcn.10006760
mov byte [esp + 0x670], 1
push 0xffffffffffffffff
push ebx
mov ecx, esi
call fcn.100073a0
mov byte [esp + 0x670], bl
mov esi, 8
cmp dword [esp + 0x48], esi
jb 0x100549b2
mov ecx, dword [esp + 0x34]
push ecx
call fcn.100755e2
add esp, 4
mov eax, dword [esp + 0x5c]
xor edx, edx
mov dword [esp + 0x48], 7
mov dword [esp + 0x44], ebx
mov word [esp + 0x34], dx
cmp dword [esp + 0x70], esi
jae 0x100549d3
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x54]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x10054a84
push 0x3e6
lea eax, [esp + 0x282]
xor edx, edx
push ebx
push eax
mov word [esp + 0x288], dx
call fcn.10079c60
mov ebx, dword [esp + 0x34]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, ebx
mov esi, edi
shrd edx, eax, 0x1e
shrd esi, ecx, 0x1e
add esp, 0xc
shr eax, 0x1e
shr ecx, 0x1e
cmp dword [esp + 0x70], 8
mov dword [ebp + 4], ebx
mov ebx, dword [esp + 0x5c]
mov dword [ebp], edi
jae 0x10054a48
lea ebx, [esp + 0x5c]
push ecx
push esi
push eax
push edx
push ebx
push str._s__I64uGB__I64uGB
mov ecx, 0x1f4
lea ebx, [esp + 0x294]
call fcn.10001fd0
mov edx, dword [esp + 0x30]
mov ecx, ebx
push ecx
push 0x1f4
push edx
call fcn.1007925d
add esp, 0x24
mov edi, 1
xor ebx, ebx
mov esi, 8
mov dword [esp + 0x670], 0xffffffff
cmp dword [esp + 0x70], esi
jb 0x10054aa2
mov eax, dword [esp + 0x5c]
push eax
call fcn.100755e2
add esp, 4
xor ecx, ecx
mov dword [esp + 0x70], 7
mov dword [esp + 0x6c], ebx
mov word [esp + 0x5c], cx
mov eax, edi
mov ecx, dword [esp + 0x668]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x650]
xor ecx, esp
call fcn.100755ed
add esp, 0x660
ret 8
Function at 0x10057720
Capabilities:
Get file size
Read file via mapping

Disassembly:
sub esp, 0xc
push ebp
push edi
xor ebp, ebp
push ebp
push ebp
push 3
push ebp
push 1
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x100577a3
lea ecx, [esp + 8]
push ecx
push eax
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ebp
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x100577a3
cmp dword [esp + 0xc], ebp
jne 0x100577a3
mov eax, dword [esp + 8]
mov edx, dword [esp + 0x18]
mov dword [edx], eax
cmp eax, ebp
je 0x100577a3
mov eax, dword [esi]
push ebp
push ebp
push ebp
push 2
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov dword [ebx], eax
cmp eax, ebp
je 0x100577a3
push ebp
push ebp
push ebp
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
cmp eax, ebp
je 0x100577a3
lea eax, [ebp + 1]
pop edi
pop ebp
add esp, 0xc
ret 8
mov eax, dword [ebx]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, ebp
je 0x100577b4
push eax
call edi
mov dword [ebx], ebp
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100577c4
push eax
call edi
mov dword [esi], 0xffffffff
pop edi
mov eax, ebp
pop ebp
add esp, 0xc
ret 8
Function at 0x100577d0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x100b4758
push 0x10079d40
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x100c230c]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, ecx
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
mov edi, dword [ebp + 8]
cmp edi, 0x28
jbe 0x100579dd
mov eax, 0x5a4d
cmp word [esi], ax
jne 0x100579dd
cmp dword [esi + 0x3c], 0x10000000
jge 0x100579dd
push esi
call dword [0x100c5950]
mov ebx, eax
test ebx, ebx
je 0x100579dd
cmp ebx, esi
jb 0x10057857
lea ecx, [esi + edi]
cmp ebx, ecx
jae 0x10057857
mov eax, 1
jmp 0x10057859
xor eax, eax
test al, al
je 0x100579dd
cmp dword [ebx], 0x4550
jne 0x100579dd
movzx eax, word [ebx + 0x18]
mov edx, 0x10b
cmp ax, dx
je 0x100578ef
mov ecx, 0x20b
cmp ax, cx
jne 0x100579dd
push esi
call dword [0x100c5950]
mov edi, eax
cmp dword [edi + 0x84], 1
jb 0x100579dd
mov eax, dword [edi + 0x90]
push 0
push eax
push esi
push edi
call dword [0x100c5958]
cmp eax, esi
jb 0x100578c5
mov edx, dword [ebp + 8]
lea ecx, [esi + edx]
cmp eax, ecx
jae 0x100578c5
mov eax, 1
jmp 0x100578c7
xor eax, eax
test al, al
je 0x100579dd
lea eax, [edi + 4]
test eax, eax
je 0x100579dd
cmp eax, esi
jb 0x10057943
mov edx, dword [ebp + 8]
lea ecx, [esi + edx]
cmp eax, ecx
jae 0x10057943
mov eax, 1
jmp 0x10057945
cmp dword [ebx + 0x74], 1
jb 0x100579dd
mov eax, dword [ebx + 0x80]
push 0
push eax
push esi
push ebx
call dword [0x100c5958]
cmp eax, esi
jb 0x1005791c
lea edx, [esi + edi]
cmp eax, edx
jae 0x1005791c
mov eax, 1
jmp 0x1005791e
xor eax, eax
test al, al
je 0x100579dd
lea eax, [ebx + 4]
test eax, eax
je 0x100579dd
cmp eax, esi
jb 0x10057943
lea ecx, [esi + edi]
cmp eax, ecx
jae 0x10057943
mov eax, 1
jmp 0x10057945
xor eax, eax
test al, al
je 0x100579dd
mov dword [ebp - 0x20], 0
lea edx, [ebp - 0x20]
push edx
push 1
push 0
push esi
call dword [0x100c5954]
mov edi, eax
mov dword [ebp - 0x24], edi
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x100579bd
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100579bd
add eax, esi
cmp eax, esi
jb 0x1005798c
mov edx, dword [ebp + 8]
add edx, esi
cmp eax, edx
jae 0x1005798c
mov eax, 1
jmp 0x1005798e
xor eax, eax
test al, al
je 0x100579bd
push 0
push ecx
push esi
push ebx
call dword [0x100c5958]
cmp eax, esi
jb 0x100579b2
mov ecx, dword [ebp + 8]
lea edx, [esi + ecx]
cmp eax, edx
jae 0x100579b2
mov eax, 1
jmp 0x100579b4
xor eax, eax
test al, al
je 0x100579bd
add edi, 0x14
jmp 0x10057965
mov dword [ebp - 0x1c], 1
jmp 0x100579dd
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4