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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x100c
call fcn.005ca340
mov esi, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov ebx, 0x800
lea edi, [ebp - 0x810]
push ebx
push 0xff
push edi
call fcn.005cced0
add esp, 0xc
lea eax, [ebp - 0x1014]
mov dword [eax], 1
lea ecx, [ebp - 0x1018]
mov dword [ecx], ebx
push ecx
push edi
push eax
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4a6faf
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 1
jne 0x4a6fb3
mov ecx, esi
push edi
call fcn.004a4310
xor esi, esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
mov eax, esi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov esi, eax
jmp 0x4a6f96
cmp eax, 2
jne 0x4a6ff5
lea ebx, [ebp - 0x1010]
push 0x800
push 0xff
push ebx
call fcn.005cced0
add esp, 0xc
push 0x400
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
cmp eax, 0xfffffc00
jb 0x4a6ffc
mov ecx, esi
push ebx
jmp 0x4a6f8f
mov esi, 0x3f4
jmp 0x4a6f96
mov esi, 0xea
jmp 0x4a6f96

Function at 0x4a7010
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push eax
mov eax, dword [ebp + 8]
mov edx, dword [0x80e040]
xor edx, ebp
mov dword [ebp - 8], edx
mov edx, 4
lea esi, [ebp + 0xc]
push edx
push esi
push edx
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.005c9f16
mov eax, esi
add esp, 4
pop esi
pop ebp
ret 8

Function at 0x4a7050
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push ebx
call fcn.005e54a4
add esp, 4
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x4a7090
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx], 0
je 0x4a7150
cmp dword [esi + 4], 0xffffffff
je 0x4a7150
lea ecx, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x4a717a
mov edx, SysReAllocString
and edx, dword [esi + 0x10]
dec edx
mov dword [ebp - 0x20], edx
lea eax, [ebp - 0x14]
mov dword [eax], edx
mov ebx, dword [esi + 0x14]
mov eax, dword [esi + 0x18]
sub eax, ebx
add eax, 0xfffffffe
lea edi, [esi + 0x20]
mov dword [esi + 0x20], eax
lea eax, [esi + 0x24]
mov dword [ebp - 0x1c], eax
push edx
push ecx
mov dword [ebp - 0x24], ecx
call fcn.004a8b40
add esp, 8
mov dword [ebp - 0x28], edi
push edi
push ebx
mov ecx, dword [ebp - 0x1c]
push ecx
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x4a7184
test eax, eax
jne 0x4a7150
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
sub edx, ecx
sar edx, 1
cmp edx, eax
jbe 0x4a7178
mov word [ecx + eax*2], 0
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esi + 8]
cmp byte [esi + 0x13], 0
jns 0x4a715b
mov eax, dword [eax]
mov word [eax], 0
mov eax, dword [esi + 0x14]
cmp dword [esi + 0x18], eax
je 0x4a7178
mov word [eax], 0
mov dword [esi + 0x20], 0
xor ebx, ebx
jmp 0x4a713c
ud2
mov edx, 4
jmp 0x4a70ce
mov eax, dword [esi + 0x20]
inc eax
shr eax, 1
mov edi, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edx, ecx
mov ebx, edi
sub edx, edi
sar edx, 1
cmp eax, edx
jb 0x4a71b5
lea ecx, [esi + 0x14]
inc eax
lea edx, [ebp - 0x16]
mov word [edx], 0
push edx
push eax
call fcn.004a7240
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x18]
mov edi, ebx
sub ecx, ebx
add ecx, 0xfffffffe
mov dword [esi + 0x20], ecx
mov ebx, dword [ebp - 0x20]
cmp dword [ebp - 0x14], ebx
mov eax, 0x4000
cmovne eax, ebx
mov dword [ebp - 0x14], eax
push eax
push dword [ebp - 0x24]
call fcn.004a8b40
add esp, 8
push dword [ebp - 0x28]
push edi
push dword [ebp - 0x1c]
push 0
lea ecx, [ebp - 0x14]
push ecx
push eax
push dword [esi + 4]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x4a711c

