joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d710
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
mov rax, qword [rcx]
jne 0x14000d745
test rax, rax
jne 0x14000d745
cmp dword [rsi + 0x14], 0
je 0x14000d737
xor eax, eax
jmp 0x14000d745
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x14000d79c
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x14000d765
call fcn.140004b90
mov rcx, qword [rsi]
call fcn.140010470
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x14000d78e
call fcn.140004b90
mov rcx, qword [rsi + 8]
call fcn.140010470
mov qword [rsi + 8], 0
mov rax, qword [rsi]
xor ecx, ecx
mov rdx, rax
mov qword [rsi + 0x10], 0
mov rax, rcx
mov r14, qword [rdi]
cmp rdx, r14
je 0x14000d7ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000d7cc
call fcn.140004b90
mov rcx, qword [rsi]
call fcn.140010470
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14000d7de
mov qword [rsi], r14
call fcn.140004b90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov r14, qword [rdi + 8]
cmp rax, r14
je 0x14000d839
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jb 0x14000d81e
call fcn.140004b90
mov rcx, qword [rsi + 8]
call fcn.140010470
mov qword [rsi + 8], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14000d831
mov qword [rsi + 8], r14
call fcn.140004b90
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

Function at 0x14000d960
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x14000da18
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x38], 0
mov r14, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call r14
mov rbx, rax
call r14
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 0x14000da1c
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x14000da2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x14000da04
call fcn.140004b90
mov rcx, qword [rsi]
call fcn.140010470
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x14000da24
mov qword [rsi], r14
call fcn.140004b90
jmp 0x14000da24
mov bl, 1
jmp 0x14000da31
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test edi, edi
setne bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140093e10
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x14000e670
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 0x14000e690
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 0x14000ee14
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.14000d8f0
test al, al
je 0x14000ee47
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 rdi, [rsi + 0x38]
mov rcx, rdi
xor edx, edx
call fcn.14000ef08
mov rbx, qword [rsi + 0x58]
test rbx, rbx
je 0x14000eebe
lea r14, [rsi + 0x58]
mov r15, qword [rsi + 0x60]
cmp rbx, r15
je 0x14000ee7f
mov rcx, rbx
call fcn.14000e160
add rbx, 0x18
cmp rbx, r15
jne 0x14000ee6b
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x68]
sub rdx, rbx
cmp rdx, 0x1000
jb 0x14000eea7
mov rax, qword [rbx - 8]
add rbx, 0xfffffffffffffff8
sub rbx, rax
cmp rbx, 0x20
jae 0x14000ef02
add rdx, 0x27
mov rbx, rax
mov rcx, rbx
call fcn.140093b30
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x14000eecc
call fcn.14009b054
mov rcx, rdi
call fcn.14000ef34
lea rcx, [rsi + 0x28]
call fcn.140003a30
lea rcx, [rsi + 0x20]
call fcn.140003a30
lea rcx, [rsi + 0x18]
call fcn.140003a30
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.14000d850
call fcn.14009afa0
int3
Function at 0x14000f7d8
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.14000d8f0
test al, al
je 0x14000f7fa
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 0x1400191c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov esi, ecx
mov edi, 3
call fcn.140033380
test al, al
jne 0x1400191de
call fcn.140033350
movzx edi, al
mov ecx, esi
mov edx, edi
call fcn.140005190
mov eax, dword [0x1400ef198]
mov ecx, dword [0x1400ee910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x140019220
movsxd rdx, esi
inc rdx
lea rcx, [0x1400ef188]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.14002ff90
lea rcx, [0x1400ef198]
call fcn.140093ea4
cmp dword [0x1400ef198], 0xffffffff
jne 0x140019208
lea rcx, [0x1400ef188]
xor edx, edx
call fcn.14002ffe0
lea rcx, [0x1400ef198]
call fcn.140093e38
jmp 0x140019208
Function at 0x140021f8c
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 [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140022086
mov edi, dword [rsp + 0xc0]
mov r11d, dword [rsp + 0xb8]
mov ecx, dword [rsp + 0xb0]
mov eax, dword [rsp + 0xa8]
mov r10d, dword [rsp + 0xa0]
cmp qword [r8 + 0x18], 8
jb 0x140021ff2
mov r8, qword [r8]
mov rsi, qword [rdx]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], r11d
mov dword [rsp + 0x20], ecx
mov qword [rsp + 0x38], 0
mov rcx, r8
mov edx, r9d
mov r8d, r10d
mov r9d, eax
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
cmp rax, 0xffffffffffffffff
je 0x140022070
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rbx, [rsp + 0x40]
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor r15d, r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov dword [rsp + 0x30], 3
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
cmp eax, 1
sbb r15, r15
or r15, qword [rbx]
jmp 0x140022077
mov r15, 0xffffffffffffffff
mov qword [r14], r15
xor eax, eax
cmp r15, 0xffffffffffffffff
sete al
lea esi, [rax + rax*4]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140093e10
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140023b96
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 rbp
push rbx
sub rsp, 0xa8
mov rsi, rcx
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0xa0], rax
test dl, dl
je 0x140023c23
lea rax, [0x140037e60]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x1400ccfb0]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400231fa
lea rax, [0x140037ed0]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 1
lea r8, str.NtUnmapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.1400231fa
jmp 0x140023c2e
cmp qword [rsi + 0x10], 0
je 0x140023dd1
mov rax, qword [rsi]
mov rdi, qword [rax]
mov dword [rsp + 0x20], 1
mov r13, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r8d, 0x10000
mov rcx, rdi
xor edx, edx
mov r9d, 0x2000
call r13
mov r14, rax
mov r12, qword [rsi + 0x10]
shl r12, 6
lea rbx, [r12 + 0x60]
mov rcx, rbx
call fcn.140022d88
mov r15, rax
mov edx, r15d
and edx, 0xfffff000
add rdx, r14
and r15d, 0xfff
add r12, 0x105f
and r12, 0xfffffffffffff000
mov dword [rsp + 0x20], 0x40
mov rcx, rdi
mov r8, r12
mov r9d, 0x1000
call r13
mov r14, rax
test rax, rax
jne 0x140023ce3
lea rdx, str....._sandboxwin_srcinterception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x40]
mov rcx, r12
mov r8d, 0x182
call fcn.140005370
mov rcx, r12
call fcn.140005500
mov rcx, r12
call fcn.140005510
add r14, r15
movaps xmm0, xmmword [0x1400cb8d0]
lea r15, [rsp + 0x40]
movups xmmword [r15 + 0x10], xmm0
movups xmmword [r15 + 0x50], xmm0
movups xmmword [r15 + 0x40], xmm0
movups xmmword [r15 + 0x30], xmm0
movups xmmword [r15 + 0x20], xmm0
mov qword [r15], rbx
mov dword [r15 + 0x18], 0
mov qword [r15 + 8], 0x20
lea rcx, [0x1400ef260]
mov r8d, 0xd8
xor edx, edx
call fcn.1400bf140
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.140024098
mov ebp, eax
test eax, eax
jne 0x140023dd3
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x38]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x40]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x140023dd3
cmp qword [rsp + 0x38], 0x20
jne 0x140023dd3
lea rax, [rsp + 0x34]
mov dword [rax], 0xaaaaaaaa
mov qword [rsp + 0x20], rax
mov rcx, rdi
mov rdx, r14
mov r8, rbx
mov r9d, 0x20
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [rsi]
lea rdx, str.g_originals
lea r8, [0x1400ef260]
mov r9d, 0xd8
call fcn.14000f352
mov ebp, eax
jmp 0x140023dd3
xor ebp, ebp
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140093e10
mov eax, ebp
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140026e10
Capabilities:
Query or enumerate registry value

