joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f490
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
mov rax, qword [rcx]
jne 0x14000f4c4
test rax, rax
jne 0x14000f4c4
cmp dword [rsi + 0x14], 0
je 0x14000f4b6
xor eax, eax
jmp 0x14000f4c4
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x14000f51b
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14000f4e4
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400121c0
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x14000f50d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.1400121c0
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
mov rbx, qword [rdi]
cmp rdx, rbx
je 0x14000f569
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000f54b
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400121c0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000f55d
mov qword [rsi], rbx
call fcn.140007bc0
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov rbp, qword [rdi + 8]
cmp rax, rbp
je 0x14000f5b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x14000f59d
call fcn.140007bc0
mov rcx, qword [rsi + 8]
call fcn.1400121c0
mov qword [rsi + 8], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x14000f5b0
mov qword [rsi + 8], rbp
call fcn.140007bc0
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 rbp
pop rdi
pop rsi
ret

Function at 0x14000f6e0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14000f795
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], 0
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rbp
mov rbx, rax
call rbp
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x38]
mov rcx, rax
mov rdx, rdi
mov r8, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov edi, eax
test eax, eax
je 0x14000f799
mov rbx, qword [rsp + 0x38]
cmp qword [rsi], rbx
je 0x14000f7a9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000f781
call fcn.140007bc0
mov rcx, qword [rsi]
call fcn.1400121c0
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x14000f7a1
mov qword [rsi], rbx
call fcn.140007bc0
jmp 0x14000f7a1
mov bl, 1
jmp 0x14000f7ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140149000
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret

Function at 0x140010350
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x140010370
Capabilities:
Compare security identifiers

Disassembly:
sub rsp, 0x28
mov rdx, qword [rdx]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x140010adc
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.14000f670
test al, al
je 0x140010b0f
mov rcx, qword [rsi]
mov edx, 0x32
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsi]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r15, [rsi + 0x38]
mov rcx, r15
xor edx, edx
call fcn.140010bd0
mov rbx, qword [rsi + 0x58]
test rbx, rbx
je 0x140010b86
lea r14, [rsi + 0x58]
mov rdi, qword [rsi + 0x60]
cmp rbx, rdi
je 0x140010b47
mov rcx, rbx
call fcn.14000fee0
add rbx, 0x18
cmp rbx, rdi
jne 0x140010b33
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x68]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x140010b6f
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x140010bca
add rdx, 0x27
mov rbx, rax
mov rcx, rbx
call fcn.1401489f0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140010b94
call fcn.140150790
mov rcx, r15
call fcn.140010bfc
lea rcx, [rsi + 0x28]
call fcn.1400039d0
lea rcx, [rsi + 0x20]
call fcn.1400039d0
lea rcx, [rsi + 0x18]
call fcn.1400039d0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000f5d0
call fcn.14014fc7c
int3
Function at 0x14001146c
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14000f670
test al, al
je 0x14001148e
mov rcx, qword [rsi]
xor edx, edx
add rsp, 0x20
pop rsi
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x20
pop rsi
ret