Function at 0x4a7220
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4a722f
dec eax
mov dword [ecx + 4], eax
pop ebp
jmp fcn.004a7090
Function at 0x4a7290
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x80e040]
xor edx, ebp
mov dword [ebp - 0x10], edx
mov edx, 0x20019
or edx, dword [ebp + 0x10]
push esi
push edx
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a7350
xor eax, eax
lea edx, [ebp - 0x1c]
mov dword [edx], eax
mov ecx, dword [esi]
sub esp, 0x30
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], eax
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4a7370
mov eax, dword [ebp - 0x1c]
sub eax, 1
setb dl
mov dword [esi + 4], eax
mov ecx, dword [esi]
test ecx, ecx
sete dh
or dh, dl
test dh, 1
jne 0x4a7356
lea edx, [esi + 8]
lea edi, [ebp - 0x14]
mov dword [edi], 0x104
xor edi, edi
dec edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
xor edi, edi
lea ebx, [ebp - 0x1c]
push ebx
push edi
push edi
push edi
lea edi, [ebp - 0x14]
push edi
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x4a735c
jmp 0x4a7356
mov dword [esi], 0
mov word [esi + 8], 0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4a7350

Function at 0x4a73a0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ecx + 4]
cmp eax, 0xffffffff
je 0x4a7411
sub eax, 1
setb dl
mov dword [esi + 4], eax
mov ecx, dword [esi]
test ecx, ecx
sete dh
or dh, dl
jne 0x4a7411
lea edi, [esi + 8]
lea edx, [ebp - 0x14]
mov dword [edx], 0x104
xor ebx, ebx
dec ebx
lea edx, [ebp - 0x1c]
mov dword [edx], ebx
mov dword [edx + 4], ebx
xor ebx, ebx
push edx
push ebx
push ebx
push ebx
lea edx, [ebp - 0x14]
push edx
push edi
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x4a7411
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
mov word [esi + 8], 0
jmp 0x4a73ff
Function at 0x4a7ba0
Capabilities:
Check for time delay via queryperformancecounter
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm0, qword [0x815320]
xorpd xmm1, xmm1
ucomisd xmm0, xmm1
jne 0x4a7bcb
jnp 0x4a7bf0
movsd qword [esp + 0x18], xmm0
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.005c9f16
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call esi
push eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [esp + 0xc], eax
call esi
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x815330]
mov ecx, dword [0x813560]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a7d25
mov eax, dword [0x815340]
mov ecx, dword [0x813560]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a7d5e
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
xor eax, eax
lea esi, [esp + 0x38]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [esi]
mov edi, dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub ebx, dword [0x815338]
sbb edi, dword [0x81533c]
movd xmm0, edi
movd xmm1, ebx
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm1, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm1, qword [esp + 0x30]
pxor xmm0, xmm0
movsd xmm2, qword [0x7880e8]
ucomisd xmm2, xmm1
ja 0x4a7bcb
mov eax, dword [esp + 8]
sub eax, dword [0x815328]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x81532c]
movd xmm2, ecx
movd xmm0, eax
punpckldq xmm0, xmm2
punpckldq xmm0, xmmword [0x7880f0]
subpd xmm0, xmmword [0x788100]
haddpd xmm0, xmm0
divsd xmm0, xmm1
movsd qword [0x815320], xmm0
jmp 0x4a7bcb
push 0x815330
call fcn.005c8bdd
add esp, 4
cmp dword [0x815330], 0xffffffff
jne 0x4a7c2f
rdtsc
mov dword [0x815328], eax
mov dword [0x81532c], edx
push 0x815330
call fcn.005c8c57
add esp, 4
jmp 0x4a7c2f
push 0x815340
call fcn.005c8bdd
add esp, 4
cmp dword [0x815340], 0xffffffff
jne 0x4a7c50
xor eax, eax
lea esi, [esp + 0x38]
mov dword [esi + 4], eax
mov dword [esi], eax
push esi
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov dword [0x81533c], ecx
mov dword [0x815338], eax
push 0x815340
call fcn.005c8c57
add esp, 4
jmp 0x4a7c50
Function at 0x4a7fb0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov edi, edx
mov ebx, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x4a7fe7
mov eax, dword [0x810580]
cmp eax, 0xffffffff
je 0x4a8070
mov ebx, 0x100000
test eax, eax
jne 0x4a7fe7
mov ebx, 0x80000
push 0x10
call fcn.005c8b59
add esp, 4
mov esi, eax
mov eax, edi
shr eax, 0xe
mov ecx, edi
shr ecx, 0x13
mov ecx, dword [ecx*4 + 0x81756c]
bt ecx, eax
jae 0x4a8062
push edi
call fcn.004bee90
add esp, 4
mov dword [esi], edi
mov edi, dword [ebp + 8]
test edi, edi
setne byte [esi + 4]
mov eax, dword [ebp + 0xc]
mov dword [esi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + 0xc], eax
xor eax, eax
push eax
push 0x10000
push esi
push 0x4a83f0
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x4a80a1
test edi, edi
je 0x4a8094
mov dword [edi], eax
test eax, eax
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, edi
shr eax, 0x15
mov byte [eax + 0x81f56c], 1
jmp 0x4a8012
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0x810580
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
je 0x4a819b
mov eax, dword [0x810580]
jmp 0x4a7fd9
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
jmp 0x4a8049
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x20], eax
cmp eax, 0x27a
jg 0x4a8141
cmp dword [ebp - 0x20], 8
je 0x4a8157
cmp dword [ebp - 0x20], 0xe
je 0x4a8157
mov eax, dword [0x81537c]
mov ecx, dword [0x813560]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x4a81ac
lea ebx, [ebp - 0x1c]
push dword [ebp - 0x20]
push ebx
call fcn.004b6310
add esp, 8
movsx eax, byte [ebx + 0xb]
test eax, eax
jns 0x4a8109
mov eax, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x1c]
test eax, eax
js 0x4a81aa
sete cl
test ebx, ebx
setne dl
or dl, cl
je 0x4a81aa
push eax
push ebx
push dword [0x815378]
call fcn.004d6800
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x4a8160
push dword [ebp - 0x1c]
call fcn.005c8b90
jmp 0x4a815d
cmp dword [ebp - 0x20], 0x5af
je 0x4a8157
cmp dword [ebp - 0x20], 0x27b
jne 0x4a80cb
push ebx
call fcn.004d73f0
add esp, 4
test esi, esi
mov eax, edi
je 0x4a8049
mov eax, dword [esi]
mov ecx, eax
shr ecx, 0xe
mov edx, eax
shr edx, 0x13
mov edx, dword [edx*4 + 0x81756c]
bt edx, ecx
jae 0x4a818b
push eax
call fcn.004befb0
add esp, 4
push esi
call fcn.005c8b90
add esp, 4
mov eax, edi
jmp 0x4a8049
mov dword [0x810580], 0
jmp 0x4a7fe2
ud2
push 0x81537c
call fcn.005c8bdd
add esp, 4
cmp dword [0x81537c], 0xffffffff
jne 0x4a80ec
push 0x20
push str.create_thread_last_error
call fcn.004d67e0
add esp, 8
mov dword [0x815378], eax
push 0x81537c
call fcn.005c8c57
add esp, 4
jmp 0x4a80ec
Function at 0x4a8590
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x4c], eax
pcmpeqd xmm0, xmm0
mov eax, esp
movdqa xmmword [eax], xmm0
movdqa xmmword [eax + 0x30], xmm0
movdqa xmmword [eax + 0x20], xmm0
movdqa xmmword [eax + 0x10], xmm0
mov dword [eax], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x4a85ee
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x4c]
xor ecx, ebp
call fcn.005c9f16
mov eax, esi
mov edx, edi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
call fcn.00649760
xor esi, esi
xor edi, edi
jmp 0x4a85d8