Disassembly:
push rsi
push rdi
sub rsp, 0x48
mov rsi, r8
mov rax, qword [0x1400eb280]
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 0x140026e8b
mov eax, dword [rsp + 0x3c]
add eax, 0xfffffffd
mov edi, 0x3f4
cmp eax, 1
ja 0x140026e8b
cmp dword [rsp + 0x38], 4
jne 0x140026e8b
mov eax, dword [rsp + 0x34]
mov dword [rsi], eax
xor edi, edi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140093e10
mov eax, edi
add rsp, 0x48
pop rdi
pop rsi
ret

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.1400943e0
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.1400bf140
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], r14
lea r9, [rsp + 0x3c]
mov rdx, rdi
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x140027020
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x140026f6c
mov edi, 0x3f4
cmp eax, 1
jne 0x140027020
lea rcx, [rsp + 0x840]
call fcn.14009b320
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x140026fd5
lea r9, [rsp + 0x840]
jmp 0x140026fc8
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.1400bf140
lea rcx, [rsp + 0x840]
mov rdx, rdi
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 0x140027020
lea rcx, [rsp + 0x40]
call fcn.14009b320
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x140026ff5
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.14000d57a
jmp 0x14002701e
mov rbx, rsi
cmp rax, 8
jb 0x140026fe1
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x140027010
mov rbx, rsi
cmp rax, 8
jb 0x140027001
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1400beaa0
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140093e10
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x1400276c0
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 [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x14002775a
mov rsi, rdx
mov rdi, rcx
mov r13d, 0xffffffff
lea rbx, str....._base_rand_util_win.cc
lea r14, str.success
lea r15, [rsp + 0x20]
jmp 0x140027718
add rdi, r12
sub rsi, r12
je 0x14002775a
cmp rsi, r13
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
jne 0x140027710
mov rcx, r15
mov rdx, rbx
mov r8d, 0x52
mov r9, r14
call fcn.140005370
mov rcx, r15
call fcn.140005500
mov rcx, r15
call fcn.140005510
jmp 0x140027710
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140093e10
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002bc4a
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 [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x38], rax
lea r15, [rsp + 0x34]
mov dword [r15], 0xaaaaaaaa
mov qword [rsp + 0x20], r15
mov r8, r9
mov r9d, 8
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002bcf5
movabs rax, 0xaaaaaaaaaaaaaaaa
lea r12, [rsp + 0x28]
mov qword [r12], rax
mov qword [rsp + 0x20], r12
mov rcx, rbx
mov rdx, rdi
mov r8, r14
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, eax
mov r14, qword [r12]
mov r9d, dword [rsp + 0x34]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x14002bcf5
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
jmp 0x14002bcf7
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140093e10
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x14002ea42
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 0x14002eb5b
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x14002eb5b
cmp word [rax + rcx + 0x14], 0x78
jb 0x14002eb5b
mov rsi, r8
mov rdi, rdx
mov edx, dword [rax + rcx + 0x88]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x1400c48f0]
test rax, rax
je 0x14002eb5b
cmp rdi, 0xffff
jbe 0x14002eb94
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x1400c48f0]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x14002eb5b
lea r15, [rax + rcx*4]
lea r13, [rdi + 1]
mov qword [rsp + 0x20], rax
mov rbp, rax
mov r12, r15
sub r12, rbp
mov rax, r12
sar rax, 2
shr r12, 0x3f
add r12, rax
and r12, 0xfffffffffffffffe
mov edx, dword [rbp + r12*2]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [0x1400c48f0]
mov cl, byte [rdi]
test cl, cl
je 0x14002eb2c
mov rdx, r13
cmp cl, byte [rax]
jne 0x14002eb2e
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x14002eb1c
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x14002eb6e
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x14002eae6
jmp 0x14002eb5d
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 [0x1400c48f0]
sub r12, qword [rsp + 0x20]
sar r12, 1
movzx edi, word [rax + r12]
add di, word [r14 + 0x10]
mov word [rsi], di
mov al, 1
jmp 0x14002eb5d
Function at 0x14002ec50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [rcx + 8]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x14002ec87
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14002ec87
movzx edx, word [rax + rcx + 0x14]
cmp edx, 0xf0
jne 0x14002ec87
movzx eax, word [rax + rcx + 0x18]
cmp eax, 0x20b
sete al
ret
xor eax, eax
ret
Function at 0x14002fb60
Capabilities:
Get thread local storage value

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

Function at 0x14002fb90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1400eb338]
cmp ecx, 0xffffffff
je 0x14002fbc1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x14002fbc6
call fcn.14002fd70
mov eax, dword [0x1400f0b68]
mov ecx, dword [0x1400ee910]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 0x10]
jg 0x14002fd1c
mov rbx, qword [0x1400f0b60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x14002fd0f
mov rcx, qword [0x1400ef358]
inc rcx
mov edx, 0x100
lea rax, [0x1400ef360]
nop dword [rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x14002fc4e
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x14002fc4e
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x14002fc20
jmp 0x14002fc72
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x1400ef358], r8
mov qword [rsi], r8
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [rsi + 8], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
mov rsi, qword [rsi]
cmp rsi, 0x100
jb 0x14002fcf9
mov ecx, 0x100
call fcn.14000f9e0
mov rdi, rax
mov rcx, rsi
call fcn.14000f9e0
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.14000fee0
cmp qword [rsp + 0x30], 0
je 0x14002fcf9
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.1400053f0
mov rcx, rsi
call fcn.140005500
mov rcx, rsi
call fcn.140005510
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140093e10
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.140013a20
jmp 0x14002fc03
lea rcx, [0x1400f0b68]
call fcn.140093ea4
cmp dword [0x1400f0b68], 0xffffffff
jne 0x14002fbeb
mov ecx, 8
call fcn.140093af0
mov rbx, rax
mov rcx, rax
call fcn.140013a10
mov qword [0x1400f0b60], rbx
lea rcx, [0x1400f0b68]
call fcn.140093e38
jmp 0x14002fbeb
Function at 0x14002fd70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.1400943e0
sub rsp, rax
mov rax, qword [0x1400eb280]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x1400eb338]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x14002fe62
lea rcx, [rsp + 0x2c]
call fcn.14003b1d0
test al, al
jne 0x14002fde3
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x101
call fcn.140005370
mov rcx, rsi
call fcn.140005500
mov rcx, rsi
call fcn.140005510
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x14002fe40
lea rcx, [rsp + 0x2c]
call fcn.14003b1d0
test al, al
je 0x14002fe01
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x14002fe32
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key___key___PlatformThreadLocalStorage::TLS_KEY_OUT_OF_INDEXES
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x10b
call fcn.140005370
mov rcx, rsi
call fcn.140005500
mov rcx, rsi
call fcn.140005510
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1400eb338], ecx
mov ecx, dword [rsp + 0x2c]
je 0x14002fe62
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400eb338]
mov dword [rsp + 0x2c], ecx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
and esi, 3
je 0x14002fede
xor ecx, ecx
call fcn.14000f890
mov rdi, rax
mov ecx, esi
call fcn.14000f890
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.14000fee0
cmp qword [rsp + 0x30], 0
je 0x14002fede
lea rdx, str....._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x20]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x11d
call fcn.1400053f0
mov rcx, rsi
call fcn.140005500
mov rcx, rsi
call fcn.140005510
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.1400bf140
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140093fa0
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400beaa0
mov ecx, dword [rsp + 0x2c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140093e10
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x14002ff50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1400eb338]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14002ff80
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x14002ff80
mov rax, qword [rax + rcx]
jmp 0x14002ff82
xor eax, eax
add rsp, 0x20
pop rsi
ret