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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x140013ae9
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]
test eax, eax
setne bl
je 0x140013aed
mov r14, qword [rsp + 0x38]
cmp qword [rsi], r14
je 0x140013afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jb 0x140013ad5
call fcn.14000c0a0
mov rcx, qword [rsi]
call fcn.140017320
mov qword [rsi], 0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140013af5
mov qword [rsi], r14
call fcn.14000c0a0
jmp 0x140013af5
mov bl, 1
jmp 0x140013afd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052880
mov eax, ebx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x140014d90
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 0x140015a9c
Capabilities:
Terminate process

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400139c0
test al, al
je 0x140015acf
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 + 0x30]
mov rcx, rdi
xor edx, edx
call fcn.140015b6a
mov rbx, qword [rsi + 0x50]
test rbx, rbx
je 0x140015b25
lea r14, [rsi + 0x50]
mov r15, qword [rsi + 0x58]
cmp rbx, r15
je 0x140015b07
mov rcx, rbx
call fcn.140014970
add rbx, 0x18
cmp rbx, r15
jne 0x140015af3
mov rbx, qword [r14]
mov rdx, qword [rsi + 0x60]
sub rdx, rbx
mov rcx, rbx
call fcn.1400500c0
xorps xmm0, xmm0
movups xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov rcx, qword [rsi + 0x48]
test rcx, rcx
je 0x140015b33
call fcn.14005ccf0
mov rcx, rdi
call fcn.140015b96
lea rcx, [rsi + 0x28]
call fcn.140003f40
lea rcx, [rsi + 0x20]
call fcn.140003f40
lea rcx, [rsi + 0x18]
call fcn.140003f40
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.140013920
Function at 0x140016954
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400139c0
test al, al
je 0x140016976
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 0x140017900
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov edi, r9d
mov rsi, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
je 0x140017965
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140017998
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400179a0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
je 0x1400179a4
call fcn.14000c0a0
jmp 0x1400179a6
or edi, 8
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x140017998
mov r14, qword [rsp + 0x30]
mov qword [rsp + 0x38], 0
test r14, r14
jne 0x140017a15
jmp 0x140017a39
mov byte [rsi], 0
jmp 0x140017a81
xor ebx, ebx
jmp 0x1400179ae
xor ebx, ebx
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x38], rax
or edi, 8
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 2
xor r15d, r15d
mov rcx, rbx
mov edx, edi
xor r8d, r8d
mov r9d, 1
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
mov r14, qword [rsp + 0x38]
cmovne r15, r14
mov qword [rsp + 0x30], r15
test r15, r15
je 0x140017a67
lea rax, [rbx + 1]
cmp rax, 2
jae 0x140017a9e
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140017a31
mov qword [rsp + 0x38], r14
call fcn.14000c0a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x38]
call fcn.140002f7c
mov rax, qword [rsp + 0x38]
inc rax
cmp rax, 2
jb 0x140017a81
call fcn.14000c0a0
mov rcx, qword [rsp + 0x38]
jmp 0x140017a7c
mov byte [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140017a81
call fcn.14000c0a0
mov rcx, rbx
call fcn.140017320
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140052880
mov rax, rsi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.14000c0a0
mov rcx, rbx
call fcn.140017320
jmp 0x14001797c
Function at 0x140018560
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, qword [rcx]
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
or r8d, 8
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov edx, r8d
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x14001861e
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14001861e
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400185e3
mov qword [rsp + 0x30], rbx
call fcn.14000c0a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.140002f7c
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 2
jb 0x140018621
call fcn.14000c0a0
mov rcx, qword [rsp + 0x30]
call fcn.140017320
jmp 0x140018621
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052880
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140018640
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov eax, r8d
mov rsi, rdx
mov rdx, qword [0x140091088]
xor rdx, rsp
mov qword [rsp + 0x38], rdx
mov rcx, qword [rcx]
movabs rdx, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rdx
or r9d, 8
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov dword [rsp + 0x20], 2
mov edx, r9d
xor r8d, r8d
mov r9d, eax
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x140018701
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x140018701
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400186c6
mov qword [rsp + 0x30], rbx
call fcn.14000c0a0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov rcx, rsi
add rcx, 8
lea rdx, [rsp + 0x30]
call fcn.140002f7c
mov rax, qword [rsp + 0x30]
inc rax
cmp rax, 2
jb 0x140018704
call fcn.14000c0a0
mov rcx, qword [rsp + 0x30]
call fcn.140017320
jmp 0x140018704
mov byte [rsi], 0
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052880
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x14001cef0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1400925d8]
mov ecx, dword [0x140094580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14001cf25
lea rcx, [0x1400925c8]
add rsp, 0x28
jmp fcn.140033d40
lea rcx, [0x1400925d8]
call fcn.140052f34
cmp dword [0x1400925d8], 0xffffffff
jne 0x14001cf15
xorps xmm0, xmm0
movups xmmword [0x1400925c8], xmm0
lea rcx, [0x1400925c8]
xor edx, edx
call fcn.140033dd0
lea rcx, [0x1400925d8]
call fcn.140052ed4
jmp 0x14001cf15
Function at 0x140026e7c
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 [0x140091088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [r14], 0xffffffffffffffff
mov esi, 5
cmp ecx, 3
jne 0x140026f76
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 0x140026ee2
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 0x140026f60
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 0x140026f67
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.140052880
mov eax, esi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140028d06
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, 0xb8
mov rsi, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0xb0], rax
test dl, dl
je 0x140028d93
lea rax, [0x14003b184]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
lea rdi, [0x140078340]
lea r8, str.NtMapViewOfSection
mov rcx, rsi
mov rdx, rdi
mov r9d, 1
call fcn.140028424
lea rax, [0x14003b1ec]
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.140028424
jmp 0x140028d9e
cmp qword [rsi + 0x10], 0
je 0x140028f14
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.14002803c
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
je 0x140028f3c
add r14, r15
movaps xmm0, xmmword [0x140076960]
lea r15, [rsp + 0x50]
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, [0x140092680]
mov r8d, 0xd8
xor edx, edx
call fcn.140054950
mov rcx, rsi
mov rdx, r14
mov r8, rbx
mov r9, r15
call fcn.14002920a
mov ebp, eax
test eax, eax
jne 0x140028f16
movabs rax, 0xaaaaaaaaaaaaaaaa
lea rcx, [rsp + 0x40]
mov qword [rcx], rax
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x50]
mov r9d, 0x20
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov ebp, 0x2a
test eax, eax
je 0x140028f16
cmp qword [rsp + 0x40], 0x20
jne 0x140028f16
lea rax, [rsp + 0x3c]
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, [0x140092680]
mov r9d, 0xd8
call fcn.1400164ce
mov ebp, eax
jmp 0x140028f16
xor ebp, ebp
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140052880
mov eax, ebp
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rdx, str....._sandboxwin_srcinterception.cc
lea r9, str.thunk_base
lea r12, [rsp + 0x48]
mov rcx, r12
mov r8d, 0x182
call fcn.140001100
mov rcx, r12
call fcn.140001220
jmp 0x140028e26
Function at 0x14002a880
Capabilities:
Query or enumerate registry value

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

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