Function at 0x4a8600
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov edi, dword [ebp + 8]
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x10]
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0xce
push str....._base_system_sys_info_win.cc
push str.AmountOfFreeDiskSpace
push ebx
call fcn.005613a0
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.005546a0
xor esi, esi
dec esi
mov dword [ebx + 4], esi
mov dword [ebx], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
cmp byte [edi + 0xb], 0
jns 0x4a8674
mov edi, dword [edi]
lea eax, [esp + 0x48]
lea ecx, [esp + 0x50]
push eax
push ecx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x4a86bf
mov esi, dword [esp + 4]
test esi, esi
jns 0x4a869c
xor edi, edi
dec edi
mov esi, SysReAllocString
jmp 0x4a869f
mov edi, dword [esp]
lea ecx, [esp + 0x10]
call fcn.00554710
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005c9f16
mov eax, edi
mov edx, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov edi, esi
jmp 0x4a869f

Function at 0x4a90a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
mov dword [ecx], 0
test ebx, ebx
je 0x4a90db
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
inc eax
cmp eax, 2
jae 0x4a90f2
lea eax, [ebx + 1]
cmp eax, 2
jb 0x4a90d4
mov dword [esi], ebx
call fcn.005613d0
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x4a9109
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005613d0
push dword [esi]
call fcn.0054cbb0
add esp, 4
mov dword [esi], 0
jmp 0x4a90c5
int3
Function at 0x4a9110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jb 0x4a9131
call fcn.005613d0
mov dword [esi], 0
test ebx, ebx
je 0x4a9160
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4a9198
cmp edi, 2
jb 0x4a9159
mov dword [esi], ebx
mov edi, eax
call fcn.005613d0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jae 0x4a9181
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005613d0
push dword [edi]
call fcn.0054cbb0
add esp, 4
mov dword [edi], 0
jmp 0x4a9175
mov dword [ebp - 0x10], eax
call fcn.005613d0
push dword [esi]
call fcn.0054cbb0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4a9149

