joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002dde0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x280
mov rsi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x278], rax
lea rdi, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rdi
mov dl, 0xaa
call fcn.1400840e0
mov qword [rsp + 0x20], rdi
xor ecx, ecx
mov edx, 0x28
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x14002de75
cmp word [rsp + 0x70], 0
je 0x14002de75
lea rbx, [rsp + 0x60]
mov qword [rbx], rdi
mov rcx, rdi
call fcn.1400a0400
mov qword [rbx + 8], rax
mov rcx, rsi
mov rdx, rbx
call fcn.14005db50
mov rcx, qword [rsp + 0x278]
xor rcx, rsp
call fcn.140081fb0
mov rax, rsi
add rsp, 0x280
pop rbx
pop rdi
pop rsi
ret
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x40]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400fdb10]
movaps xmmword [rdi], xmm0
mov rcx, rdi
call fcn.14005dad0
mov rcx, rdi
call fcn.14002dd10
test al, al
je 0x14002deb5
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.14005db30
jmp 0x14002ded4
lea rax, [0x1401006d6]
lea rdx, [rsp + 0x30]
mov qword [rdx], rax
mov qword [rdx + 8], 3
mov rcx, rsi
call fcn.14005db50
lea rcx, [rsp + 0x40]
call fcn.14005dc20
jmp 0x14002de57
Function at 0x14002e6c0
Capabilities:
Check if file exists
Delete directory
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x568
mov r14d, r8d
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x560], rax
lea rbx, [rsp + 0x298]
mov r8d, 0x2c8
mov rcx, rbx
mov dl, 0xaa
call fcn.1400840e0
mov qword [rsp + 0x20], rsi
xor ebp, ebp
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.14003b780
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x30]
mov qword [rdi + 0x10], rax
movaps xmm0, xmmword [0x1400fdb10]
movaps xmmword [rdi], xmm0
mov rcx, rbx
mov rdx, rdi
call fcn.14003b920
movzx eax, byte [rdi + 0x17]
test al, al
jns 0x14002e758
mov rax, qword [rsp + 0x38]
jmp 0x14002e75b
and eax, 0x7f
test rax, rax
jne 0x14002e79d
lea rcx, [rsp + 0x30]
call fcn.14005dc20
lea rcx, [rsp + 0x298]
call fcn.14003b870
mov rcx, qword [rsp + 0x560]
xor rcx, rsp
call fcn.140081fb0
mov eax, ebp
add rsp, 0x568
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rbx, [rsp + 0x48]
lea r15, [rsp + 0x298]
mov r13, qword [sym.imp.KERNEL32.dll_DeleteFileW]
xor r12d, r12d
mov r8d, 0x250
mov rcx, rbx
mov dl, 0xaa
call fcn.1400840e0
mov rcx, r15
mov rdx, rbx
call fcn.14003b8e0
mov edx, dword [rsp + 0x48]
test dl, 1
jne 0x14002e8bf
mov rcx, rbx
call fcn.14003b750
test al, al
jne 0x14002e86d
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002e7fb
mov rcx, qword [rsp + 0x30]
call r13
test eax, eax
jne 0x14002e8f5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
and eax, 0xfffffffe
cmp eax, 2
mov eax, 0
cmove ebp, eax
test r12d, r12d
cmovne ebp, r12d
mov rcx, rbx
call fcn.140019d50
mov rcx, r15
mov rdx, rbx
call fcn.14003b920
mov rcx, rdi
mov rdx, rbx
call fcn.14005dca0
mov rcx, rbx
call fcn.14005dc20
movzx eax, byte [rsp + 0x47]
test al, al
jns 0x14002e859
mov rax, qword [rsp + 0x38]
jmp 0x14002e85c
and eax, 0x7f
mov r12d, ebp
test rax, rax
je 0x14002e760
jmp 0x14002e7b4
xor ebp, ebp
test r14b, r14b
je 0x14002e81c
mov rcx, rdi
mov rdx, rsi
mov r8b, 1
call fcn.14002e6c0
test eax, eax
jne 0x14002e912
cmp byte [rsp + 0x47], 0
mov rcx, rdi
jns 0x14002e899
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x14002e81c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
and ecx, 0xfffffffe
xor ebp, ebp
cmp ecx, 2
cmovne ebp, eax
jmp 0x14002e81c
test r14b, r14b
je 0x14002e8d5
and edx, 0xfffffffe
cmp byte [rsp + 0x47], 0
jns 0x14002e8fc
mov rcx, qword [rsp + 0x30]
jmp 0x14002e901
lea rcx, [rsp + 0x48]
call fcn.14003b750
test al, al
je 0x14002e90c
lea rcx, [rsp + 0x48]
call fcn.14003b750
test al, al
je 0x14002e7ec
xor ebp, ebp
jmp 0x14002e81c
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14002e7dc
mov edx, dword [rsp + 0x48]
jmp 0x14002e8c4
mov ebp, eax
jmp 0x14002e81c
Function at 0x14002fbf0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x48
mov r15, rdx
mov r14, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002fc53
mov ebx, eax
mov r12d, eax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
movaps xmm0, xmmword [0x1400fdb10]
movaps xmmword [rsp + 0x20], xmm0
cmp ebx, 0xa
ja 0x14002fc67
lea rsi, [rsp + 0x20]
mov byte [rsi + 0x17], bl
jmp 0x14002fc90
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
jmp 0x14002fd31
lea rdi, [r12 + 8]
and rdi, 0xfffffffffffffff8
lea rcx, [rdi + rdi]
call fcn.140080c6c
mov rsi, rax
mov qword [rsp + 0x20], rax
bts rdi, 0x3f
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r12
lea r8, [r12 + r12]
mov rcx, rsi
xor edx, edx
call fcn.1400840e0
mov word [rsi + r12*2], 0
cmp byte [rsp + 0x37], 0
jns 0x14002fcb3
mov rdx, qword [rsp + 0x20]
jmp 0x14002fcb8
lea rdx, [rsp + 0x20]
mov rcx, r15
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x14002fd11
mov edx, eax
movzx eax, byte [rsp + 0x37]
test al, al
jns 0x14002fcda
mov rax, qword [rsp + 0x28]
jmp 0x14002fcdd
and eax, 0x7f
cmp rax, rdx
jbe 0x14002fd11
lea rsi, [rsp + 0x20]
mov rcx, rsi
xor r8d, r8d
call fcn.14005ce80
mov rax, qword [rsi + 0x10]
mov qword [r14 + 0x10], rax
movaps xmm0, xmmword [rsi]
movups xmmword [r14], xmm0
xorps xmm0, xmm0
movaps xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
jmp 0x14002fd20
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
cmp byte [rsp + 0x37], 0
jns 0x14002fd31
mov rcx, qword [rsp + 0x20]
call fcn.140080ca8
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140081fb0
mov rax, r14
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x1400302d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rdi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x17], 0
mov rsi, rcx
jns 0x1400302fa
mov rsi, qword [rdi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14003032d
test al, 0x10
jne 0x14003042f
lea rcx, str._hs___ls_directory_conflicts_with_an_existing_file.___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140030530
xor edi, edi
jmp 0x140030503
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], 0
movzx eax, byte [rdi + 0x17]
mov r9d, eax
and r9d, 0x7f
test al, al
mov rax, qword [rdi]
cmovns rax, rdi
cmovs r9, qword [rdi + 8]
add r9, r9
test r9, r9
je 0x1400303c9
movzx ecx, word [rax + r9 - 2]
add r9, 0xfffffffffffffffe
cmp ecx, 0x5c
je 0x140030373
cmp ecx, 0x2f
jne 0x14003035a
cmp r9, 0xfffffffffffffffe
je 0x1400303c9
sar r9, 1
lea rax, [rdi + 0x18]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x28]
mov rdx, rdi
xor r8d, r8d
call fcn.1400275a0
cmp byte [rsp + 0x57], 0
jns 0x1400303a6
mov rcx, qword [rsp + 0x40]
call fcn.140080ca8
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rsp + 0x28]
movaps xmmword [rcx], xmm0
call fcn.1400302d0
test al, al
je 0x14003044d
mov rcx, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dil, 1
test eax, eax
jne 0x1400304f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
cmp eax, 0xb7
jne 0x1400304de
movabs rbp, 0x7fffffffffffffef
mov rcx, rsi
call fcn.1400a0400
cmp rax, rbp
ja 0x14003051f
mov rbx, rax
cmp rax, 0xb
jae 0x14003045e
mov byte [rsp + 0x3f], bl
lea rbp, [rsp + rbx*2]
add rbp, 0x28
test rbx, rbx
je 0x14003049a
lea rcx, [rsp + 0x28]
jmp 0x14003048c
lea rcx, str._hs___ls_directory_exists___n
lea rdx, str.RecursiveDirectoryCreate
mov r8, rsi
call fcn.140030530
mov dil, 1
jmp 0x140030503
lea rcx, str.Failed_to_create_one_of_the_parent_directories
call fcn.140030530
jmp 0x1400304f0
lea r15, [rbx + 8]
and r15, 0xfffffffffffffff8
lea rcx, [r15 + r15]
call fcn.140080c6c
mov rcx, rax
mov qword [rsp + 0x28], rax
add rbp, 0x11
or rbp, r15
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbx
lea rbp, [rax + rbx*2]
add rbx, rbx
mov rdx, rsi
mov r8, rbx
call fcn.140083a30
mov word [rbp], 0
cmp byte [rsp + 0x3f], 0
jns 0x1400304ae
mov rcx, qword [rsp + 0x28]
jmp 0x1400304b3
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
setne al
and ebx, 0x10
shr ebx, 4
and bl, al
cmp byte [rsp + 0x3f], 0
jns 0x1400304da
mov rcx, qword [rsp + 0x28]
call fcn.140080ca8
test bl, bl
jne 0x1400304f2
lea rcx, str.Failed_to_create_directory__ls__last_error_is__d_n
mov rdx, rsi
mov r8d, r14d
call fcn.140030530
xor edi, edi
cmp byte [rsp + 0x57], 0
jns 0x140030503
mov rcx, qword [rsp + 0x40]
call fcn.140080ca8
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140081fb0
mov eax, edi
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400993b0
int3
Function at 0x140030530
Capabilities:
Print debug messages

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, rcx
lea rdi, [rsp + 0x68]
mov qword [rdi], rdx
mov qword [rdi + 8], r8
mov qword [rdi + 0x10], r9
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
call fcn.1400588b0
mov rcx, qword [rax]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], 0
lea rdi, [0x140129740]
mov r8d, 0x400
mov rdx, rdi
mov r9, rsi
call fcn.1400853a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140081fb0
nop
add rsp, 0x48
pop rdi
pop rsi
ret
Function at 0x140031180
Capabilities:
Query environment variable

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x238
mov rsi, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea r14, [rsp + 0x20]
mov r8d, 0x208
mov rcx, r14
mov dl, 0xaa
call fcn.1400840e0
mov word [r14], 0
lea rcx, str.PROGRAMFILES
mov rdx, r14
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x14003120d
mov edi, eax
sub rdi, 1
jb 0x14003120d
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x1400311df
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400311f9
mov rcx, qword [rsi]
lea r8, [rdi + 1]
mov rdx, r14
call fcn.14009b8a4
test eax, eax
je 0x1400312da
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMFILES_X86_
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x140031265
mov edi, eax
sub rdi, 1
jb 0x140031265
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x140031237
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x140031251
mov rcx, qword [rsi]
lea r8, [rdi + 1]
mov rdx, r14
call fcn.14009b8a4
test eax, eax
je 0x1400312e8
lea rdx, [rsp + 0x20]
mov word [rdx], 0
lea rcx, str.PROGRAMW6432
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea ecx, [rax - 1]
cmp ecx, 0x102
ja 0x1400312b9
mov edi, eax
sub rdi, 1
jb 0x1400312b9
cmp word [rsp + rdi*2 + 0x20], 0x5c
je 0x14003128f
cmp byte [rsi + 0x17], 0
mov rcx, rsi
jns 0x1400312a9
mov rcx, qword [rsi]
lea r8, [rdi + 1]
mov rdx, r14
call fcn.14009b8a4
test eax, eax
je 0x1400312f6
xor ebx, ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.140081fb0
mov eax, ebx
add rsp, 0x238
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140031304
mov rcx, qword [rsi + 8]
jmp 0x140031309
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x14003132b
mov rcx, qword [rsi + 8]
jmp 0x140031330
movzx eax, byte [rsi + 0x17]
test al, al
jns 0x140031355
mov rcx, qword [rsi + 8]
jmp 0x14003135a
mov ecx, eax
and ecx, 0x7f
dec rcx
mov bl, 1
cmp rcx, rdi
je 0x1400312bb
mov rcx, rsi
test al, al
jns 0x14003131d
mov rcx, qword [rsi]
cmp word [rcx + rdi*2 + 2], 0x5c
jne 0x14003120d
jmp 0x1400312bb
mov ecx, eax
and ecx, 0x7f
dec rcx
mov bl, 1
cmp rcx, rdi
je 0x1400312bb
mov rcx, rsi
test al, al
jns 0x140031344
mov rcx, qword [rsi]
cmp word [rcx + rdi*2 + 2], 0x5c
jne 0x140031265
jmp 0x1400312bb
mov ecx, eax
and ecx, 0x7f
dec rcx
mov bl, 1
cmp rcx, rdi
je 0x1400312bb
test al, al
jns 0x14003136f
mov rsi, qword [rsi]
cmp word [rsi + rdi*2 + 2], 0x5c
jne 0x1400312b9
jmp 0x1400312bb
Function at 0x14003a910
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb8
mov esi, r8d
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0xb0], rax
movabs r12, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x50]
mov qword [rdi + 0x50], r12
movaps xmm0, xmmword [0x1400fdb10]
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.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov r9d, 0x93
call fcn.140069480
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.1400694b0
test esi, esi
js 0x14003aa18
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], 0
call fcn.140071870
test al, al
jne 0x14003aa1f
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], 0
mov rdx, r14
mov r8d, esi
mov r9, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor esi, esi
cmp eax, 1
sbb esi, esi
or esi, dword [rdi]
lea rcx, [rsp + 0x30]
call fcn.140071900
lea rcx, [rsp + 0x50]
call fcn.140069510
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140081fb0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14003a9eb
mov r9d, esi
lea rdx, str.File::WriteAtCurrentPos
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1400d97b0
jmp 0x14003a9b2
Function at 0x14003abb0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r15d, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x60]
mov qword [rbp + 0x50], rax
movaps xmm0, xmmword [0x1400fdb10]
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, str.DoInitialize
lea r8, str....._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x16f
call fcn.140069480
mov rcx, rbp
mov rdx, rdi
xor r8d, r8d
call fcn.1400694b0
mov eax, r15d
and eax, 1
neg eax
and eax, 3
test r15b, 2
mov edx, 1
cmove edx, eax
test r15b, 4
mov ecx, 4
cmovne edx, ecx
test r15b, 8
mov ebp, 2
cmove ebp, edx
test r15b, 0x10
mov eax, 5
cmove eax, ebp
test eax, eax
je 0x14003ae09
mov edx, r15d
and edx, 0x40
shl edx, 0x18
test r15b, 0x80
cmove ecx, edx
mov edx, r15d
rol edx, 0x1a
mov edi, r15d
shl edi, 0xb
and edi, 0x20000000
mov esi, r15d
shr esi, 4
and esi, 0x10000
and edx, 0x80000100
or edx, edi
or edx, esi
or edx, ecx
mov ecx, r15d
shr ecx, 8
and ecx, 3
mov r8d, r15d
shr r8d, 0xd
and r8d, 4
or r8d, ecx
xor r8d, 3
mov edi, r15d
and edi, 0x400
mov ecx, edi
shl ecx, 0x14
mov ebp, r15d
shr ebp, 3
and ebp, 0x100
or ebp, ecx
mov ecx, r15d
shr ecx, 0xb
and ecx, 2
or ecx, ebp
mov ebp, r15d
shl ebp, 0xd
and ebp, 0x4000000
or ebp, ecx
mov ecx, r15d
shl ecx, 8
and ecx, 0xa000000
or ecx, ebp
cmp byte [rbx + 0x17], 0
jns 0x14003ad1b
mov rbx, qword [rbx]
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], 0
mov rcx, rbx
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp qword [r14], rax
je 0x14003ad77
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [r14]
inc rax
cmp rax, 2
jae 0x14003adf0
mov rax, rbx
inc rax
cmp rax, 2
jb 0x14003ad6c
mov qword [r14], rbx
call fcn.1400694a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [r14]
inc rbx
cmp rbx, 2
jb 0x14003adcb
shr edi, 0xa
mov dword [r14 + 0x24], 0
mov byte [r14 + 0x29], dil
test r15b, 4
jne 0x14003adde
test r15b, 0xa
je 0x14003ada0
mov byte [r14 + 0x28], 1
lea rcx, [rsp + 0x60]
call fcn.140069510
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140081fb0
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14003aa40
mov dword [r14 + 0x24], eax
jmp 0x14003ada0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne byte [r14 + 0x28]
jmp 0x14003ada0
call fcn.1400694a0
mov rcx, qword [r14]
call fcn.140069ad0
mov qword [r14], 0
jmp 0x14003ad58
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [r14 + 0x24], 0xffffffff
jmp 0x14003ada0
Function at 0x14003b010
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, rdx
call fcn.140069710
mov qword [rsi], 0
test rax, rax
je 0x14003b063
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14003b097
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14003b05b
mov qword [rsi], rbx
call fcn.1400694a0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [rsi + 8]
lea rdx, [rdi + 8]
call fcn.14005daf0
lea rcx, [rsi + 0x20]
call fcn.140071890
mov eax, dword [rdi + 0x24]
mov dword [rsi + 0x24], eax
mov al, byte [rdi + 0x28]
mov byte [rsi + 0x28], al
mov al, byte [rdi + 0x29]
mov byte [rsi + 0x29], al
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
call fcn.1400694a0
mov rcx, qword [rsi]
call fcn.140069ad0
mov qword [rsi], 0
jmp 0x14003b049
Function at 0x14003c340
Capabilities:
Get thread local storage value

Disassembly:
cmp byte [rcx], 0
je 0x14003c34d
mov ecx, dword [rcx + 4]
jmp fcn.14004b5a0
ret

Function at 0x14003c7a0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r14d, r9d
mov rdi, r8
mov rbx, rdx
mov r15, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r12d, dword [rsp + 0xc0]
mov rax, qword [0x140117028]
xor rax, rsp
mov qword [rsp + 0x58], rax
shl ebp, 0x10
mov ecx, 0x18
call fcn.140080c6c
mov rsi, rax
mov rax, qword [0x140119620]
and rax, rbx
cmp rax, qword [0x140119608]
jne 0x14003c805
mov rcx, rbx
call fcn.1400624d0
mov qword [rsi], rbx
test rdi, rdi
setne byte [rsi + 8]
mov dword [rsi + 0xc], r14d
mov dword [rsi + 0x10], r12d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x14003cc90]
xor ecx, ecx
mov rdx, r15
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r14, rax
test rax, rax
je 0x14003c86d
test rdi, rdi
je 0x14003c8b8
mov qword [rdi], r14
test r14, r14
setne bl
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140081fb0
mov eax, ebx
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14003c886
mov edi, eax
cmp eax, 0x5af
je 0x14003c886
cmp edi, 0xe
jne 0x14003c8c3
mov rcx, r15
call fcn.1400d29a0
test rsi, rsi
je 0x14003c849
mov rcx, qword [rsi]
mov rax, qword [0x140119620]
and rax, rcx
cmp rax, qword [0x140119608]
jne 0x14003c8ae
call fcn.140062610
mov rcx, rsi
call fcn.140080ca8
jmp 0x14003c849
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14003c849
mov eax, dword [0x14012a1e0]
mov ecx, dword [0x140126b24]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14003c93b
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov edx, edi
call fcn.14003b1a0
movzx eax, byte [rbx + 0x17]
mov ecx, eax
and ecx, 0x7f
test al, al
mov rax, qword [rbx]
cmovns rax, rbx
cmovs rcx, qword [rbx + 8]
lea rdx, [rsp + 0x48]
mov qword [rdx], rax
mov qword [rdx + 8], rcx
mov rcx, qword [0x14012a1d8]
call fcn.1400706b0
cmp byte [rbx + 0x17], 0
jns 0x14003c88e
mov rcx, qword [rsp + 0x30]
call fcn.140080ca8
jmp 0x14003c88e
lea rcx, [0x14012a1e0]
call fcn.140080dc0
cmp dword [0x14012a1e0], 0xffffffff
jne 0x14003c8e4
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.14004a2e0
mov qword [0x14012a1d8], rax
lea rcx, [0x14012a1e0]
call fcn.140080e58
jmp 0x14003c8e4
Function at 0x14003d160
Capabilities:
Hash data using fnv

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
movaps xmmword [rsp + 0x20], xmm6
mov edi, edx
mov rsi, rcx
lea rax, str._T_r_
mov qword [rcx], rax
add rcx, 8
call fcn.140062450
lea rcx, [rsi + 0x10]
call fcn.140062450
xor ebx, ebx
mov byte [rsi + 0x18], bl
lea rcx, [rsi + 0x40]
xorps xmm6, xmm6
movups xmmword [rsi + 0x1c], xmm6
movups xmmword [rsi + 0x2c], xmm6
mov dword [rsi + 0x3c], ebx
call fcn.140062450
mov byte [rsi + 0x48], bl
lea rax, [rsi + 0x70]
movups xmmword [rsi + 0x50], xmm6
mov qword [rsi + 0x60], rbx
movups xmmword [rsi + 0x70], xmm6
mov qword [rsi + 0x68], rax
movups xmmword [rsi + 0x80], xmm6
movups xmmword [rsi + 0x90], xmm6
movups xmmword [rsi + 0xa0], xmm6
movups xmmword [rsi + 0xb0], xmm6
mov qword [rsi + 0xc0], rbx
movups xmmword [rsi + 0xc8], xmm6
movups xmmword [rsi + 0xd8], xmm6
mov ebp, 0x3f800000
mov dword [rsi + 0xe8], ebp
mov dword [rsi + 0xf0], ebx
movups xmmword [rsi + 0xf8], xmm6
movups xmmword [rsi + 0x108], xmm6
mov dword [rsi + 0x118], ebp
movups xmmword [rsi + 0x120], xmm6
movups xmmword [rsi + 0x130], xmm6
mov dword [rsi + 0x140], ebp
movups xmmword [rsi + 0x148], xmm6
movups xmmword [rsi + 0x158], xmm6
mov dword [rsi + 0x168], ebp
movups xmmword [rsi + 0x170], xmm6
movups xmmword [rsi + 0x180], xmm6
mov dword [rsi + 0x190], ebp
mov qword [rsi + 0x1b0], rbx
movups xmmword [rsi + 0x198], xmm6
mov dword [rsi + 0x1a8], ebx
mov eax, dword [0x140106cbc]
mov dword [rsi + 0x1b8], eax
lea rcx, [rsi + 0x1c0]
call fcn.14004d170
lea rcx, [rsi + 0x310]
movups xmmword [rsi + 0x2f8], xmm6
mov qword [rsi + 0x308], rbx
xor edx, edx
call fcn.1400495b0
lea rcx, [rsi + 0x320]
xor edx, edx
call fcn.1400495b0
lea rcx, [rsi + 0x330]
xor edx, edx
call fcn.1400495b0
movups xmmword [rsi + 0x340], xmm6
movups xmmword [rsi + 0x350], xmm6
mov dword [rsi + 0x360], ebp
movups xmmword [rsi + 0x368], xmm6
movups xmmword [rsi + 0x378], xmm6
movups xmmword [rsi + 0x388], xmm6
mov byte [rsi + 0x398], bl
mov dword [rsi + 0x39c], edi
mov byte [rsi + 0x3a0], bl
movups xmmword [rsi + 0x3a8], xmm6
movups xmmword [rsi + 0x3b8], xmm6
call fcn.140019d50
call sub.KERNEL32.dll_GetCurrentProcessId
mov dword [rsi + 0x1a8], eax
mov eax, eax
movabs rcx, 0xcbf29ce484222325
xor rcx, rax
movabs rax, 0x100000001b3
imul rax, rcx
mov qword [rsi + 0x1a0], rax
mov rcx, rsi
call fcn.14003d390
mov rcx, qword [rsi + 0x20]
mov qword [rsi + 0x20], rax
test rcx, rcx
jne 0x14003d37b
call fcn.14004c930
lea r8, str.TraceLog
mov rcx, rax
mov rdx, rsi
xor r9d, r9d
call fcn.14004c9e0
mov qword [0x14012a5c8], rsi
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [0x14013a008]
jmp 0x14003d349