joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1c5caa0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x124
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x128]
push 0x118
push 0
push eax
call fcn.01cb3330
add esp, 0xc
mov dword [ebp - 0x12c], 0x11c
lea edi, [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x130], 0
lea eax, [ebp - 0x130]
push eax
push 0
push 0
push dword [ebp - 0x124]
push dword [ebp - 0x128]
call dword [sym.imp.KERNEL32.dll_GetProductInfo]
push 0x54
call fcn.01cafad0
add esp, 4
mov esi, eax
mov ebx, dword [ebp - 0x130]
mov eax, dword [0x1cfd9d8]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5cb5e
mov ecx, esi
push ebx
push 0x1cfd9b4
push edi
call fcn.01c5ccb0
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
add esp, 0x124
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1cfd9d8
call fcn.01cafb77
add esp, 4
cmp dword [0x1cfd9d8], 0xffffffff
jne 0x1c5cb39
xorps xmm0, xmm0
movups xmmword [0x1cfd9c4], xmm0
movups xmmword [0x1cfd9b4], xmm0
mov dword [0x1cfd9d4], 0
push 0x1cfd9b4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1cfd9d8
call fcn.01cafbed
add esp, 4
jmp 0x1c5cb39

Function at 0x1c5cc10
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1cfd9d8]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c5cc5f
movzx eax, word [0x1cfd9b4]
cmp eax, 0xc
ja case.0x1c5cc3c.1
jmp dword [eax*4 + 0x1ce9a24]
mov eax, 2
pop ebp
ret
mov eax, 4
pop ebp
ret
mov eax, 1
pop ebp
ret
mov eax, 3
pop ebp
ret
push 0x1cfd9d8
call fcn.01cafb77
add esp, 4
cmp dword [0x1cfd9d8], 0xffffffff
jne 0x1c5cc30
xorps xmm0, xmm0
movups xmmword [0x1cfd9c4], xmm0
movups xmmword [0x1cfd9b4], xmm0
mov dword [0x1cfd9d4], 0
push 0x1cfd9b4
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
push 0x1cfd9d8
call fcn.01cafbed
add esp, 4
jmp 0x1c5cc30
Function at 0x1c63f00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x1c63fdf
mov edi, ecx
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx + 0x74], 0
je 0x1c63fdf
add eax, ecx
cmp word [eax + 0x14], 0x68
jb 0x1c63fdf
add eax, 0x78
je 0x1c63fdf
mov ecx, edi
push dword [eax]
call fcn.01c63e60
test eax, eax
je 0x1c63fdf
mov ebx, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
cmp eax, 0xffff
jbe 0x1c6400c
mov ecx, edi
push dword [ebx + 0x20]
call fcn.01c63e60
mov ecx, eax
mov eax, dword [ebx + 0x18]
test eax, eax
je 0x1c63fdf
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], edi
lea esi, [ecx + eax*4]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x18], ecx
mov ebx, ecx
mov edi, esi
sub edi, ebx
mov eax, edi
sar eax, 2
shr edi, 0x1f
add edi, eax
and edi, 0xfffffffe
mov ecx, dword [ebp - 0x14]
push dword [ebx + edi*2]
call fcn.01c63e60
mov ecx, dword [ebp + 8]
mov cl, byte [ecx]
test cl, cl
je 0x1c63fbd
mov edx, dword [ebp - 0x20]
cmp cl, byte [eax]
jne 0x1c63fbf
inc eax
mov cl, byte [edx]
inc edx
test cl, cl
jne 0x1c63fb1
xor ecx, ecx
lea edi, [ebx + edi*2]
movzx eax, byte [eax]
cmp cl, al
je 0x1c63feb
movzx ecx, cl
cmp ecx, eax
lea eax, [edi + 4]
cmovg ebx, eax
cmovs esi, edi
xor eax, eax
cmp ebx, esi
jne 0x1c63f89
jmp 0x1c63fe1
xor eax, eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ecx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x1c]
push dword [esi + 0x24]
call fcn.01c63e60
sub edi, dword [ebp - 0x18]
sar edi, 1
movzx eax, word [eax + edi]
add ax, word [esi + 0x10]
mov dword [ebp - 0x10], eax
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x10]
mov word [esi], ax
mov al, 1
jmp 0x1c63fe1
Function at 0x1c65f80
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 [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x40], eax
movsd xmm1, qword [0x1cfda70]
xorpd xmm0, xmm0
ucomisd xmm1, xmm0
jne 0x1c660fc
jp 0x1c660fc
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 [0x1cfda80]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c66121
mov eax, dword [0x1cfda90]
mov ecx, dword [0x1cfb0d8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1c6615a
rdtsc
mov dword [esp + 8], eax
mov dword [esp + 4], edx
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea ebx, [esp + 0x38]
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push dword [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
push ebx
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
sub esi, dword [0x1cfda88]
sbb edi, dword [0x1cfda8c]
movd xmm0, edi
movd xmm1, esi
punpckldq xmm1, xmm0
movq qword [esp + 0x28], xmm1
fild qword [esp + 0x28]
fstp qword [esp + 0x20]
movsd xmm0, qword [esp + 0x20]
fild qword [esp + 0x38]
fstp qword [esp + 0x30]
divsd xmm0, qword [esp + 0x30]
pxor xmm1, xmm1
movsd xmm2, qword [0x1cea628]
ucomisd xmm2, xmm0
ja 0x1c660fc
mov eax, dword [esp + 8]
sub eax, dword [0x1cfda78]
mov ecx, dword [esp + 4]
sbb ecx, dword [0x1cfda7c]
movd xmm1, ecx
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm2, xmmword [0x1cea600]
subpd xmm2, xmmword [0x1cea610]
movapd xmm1, xmm2
unpckhpd xmm1, xmm2
addsd xmm1, xmm2
divsd xmm1, xmm0
movsd qword [0x1cfda70], xmm1
movsd qword [esp + 0x18], xmm1
fld qword [esp + 0x18]
fstp xword [esp + 0xc]
mov ecx, dword [esp + 0x40]
xor ecx, ebp
call fcn.01cb0ac3
fld xword [esp + 0xc]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x1cfda80
call fcn.01cafb77
add esp, 4
cmp dword [0x1cfda80], 0xffffffff
jne 0x1c65ff2
rdtsc
mov dword [0x1cfda78], eax
mov dword [0x1cfda7c], edx
push 0x1cfda80
call fcn.01cafbed
add esp, 4
jmp 0x1c65ff2
push 0x1cfda90
call fcn.01cafb77
add esp, 4
cmp dword [0x1cfda90], 0xffffffff
jne 0x1c66013
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
lea eax, [esp + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [0x1cfda8c], ecx
mov dword [0x1cfda88], eax
push 0x1cfda90
call fcn.01cafbed
add esp, 4
jmp 0x1c66013
Function at 0x1c6d0f0
Capabilities:
Encode data using xor
Hash data using murmur2

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov esi, dword [ebp + 0xc]
movzx ebx, byte [esi + 0xb]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
test bl, bl
mov dword [ebp - 0x14], ecx
lea ecx, [eax + ecx]
lea edx, [esi + ebx]
cmovs edx, ecx
cmovs esi, eax
sub edx, esi
cmp edx, 4
mov dword [ebp - 0x20], ebx
jb 0x1c6d15d
mov ecx, esi
mov eax, edx
nop word [eax + eax]
imul edi, dword [ecx], 0x5bd1e995
mov ebx, edi
shr ebx, 0x18
xor ebx, edi
imul edi, ebx, 0x5bd1e995
imul eax, eax, 0x5bd1e995
xor eax, edi
add ecx, 4
add edx, 0xfffffffc
cmp edx, 3
ja 0x1c6d130
cmp edx, 1
jne 0x1c6d166
jmp 0x1c6d182
mov eax, edx
mov ecx, esi
cmp edx, 1
je 0x1c6d182
cmp edx, 2
je 0x1c6d179
cmp edx, 3
jne 0x1c6d18d
movzx edx, byte [ecx + 2]
shl edx, 0x10
xor eax, edx
movzx edx, byte [ecx + 1]
shl edx, 8
xor eax, edx
movzx ecx, byte [ecx]
xor ecx, eax
imul eax, ecx, 0x5bd1e995
mov ecx, dword [ebp - 0x10]
mov ebx, dword [ecx + 4]
xor ecx, ecx
test ebx, ebx
je 0x1c6d2ee
mov edx, eax
shr edx, 0xd
xor edx, eax
imul eax, edx, 0x5bd1e995
mov edi, eax
shr edi, 0xf
xor edi, eax
mov edx, ebx
shr edx, 1
and edx, 0x55555555
mov eax, ebx
sub eax, edx
mov edx, eax
and edx, 0x33333333
shr eax, 2
and eax, 0x33333333
add eax, edx
mov edx, eax
shr edx, 4
add edx, eax
and edx, 0xf0f0f0f
imul eax, edx, 0x1010101
shr eax, 0x18
mov dword [ebp - 0x24], eax
cmp eax, 1
ja 0x1c6d1f6
lea edx, [ebx - 1]
and edx, edi
jmp 0x1c6d202
mov edx, edi
cmp edi, ebx
jb 0x1c6d202
mov eax, edi
xor edx, edx
div ebx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov eax, dword [eax + edx*4]
test eax, eax
je 0x1c6d2ee
mov dword [ebp - 0x18], ebx
mov ebx, dword [eax]
test ebx, ebx
je 0x1c6d2ee
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x18]
dec eax
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x20]
test cl, cl
mov eax, dword [ebp - 0x14]
cmovns eax, ecx
mov dword [ebp - 0x14], eax
jmp 0x1c6d255
and eax, dword [ebp - 0x1c]
cmp eax, edx
jne 0x1c6d2ec
mov ebx, dword [ebx]
test ebx, ebx
je 0x1c6d2ec
mov eax, dword [ebx + 4]
cmp eax, edi
jne 0x1c6d2b0
movzx eax, byte [ebx + 0x13]
mov ecx, eax
test al, al
jns 0x1c6d269
mov ecx, dword [ebx + 0xc]
cmp ecx, dword [ebp - 0x14]
jne 0x1c6d24b
lea ecx, [ebx + 8]
test al, al
jns 0x1c6d277
mov ecx, dword [ecx]
js 0x1c6d2ce
cmp dword [ebp - 0x14], 0
je 0x1c6d2e8
xor ecx, ecx
nop word cs:[eax + eax]
movzx edx, byte [ebx + ecx + 8]
cmp dl, byte [esi + ecx]
jne 0x1c6d24b
inc ecx
cmp eax, ecx
jne 0x1c6d290
jmp 0x1c6d2e8
cmp dword [ebp - 0x24], 1
mov edx, dword [ebp - 0x10]
jbe 0x1c6d240
mov ecx, dword [ebp - 0x18]
cmp eax, ecx
jb 0x1c6d243
xor edx, edx
div ecx
mov eax, edx
mov edx, dword [ebp - 0x10]
jmp 0x1c6d243
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x1c6d2e8
push eax
push esi
push ecx
call fcn.01cb1e9d
add esp, 0xc
test eax, eax
jne 0x1c6d24b
mov ecx, ebx
jmp 0x1c6d2ee
xor ecx, ecx
mov eax, dword [ebp + 8]
mov dword [eax], ecx
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c6e5d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x10
mov eax, dword [ebp + 8]
mov edx, dword [0x1cf7014]
xor edx, ebp
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], 4
mov dword [ebp - 0x14], 4
mov dword [ebp - 0x18], 0
lea edx, [ebp - 0x14]
lea esi, [ebp - 0x18]
lea edi, [ebp - 0x10]
push edx
push esi
push edi
push 0
push eax
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1c6e638
mov eax, dword [ebp - 0x10]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x1c6e638
cmp dword [ebp - 0x14], 4
jne 0x1c6e638
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x18]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, esi
add esp, 0x10
pop esi
pop edi
pop ebp
ret 8