Function at 0x4a91c0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov esi, ecx
mov eax, dword [ebp + 8]
mov ebx, dword [eax]
mov dword [eax], 0
lea edi, [ebx + 1]
cmp edi, 2
jb 0x4a91e1
call fcn.005613d0
cmp dword [esi], ebx
je 0x4a920a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi]
inc ecx
cmp ecx, 2
jae 0x4a9242
cmp edi, 2
jb 0x4a9203
mov dword [esi], ebx
mov edi, eax
call fcn.005613d0
mov eax, edi
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, dword [ebp + 8]
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov byte [edi + 4], 0
mov eax, dword [edi]
inc eax
cmp eax, 2
jae 0x4a922b
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005613d0
push dword [edi]
call fcn.0054cbb0
add esp, 4
mov dword [edi], 0
jmp 0x4a921f
mov dword [ebp - 0x10], eax
call fcn.005613d0
push dword [esi]
call fcn.0054cbb0
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
jmp 0x4a91f3
Function at 0x4aabb0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
call fcn.004da240
mov byte [esi + 4], 0
xor eax, eax
mov dword [esi + 8], eax
mov dword [esi], 0x777c90
mov dword [esi + 0xc], eax
movaps xmm0, xmmword [0x791610]
movups xmmword [esp], xmm0
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x4aac1a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
inc eax
cmp eax, 2
jae 0x4aac24
lea eax, [edi + 1]
cmp eax, 2
jb 0x4aac0e
mov dword [esi + 0xc], edi
call fcn.005613d0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.005613d0
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.0054cbb0
mov dword [esi + 0xc], 0
jmp 0x4aabfe

