joyce8/EMBER2024-capa huggingface dataset:
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.1020d865
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.1020d865
add esp, 4
cmp dword [0x102b5eb8], 0xffffffff
jne 0x10162110
push 4
call fcn.1020d865
add esp, 4
mov dword [eax], 0
mov dword [0x102b5eb4], eax
push 0x102b5eb8
call fcn.1020d865
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.1020d865
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.1020d865
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.1020d865
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.1020d865
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.1020d865
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
Function at 0x1016abc0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10
mov esi, ecx
mov byte [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx], 0x10259320
mov dword [ecx + 0xc], 0
movaps xmm0, xmmword [0x10264bb0]
movups xmmword [esp], xmm0
call dword [sym.imp.kernel32.dll_CreateIoCompletionPort]
sub esp, 0x10
cmp dword [esi + 0xc], eax
je 0x1016ac44
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi + 0xc]
add eax, 1
cmp eax, 2
jb 0x1016ac28
call fcn.1014e410
mov eax, dword [esi + 0xc]
mov dword [esp], eax
call fcn.1016f280
mov dword [esi + 0xc], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x1016ac38
mov dword [esi + 0xc], edi
call fcn.1014e410
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
Function at 0x1016c420
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 0x1016c472
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x1016c45c
call fcn.1014e410
push dword [esi]
call fcn.1016f280
add esp, 4
mov dword [esi], 0
lea eax, [ebx + 1]
cmp eax, 2
jb 0x1016c46b
mov dword [esi], ebx
call fcn.1014e410
push edi
call dword [sym.imp.kernel32.dll_SetLastError]
mov word [esi + 4], 0
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
cmp eax, ebx
je 0x1016c48b
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 4
int3

Function at 0x1016c490
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 edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jb 0x1016c4b1
call fcn.1014e410
mov dword [esi], 0
test edi, edi
je 0x1016c4d7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jae 0x1016c513
cmp ebx, 2
jae 0x1016c533
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 [esi + 5], 0
mov byte [edi + 4], 0
mov eax, dword [edi]
add eax, 1
cmp eax, 2
jb 0x1016c507
call fcn.1014e410
push dword [edi]
call fcn.1016f280
add esp, 4
mov dword [edi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.1014e410
push dword [esi]
call fcn.1016f280
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x1016c4d0
mov dword [esi], edi
mov edi, eax
call fcn.1014e410
mov eax, edi
jmp 0x1016c4d0

Function at 0x1016c570
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 edi, dword [eax]
mov dword [eax], 0
lea ebx, [edi + 1]
cmp ebx, 2
jae 0x1016c592
cmp dword [esi], edi
jne 0x1016c59b
jmp 0x1016c5b7
call fcn.1014e410
cmp dword [esi], edi
je 0x1016c5b7
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [esi]
add ecx, 1
cmp ecx, 2
jae 0x1016c5ef
cmp ebx, 2
jae 0x1016c60f
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]
add eax, 1
cmp eax, 2
jb 0x1016c5e3
call fcn.1014e410
push dword [edi]
call fcn.1016f280
add esp, 4
mov dword [edi], 0
mov eax, esi
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov dword [ebp - 0x10], eax
call fcn.1014e410
push dword [esi]
call fcn.1016f280
mov eax, dword [ebp - 0x10]
add esp, 4
mov dword [esi], 0
cmp ebx, 2
jb 0x1016c5b0
mov dword [esi], edi
mov edi, eax
call fcn.1014e410
mov eax, edi
jmp 0x1016c5b0
Function at 0x1016c780
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x1016c7a6
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x1016c7a8
mov eax, dword [esi]
push edi
push eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
test eax, eax
je 0x1016c7c8
cmp byte [ebp + 0xc], 0
je 0x1016c818
cmp byte [esi + 4], 0
je 0x1016c80a
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x1016c80c
call dword [sym.imp.kernel32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x1016c7dc
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x1016c7de
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
je 0x1016c7f5
xor ebx, ebx
jmp 0x1016c886
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x1016c846
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x1016c848
mov eax, dword [esi]
push 0xea60
push eax
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp byte [esi + 4], 0
je 0x1016c826
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x1016c828
mov eax, dword [esi]
push eax
call fcn.1016c3f0
add esp, 4
mov ecx, dword [0x102b5184]
mov bl, 1
test ecx, ecx
je 0x1016c886
push edi
push eax
call fcn.1014a680
jmp 0x1016c886
mov eax, dword [esi]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.kernel32.dll_GetExitCodeProcess]
test eax, eax
je 0x1016c85a
mov edi, dword [ebp - 0x14]
cmp byte [esi + 4], 0
je 0x1016c868
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
jmp 0x1016c86a
mov eax, dword [esi]
push eax
call fcn.1016c3f0
add esp, 4
mov ecx, dword [0x102b5184]
test ecx, ecx
je 0x1016c884
push edi
push eax
call fcn.1014a680
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8

Function at 0x1016d210
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov esi, ecx
xor eax, eax
cmp dword [ebp + 0xc], 0
sete al
xor ecx, ecx
cmp dword [ebp + 8], 0
sete cl
push 0
push eax
push ecx
push 0
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi], 0
test eax, eax
je 0x1016d296
mov edi, eax
call dword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
mov eax, dword [esi]
add eax, 1
cmp eax, 2
jb 0x1016d269
call fcn.1014e410
push dword [esi]
call fcn.1016f280
add esp, 4
mov dword [esi], 0
lea eax, [edi + 1]
cmp eax, 2
jb 0x1016d278
mov dword [esi], edi
call fcn.1014e410
push ebx
call dword [sym.imp.kernel32.dll_SetLastError]
mov eax, dword [esi]
mov byte [esi + 4], 1
add eax, 1
cmp eax, 1
jbe 0x1016d29d
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov byte [esi + 4], 1
int3
int3
Function at 0x1016db50
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov esi, edx
mov ebx, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
jne 0x1016dbaa
mov eax, dword [0x102b2030]
cmp eax, 0xffffffff
jne 0x1016db90
call dword [sym.imp.kernel32.dll_GetCurrentProcess]
push 0x102b2030
push eax
call dword [sym.imp.kernel32.dll_IsWow64Process]
test eax, eax
je 0x1016db9b
mov eax, dword [0x102b2030]
mov ebx, 0x100000
test eax, eax
jne 0x1016dbaa
jmp 0x1016dba5
mov dword [0x102b2030], 0
mov ebx, 0x80000
push 0xc
call fcn.1020d865
add esp, 4
mov edi, eax
mov dword [eax], esi
mov eax, dword [ebp + 8]
test eax, eax
setne byte [edi + 4]
mov eax, dword [ebp + 0xc]
mov dword [edi + 8], eax
push 0
push 0x10000
push edi
push 0x1016ded0
push ebx
push 0
call dword [sym.imp.kernel32.dll_CreateThread]
mov esi, eax
test eax, eax
je 0x1016dbf5
mov eax, dword [ebp + 8]
test eax, eax
je 0x1016dc88
mov dword [eax], esi
jmp 0x1016dc8f
mov dword [ebp - 0x20], esi
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 8
je 0x1016dca8
mov esi, eax
cmp eax, 0x5af
je 0x1016dca8
cmp esi, 0xe
je 0x1016dca8
mov eax, dword [0x102b5f50]
mov ecx, dword [0x102b3718]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 4]
jg 0x1016dcae
lea ebx, [ebp - 0x1c]
push esi
push ebx
call fcn.1015b980
add esp, 8
movzx eax, byte [ebp - 0x11]
test al, al
jns 0x1016dc55
mov ebx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push eax
push ebx
push dword [0x102b5f4c]
call fcn.1002a710
add esp, 0xc
cmp byte [ebp - 0x11], 0
mov esi, dword [ebp - 0x20]
jns 0x1016dc79
push dword [ebp - 0x1c]
call fcn.10205096
add esp, 4
test edi, edi
je 0x1016dc8f
push edi
call fcn.10205096
add esp, 4
jmp 0x1016dc8f
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, ebx
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push ebx
call fcn.101aba40
push 0x102b5f50
call fcn.1020d865
add esp, 4
cmp dword [0x102b5f50], 0xffffffff
jne 0x1016dc3a
push 0x20
push str.create_thread_last_error
call fcn.1002a3d0
add esp, 8
mov dword [0x102b5f4c], eax
push 0x102b5f50
call fcn.1020d865
add esp, 4
jmp 0x1016dc3a
Function at 0x1016ed00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x20
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x20], 4
mov dword [ebp - 0x24], 4
mov dword [ebp - 0x28], 0
lea eax, [ebp - 0x1c]
push 0x19e
push str..._.._base_win_registry.cc
push str.ReadValue
push eax
call fcn.1014e3e0
add esp, 0x10
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x20]
push eax
push ecx
push edx
push 0
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x1016ed84
mov eax, dword [ebp - 0x20]
add eax, 0xfffffffd
mov esi, 0x3f4
cmp eax, 1
ja 0x1016ed84
cmp dword [ebp - 0x24], 4
jne 0x1016ed84
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
mov dword [eax], ecx
xor esi, esi
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.10205d16
mov eax, esi
add esp, 0x20
pop esi
pop edi
pop ebp
ret 8

Function at 0x1016eda0
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.10206020
mov esi, ecx
mov eax, dword [0x102b0014]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea edi, [ebp - 0x810]
push 0x800
push 0xff
push edi
call fcn.10208980
add esp, 0xc
mov dword [ebp - 0x1014], 1
mov dword [ebp - 0x1018], 0x800
lea ebx, [ebp - 0x1010]
push 0x19e
push str..._.._base_win_registry.cc
push str.ReadValue
push ebx
call fcn.1014e3e0
add esp, 0x10
lea eax, [ebp - 0x1018]
lea ecx, [ebp - 0x1014]
push eax
push edi
push ecx
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1016eea8
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x1014]
cmp eax, 2
je 0x1016ee58
mov edi, 0x3f4
cmp eax, 1
jne 0x1016eea8
lea esi, [ebp - 0x810]
push esi
mov edi, ecx
call fcn.1020d865
add esp, 4
mov ecx, edi
push eax
push esi
jmp 0x1016eea1
push 0x800
push 0xff
push ebx
call fcn.10208980
add esp, 0xc
push 0x400
push ebx
lea eax, [ebp - 0x810]
push eax
call dword [sym.imp.kernel32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x1018], eax
add eax, 0xffffffff
mov edi, 0xea
cmp eax, 0x3ff
ja 0x1016eea8
push ebx
call fcn.1020d865
add esp, 4
mov ecx, dword [ebp + 0xc]
push eax
push ebx
call fcn.10141698
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10205d16
mov eax, edi
add esp, 0x100c
pop esi
pop edi
pop ebx
pop ebp
ret 8