Function at 0x1c6e650
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.01cb0ee0
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x810]
push 0x800
push 0xff
push ebx
call fcn.01cb3330
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push ebx
push ecx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1c6e726
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x1c6e6d9
mov edi, 0x3f4
cmp eax, 1
jne 0x1c6e726
mov ecx, esi
push ebx
jmp 0x1c6e71f
lea edi, [ebp - 0x1010]
push 0x800
push 0xff
push edi
call fcn.01cb3330
add esp, 0xc
push 0x400
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x1c6e726
mov ecx, esi
lea eax, [ebp - 0x1010]
push eax
call fcn.01c5565e
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8
Function at 0x1c7580a
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c7582c
mov eax, dword [esi]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov bl, 1
test eax, eax
jne 0x1c7590f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1c75867
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov ecx, esi
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.01c75926
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c7590d
call fcn.01c7a7c0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x266
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xb0]
push 0x10
push str.CreateDirectory
push eax
call fcn.01c35b14
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c758bb
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c758e0
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c75902
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7aa10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c75926
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xb8
mov esi, ecx
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 0xb], 0
mov eax, ecx
jns 0x1c75948
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1c75a17
mov bl, 1
test al, 0x10
jne 0x1c75abf
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c75abd
lea ecx, [ebp - 0xb8]
push 2
push 0x255
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.01c79d90
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c35b14
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c759b0
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c759d5
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01c35b14
add esp, 0xc
push 0x11
push str.:_not_a_directory
push eax
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c75a07
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7a1a0
jmp 0x1c75abd
push 2
call fcn.01c79d30
add esp, 4
test al, al
je 0x1c75abd
call fcn.01c7a7c0
lea ecx, [ebp - 0xb8]
push eax
push 2
push 0x251
push str....._third_partycrashpadcrashpadclientcrash_report_database_win.cc
call fcn.01c7a960
lea eax, [ebp - 0xb0]
push 0x12
push str.GetFileAttributes
push eax
call fcn.01c35b14
add esp, 0xc
mov edi, eax
movzx eax, byte [esi + 0xb]
test al, al
jns 0x1c75a6b
mov eax, dword [esi + 4]
mov esi, dword [esi]
lea ebx, [ebp - 0xc4]
push eax
push esi
push ebx
call fcn.01c5c560
add esp, 0xc
movzx eax, byte [ebx + 0xb]
test al, al
jns 0x1c75a90
mov eax, dword [ebp - 0xc0]
mov ebx, dword [ebp - 0xc4]
push eax
push ebx
push edi
call fcn.01c35b14
add esp, 0xc
cmp byte [ebp - 0xb9], 0
jns 0x1c75ab2
push dword [ebp - 0xc4]
call fcn.01cafb00
add esp, 4
lea ecx, [ebp - 0xb8]
call fcn.01c7aa10
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0xb8
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c76f78
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov esi, dword [ecx + 0x28]
mov ebx, dword [ecx + 0x2c]
movups xmm0, xmmword [edx]
movups xmmword [ebp - 0x20], xmm0
cmp esi, ebx
je 0x1c76fca
mov dword [ebp - 0x24], ecx
lea edi, [ebp - 0x20]
mov ecx, esi
push edi
call fcn.01c75184
test al, al
jne 0x1c76fb7
add esi, 0x58
cmp esi, ebx
jne 0x1c76fa2
mov esi, ebx
mov eax, dword [ebp - 0x24]
cmp esi, dword [eax + 0x2c]
je 0x1c76fca
cmp byte [esi + 0x1b], 0
jns 0x1c76fcf
mov eax, dword [esi + 0x10]
jmp 0x1c76fd2
xor edi, edi
inc edi
jmp 0x1c76ff5
lea eax, [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
shr ecx, 3
and ecx, 2
xor edi, edi
inc edi
cmp eax, 0xffffffff
cmovne edi, ecx
test edi, edi
jne 0x1c76ff5
mov eax, dword [ebp + 8]
mov dword [eax], esi
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, edi
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c78244
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ecx + 0x50]
cmp eax, edx
jne 0x1c78259
cmp byte [ecx + 0x1b], 0
jns 0x1c78267
mov ecx, dword [ecx + 0x10]
jmp 0x1c7826a
xor ecx, ecx
cmp eax, 1
sete cl
lea eax, [ecx + ecx*2]
inc eax
jmp 0x1c78284
add ecx, 0x10
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
mov edx, eax
shr edx, 3
and edx, 2
xor eax, eax
inc eax
cmp ecx, 0xffffffff
cmovne eax, edx
pop ebp
ret