Function at 0x4ac0b0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov esi, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x48], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x10]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov ebx, esp
push 0x1c
push str....._base_filesmemory_mapped_file_win.cc
push str.MapImageToMemory
push ebx
call fcn.005613a0
add esp, 0x10
mov ecx, edi
push 0
push ebx
call fcn.005546a0
mov ecx, esi
call fcn.00551310
test al, al
je 0x4ac1f4
mov ecx, esi
call fcn.004ac4b0
sub esp, 0x18
movq xmm0, qword [0x791910]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov edi, eax
mov eax, dword [esi + 0x24]
cmp eax, edi
je 0x4ac170
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0x24]
inc eax
cmp eax, 2
jae 0x4ac1d8
lea eax, [edi + 1]
cmp eax, 2
jb 0x4ac166
mov dword [esi + 0x24], edi
call fcn.005613d0
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esi + 0x24]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x4ac1f4
sub esp, 0x14
movd xmm0, dword [0x791920]
movdqu xmmword [esp + 4], xmm0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x4ac1f4
mov edi, eax
mov ecx, esp
mov dword [ecx], fcn.005fe550
mov dword [ecx + 4], eax
call fcn.004dc0f0
mov eax, dword [eax + 0x50]
test eax, eax
setne bl
je 0x4ac1b8
mov dword [esi + 0x1c], edi
mov dword [esi + 0x20], eax
lea ecx, [esp + 0x10]
call fcn.00554710
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.005c9f16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
call fcn.005613d0
push dword [esi + 0x24]
call fcn.0054cbb0
add esp, 4
mov dword [esi + 0x24], 0
jmp 0x4ac156
xor ebx, ebx
jmp 0x4ac1b8
Function at 0x4ac4c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x20]
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
lea ebx, [esp + 0x10]
push 0x97
push str....._base_files_file_win.cc
push str.WriteAtCurrentPos
push ebx
call fcn.005613a0
add esp, 0x10
mov ecx, edi
push 0
push ebx
mov ebx, dword [ebp + 0xc]
call fcn.005546a0
test ebx, ebx
js 0x4ac580
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x10], 0
call fcn.00571f20
test al, al
jne 0x4ac585
lea edi, [esp + 0xc]
mov dword [edi], 0xffffffff
push 0
push edi
push ebx
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [edi]
lea ecx, [esp + 0x10]
call fcn.00571fb0
lea ecx, [esp + 0x20]
call fcn.00554710
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005c9f16
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
xor esi, esi
dec esi
jmp 0x4ac560
lea ecx, [esp + 0x10]
push 0
push ebx
push esi
push str.File::WriteAtCurrentPos
call fcn.006b8950
jmp 0x4ac535

Function at 0x4ac5a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov dword [esp + 4], ecx
mov eax, dword [0x80e040]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
lea ebx, [esp + 0x20]
movdqa xmmword [ebx + 0x20], xmm0
movdqa xmmword [ebx + 0x10], xmm0
movdqa xmmword [ebx], xmm0
lea edi, [esp + 0x10]
push 0xac
push str....._base_files_file_win.cc
push str.GetLength
push edi
call fcn.005613a0
add esp, 0x10
xor esi, esi
mov ecx, ebx
push esi
push edi
call fcn.005546a0
mov dword [edi + 4], 0xffffffff
mov dword [edi], esi
call fcn.00571f20
test al, al
jne 0x4ac658
xor eax, eax
dec eax
lea ebx, [esp + 8]
mov dword [ebx + 4], eax
mov dword [ebx], eax
push ebx
mov eax, dword [esp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb esi, esi
mov edi, dword [ebx + 4]
or edi, esi
or esi, dword [ebx]
lea ecx, [esp + 0x10]
call fcn.00571fb0
lea ecx, [esp + 0x20]
call fcn.00554710
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.005c9f16
mov eax, esi
mov edx, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x10]
push esi
push esi
push dword [esp + 0xc]
push str.File::GetLength
call fcn.006b8950
jmp 0x4ac60a