joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100aadf0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x18]
lea edx, [ebp + 0x10]
cmp esi, 7
jbe 0x100aae17
mov eax, dword [ebp + 0x14]
mov ebx, dword [eax + 4]
cmp ebx, esi
ja 0x100aae17
cmp dword [eax], 0x100001
jb 0x100aae39
mov dword [edi], 0
mov ecx, dword [edx]
mov dword [edx], 0
test ecx, ecx
je 0x100aae2f
mov eax, dword [ecx]
push 1
call dword [eax]
mov eax, edi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [eax + ebx]
mov dword [ebp - 0x10], ecx
sub esi, ebx
push 0x50
call fcn.10216dd3
lea edx, [ebp + 0x10]
add esp, 4
mov edi, eax
mov dword [eax + 4], 0x1025f4d0
mov dword [eax], 0x10255474
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov eax, dword [edx]
mov dword [edi + 0x18], eax
mov word [edi + 0x1c], 0x100
mov byte [edi + 0x1e], 1
mov eax, dword [ebp + 0x14]
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], ebx
mov dword [edx], 0
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x28], eax
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], 0
mov dword [edi + 0x34], 0
mov dword [edi + 0x38], 0
xorps xmm0, xmm0
movups xmmword [edi + 0x40], xmm0
mov eax, dword [0x102b3718]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov ecx, dword [0x102b440c]
cmp ecx, dword [eax + 4]
jg 0x100aaeec
lock add dword [0x102b4404], 1
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, eax
jmp 0x100aae1d
push 0x102b440c
call fcn.10216dd3
lea edx, [ebp + 0x10]
add esp, 4
cmp dword [0x102b440c], 0xffffffff
jne 0x100aaed8
mov dword [0x102b4408], 0x10255480
call fcn.10173210
mov ecx, eax
push 0
push str.MojoMessages
push 0x102b4408
call fcn.101732a0
push 0x102b440c
call fcn.10216dd3
lea edx, [ebp + 0x10]
add esp, 4
jmp 0x100aaed8
Function at 0x10144a66
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.10208980
add esp, 0xc
mov word [esi - 2], 0
lea edi, [ebp - 0x218]
push 0x104
push edi
call dword [sym.imp.kernel32.dll_GetSystemDirectoryW]
xor eax, eax
dec eax
mov dword [ebp - 0x224], eax
mov dword [ebp - 0x220], eax
mov dword [ebp - 0x21c], eax
push edi
call fcn.10216dd3
add esp, 4
cmp eax, 0x7ffffff0
jae 0x10144b8a
mov ebx, eax
cmp eax, 5
jae 0x10144aec
lea esi, [ebp - 0x224]
mov byte [esi + 0xb], bl
test ebx, ebx
jne 0x10144b1e
jmp 0x10144b2d
lea edi, [ebx + 8]
and edi, 0xfffffff8
lea eax, [edi + edi]
push eax
call fcn.10216dd3
add esp, 4
mov esi, eax
mov dword [ebp - 0x224], eax
or edi, 0x80000000
mov dword [ebp - 0x21c], edi
lea edi, [ebp - 0x218]
mov dword [ebp - 0x220], ebx
mov eax, ebx
add eax, ebx
push eax
push edi
push esi
call fcn.10208400
add esp, 0xc
mov word [esi + ebx*2], 0
lea ecx, [ebp - 0x224]
push 0xa
push str.usp10.dll
call fcn.1014190a
cmp byte [eax + 0xb], 0
jns 0x10144b4d
mov eax, dword [eax]
push eax
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [ebp - 0x219], 0
jns 0x10144b6d
push dword [ebp - 0x224]
call fcn.10205096
add esp, 4
cmp esi, 0xffffffff
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [ebp - 0x224]
call fcn.101407c4
int3
Function at 0x10146f20
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [0x102b0014]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea ecx, [ebp - 0x20]
push 3
push eax
push edx
push ecx
call fcn.1016cf60
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x101470e4
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push str.api_ms_win_downlevel_shell32_l1_1_0.dll
call dword [sym.imp.kernel32.dll_LoadLibraryExW]
mov ebx, eax
test eax, eax
je 0x10146f96
push 0x10263abe
push ebx
call dword [sym.imp.kernel32.dll_GetProcAddress]
test eax, eax
je 0x10146fa6
mov ecx, eax
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x10146fa1
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x28], eax
jmp 0x10146fad
mov dword [ebp - 0x28], 0
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test eax, eax
je 0x101470a0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x30], edi
cmp eax, 0x15555556
jae 0x10147123
shl eax, 2
mov dword [ebp - 0x34], eax
lea edi, [eax + eax*2]
push edi
call fcn.10216dd3
add esp, 4
mov esi, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], eax
add eax, edi
mov dword [ebp - 0x18], eax
xor edi, edi
jmp 0x10147066
mov dword [ebp - 0x24], esi
lea esi, [ebx + 8]
and esi, 0xfffffff8
lea eax, [esi + esi]
push eax
call fcn.10216dd3
add esp, 4
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [eax], ecx
or esi, 0x80000000
mov eax, dword [ebp - 0x24]
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x24]
mov dword [esi + 4], ebx
mov dword [ebp - 0x24], ecx
mov eax, ebx
add eax, ebx
push eax
push dword [ebp - 0x38]
push ecx
call fcn.10208400
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov word [ecx + ebx*2], 0
add esi, 0xc
add edi, 4
cmp dword [ebp - 0x34], edi
je 0x10147095
mov eax, dword [ebp - 0x28]
mov eax, dword [eax + edi]
mov dword [ebp - 0x38], eax
push eax
call fcn.10216dd3
add esp, 4
cmp eax, 0x7ffffff0
jae 0x1014711c
mov ebx, eax
cmp eax, 5
jae 0x10147010
mov byte [esi + 0xb], bl
mov ecx, esi
test ebx, ebx
jne 0x1014703e
jmp 0x10147055
mov dword [ebp - 0x1c], esi
mov edi, dword [ebp - 0x30]
mov ebx, dword [ebp - 0x2c]
jmp 0x101470a2
xor esi, esi
lea edx, [ebp - 0x20]
mov ecx, edi
call fcn.10146210
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [ebp - 0x28]
call dword [sym.imp.kernel32.dll_LocalFree]
test ebx, ebx
je 0x101470cd
push ebx
call dword [sym.imp.kernel32.dll_FreeLibrary]
mov edi, dword [ebp - 0x20]
test edi, edi
je 0x101470e4
cmp esi, edi
jne 0x10147106
mov dword [ebp - 0x1c], edi
push edi
call fcn.10205096
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, ebx
cmp edi, ebx
je 0x101470d8
lea ebx, [esi - 0xc]
cmp byte [esi - 1], 0
jns 0x10147100
push dword [esi - 0xc]
call fcn.10205096
add esp, 4
jmp 0x10147100
mov ecx, esi
call fcn.101407c4
lea ecx, [ebp - 0x20]
call fcn.1002bb40
int3
Function at 0x1014bca0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x18
mov ebx, edx
mov edi, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0x10], eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov esi, esp
push esi
push edx
push ecx
call fcn.1015ee40
add esp, 0xc
cmp byte [esp + 0xb], 0
jns 0x1014bce9
mov esi, dword [esp]
push 0
push 0
push esi
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov esi, eax
cmp byte [esp + 0xb], 0
jns 0x1014bd08
push dword [esp]
call fcn.10205096
add esp, 4
test esi, esi
je 0x1014bde3
cmp dword [ebp + 8], 0
je 0x1014bde3
mov eax, esi
add eax, esi
mov ecx, 0xffffffff
cmovae ecx, eax
push ecx
call fcn.10216dd3
add esp, 4
mov ecx, edi
mov edi, eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, ebx
mov ebx, esp
push ebx
push eax
push ecx
call fcn.1015ee40
add esp, 0xc
cmp byte [esp + 0xb], 0
jns 0x1014bd63
mov ebx, dword [esp]
push esi
push edi
push ebx
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
cmp byte [esp + 0xb], 0
jns 0x1014bd7e
push dword [esp]
call fcn.10205096
add esp, 4
test edi, edi
mov ebx, dword [ebp + 8]
je 0x1014bd90
push edi
call fcn.10216dd3
add esp, 4
jmp 0x1014bd92
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov ecx, esp
push ecx
push eax
push edi
call fcn.1015e8b0
add esp, 0xc
cmp byte [ebx + 0xb], 0
jns 0x1014bdc6
push dword [ebx]
call fcn.10205096
add esp, 4
mov eax, dword [esp + 8]
mov dword [ebx + 8], eax
movsd xmm0, qword [esp]
movsd qword [ebx], xmm0
test edi, edi
je 0x1014bde3
push edi
call fcn.102050cc
add esp, 4
test esi, esi
setne bl
mov ecx, dword [esp + 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x10161c70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1408
call fcn.10206020
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [0x102b2028]
cmp eax, 0xffffffff
je 0x10161dcc
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
test bl, 3
je 0x10161dcc
and ebx, 0xfffffffc
lea eax, [ebp - 0x810]
push 0x800
push ebx
push eax
call fcn.10208400
add esp, 0xc
mov ecx, dword [0x102b2028]
lea eax, [ebp - 0x80f]
push eax
mov dword [ebp - 0x1414], ecx
push ecx
call dword [sym.imp.kernel32.dll_TlsSetValue]
test ebx, ebx
je 0x10161ce9
push ebx
call fcn.102050cc
add esp, 4
mov eax, dword [0x102b5eb8]
mov ecx, dword [0x102b3718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x10161ded
mov esi, dword [0x102b5eb4]
push esi
call dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x10161de1
lea eax, [ebp - 0x1410]
push 0xc00
push 0x102b52b4
push eax
call fcn.10208400
add esp, 0xc
push esi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov al, 1
mov esi, 0x100
test al, al
je 0x10161dbe
nop
nop
nop
nop
nop
nop
xor edi, edi
lea ebx, [ebp - 0x1408]
xor eax, eax
jmp 0x10161d6e
add edi, 1
add ebx, 0xc
cmp edi, 0x100
je 0x10161db0
mov ecx, dword [ebp + edi*8 - 0x810]
test ecx, ecx
je 0x10161d60
cmp dword [ebx - 8], 0
je 0x10161d60
mov edx, dword [ebp + edi*8 - 0x80c]
cmp edx, dword [ebx]
jne 0x10161d60
mov edx, dword [ebx - 4]
test edx, edx
je 0x10161d60
mov dword [ebp + edi*8 - 0x810], 0
push ecx
call edx
add esp, 4
mov al, 1
jmp 0x10161d60
cmp esi, 2
jb 0x10161dbe
add esi, 0xffffffff
and al, 1
test al, al
jne 0x10161d50
push 2
push dword [ebp - 0x1414]
call dword [sym.imp.kernel32.dll_TlsSetValue]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
add esp, 0x1408
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, esi
call fcn.1016d1b0
jmp 0x10161d1f
push 0x102b5eb8
call fcn.10216dd3
add esp, 4
cmp dword [0x102b5eb8], 0xffffffff
jne 0x10161d0a
push 4
call fcn.10216dd3
add esp, 4
mov dword [eax], 0
mov dword [0x102b5eb4], eax
push 0x102b5eb8
call fcn.10216dd3
add esp, 4
jmp 0x10161d0a

Function at 0x10161e30
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x102b2028]
cmp eax, 0xffffffff
je 0x10161e52
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x10161e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x808
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x814], 0xffffffff
mov ecx, dword [0x102b2028]
mov dword [ebp - 0x814], ecx
cmp ecx, 0xffffffff
jne 0x10161f01
lea esi, [ebp - 0x814]
push esi
call fcn.101bb690
add esp, 4
test al, al
je 0x10161f7d
mov ecx, dword [ebp - 0x814]
cmp ecx, 0xffffffff
jne 0x10161edf
push esi
call fcn.101bb690
add esp, 4
test al, al
je 0x10161f80
cmp dword [ebp - 0x814], 0xffffffff
je 0x10161f80
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_TlsFree]
mov ecx, dword [ebp - 0x814]
mov eax, 0xffffffff
lock cmpxchg dword [0x102b2028], ecx
je 0x10161f01
push ecx
call dword [sym.imp.kernel32.dll_TlsFree]
mov ecx, dword [0x102b2028]
mov dword [ebp - 0x814], ecx
push ecx
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x10161f7a
lea edi, [ebp - 0x810]
push 0x800
push 0
push edi
call fcn.10208980
add esp, 0xc
lea eax, [ebp - 0x80d]
mov ebx, dword [sym.imp.kernel32.dll_TlsSetValue]
push eax
push dword [ebp - 0x814]
call ebx
push 0x800
call fcn.10216dd3
add esp, 4
mov esi, eax
push 0x800
push edi
push eax
call fcn.10208400
add esp, 0xc
mov eax, esi
or eax, 3
push eax
push dword [ebp - 0x814]
call ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, esi
add esp, 0x808
pop esi
pop edi
pop ebx
pop ebp
ret
int3
int3
int3
Function at 0x101620c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
mov dword [ecx], 0xffffffff
mov dword [ecx + 4], 0
mov eax, dword [0x102b2028]
cmp eax, 0xffffffff
je 0x101620ea
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
test al, 3
jne 0x101620ef
call fcn.10161e60
mov eax, dword [0x102b5eb8]
mov ecx, dword [0x102b3718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x101621c7
mov edi, dword [0x102b5eb4]
push edi
call dword [sym.imp.kernel32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x101621bb
mov ecx, dword [0x102b52b0]
add ecx, 1
mov edx, 0x100
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, cl
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x102b52b4], 0
je 0x1016216d
lea eax, [ecx + 1]
movzx ebx, al
lea eax, [ebx + ebx*2]
cmp dword [eax*4 + 0x102b52b4], 0
je 0x1016216d
add ecx, 2
add edx, 0xfffffffe
jne 0x10162140
jmp 0x1016219d
lea ecx, [eax*4 + 0x102b52b4]
mov dword [ecx], 1
lea eax, [ebx*4]
mov ecx, dword [ebp + 8]
mov dword [eax + eax*2 + 0x102b52b8], ecx
mov dword [0x102b52b0], ebx
mov dword [esi], ebx
mov eax, dword [eax + eax*2 + 0x102b52bc]
mov dword [esi + 4], eax
push edi
call dword [sym.imp.kernel32.dll_ReleaseSRWLockExclusive]
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x10162208
cmp eax, 0x100
jge 0x1016220b
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov ecx, edi
call fcn.1016d1b0
jmp 0x10162125
push 0x102b5eb8
call fcn.10216dd3
add esp, 4
cmp dword [0x102b5eb8], 0xffffffff
jne 0x10162110
push 4
call fcn.10216dd3
add esp, 4
mov dword [eax], 0
mov dword [0x102b5eb4], eax
push 0x102b5eb8
call fcn.10216dd3
add esp, 4
jmp 0x10162110
int3
int3
Function at 0x10167b00
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0x68], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
lea edi, [esp + 8]
push 0x4e
push str..._.._base_file_version_info_win.cc
push str.CreateFileVersionInfoWin
push edi
call fcn.1014e3e0
add esp, 0x10
lea ecx, [esp + 0x20]
push 0
push edi
call fcn.10160300
mov dword [esp + 4], 0xffffffff
cmp byte [ebx + 0xb], 0
jns 0x10167b6b
mov ebx, dword [ebx]
mov esi, dword [ebp + 8]
lea eax, [esp + 4]
push eax
mov dword [esp + 4], ebx
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
test eax, eax
je 0x10167caf
mov ebx, eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
test eax, eax
js 0x10167cd3
mov esi, ebx
push ebx
call fcn.10216dd3
add esp, 4
mov edi, eax
mov dword [esp + 8], eax
add ebx, eax
mov dword [esp + 0x10], ebx
push esi
push 0
push eax
call fcn.10208980
add esp, 0xc
mov dword [esp + 0xc], ebx
push edi
push esi
push dword [esp + 0xc]
push dword [esp + 0xc]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x10167c93
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
lea esi, [esp + 0x18]
lea eax, [esp + 0x1c]
push esi
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10167c93
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10167c93
push 0x1c
mov dword [esp + 4], eax
call fcn.10216dd3
add esp, 4
mov ecx, esi
mov esi, eax
mov eax, dword [esp]
mov eax, dword [eax]
mov dword [esi], fcn.10168590
mov dword [esi + 4], edi
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esi + 0x10], edi
mov dword [esi + 0x14], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0xffffffff
push ecx
lea eax, [esp + 0x20]
push eax
push 0x10264a3e
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x10167cdc
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 8]
mov dword [eax], esi
mov esi, eax
jmp 0x10167cb5
mov esi, dword [ebp + 8]
mov dword [esi], 0
test edi, edi
je 0x10167cb5
mov dword [esp + 0xc], edi
push edi
call fcn.10205096
add esp, 4
jmp 0x10167cb5
mov dword [esi], 0
lea ecx, [esp + 0x20]
call fcn.10160360
mov ecx, dword [esp + 0x68]
xor ecx, ebp
call fcn.10205d16
mov eax, esi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 8]
call fcn.1002bb40
int3
Function at 0x101686c0
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 [0x102b0014]
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 0x281
push str..._.._base_files_file_util_win.cc
push str.PathExists
push ebx
call fcn.1014e3e0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.10160300
cmp byte [edi + 0xb], 0
jns 0x10168726
mov edi, dword [edi]
push edi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne bl
mov ecx, esi
call fcn.10160360
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10168750
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 [0x102b0014]
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 0x2a9
push str..._.._base_files_file_util_win.cc
push str.DirectoryExists
push ebx
call fcn.1014e3e0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.10160300
cmp byte [edi + 0xb], 0
jns 0x101687b6
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.10160360
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x101687f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x228
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x21a]
push 0x20a
push 0xff
push edi
call fcn.10208980
add esp, 0xc
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x102
ja 0x10168875
push edi
call fcn.10216dd3
add esp, 4
lea ebx, [ebp - 0x234]
mov ecx, ebx
push eax
push edi
call fcn.1014be70
lea edi, [ebp - 0x228]
mov ecx, ebx
push edi
call fcn.1014d320
mov ecx, dword [ebp + 8]
push edi
call fcn.1014bfb0
mov ecx, edi
call fcn.1014bf30
mov ecx, ebx
call fcn.1014bf30
cmp esi, 0x103
setb bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
add esp, 0x228
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x101688a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x218
mov esi, dword [ebp + 8]
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0x214], eax
lea edi, [esp + 0xc]
push 0x208
push 0xff
push edi
call fcn.10208980
sub esp, 8
mov dword [esp + 0x10], edi
movaps xmm0, xmmword [0x10264a50]
movups xmmword [esp], xmm0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1016890b
cmp word [esp + 0xc], 0
je 0x1016890b
push edi
call fcn.10216dd3
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.1014be70
jmp 0x1016896f
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov eax, esp
push eax
call fcn.101687f0
add esp, 4
test al, al
je 0x1016895a
mov eax, dword [esp + 8]
mov dword [esi + 8], eax
movsd xmm0, qword [esp]
movsd qword [esi], xmm0
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
jmp 0x10168968
mov ecx, esi
push 3
push 0x10264ac8
call fcn.1014be70
mov ecx, esp
call fcn.1014bf30
mov ecx, dword [esp + 0x214]
xor ecx, ebp
call fcn.10205d16
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x10169040
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x270
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [esp + 0x268], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x250], xmm0
movdqa xmmword [esp + 0x240], xmm0
movdqa xmmword [esp + 0x230], xmm0
movdqa xmmword [esp + 0x220], xmm0
lea edi, [esp + 0x18]
push 0x462
push str..._.._base_files_file_util_win.cc
push 0x10264b2c
push edi
call fcn.1014e3e0
add esp, 0x10
lea ecx, [esp + 0x220]
push 0
push edi
call fcn.10160300
lea eax, [esp + 0x1a]
push 0x206
push 0xff
push eax
call fcn.10208980
add esp, 0xc
mov word [esp + 0x18], 0
push edi
push 0x104
call dword [sym.imp.kernel32.dll_GetCurrentDirectoryW]
mov esi, eax
add esi, 0xffffffff
cmp esi, 0x103
ja 0x1016911e
push edi
call fcn.10216dd3
add esp, 4
mov ebx, esp
mov ecx, ebx
push eax
push edi
call fcn.1014be70
lea edi, [esp + 0xc]
mov ecx, ebx
push edi
call fcn.1014d320
mov ecx, dword [ebp + 8]
push edi
call fcn.1014bfb0
mov ecx, edi
call fcn.1014bf30
mov ecx, ebx
call fcn.1014bf30
cmp esi, 0x104
setb bl
lea ecx, [esp + 0x220]
call fcn.10160360
mov ecx, dword [esp + 0x268]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10169150
Capabilities:
Set current directory

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 [0x102b0014]
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 0x472
push str..._.._base_files_file_util_win.cc
push 0x10264b41
push ebx
call fcn.1014e3e0
add esp, 0x10
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push ebx
call fcn.10160300
cmp byte [edi + 0xb], 0
jns 0x101691b6
mov edi, dword [edi]
push edi
call dword [sym.imp.kernel32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov ecx, esi
call fcn.10160360
mov ecx, dword [esp + 0x58]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret