joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002630
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x140003262
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140014128]
test eax, eax
je 0x1400032fa
lea rax, [0x140014100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140014130]
mov qword [rbp - 8], rax
jmp 0x1400032de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400032d2
cmp qword [rbp - 0x10], 0
je 0x1400032d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140003298
lea rax, [0x140014100]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400032fb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003400
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140003428
mov eax, 0
jmp 0x140003476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140003451
mov eax, 0
jmp 0x140003476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140003471
mov eax, 0
jmp 0x140003476
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14000347c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400034fa
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400034f1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400034f1
mov rax, qword [rbp - 8]
jmp 0x14000350f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400034c4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140002a90
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140003d60
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140003d60
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140002b00
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400080a4]
mov rbx, rcx
test esi, esi
jle 0x140002c30
mov rax, qword [0x1400080a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140002b4b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140002bd5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140002b30
mov rcx, rbx
call fcn.140003550
mov rdi, rax
test rax, rax
je 0x140002c52
mov rax, qword [0x1400080a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140003690
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400080a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002c37
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140002bce
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002be0
add dword [0x1400080a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400080a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140002bce
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140002a90
nop dword [rax]
xor esi, esi
jmp 0x140002b58
mov rax, qword [0x1400080a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140002a90
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140002a90
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400031c0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x14000321c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x140003213
test rsi, rsi
je 0x140003213
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400031f8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140003550
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140005a50]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003570
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003578
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003570
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400035cd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400035c4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003570
add rax, 0x28
cmp rax, r9
jne 0x1400035b0
xor eax, eax
ret

Function at 0x1400035d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a50]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400035ef
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400035f8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400035ef
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140003690
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140005a50]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400036af
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400036b8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1001304e8
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100178108], rdi
je 0x100130548
cmp rax, rdi
jne 0x10013053b
mov r12d, 1
jmp 0x100130548
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100130521
mov eax, dword [0x100178100]
cmp eax, 1
jne 0x10013055d
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x1001305c4
mov eax, dword [0x100178100]
cmp eax, ebx
jne 0x1001305ba
mov dword [0x100178100], 1
lea r13, [0x100001c08]
lea rdi, [0x100001bf0]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x1001305ac
cmp eax, ebx
jne 0x1001305ac
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x1001305a1
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10013058a
cmp eax, ebx
je 0x1001305c4
mov eax, 0xff
jmp 0x10013070c
mov dword [0x100177464], 1
mov eax, dword [0x100178100]
cmp eax, 1
jne 0x1001305ec
lea rdx, [0x100001be8]
lea rcx, [0x100001b60]
call sub.msvcrt.dll__initterm
mov dword [0x100178100], 2
cmp r12d, ebx
jne 0x1001305fb
mov rax, rbx
xchg qword [0x100178108], rax
cmp qword [0x100178120], rbx
je 0x100130623
lea rcx, [0x100178120]
call fcn.100130cac
cmp eax, ebx
je 0x100130623
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100178120]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x100130639
mov eax, 0xff
jmp 0x10013070c
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x1001306be
cmp word [rcx], bx
je 0x100130654
cmp edx, ebx
jne 0x1001306be
cmp word [rcx], bx
je 0x10013066a
cmp word [rcx], 0x20
ja 0x10013066a
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100130654
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.10005060c
mov dword [0x100177460], eax
cmp dword [0x100177444], ebx
jne 0x1001306a8
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x100177464], ebx
jne 0x1001306bc
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x100177460]
jmp 0x10013070c
cmp word [rcx], 0x22
jne 0x1001306d1
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x100130645
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100130db4
add rsp, 0x28
jmp 0x1001304e8
Function at 0x14000e920
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, 2
cmp rcx, 1
jne 0x14000e952
mov rdi, qword [0x1402b7188]
cmp rsi, rdi
jbe 0x14000e985
lea rcx, [0x1402b7180]
mov rdx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14011fcc0
lea rax, [rcx - 1]
test rcx, rax
jne 0x14000e960
mov rsi, rcx
jmp 0x14000e931
call fcn.140152ca0
mov rsi, rax
jmp 0x14000e931
mov rcx, rdx
call fcn.140152ca0
cmp rsi, rax
cmovbe rsi, rax
cmp rsi, rdi
jb 0x14000e93d
add rsp, 0x28
pop rdi
pop rsi
ret
jae 0x14000e97e
mov rax, qword [0x1402b7198]
test rax, rax
jns 0x14000e9aa
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x14000e9af
cvtsi2ss xmm0, rax
divss xmm0, dword [0x1402b71a0]
call fcn.1401a3a9c
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x140261048]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rdi, 3
jb 0x14000e96a
mov rax, rdi
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rdi
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x14000e96a
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x14000e972
Function at 0x14000fb20
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xa8
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0xa0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x50]
mov qword [r15 + 0x40], rax
movaps xmm0, xmmword [0x14026dc70]
movaps xmmword [r15 + 0x30], xmm0
movaps xmmword [r15 + 0x20], xmm0
movaps xmmword [r15 + 0x10], xmm0
movaps xmmword [r15], xmm0
lea rdx, str.WriteAtCurrentPos
lea r8, str....._base_files_file_win.cc
lea r12, [rsp + 0x30]
mov rcx, r12
mov r9d, 0x97
call fcn.1400ee990
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.140123200
test edi, edi
js 0x14000fc09
lea r15, [rsp + 0x30]
mov dword [r15], 0xaaaaaaaa
mov rcx, qword [r14]
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8d, edi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb esi, esi
or esi, dword [r15]
lea rcx, [rsp + 0x50]
call fcn.1400dee50
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.1401879f0
mov eax, esi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14000fbdc

