joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003f14
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140003f4e
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140003f53
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140003f9c
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140006370]
cmp byte [rcx + rax], 0
je 0x140003f9c
dec r8
sub rdx, 1
jne 0x140003f82
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140004dac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140004df6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140004df6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140004df6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140004df6
cmp dword [rcx + 0x84], 0xe
jbe 0x140004df6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140004df8
xor al, al
add rsp, 0x28
ret

Function at 0x140001000
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
lea rcx, str._JAVA_LAUNCHER_DEBUG
call qword [sym.imp.MSVCR100.dll_getenv]
test rax, rax
je 0x140001066
lea rcx, str.Windows_original_main_args:_n
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
xor ebx, ebx
cmp dword [rax], ebx
jle 0x140001066
xor edi, edi
mov rax, qword [sym.imp.MSVCR100.dll___argv]
lea rcx, str.wwwd_args__d____s_n
mov edx, ebx
mov r8, qword [rax]
mov r8, qword [r8 + rdi]
call qword [sym.imp.MSVCR100.dll_printf]
mov rax, qword [sym.imp.MSVCR100.dll___argc]
inc ebx
add rdi, 8
cmp ebx, dword [rax]
jl 0x140001038
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov rcx, rax
call sub.jli.dll_JLI_CmdToArgs
call sub.jli.dll_JLI_GetStdArgc
movsxd rdi, eax
lea ecx, [rdi + 1]
movsxd rcx, ecx
shl rcx, 3
call sub.jli.dll_JLI_MemAlloc
mov rbx, rax
call sub.jli.dll_JLI_GetStdArgs
xor r9d, r9d
xor edx, edx
test edi, edi
jle 0x1400010b2
mov r9d, edi
mov rcx, qword [rax]
add rax, 0x10
mov qword [rbx + rdx*8], rcx
inc rdx
cmp rdx, rdi
jl 0x14000109f
mov rcx, qword [str.java]
movsxd rax, r9d
and qword [rbx + rax*8], 0
test rcx, rcx
jne 0x1400010c9
mov rcx, qword [rbx]
mov rax, qword [str.java]
test rax, rax
jne 0x1400010d8
mov rax, qword [rbx]
and dword [rsp + 0x68], 0
mov byte [rsp + 0x60], 0
mov byte [rsp + 0x58], 0
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rax
lea rax, [0x140002250]
mov r8d, 2
lea r9, str._J_ms8m
mov qword [rsp + 0x38], rax
lea rax, [0x140002240]
mov rdx, rbx
mov qword [rsp + 0x30], rax
lea rax, str._lib_tools.jar
mov ecx, edi
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r8d
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret
Function at 0x14000d910
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x140016c60], rbx
je 0x14000d977
cmp rax, rbx
jne 0x14000d96a
mov ebx, 1
mov esi, ebx
jmp 0x14000d97c
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x14000d94f
mov ebx, 1
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000d994
mov edi, 0x1f
mov ecx, edi
call sub.msvcrt.dll__amsg_exit
jmp 0x14000da00
mov eax, dword [0x140016c68]
test eax, eax
jne 0x14000d9f5
mov dword [0x140016c68], ebx
lea r15, [0x140010bb8]
lea rdi, [0x140010ba0]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14000d9e7
test eax, eax
jne 0x14000d9eb
cmp qword [rdi], r14
je 0x14000d9dc
mov rax, qword [rdi]
mov rcx, qword [0x140010b58]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14000d9be
test eax, eax
je 0x14000d9fb
mov eax, 0xff
jmp 0x14000db56
mov dword [0x1400163e4], ebx
mov edi, 0x1f
mov eax, dword [0x140016c68]
cmp eax, ebx
jne 0x14000da27
lea rdx, [0x140010b98]
lea rcx, [0x140010b60]
call sub.msvcrt.dll__initterm
mov dword [0x140016c68], 2
test esi, esi
jne 0x14000da35
mov rax, r14
xchg qword [0x140016c60], rax
cmp qword [0x140016c80], r14
je 0x14000da68
lea rcx, [0x140016c80]
call fcn.14000dfd0
test eax, eax
je 0x14000da68
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140016c80]
mov r9, qword [0x140010b58]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14000da81
mov eax, 0xff
jmp 0x14000db56
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14000db07
test ax, ax
je 0x14000da9c
test edx, edx
jne 0x14000db07
sub ax, bx
cmp ax, di
ja 0x14000dab2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14000da9c
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400019fc
mov dword [0x1400163e0], eax
cmp dword [0x140016400], r14d
jne 0x14000daf0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400163e4], r14d
jne 0x14000db05
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400163e0]
jmp 0x14000db56
cmp ax, 0x22
jne 0x14000db1b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14000da8a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.140169000
add rsp, 0x28
jmp 0x14000d910
Function at 0x140007f00
Capabilities:
Get system information on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
movaps xmmword [rsp + 0x60], xmm6
mov rsi, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x58], rax
xor ebx, ebx
mov ecx, 0x65c2937b
xor eax, eax
lock cmpxchg dword [rsi], ecx
jne 0x1400080a8
mov dword [0x14022fcd8], ebx
lea rbp, [0x14022fcd8]
movabs rax, 0x100000000
mov qword [0x14022fdf8], rax
movaps xmm6, xmmword [0x1401ee3a0]
lea rdi, [rsp + 0x20]
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
mov r14, qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x14022fe00], rcx
mov r15d, 0x20
mov qword [0x14022fe08], r15
mov r12d, 0x40
mov qword [0x14022fe10], r12
mov dword [0x14022fe18], ebx
mov qword [0x14022fce0], rbx
lea rax, [0x14022fce0]
mov r13, 0xffffffffb37cc16a
xor rax, r13
mov qword [0x14022fce8], rax
mov qword [0x14022fcf0], rbp
mov dword [0x14022fd00], ebx
lea rcx, [0x14022fd08]
mov r8d, 0xf0
xor edx, edx
call fcn.140130d40
mov dword [0x14022fe20], ebx
lea rbp, [0x14022fe20]
mov qword [0x14022ff40], rbx
movaps xmmword [rdi + 0x20], xmm6
movaps xmmword [rdi + 0x10], xmm6
movaps xmmword [rdi], xmm6
lea rdi, [rsp + 0x20]
mov rcx, rdi
call r14
mov eax, dword [rdi + 4]
mov ecx, dword [rdi + 0x28]
cmp eax, ecx
cmova ecx, eax
mov qword [0x14022ff48], rcx
mov qword [0x14022ff50], r15
mov qword [0x14022ff58], r12
mov dword [0x14022ff60], ebx
mov qword [0x14022fe28], rbx
lea rax, [0x14022fe28]
xor rax, r13
mov qword [0x14022fe30], rax
mov qword [0x14022fe38], rbp
mov dword [0x14022fe48], ebx
lea rcx, [0x14022fe50]
mov r8d, 0xf0
xor edx, edx
call fcn.140130d40
mov eax, 0xdd
xchg dword [rsi], eax
cmp eax, 0x5a308d2
je 0x1400080c8
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012ec00
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, edx
lea r8, [0x1401f4f00]
mov rcx, rsi
mov edx, 3
call fcn.140008100
test eax, eax
jne 0x140008085
jmp 0x140007f3a
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14012ec00
mov rcx, rsi
mov dl, 1
movaps xmm6, xmmword [rsp + 0x60]
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140167470
Function at 0x1400099d0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x98
mov edi, r8d
mov rbx, rdx
mov r14, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401ee3a0]
lea r15, [rsp + 0x50]
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.1400ba440
xor esi, esi
mov rcx, r15
mov rdx, r12
xor r8d, r8d
call fcn.1400d84a0
test edi, edi
js 0x140009aab
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.1400ae170
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.14012ec00
mov eax, esi
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x140009a7e
Function at 0x14000c910
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14000c95c
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 0x14000c967
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14000c94a
mov qword [rdi], rsi
call fcn.1400b90a0
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.1400b90a0
mov r14, qword [rdi]
cmp qword [0x140231c98], 0
je 0x14000c998
mov rcx, qword [0x140231c98]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x140243008]
mov qword [rdi], 0
jmp 0x14000c938
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x140200139]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000c9d9
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14000c9d3
call qword [0x140243008]
mov rcx, rax
xor edx, edx
call fcn.140026ae0
jmp 0x14000c979
xor ecx, ecx
mov dl, 1
jmp 0x14000c9cc
xor ecx, ecx
jmp 0x14000c9ca

Function at 0x14000e6b0
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x140231968]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000e710
lea rsi, [0x140231960]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14012ec00
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x140231968]
call fcn.14012c340
cmp dword [0x140231968], 0xffffffff
jne 0x14000e6ec
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140130d40
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14012c264
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402319b0]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000e7d0
lea r8, [0x140231980]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002c070
mov qword [0x140231960], rsi
lea rcx, [0x140231968]
call fcn.14012c3a8
jmp 0x14000e6ec
lea rcx, [0x1402319b0]
call fcn.14012c340
cmp dword [0x1402319b0], 0xffffffff
jne 0x14000e7a1
xorps xmm0, xmm0
movups xmmword [0x1402319a0], xmm0
movups xmmword [0x140231990], xmm0
movups xmmword [0x140231980], xmm0
lea rcx, [0x140231980]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402319b0]
call fcn.14012c3a8
jmp 0x14000e7a1
Function at 0x14000f650
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.14012eba0
sub rsp, rax
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x1020], rax
mov esi, dword [0x140228698]
cmp esi, 0xffffffff
je 0x14000f703
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14000f735
lea rdi, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
xor edx, edx
call fcn.140130d40
lea rdx, [rsp + 0x23]
mov r14, qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call r14
mov ecx, 0x1000
call fcn.14012c2a0
mov rbx, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rdi
call fcn.140130690
mov rdx, rbx
or rdx, 3
mov ecx, esi
call r14
mov rcx, qword [rsp + 0x1020]
xor rcx, rsp
call fcn.14012ec00
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 0x14000f738
mov esi, eax
mov eax, 0xffffffff
lock cmpxchg dword [0x140228698], esi
je 0x14000f683
mov ecx, esi
call sub.KERNEL32.dll_TlsFree
mov esi, dword [0x140228698]
jmp 0x14000f683
int3
int3

Function at 0x140012280
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, [0x1401f0420]
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 0x1400122f0
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 0x18]
inc rax
cmp rax, 2
jae 0x1400122fb
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400122e8
mov qword [rsi + 0x18], rdi
call fcn.1400b90a0
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.1400b90a0
mov rcx, qword [rsi + 0x18]
call fcn.14011a250
mov qword [rsi + 0x18], 0
jmp 0x1400122d5
Function at 0x140015030
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 [0x140219028]
xor rax, rsp
mov qword [rsp + 0x60], rax
movabs r12, 0xfffffffc00000000
shl ebp, 0x10
mov ecx, 0x18
call fcn.14012c264
mov rsi, rax
mov rax, r15
and rax, r12
cmp rax, qword [0x140219dc8]
jne 0x14001509d
mov rcx, r15
call fcn.1400acce0
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, [0x1400033c0]
xor ecx, ecx
mov rdx, rbx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
je 0x140015111
test r14, r14
je 0x140015106
mov qword [r14], rdi
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14012ec00
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, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400150e0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 8
je 0x14001512a
mov ebp, eax
cmp eax, 0x5af
je 0x14001512a
cmp ebp, 0xe
jne 0x140015155
mov rcx, rbx
call fcn.14016bd50
test rsi, rsi
je 0x1400150e0
mov rcx, qword [rsi]
and r12, rcx
cmp r12, qword [0x140219dc8]
jne 0x14001514b
call fcn.1400ace30
mov rcx, rsi
call fcn.14012c25c
jmp 0x1400150e0
mov eax, dword [0x140231a38]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400151d8
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov edx, ebp
call fcn.1400881b0
movzx r8d, byte [rbx + 0x17]
test r8b, r8b
js 0x140015195
and r8d, 0x7f
jmp 0x14001519f
mov r8, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
lea r14, [rsp + 0x50]
mov rcx, r14
mov rdx, rbx
call fcn.14012a370
mov rcx, qword [0x140231a30]
mov rdx, r14
call fcn.1400081d0
cmp byte [rsp + 0x4f], 0
jns 0x140015132
mov rcx, qword [rsp + 0x38]
call fcn.14012c25c
jmp 0x140015132
lea rcx, [0x140231a38]
call fcn.14012c340
cmp dword [0x140231a38], 0xffffffff
jne 0x140015176
lea rcx, str.create_thread_last_error
mov edx, 0x20
call fcn.140007050
mov qword [0x140231a30], rax
lea rcx, [0x140231a38]
call fcn.14012c3a8
jmp 0x140015176
Function at 0x140016f40
Capabilities:
Get file size

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
mov rbx, rcx
mov rax, qword [0x140219028]
xor rax, rsp
mov qword [rsp + 0x80], rax
movaps xmm0, xmmword [0x1401ee3a0]
lea rsi, [rsp + 0x40]
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.1400ba440
xor edi, edi
mov rcx, rsi
mov rdx, r14
xor r8d, r8d
call fcn.1400d84a0
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [r14], rax
mov rcx, qword [rbx]
lea rbx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
cmp eax, 1
sbb rdi, rdi
or rdi, qword [rbx]
mov rcx, rsi
call fcn.1400ae170
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14012ec00
mov rax, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001b490
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 [0x140219028]
xor rax, rsp
mov qword [rsp + 0x330], rax
lea r14, [rsp + 0x68]
mov r8d, 0x2c8
mov rcx, r14
mov dl, 0xaa
call fcn.140130d40
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.14001b800
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x50]
mov qword [rsi + 0x10], rax
movaps xmm0, xmmword [0x1401ee3a0]
movaps xmmword [rsi], xmm0
mov rcx, r14
mov rdx, rsi
call fcn.14001bbc0
movzx eax, byte [rsi + 0x17]
test al, al
js 0x14001b52a
mov ecx, eax
and ecx, 0x7f
jmp 0x14001b52f
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14001b5f8
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 0x14001b63d
mov edx, dword [rsp + 0x6c]
test dl, 1
jne 0x14001b647
test dl, 0x10
jne 0x14001b636
cmp byte [rsp + 0x67], 0
mov rcx, rsi
jns 0x14001b585
mov rcx, qword [rsp + 0x50]
call r15
test eax, eax
jne 0x14001b636
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.14001bbc0
cmp byte [rsp + 0x67], 0
js 0x14001b5db
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 0x14001b5e7
mov ecx, eax
and ecx, 0x7f
jmp 0x14001b5ec
mov rcx, qword [rsp + 0x50]
call fcn.14012c25c
jmp 0x14001b5b7
mov rcx, qword [rsp + 0x58]
mov r13d, ebx
test rcx, rcx
jne 0x14001b555
test al, al
jns 0x14001b606
mov rcx, qword [rsp + 0x50]
call fcn.14012c25c
lea rcx, [rsp + 0x68]
call fcn.14001b670
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.14012ec00
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 0x14001b59e
call fcn.1401689e0
jmp 0x14001b576
xor ebx, ebx
test dl, 0x10
jne 0x14001b59e
test al, al
js 0x14001b65d
lea rcx, [rsp + 0x50]
jmp 0x14001b662
mov rcx, qword [rsp + 0x50]
and edx, 0xfffffffe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x14001b576
Function at 0x14001fab0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov eax, dword [0x140233af8]
mov ecx, dword [0x140228d28]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001fbda
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fb0f
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140233af0]
jne 0x14001fb0f
cmp qword [rax + rcx], 0
jne 0x14001fb96
mov ecx, 4
call fcn.14012c264
mov rsi, rax
mov dword [rax], 0
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fc31
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140233af0]
jne 0x14001fc31
mov rdi, qword [rax + rcx]
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fbce
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x140233af0]
mov rdx, qword [0x140233ae8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
test rdi, rdi
jne 0x14001fc38
mov ecx, dword [0x140228698]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14001fc2d
mov rcx, qword [0x140233ae8]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x140233af0]
jne 0x14001fc2d
mov rax, qword [rax + rcx]
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x14001fb8d
call fcn.14000f650
jmp 0x14001fb69
lea rcx, [0x140233af8]
call fcn.14012c340
cmp dword [0x140233af8], 0xffffffff
jne 0x14001fadb
mov qword [0x140233af0], 0
lea rcx, [0x140233ae8]
mov qword [0x140233ae8], 0xffffffffffffffff
lea rdx, [0x140057520]
call fcn.140027a80
lea rcx, [0x140233af8]
call fcn.14012c3a8
jmp 0x14001fadb
xor eax, eax
jmp 0x14001fbc7
xor edi, edi
jmp 0x14001fb57
mov rcx, rdi
call fcn.14012c25c
jmp 0x14001fb96
Function at 0x140024b20
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x28
test rdx, rdx
jne 0x140024b4f
test r8d, r8d
jne 0x140024b48
lea rcx, [0x140231f38]
lea rdx, [0x14008f130]
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
xor eax, eax
add rsp, 0x28
ret
mov r8d, r8d
add rsp, 0x28
jmp fcn.14010fdf0

Function at 0x140025fb0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400260a5
cmp qword [rsi], 0
jne 0x1400260a5
cmp dword [rsi + 0x14], 0
jne 0x1400260a5
cmp qword [rsi + 8], 0
jne 0x1400260a5
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x140026024
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14002608c
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14002601c
mov qword [rsi], r14
call fcn.1400b90a0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x14002605e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x140026074
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140026056
mov qword [rsi + 8], r14
call fcn.1400b90a0
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, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1400b90a0
mov rcx, qword [rsi + 8]
call fcn.14011a250
mov qword [rsi + 8], 0
jmp 0x140026043
call fcn.1400b90a0
mov rcx, qword [rsi]
call fcn.14011a250
mov qword [rsi], 0
jmp 0x14002600a
mov rcx, rsi
call fcn.1401b0fd0
mov rax, qword [rsi]
jmp 0x140025fea