Function at 0x140014c60
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x3c], 4
mov dword [rsp + 0x38], 4
mov dword [rsp + 0x34], 0
mov rcx, qword [rcx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x3c]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140014cdb
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140014cdb
cmp dword [rsp + 0x38], 4
jne 0x140014cdb
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140149000
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140149300
sub rsp, rax
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea rsi, [rsp + 0x840]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14014a5b0
mov dword [rsp + 0x3c], 1
mov dword [rsp + 0x38], 0x800
mov rcx, qword [rbx]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140014e70
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140014dbc
mov edi, 0x3f4
cmp eax, 1
jne 0x140014e70
lea rcx, [rsp + 0x840]
call fcn.14014ff50
mov rdi, rax
mov rax, qword [r14 + 0x18]
cmp rax, rdi
jae 0x140014e25
lea r9, [rsp + 0x840]
jmp 0x140014e18
lea rsi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rsi
mov dl, 0xaa
call fcn.14014a5b0
lea rcx, [rsp + 0x840]
mov rdx, rsi
mov r8d, 0x400
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [rsp + 0x38], eax
add eax, 0xfffffbff
mov edi, 0xea
cmp eax, 0xfffffc00
jb 0x140014e70
lea rcx, [rsp + 0x40]
call fcn.14014ff50
mov rdi, rax
mov rax, qword [r14 + 0x18]
cmp rax, rdi
jae 0x140014e45
lea r9, [rsp + 0x40]
mov rcx, r14
mov rdx, rdi
call fcn.140006cf0
jmp 0x140014e6e
mov rbx, r14
cmp rax, 8
jb 0x140014e31
mov rbx, qword [r14]
mov qword [r14 + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x140014e60
mov rbx, r14
cmp rax, 8
jb 0x140014e51
mov rbx, qword [r14]
mov qword [r14 + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140149f00
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140149000
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14001d440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, ecx
mov edi, 3
call fcn.140036680
test al, al
jne 0x14001d45e
call fcn.140036650
movzx edi, al
mov ecx, esi
mov edx, edi
call fcn.140008350
mov eax, dword [0x14023eed0]
mov ecx, dword [0x140242758]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001d4a0
movsxd rdx, esi
inc rdx
lea rcx, [0x14023eec0]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140033fa0
lea rcx, [0x14023eed0]
call fcn.140148dd8
cmp dword [0x14023eed0], 0xffffffff
jne 0x14001d488
lea rcx, [0x14023eec0]
xor edx, edx
call fcn.140033ff0
lea rcx, [0x14023eed0]
call fcn.140148d78
jmp 0x14001d488
Function at 0x140026b06
Capabilities:
Create pipe

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r14, qword [rsp + 0xc8]
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140026bfb
mov edi, dword [rsp + 0xc0]
mov ebx, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov r10d, dword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x140026b6b
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, eax
mov r9d, r10d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140026be5
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r15, [rsp + 0x40]
mov qword [r15], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor ebx, ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb rbx, rbx
or rbx, qword [r15]
jmp 0x140026bec
mov rbx, 0xffffffffffffffff
mov qword [r14], rbx
xor eax, eax
cmp rbx, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140149000
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140028024
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xb0
mov r12, rcx
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0xa8], rax
test dl, dl
je 0x1400280b0
lea rax, [0x14003a930]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1401c7600]
lea r8, str.NtMapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1400276a4
lea rax, [0x14003a9a0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, r12
mov rdx, rdi
mov r9d, 1
call fcn.1400276a4
jmp 0x1400280bc
cmp qword [r12 + 0x10], 0
je 0x140028259
mov rax, qword [r12]
mov r14, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, r14
xor edx, edx
mov r9d, 0x2000
call r13
mov rdi, rax
mov rsi, qword [r12 + 0x10]
shl rsi, 6
lea r15, [rsi + 0x60]
mov rcx, r15
call fcn.14002723c
mov rbx, rax
mov edx, ebx
and edx, 0xfffff000
add rdx, rdi
and ebx, 0xfff
add rsi, 0x105f
and rsi, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, r14
mov r8, rsi
mov r9d, 0x1000
call r13
mov rdi, rax
test rax, rax
jne 0x140028170
lea rdx, str....._sandboxwin_srcinterception.cc
lea r9, str.thunk_base
lea rsi, [rsp + 0x48]
mov rcx, rsi
mov r8d, 0x183
call fcn.140008430
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
add rdi, rbx
movaps xmm0, xmmword [0x1401c5c30]
lea rsi, [rsp + 0x48]
movups xmmword [rsi + 0x10], xmm0
movups xmmword [rsi + 0x50], xmm0
movups xmmword [rsi + 0x40], xmm0
movups xmmword [rsi + 0x30], xmm0
movups xmmword [rsi + 0x20], xmm0
mov qword [rsi], r15
mov dword [rsi + 0x18], 0
mov qword [rsi + 8], 0x20
lea rcx, [0x14023ef80]
mov r8d, 0xd8
xor edx, edx
call fcn.14014a5b0
mov rcx, r12
mov rdx, rdi
mov r8, r15
mov r9, rsi
call fcn.14002851c
mov ebx, eax
test eax, eax
jne 0x14002825b
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x48]
mov r9d, 0x20
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebx, 0x2a
test eax, eax
je 0x14002825b
cmp qword [rsp + 0x40], 0x20
jne 0x14002825b
lea rax, [rsp + 0x3c]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, r14
mov rdx, rdi
mov r8, r15
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [r12]
lea rdx, str.g_originals
lea r8, [0x14023ef80]
mov r9d, 0xd8
call fcn.14001100a
mov ebx, eax
jmp 0x14002825b
xor ebx, ebx
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.140149000
mov eax, ebx
add rsp, 0xb0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140029290
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x140029328
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea r14, str....._base_rand_util_win.cc
lea r15, str.success
lea r12, [rsp + 0x20]
jmp 0x1400292e8
add rdi, rbx
sub rsi, rbx
je 0x140029328
cmp rsi, r13
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x1400292e0
mov rcx, r12
mov rdx, r14
mov r8d, 0x20
mov r9, r15
call fcn.140008430
mov rcx, r12
call fcn.1400085c0
mov rcx, r12
call fcn.1400085d0
jmp 0x1400292e0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140149000
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002d857
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov rsi, r9
mov r14, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r12, [rsp + 0x34]
mov dword [r12], 0xaaaaaaaa
mov qword [rsp + 0x20], r12
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002d905
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbp, [rsp + 0x28]
mov qword [rbp], rax
mov qword [rsp + 0x20], rbp
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r14d, eax
mov r15, qword [rbp]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002d905
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x14002d907
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140149000
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002f592
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
test r8, r8
je 0x14002f6a9
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14002f6a9
cmp word [rax + rcx + 0x14], 0x78
jb 0x14002f6a9
mov r12, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.PLe_]
test rax, rax
je 0x14002f6a9
cmp rdi, 0xffff
jbe 0x14002f6e1
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.PLe_]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14002f6a9
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov rsi, r15
sub rsi, rbp
mov rax, rsi
sar rax, 2
shr rsi, 0x3f
add rsi, rax
and rsi, 0xfffffffffffffffe
mov edx, dword [rbp + rsi*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.PLe_]
mov cl, byte [rdi]
test cl, cl
je 0x14002f67b
mov rdx, r13
cmp cl, byte [rax]
jne 0x14002f67d
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14002f66b
xor ecx, ecx
lea rsi, [rsi*2]
add rsi, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14002f6bc
movzx ecx, cl
lea rdx, [rsi + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, rsi
xor eax, eax
cmp rbp, r15
jne 0x14002f636
jmp 0x14002f6ab
xor eax, eax
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov edx, dword [r14 + 0x24]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [str.PLe_]
sub rsi, qword [rsp + 0x20]
sar rsi, 1
movzx edi, word [rax + rsi]
add di, word [r14 + 0x10]
mov word [r12], di
mov al, 1
jmp 0x14002f6ab
Function at 0x14002f79e
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002f7d5
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002f7d5
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14002f7d5
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret

Function at 0x140032ab0
Capabilities:
Get common file path

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2e8
mov r14, rcx
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x2d0], rax
movaps xmm0, xmmword [0x1401c5c30]
movaps xmmword [rsp + 0x2c0], xmm0
movaps xmmword [rsp + 0x2b0], xmm0
movaps xmmword [rsp + 0x2a0], xmm0
movaps xmmword [rsp + 0x290], xmm0
movaps xmmword [rsp + 0x280], xmm0
lea rdx, [0x1401c7fda]
lea r8, str....._base_files_file_util_win.cc
lea rdi, [rsp + 0x70]
mov rcx, rdi
mov r9d, 0x3bb
call fcn.140007ba0
lea rcx, [rsp + 0x280]
mov rdx, rdi
xor r8d, r8d
call fcn.14001cda0
lea rbx, [rsp + 0x70]
mov r8d, 0x208
mov rcx, rbx
mov dl, 0xaa
call fcn.14014a5b0
mov word [rsp + 0x70], 0
mov ecx, 0x104
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
add edi, 0xfffffefb
cmp edi, 0xfffffefc
jb 0x140032bcf
mov qword [rsp + 0x20], rbx
mov rcx, rbx
call fcn.14014ff50
mov qword [rsp + 0x28], rax
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140005b20
lea rsi, [rsp + 0x50]
mov rcx, rbx
mov rdx, rsi
call fcn.140006c00
mov rcx, r14
mov rdx, rsi
call fcn.140005c70
mov rcx, rsi
call fcn.140005c00
mov rcx, rbx
call fcn.140005c00
cmp edi, 0xfffffefc
setae bl
lea rcx, [rsp + 0x280]
call fcn.14001cdb0
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.140149000
mov eax, ebx
add rsp, 0x2e8
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140032c10
Capabilities:
Set current directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rcx
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x98], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x90], rax
movaps xmm0, xmmword [0x1401c5c30]
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
lea rdx, [0x1401c7fef]
lea r8, str....._base_files_file_util_win.cc
lea rbx, [rsp + 0x20]
mov rcx, rbx
mov r9d, 0x3cb
call fcn.140007ba0
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.14001cda0
cmp qword [rsi + 0x18], 8
jb 0x140032ca2
mov rsi, qword [rsi]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rdi
call fcn.14001cdb0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140149000
mov eax, ebx
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
ret
Function at 0x140033b70
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140233078]
cmp ecx, 0xffffffff
je 0x140033b92
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
dec eax
cmp eax, 2
setb al
jmp 0x140033b94
xor eax, eax
add rsp, 0x28
ret

Function at 0x140033ba0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, rdx
mov r15, rcx
mov rax, qword [0x140233818]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x140233078]
cmp ecx, 0xffffffff
je 0x140033bd5
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140033bda
call fcn.140033d80
mov eax, dword [0x140240898]
mov ecx, dword [0x140242758]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033d2d
mov rbx, qword [0x140240890]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033d20
mov rcx, qword [0x14023f080]
inc rcx
mov edx, 0x100
lea rax, [0x14023f090]
nop dword [rax]
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140033c5a
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140033c5a
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140033c30
jmp 0x140033c7f
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x14023f080], rdi
mov qword [r15], rdi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rsi, qword [r15]
cmp rsi, 0x100
jb 0x140033d06
mov ecx, 0x100
call fcn.140011700
mov rdi, rax
mov rcx, rsi
call fcn.140011700
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.140011bf0
cmp qword [rsp + 0x30], 0
je 0x140033d06
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1c7
call fcn.1400084b0
mov rcx, rsi
call fcn.1400085c0
mov rcx, rsi
call fcn.1400085d0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140149000
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1400193d0
jmp 0x140033c17
lea rcx, [0x140240898]
call fcn.140148dd8
cmp dword [0x140240898], 0xffffffff
jne 0x140033bff
mov ecx, 8
call fcn.1401489b4
mov rbx, rax
mov rcx, rax
call fcn.1400193c0
mov qword [0x140240890], rbx
lea rcx, [0x140240898]
call fcn.140148d78
jmp 0x140033bff