Function at 0x1400159d0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140015a1c
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x140015a27
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140015a0a
mov qword [rdi], rsi
call fcn.1400eba00
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400eba00
mov r14, qword [rdi]
cmp qword [0x1402b7720], 0
je 0x140015a58
mov rcx, qword [0x1402b7720]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1402ca008]
mov qword [rdi], 0
jmp 0x1400159f8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.GetHandleVerifier
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140015a99
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140015a93
call qword [0x1402ca008]
mov rcx, rax
xor edx, edx
call fcn.14003b860
jmp 0x140015a39
xor ecx, ecx
mov dl, 1
jmp 0x140015a8c
xor ecx, ecx
jmp 0x140015a8a
Function at 0x140019900
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1028
call fcn.140187990
sub rsp, rax
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x1402ac12c]
cmp esi, 0xffffffff
je 0x1400199b3
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400199e5
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140189b30
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.140185028
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.140189480
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.1401879f0
mov rax, rbx
add rsp, 0x1028
pop rbx
pop rdi
pop rsi
pop r14
ret
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400199e8
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x1402ac12c], esi
je 0x140019933
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x1402ac12c]
jmp 0x140019933
int3
int3
Function at 0x14001f7f0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx + 8], 0
xorps xmm0, xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [0x140270618]
mov qword [rcx], rax
mov rcx, 0xffffffffffffffff
xor edx, edx
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp qword [rsi + 0x18], rax
je 0x14001f860
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x14001f86b
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14001f858
mov qword [rsi + 0x18], rdi
call fcn.1400eba00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.1400eba00
mov rcx, qword [rsi + 0x18]
call fcn.1401692a0
mov qword [rsi + 0x18], 0
jmp 0x14001f845
Function at 0x1400207c0
Capabilities:
Create thread

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov edi, r9d
mov r14, r8
mov r15, rdx
mov rbx, rcx
xor ebp, ebp
test rcx, rcx
setne bpl
mov r13d, dword [rsp + 0xd0]
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.140184dc4
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x14029ce48]
je 0x14002088e
mov qword [rsi], r15
test r14, r14
setne byte [rsi + 8]
mov dword [rsi + 0xc], edi
mov dword [rsi + 0x10], r13d
mov dword [rsp + 0x20], ebp
mov qword [rsp + 0x28], 0
lea r8, [0x140004360]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x1400208a3
test r14, r14
je 0x140020898
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401879f0
mov eax, ebx
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, r15
call fcn.1400ddc60
jmp 0x140020825
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140020868
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x1400208bc
mov ebp, eax
cmp eax, 0x5af
je 0x1400208bc
cmp ebp, 0xe
jne 0x1400208e7
mov rcx, rbx
call fcn.1401c9f50
test rsi, rsi
je 0x140020868
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x14029ce48]
jne 0x1400208dd
call fcn.1400de590
mov rcx, rsi
call fcn.140184dbc
jmp 0x140020868
mov eax, dword [0x1402b7478]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002096a
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400ba990
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140020927
and r8d, 0x7f
jmp 0x140020931
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.1401825c0
mov rcx, qword [0x1402b7470]
mov rdx, r14
call fcn.140009920
cmp byte [rsp + 0x4f], 0
jns 0x1400208c4
mov rcx, qword [rsp + 0x38]
call fcn.140184dbc
jmp 0x1400208c4
lea rcx, [0x1402b7478]
call fcn.140184f58
cmp dword [0x1402b7478], 0xffffffff
jne 0x140020908
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140008060
mov qword [0x1402b7470], rax
lea rcx, [0x1402b7478]
call fcn.140184fc0
jmp 0x140020908
Function at 0x140021820
Capabilities:
Get file size

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x90
mov rdi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x88], rax
movabs r15, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x40]
mov qword [rsi + 0x40], r15
movaps xmm0, xmmword [0x14026dc70]
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.GetLength
lea r8, str....._base_files_file_win.cc
lea r14, [rsp + 0x20]
mov rcx, r14
mov r9d, 0xac
call fcn.1400ee990
xor ebx, ebx
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.140123200
mov qword [r14], r15
mov rcx, qword [rdi]
lea rdi, [rsp + 0x20]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [rdi]
mov rcx, rsi
call fcn.1400dee50
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1401879f0
mov rax, rbx
add rsp, 0x90
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140025320
Capabilities:
Check if file exists
Delete file
Set file attributes

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x338
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140189b30
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rsi
mov rcx, r14
mov rdx, rdi
xor r8d, r8d
mov r9d, 3
call fcn.140025690
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x14026dc70]
movaps xmmword [rsi], xmm0
mov rcx, r14
mov rdx, rsi
call fcn.140025a50
movzx eax, byte [rsi + 0x17]
test al, al
js 0x1400253ba
mov ecx, eax
and ecx, 0x7f
jmp 0x1400253bf
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140025488
xor ebp, ebp
mov r15, qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov r12, qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdi, [rsp + 0x68]
lea r14, [rsp + 0x38]
xor r13d, r13d
cmp byte [rsp + 0x68], 0
je 0x1400254cd
mov edx, dword [rsp + 0x6c]
test dl, 1
jne 0x1400254d7
test dl, 0x10
jne 0x1400254c6
cmp byte [rsp + 0x67], 0
mov rcx, rsi
jns 0x140025415
mov rcx, qword [rsp + 0x50]
call r15
test eax, eax
jne 0x1400254c6
call r12
mov ebx, eax
and eax, 0xfffffffe
cmp eax, 2
cmove ebx, ebp
test r13d, r13d
cmovne ebx, r13d
mov rcx, rdi
mov rdx, r14
call fcn.140025a50
cmp byte [rsp + 0x67], 0
js 0x14002546b
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x60], rax
movups xmm0, xmmword [rsp + 0x38]
movaps xmmword [rsp + 0x50], xmm0
movzx eax, byte [rsp + 0x67]
test al, al
js 0x140025477
mov ecx, eax
and ecx, 0x7f
jmp 0x14002547c
mov rcx, qword [rsp + 0x50]
call fcn.140184dbc
jmp 0x140025447
mov rcx, qword [rsp + 0x58]
mov r13d, ebx
test rcx, rcx
jne 0x1400253e5
test al, al
jns 0x140025496
mov rcx, qword [rsp + 0x50]
call fcn.140184dbc
lea rcx, [rsp + 0x68]
call fcn.140025500
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.1401879f0
mov eax, ebx
add rsp, 0x338
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
xor ebx, ebx
jmp 0x14002542e
call fcn.1401c6930
jmp 0x140025406
xor ebx, ebx
test dl, 0x10
jne 0x14002542e
test al, al
js 0x1400254ed
lea rcx, [rsp + 0x50]
jmp 0x1400254f2
mov rcx, qword [rsp + 0x50]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x140025406
Function at 0x140029f20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x1402b9548]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14002a04a
mov ecx, dword [0x1402ac12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140029f7f
mov rcx, qword [0x1402b9538]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b9540]
jne 0x140029f7f
cmp qword [rax + rcx], 0
jne 0x14002a006
mov ecx, 4
call fcn.140184dc4
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x1402ac12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002a0a1
mov rcx, qword [0x1402b9538]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b9540]
jne 0x14002a0a1
mov rdi, qword [rax + rcx]
mov ecx, dword [0x1402ac12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002a03e
mov rcx, qword [0x1402b9538]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402b9540]
mov rdx, qword [0x1402b9538]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14002a0a8
mov ecx, dword [0x1402ac12c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002a09d
mov rcx, qword [0x1402b9538]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402b9540]
jne 0x14002a09d
mov rax, qword [rax + rcx]
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x140029ffd
call fcn.140019900
jmp 0x140029fd9
lea rcx, [0x1402b9548]
call fcn.140184f58
cmp dword [0x1402b9548], 0xffffffff
jne 0x140029f4b
mov qword [0x1402b9540], 0
lea rcx, [0x1402b9538]
mov qword [0x1402b9538], 0xffffffffffffffff
lea rdx, [0x14006f3f0]
call fcn.14002f9a0
lea rcx, [0x1402b9548]
call fcn.140184fc0
jmp 0x140029f4b
xor eax, eax
jmp 0x14002a037
xor edi, edi
jmp 0x140029fc7
mov rcx, rdi
call fcn.140184dbc
jmp 0x14002a006