Disassembly:
push r14
push rsi
push rdi
push rbx
mov eax, 0x1048
call fcn.140053060
sub rsp, rax
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x1040], rax
lea r14, [rsp + 0x840]
mov r8d, 0x800
mov rcx, r14
mov dl, 0xaa
call fcn.140054950
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 0x14002aa90
mov eax, dword [rsp + 0x3c]
cmp eax, 2
je 0x14002a9dc
mov edi, 0x3f4
cmp eax, 1
jne 0x14002aa90
lea rcx, [rsp + 0x840]
call fcn.14005d0d8
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14002aa45
lea r9, [rsp + 0x840]
jmp 0x14002aa38
lea rdi, [rsp + 0x40]
mov r8d, 0x800
mov rcx, rdi
mov dl, 0xaa
call fcn.140054950
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 0x14002aa90
lea rcx, [rsp + 0x40]
call fcn.14005d0d8
mov rdi, rax
mov rax, qword [rsi + 0x18]
cmp rax, rdi
jae 0x14002aa65
lea r9, [rsp + 0x40]
mov rcx, rsi
mov rdx, rdi
call fcn.1400076a0
jmp 0x14002aa8e
mov rbx, rsi
cmp rax, 8
jb 0x14002aa51
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x840]
jmp 0x14002aa80
mov rbx, rsi
cmp rax, 8
jb 0x14002aa71
mov rbx, qword [rsi]
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.140054b10
mov word [rbx + rdi*2], 0
xor edi, edi
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140052880
mov eax, edi
add rsp, 0x1048
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x14002bdd0
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 [0x140091088]
xor rax, rsp
mov qword [rsp + 0x28], rax
test rdx, rdx
je 0x14002be64
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]
nop word cs:[rax + rax]
cmp rsi, r13
mov r12d, 0xffffffff
cmovb r12, rsi
mov rcx, rdi
mov edx, r12d
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x14002be46
add rdi, r12
sub rsi, r12
jne 0x14002be20
jmp 0x14002be64
mov rcx, r15
mov rdx, rbx
mov r8d, 0x53
mov r9, r14
call fcn.140001100
mov rcx, r15
call fcn.140001220
jmp 0x14002be3c
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140052880
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14002f7e4
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 [0x140091088]
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 0x14002f88f
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 0x14002f88f
test ebp, ebp
setne al
cmp r14, rsi
sete sil
and sil, al
jmp 0x14002f891
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140052880
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x1400329ae
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 0x140032ac7
mov rbx, rcx
mov rax, qword [rcx + 8]
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx + 0x84], 0
je 0x140032ac7
cmp word [rax + rcx + 0x14], 0x78
jb 0x140032ac7
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 [case.0x140042b80.0]
test rax, rax
je 0x140032ac7
cmp rdi, 0xffff
jbe 0x140032b00
mov r14, rax
mov edx, dword [rax + 0x20]
mov rax, qword [rbx]
mov rax, qword [rax + 8]
mov rcx, rbx
call qword [case.0x140042b80.0]
mov ecx, dword [r14 + 0x18]
test rcx, rcx
je 0x140032ac7
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 [case.0x140042b80.0]
mov cl, byte [rdi]
test cl, cl
je 0x140032a98
mov rdx, r13
cmp cl, byte [rax]
jne 0x140032a9a
inc rax
mov cl, byte [rdx]
inc rdx
test cl, cl
jne 0x140032a88
xor ecx, ecx
lea r12, [r12*2]
add r12, rbp
movzx eax, byte [rax]
cmp cl, al
je 0x140032ada
movzx ecx, cl
lea rdx, [r12 + 4]
cmp ecx, eax
cmovg rbp, rdx
cmovs r15, r12
xor eax, eax
cmp rbp, r15
jne 0x140032a52
jmp 0x140032ac9
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 [case.0x140042b80.0]
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 0x140032ac9
Function at 0x140032bbc
Capabilities:
Parse pe header

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