Function at 0x1c78740
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov eax, dword [ebp + 0x10]
mov ecx, dword [0x1cf7014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
movzx ecx, byte [eax + 0xb]
test cl, cl
jns 0x1c78764
mov ecx, dword [eax + 4]
mov eax, dword [eax]
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x1c]
push ecx
push eax
push esi
call fcn.01c5c520
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c7877e
mov esi, dword [ebp - 0x1c]
lea edi, [ebp - 0x28]
push ebx
push dword [ebp + 8]
push edi
call fcn.01c5c520
add esp, 0xc
cmp byte [ebp - 0x1d], 0
jns 0x1c78797
mov edi, dword [ebp - 0x28]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x1d], 0
js 0x1c787c8
cmp byte [ebp - 0x11], 0
js 0x1c787d9
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret 0xc
push dword [ebp - 0x28]
call fcn.01cafb00
add esp, 4
cmp byte [ebp - 0x11], 0
jns 0x1c787ad
push dword [ebp - 0x1c]
call fcn.01cafb00
add esp, 4
jmp 0x1c787ad
Function at 0x1c78860
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov ebx, edx
mov edi, ecx
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x1c]
push edx
push ecx
push esi
call fcn.01c5c520
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c7888e
mov esi, dword [ebp - 0x1c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [ebp - 0x11], 0
js 0x1c788ac
cmp dword [ebp + 8], 0
jne 0x1c788c1
jmp 0x1c7895c
push dword [ebp - 0x1c]
call fcn.01cafb00
add esp, 4
cmp dword [ebp + 8], 0
je 0x1c7895c
test esi, esi
je 0x1c7895c
lea eax, [esi + esi]
test esi, esi
mov ecx, 0xffffffff
cmovns ecx, eax
push ecx
call fcn.01cafb33
add esp, 4
mov ecx, edi
mov edi, eax
mov eax, ebx
lea ebx, [ebp - 0x1c]
push eax
push ecx
push ebx
call fcn.01c5c520
add esp, 0xc
cmp byte [ebp - 0x11], 0
jns 0x1c788fc
mov ebx, dword [ebp - 0x1c]
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
cmp byte [ebp - 0x11], 0
jns 0x1c78916
push dword [ebp - 0x1c]
call fcn.01cafb00
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x1c78975
push edi
call fcn.01cc8df4
add esp, 4
lea ecx, [ebp - 0x1c]
push eax
push edi
push ecx
call fcn.01c5c560
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x1c78944
push dword [ebx]
call fcn.01cafb00
add esp, 4
mov eax, dword [ebp - 0x14]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x1c]
movsd qword [ebx], xmm0
push edi
call fcn.01cafb3c
add esp, 4
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0x10
pop esi
pop edi
pop ebx
pop ebp
ret
int3

Function at 0x1c78980
Capabilities:
Check if file exists
Get file attributes

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 [0x1cf7014]
xor eax, ebp
mov dword [esp + 0x58], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
mov ebx, esp
push 0x1f1
push str....._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.01c67b60
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.01c7f810
cmp byte [edi + 0xb], 0
jns 0x1c789e6
mov edi, dword [edi]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
mov ecx, esi
call fcn.01c7f890
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x1c78a20
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x1cf7014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea ebx, [ebp - 0x21a]
push 0x20a
push 0xff
push ebx
call fcn.01cb3330
add esp, 0xc
push ebx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
add esi, 0xfffffefc
cmp esi, 0xfffffefd
jb 0x1c78aa8
push ebx
call fcn.01cc8df4
add esp, 4
lea edi, [ebp - 0x234]
mov ecx, edi
push eax
push ebx
call fcn.01c6e860
lea ebx, [ebp - 0x228]
mov ecx, edi
push ebx
call fcn.01c6fa00
mov ecx, dword [ebp + 8]
push ebx
call fcn.01c6e950
mov ecx, ebx
call fcn.01c6e910
mov ecx, edi
call fcn.01c6e910
cmp esi, 0xfffffefd
setae bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.01cb0ac3
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret