joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014dd40
Capabilities:
Check if file exists
Read file via mapping

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.MapImageToMemory
lea r8, str..._.._base_files_memory_mapped_file_win.cc
lea r14, [rsp + 0x30]
mov rcx, r14
mov r9d, 0x1a
call fcn.1400c0870
xor ebx, ebx
mov rcx, rdi
mov rdx, r14
xor r8d, r8d
call fcn.1400c3400
mov rcx, rsi
call fcn.1400c2090
test al, al
je 0x14014de96
mov rcx, rsi
call fcn.1400c2080
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rax
xor edx, edx
mov r8d, 0x11000002
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rdi, rax
cmp qword [rsi + 0x40], rax
je 0x14014de3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x40]
inc rax
cmp rax, 2
jae 0x14014debf
mov rax, rdi
inc rax
cmp rax, 2
jb 0x14014de33
mov qword [rsi + 0x40], rdi
call fcn.1400bb620
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, qword [rsi + 0x40]
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14014def7
mov qword [rsp + 0x20], 0
xor ebx, ebx
mov rcx, rdi
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x14014de96
lea rdx, [0x1402a9bd8]
lea rcx, [rsp + 0x30]
mov qword [rcx], rdx
mov qword [rcx + 8], rax
call fcn.1400c259e
mov eax, dword [rax + 0x50]
mov qword [rsi + 0x38], rax
mov bl, 1
lea rcx, [rsp + 0x50]
call fcn.1400c20a0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400bb620
mov r14, qword [rsi + 0x40]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x14014dee9
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi + 0x40], 0
jmp 0x14014de1e
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x14014ded4
xor ebx, ebx
jmp 0x14014de96
Function at 0x14014fa20
Capabilities:
Move file

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4b0
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x4a8], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x450]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rbp + 0x40], xmm0
movaps xmmword [rbp + 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
lea rdx, [0x1402bc62e]
lea r8, str..._.._base_files_file_util_win.cc
lea rsi, [rsp + 0x240]
mov rcx, rsi
mov r9d, 0x242
call fcn.1400c0870
mov rcx, rbp
mov rdx, rsi
xor r8d, r8d
call fcn.1400c3400
lea rbp, [rsp + 0x240]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140117f60
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14014facf
mov rdx, qword [rbx]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400c8180
mov rcx, rbp
call fcn.1400bb610
lea rbp, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rbp
mov dl, 0xaa
call fcn.140117f60
cmp byte [rdi + 0x17], 0
mov rdx, rdi
jns 0x14014fb06
mov rdx, qword [rdi]
mov r8d, 0x104
mov rcx, rbp
call fcn.1400c8180
mov rcx, rbp
call fcn.1400bb610
cmp byte [rbx + 0x17], 0
mov rdx, rbx
jns 0x14014fb28
mov rdx, qword [rbx]
cmp byte [rdi + 0x17], 0
mov rcx, rdi
jns 0x14014fb34
mov rcx, qword [rdi]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r8d, r8d
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_ReplaceFileW]
test eax, eax
jne 0x14014fbb6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140163000
mov ebp, eax
cmp byte [rdi + 0x17], 0
jns 0x14014fb67
mov rdi, qword [rdi]
cmp byte [rbx + 0x17], 0
jns 0x14014fb70
mov rbx, qword [rbx]
mov rcx, rbx
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
setne dil
jne 0x14014fb89
test r14, r14
jne 0x14014fbbb
lea rcx, [rsp + 0x450]
call fcn.1400c20a0
mov rcx, qword [rsp + 0x4a8]
xor rcx, rsp
call fcn.140115e50
mov eax, edi
add rsp, 0x4b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov dil, 1
jmp 0x14014fb89
cmp ebp, 0xfffffffc
jne 0x14014fbc7
call fcn.1401cde80
mov ebp, eax
mov dword [r14], ebp
xor edi, edi
jmp 0x14014fb89
Function at 0x140155e80
Capabilities:
Create thread

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov rbp, r8
mov rsi, rdx
mov r15, rcx
xor ebx, ebx
test rcx, rcx
setne bl
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x60], rax
shl ebx, 0x10
mov ecx, 0x10
call fcn.140112048
mov r14, rax
mov qword [rax], rsi
test rbp, rbp
setne byte [rax + 8]
mov dword [rax + 0xc], edi
mov dword [rsp + 0x20], ebx
mov qword [rsp + 0x28], 0
lea r8, [0x14015f150]
xor ecx, ecx
mov rdx, r15
mov r9, rax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140155f21
test rbp, rbp
je 0x140155f51
mov qword [rbp], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x140155f3a
mov ebp, eax
cmp eax, 0x5af
je 0x140155f3a
cmp ebp, 0xe
jne 0x140155f5c
mov rcx, r15
call fcn.1401cf070
test r14, r14
je 0x140155eff
mov rcx, r14
call fcn.140112038
jmp 0x140155eff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140155eff
mov eax, dword [0x140314d38]
mov ecx, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140155fcb
lea rsi, [rsp + 0x38]
mov rcx, rsi
mov edx, ebp
call fcn.14017d820
movzx eax, byte [rsi + 0x17]
test al, al
mov rcx, qword [rsi]
cmovns rcx, rsi
cmovs rax, qword [rsi + 8]
lea rdx, [rsp + 0x50]
mov qword [rdx], rcx
mov qword [rdx + 8], rax
mov rcx, qword [0x140314d30]
call fcn.1400bb610
cmp byte [rsi + 0x17], 0
jns 0x140155f42
mov rcx, qword [rsp + 0x38]
call fcn.140112038
jmp 0x140155f42
lea rcx, [0x140314d38]
call fcn.1401120e4
cmp dword [0x140314d38], 0xffffffff
jne 0x140155f7d
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140145a30
mov qword [0x140314d30], rax
lea rcx, [0x140314d38]
call fcn.140112084
jmp 0x140155f7d

Function at 0x140158a80
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14031b0a8]
cmp rdi, 1
jbe 0x140158aa9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1400e18c0
lea rcx, [0x14031b0a8]
call fcn.1400c4120
test al, al
je 0x140158aef
mov qword [0x14031b0b0], 0
lea rbx, [0x14031b0a8]
lea rdi, [0x14031b0b0]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400c4100
jmp 0x140158a97
mov rdi, qword [0x14031b0a8]
jmp 0x140158a97
Function at 0x140158cd0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x140319710]
cmp rdi, 1
jbe 0x140158d1a
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140158d60
movsxd rcx, dword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 4]
movsxd rdx, dword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x140319710]
call fcn.1400c4120
test al, al
je 0x140158d6c
mov qword [0x140319718], 0
lea rbx, [0x140319710]
lea rdi, [0x140319718]
mov rcx, rdi
xor edx, edx
call fcn.1400bc270
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400c4100
jmp 0x140158ce7
test rsi, rsi
je 0x140158d12
call fcn.1400086f0
jmp 0x140158cf9
mov rdi, qword [0x140319710]
jmp 0x140158ce7

Function at 0x140159ec0
Capabilities:
Query or enumerate registry key

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rcx]
test rcx, rcx
je 0x140159f3c
mov edx, dword [rsi + 8]
test edx, edx
js 0x140159f3c
lea r9, [rsp + 0x54]
mov dword [r9], 0x104
movabs r8, 0xaaaaaaaaaaaaaaaa
lea rax, [rsp + 0x48]
mov qword [rax], r8
lea r8, [rsi + 0xc]
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x140159f3c
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x60
pop rsi
ret
mov word [rsi + 0xc], 0
jmp 0x140159f28

Function at 0x14015ab20
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, [0x1402bc730]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x472
call fcn.1400c0870
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
cmp byte [rdi + 0x17], 0
jns 0x14015aba4
mov rdi, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.1400c20a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x14015abe0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d8
mov r14, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x270]
mov qword [rdi + 0x50], rax
movaps xmm0, xmmword [0x1402ae190]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, [0x1402bc71b]
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x60]
mov rcx, rbx
mov r9d, 0x462
call fcn.1400c0870
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
lea rbx, [rsp + 0x60]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.140117f60
mov word [rbx], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
dec edi
cmp edi, 0x103
ja 0x14015ace3
lea rsi, [rsp + 0x20]
mov qword [rsi], rbx
mov rcx, rbx
call fcn.1401124ec
mov qword [rsi + 8], rax
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rsi
call fcn.1400e4ea0
lea rsi, [rsp + 0x48]
mov rcx, rbx
mov rdx, rsi
call fcn.1400ff250
mov rcx, r14
mov rdx, rsi
call fcn.1400f94f0
mov rcx, rsi
call fcn.1400e1350
mov rcx, rbx
call fcn.1400e1350
cmp edi, 0x104
setb bl
lea rcx, [rsp + 0x270]
call fcn.1400c20a0
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.140115e50
mov eax, ebx
add rsp, 0x2d8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14015c930
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140115de0
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r15, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r15
mov dl, 0xaa
call fcn.140117f60
lea r12, [rsp + 0x3c]
mov dword [r12], 1
lea rsi, [rsp + 0x38]
mov dword [rsi], 0x800
lea rdx, str.ReadValue
lea r8, str..._.._base_win_registry.cc
lea rcx, [rsp + 0x40]
mov r9d, 0x19e
call fcn.1400c0870
mov rcx, qword [rbx]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], r15
mov rdx, rdi
xor r8d, r8d
mov r9, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14015ca0d
mov eax, dword [rsp + 0x3c]
cmp eax, 1
jne 0x14015ca11
lea rdx, [rsp + 0x840]
mov rcx, r14
call fcn.1400e6e50
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140115e50
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov edi, eax
jmp 0x14015c9ea
cmp eax, 2
jne 0x14015ca56
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.140117f60
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
dec eax
cmp eax, 0x3ff
ja 0x14015ca5d
lea rdx, [rsp + 0x40]
jmp 0x14015c9e0
mov edi, 0x3f4
jmp 0x14015c9ea
mov edi, 0xea
jmp 0x14015c9ea
Function at 0x14015f04a
Capabilities:
Access peb ldr_data

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14015f121
mov rax, qword [rsi + 0x28]
cmp rax, 0x60
mov edi, 0x60
cmova rdi, rax
mov rcx, rdi
call qword [rsi + 0x48]
mov rdx, rax
xor r8d, r8d
mov qword [rax], r8
mov qword [rax + 8], 0x18
mov qword [rax + 0x10], rdi
lock add qword [rsi + 0x10], rdi
lea rcx, [rax + 0x18]
mov qword [rax + 8], 0x60
mov qword [rax + 0x18], rsi
mov edi, dword [0x140311f48]
mov rax, qword gs:[0x58]
mov rax, qword [rax + rdi*8]
lea rax, [rax + 0x120]
mov qword [rdx + 0x20], rax
mov qword [rdx + 0x28], rdx
lea rax, [rdx + 0x60]
mov qword [rdx + 0x40], rax
mov rax, qword [rdx + 0x10]
add rax, rdx
mov qword [rdx + 0x48], rax
mov qword [rdx + 0x30], r8
xorps xmm0, xmm0
movups xmmword [rdx + 0x50], xmm0
mov rax, qword [rsi]
mov qword [rdx + 0x38], rax
lock cmpxchg qword [rsi], rcx
jne 0x14015f0e3
mov eax, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
mov qword [rax + 0x128], rcx
mov rdx, qword [rsi + 0x20]
mov qword [rax + 0x120], rdx
mov qword [rsi + 8], rcx
mov rax, rcx
add rsp, 0x28
pop rdi
pop rsi
ret
mov eax, dword [0x140311f48]
mov rdx, qword gs:[0x58]
mov rax, qword [rdx + rax*8]
lea rax, [rax + 0x120]
cmp qword [rcx + 8], rax
je 0x14015f0ee
mov rcx, qword [rcx + 0x20]
jmp 0x14015f056
Function at 0x140161d60
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x140161e90
cmp qword [rsi], 0
jne 0x140161e90
cmp dword [rsi + 0x14], 0
jne 0x140161e90
cmp qword [rsi + 8], 0
jne 0x140161e90
xor eax, eax
mov rbx, qword [rdi]
cmp rax, rbx
je 0x140161dd1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140161e22
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140161dc9
mov qword [rsi], rbx
call fcn.1400bb620
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbp, qword [rdi + 8]
cmp qword [rsi + 8], rbp
je 0x140161e0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140161e4a
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140161e03
mov qword [rsi + 8], rbp
call fcn.1400bb620
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rdi + 0x10]
mov dword [rsi + 0x10], eax
mov eax, dword [rdi + 0x14]
mov dword [rsi + 0x14], eax
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x140161e74
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140161db7
call fcn.1400bb620
mov r14, qword [rsi + 8]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x140161e82
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi + 8], 0
jmp 0x140161df0
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x140161e36
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x140161e5f
mov rcx, rsi
call fcn.140161cc0
mov rax, qword [rsi]
jmp 0x140161d9b
Function at 0x140162630
Capabilities:
Query or enumerate registry value

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [rcx], 0
je 0x140162710
cmp dword [rsi + 8], 0
js 0x140162710
lea r15, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x140162732
mov ebp, dword [rsi + 0x20]
dec ebp
lea rdi, [rsp + 0x4c]
mov dword [rdi], ebp
lea r14, [rsi + 0x28]
mov eax, dword [rsi + 0x30]
mov rbx, qword [rsi + 0x28]
sub eax, ebx
add eax, 0xfffffffe
and eax, 0xfffffffe
lea r13, [rsi + 0x40]
mov dword [rsi + 0x40], eax
lea r12, [rsi + 0x44]
mov edx, ebp
mov rcx, r15
call fcn.1401627d0
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0xea
je 0x14016273c
test eax, eax
jne 0x140162710
mov eax, dword [r13]
inc rax
and rax, 0xfffffffffffffffe
mov rcx, qword [r14]
mov word [rcx + rax], 0
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [rsi + 0x10]
cmp byte [rsi + 0x27], 0
jns 0x14016271d
mov rax, qword [rax]
xor ecx, ecx
mov word [rax], cx
mov rax, qword [rsi + 0x28]
mov word [rax], cx
mov dword [rsi + 0x40], 0
jmp 0x1401626f1
mov ebp, 0xa
jmp 0x140162679
mov edx, dword [rsi + 0x40]
inc rdx
shr rdx, 1
mov rdi, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rdi
mov rcx, rax
sar rcx, 1
sub rdx, rcx
jae 0x1401627ac
add eax, 0xfffffffe
and eax, 0xfffffffe
mov dword [rsi + 0x40], eax
lea rbx, [rsp + 0x4c]
cmp dword [rbx], ebp
mov edx, 0x4000
cmovne edx, ebp
mov dword [rbx], edx
mov rcx, r15
call fcn.1401627d0
mov edx, dword [rsi + 8]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], 0
mov r8, rax
mov r9, rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x1401626d9
lea r8, [rsp + 0x4a]
mov word [r8], 0
inc rdx
mov rcx, r14
call fcn.1401d04e0
mov rdi, qword [rsi + 0x28]
mov rax, qword [rsi + 0x30]
sub rax, rdi
jmp 0x14016275b
Function at 0x1401650d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1402a9c00]
mov qword [rcx], rax
lea rdi, [rcx + 8]
lea rax, [0x1402acd38]
mov qword [rcx + 8], rax
lea rbx, [rsp + 0x20]
mov rcx, rbx
call fcn.1400bd250
mov rcx, rbx
mov rdx, rsi
call fcn.140165230
call fcn.1400bd020
mov rcx, rax
mov rdx, rdi
call fcn.1400f2240
mov rdi, qword [rsi + 0x10]
add rdi, 8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1401651d9
mov rax, qword [rsi + 0x18]
test rax, rax
jne 0x1401651e6
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x20]
mov dword [rdx], eax
mov ecx, 0x308
add rcx, qword [rsi + 0x10]
call fcn.140165240
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rdi, qword [rsi + 0x10]
mov ecx, dword [0x140310d60]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401651b2
movsxd rcx, dword [rdi + 0x2f0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [rdi + 0x2f4]
movsxd rdx, dword [rdi + 0x2f0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rdi, qword [rsi + 0x18]
mov qword [rsi + 0x18], 0
test rdi, rdi
jne 0x14016521d
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140115e50
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rdi
call fcn.1400bb6f0
jmp 0x140165143
mov rcx, qword [rsi + 0x10]
mov rdx, qword [rcx + 0x360]
cmp dword [rsi + 0x28], edx
jne 0x140165150
mov rcx, qword [rcx + 0x20]
mov qword [rsi + 0x18], 0
lea r8, [rsp + 0x20]
mov qword [r8], rax
mov rdx, qword [rsi + 0x20]
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x140165150
mov rcx, rdi
call fcn.140145a40
mov rcx, rdi
call fcn.140112038
jmp 0x1401651c3
Function at 0x140165d30
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rsi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x48], rax
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x20], 0
test rdx, rdx
je 0x140165ddd
mov rdi, rdx
lea r14, [rsp + 0x40]
mov qword [r14], 0xffffffffffffffff
mov r15, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r15
mov rbx, rax
call r15
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 0x400
mov rcx, rax
mov rdx, rdi
mov r8, rbx
mov r9, r14
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rbx, qword [r14]
cmp qword [rsi], rbx
je 0x140165ddd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140165df9
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140165dd5
mov qword [rsi], rbx
call fcn.1400bb620
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140115e50
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400bb620
mov r14, qword [rsi]
mov rcx, qword [0x1403198a0]
test rcx, rcx
je 0x140165e1e
mov rax, qword [rcx]
mov rdx, r14
call qword [rax]
mov qword [rsi], 0
jmp 0x140165dc3
call fcn.140163330
mov rcx, qword [0x1403198a0]
jmp 0x140165e0d
Function at 0x140167d20
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xb0
movaps xmmword [rsp + 0xa0], xmm6
mov r14, rdx
mov rdi, rcx
mov rax, qword [0x14030d038]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x50], r15
movaps xmm6, xmmword [0x1402ae190]
movaps xmmword [rsi + 0x40], xmm6
movaps xmmword [rsi + 0x30], xmm6
movaps xmmword [rsi + 0x20], xmm6
movaps xmmword [rsi + 0x10], xmm6
movaps xmmword [rsi], xmm6
lea rdx, str.CreateDirectoryAndGetError
lea r8, str..._.._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x336
call fcn.1400c0870
mov rcx, rsi
mov rdx, rbx
xor r8d, r8d
call fcn.1400c3400
cmp byte [rdi + 0x17], 0
mov rbx, rdi
jns 0x140167db6
mov rbx, qword [rdi]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140167e02
mov sil, 1
test al, 0x10
je 0x140167e9c
lea rcx, [rsp + 0x40]
call fcn.1400c20a0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140115e50
mov eax, esi
movaps xmm6, xmmword [rsp + 0xa0]
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
lea rsi, [rsp + 0x20]
mov qword [rsi + 0x10], r15
movaps xmmword [rsi], xmm6
mov rcx, rdi
mov rdx, rsi
call fcn.14000afb0
movzx ecx, byte [rsi + 0x17]
mov r8, rcx
test cl, cl
jns 0x140167e29
mov r8, qword [rsp + 0x28]
movzx eax, byte [rdi + 0x17]
mov rdx, rax
test al, al
jns 0x140167e38
mov rdx, qword [rdi + 8]
cmp r8, rdx
je 0x140167eba
lea rcx, [rsp + 0x20]
mov rdx, r14
call fcn.140167d20
test al, al
je 0x140167f04
mov rcx, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov sil, 1
test eax, eax
je 0x140167e73
lea rcx, [rsp + 0x20]
call fcn.1400e1350
jmp 0x140167dcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp eax, 0xb7
jne 0x140167e8e
mov rcx, rdi
call fcn.140167f10
test al, al
jne 0x140167e64
test r14, r14
je 0x140167efc
mov ecx, ebx
call fcn.140163000
jmp 0x140167ef9
test r14, r14
je 0x140167ea8
mov dword [r14], 0xfffffff7
mov ecx, 0x50
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140167dcf
test r8, r8
je 0x140167eea
test cl, cl
jns 0x140167ec8
mov rsi, qword [rsp + 0x20]
mov rcx, rdi
test al, al
jns 0x140167ed2
mov rcx, qword [rdi]
xor edx, edx
movzx eax, word [rsi + rdx*2]
cmp ax, word [rcx + rdx*2]
jne 0x140167e3d
inc rdx
cmp r8, rdx
jne 0x140167ed4
mov eax, 0xfffffffc
mov ebx, 2
test r14, r14
je 0x140167efc
mov dword [r14], eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
jmp 0x140167e64