Function at 0x140033960
Capabilities:
Get thread local storage value

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

Function at 0x140033990
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ecx, dword [0x140091048]
cmp ecx, 0xffffffff
je 0x1400339c1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400339c6
call fcn.140033b60
mov eax, dword [0x140093f98]
mov ecx, dword [0x140094580]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140033b15
mov rbx, qword [0x140093f90]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140033acc
mov rcx, qword [0x140092788]
inc rcx
mov edx, 0x100
lea rax, [0x140092790]
nop dword [rax]
movzx r8d, cl
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x140033a4e
lea r8d, [rcx + 1]
movzx r8d, r8b
lea r9, [r8 + r8*2]
cmp dword [rax + r9*8], 0
je 0x140033a4e
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140033a20
jmp 0x140033a72
lea rcx, [rax + r9*8]
mov dword [rcx], 1
lea rcx, [r8 + r8*2]
mov qword [rax + rcx*8 + 8], rdi
mov qword [0x140092788], 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 + 0x40], rax
mov rsi, qword [rsi]
cmp rsi, 0x100
jae 0x140033ad9
xor eax, eax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140033ab6
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x38]
call fcn.140001220
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140052880
nop
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
call fcn.14001f1e0
jmp 0x140033a03
mov ecx, 0x100
call fcn.140016ee0
mov rdi, rax
mov rcx, rsi
call fcn.140016ee0
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.slot____kThreadLocalStorageSize
xor ecx, ecx
mov r8d, 0x1c7
call fcn.140017230
jmp 0x140033a98
lea rcx, [0x140093f98]
call fcn.140052f34
cmp dword [0x140093f98], 0xffffffff
jne 0x1400339eb
mov ecx, 8
call fcn.1400528a8
mov rbx, rax
mov rcx, rax
call fcn.14001f1d0
mov qword [0x140093f90], rbx
lea rcx, [0x140093f98]
call fcn.140052ed4
jmp 0x1400339eb
Function at 0x140033b60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1058
call fcn.140053060
sub rsp, rax
mov rax, qword [0x140091088]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov ecx, dword [0x140091048]
mov dword [rsp + 0x4c], ecx
cmp ecx, 0xffffffff
jne 0x140033bf8
lea rcx, [rsp + 0x4c]
call fcn.14003bcf0
test al, al
je 0x140033ce2
mov ecx, dword [rsp + 0x4c]
cmp ecx, 0xffffffff
jne 0x140033bd6
lea rcx, [rsp + 0x4c]
call fcn.14003bcf0
test al, al
je 0x140033d10
cmp dword [rsp + 0x4c], 0xffffffff
je 0x140033d10
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x4c]
mov eax, 0xffffffff
lock cmpxchg dword [0x140091048], ecx
mov ecx, dword [rsp + 0x4c]
je 0x140033bf8
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x140091048]
mov dword [rsp + 0x4c], ecx
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
and esi, 3
jne 0x140033ca7
xor eax, eax
mov qword [rsp + 0x50], rax
test rax, rax
je 0x140033c39
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.140001220
lea rsi, [rsp + 0x50]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140054950
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x53]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.1400528e4
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140054b10
mov ecx, dword [rsp + 0x4c]
mov rdx, rdi
or rdx, 3
call sub.KERNEL32.dll_TlsSetValue
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.140052880
mov rax, rdi
add rsp, 0x1058
pop rdi
pop rsi
ret
xor ecx, ecx
call fcn.140016e70
mov rdi, rax
mov ecx, esi
call fcn.140016e70
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
xor ecx, ecx
mov r8d, 0x11d
call fcn.140017230
jmp 0x140033c1b
lea rdx, str....._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x40]
mov rcx, rsi
mov r8d, 0x101
call fcn.140001100
mov rcx, rsi
call fcn.140001220
jmp 0x140033ba2
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 + 0x38]
mov rcx, rsi
mov r8d, 0x10b
call fcn.140001100
mov rcx, rsi
call fcn.140001220
jmp 0x140033bc8

Function at 0x140033d40
Capabilities:
Get thread local storage value

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