joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Enumerate processes

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x140016008]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
movzx eax, byte [0x140014648]
mov rdi, 0xffffffffffffffff
movups xmm0, xmmword [str.c:userspublic_test.dll]
mov byte [r11 - 0x20], al
lea rax, [r11 - 0x38]
movsd xmm1, qword [0x140014640]
movups xmmword [r11 - 0x38], xmm0
movsd qword [r11 - 0x28], xmm1
inc rdi
cmp byte [rax + rdi], 0
jne 0x140001055
mov eax, dword [0x140014618]
lea rcx, str.kernel32.dll
movsd xmm0, qword [str.LoadLibraryA]
mov dword [rsp + 0x288], eax
movzx eax, byte [0x14001461c]
mov byte [rsp + 0x28c], al
movsd qword [rsp + 0x280], xmm0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
xor esi, esi
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140001117
lea rdx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14000110e
nop dword [rax + rax]
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x6c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x14000110a
lea rdx, [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010e0
jmp 0x14000110e
mov esi, dword [rsp + 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, esi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8d, edi
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x8000
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x30], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.1400011a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140003a78
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400038a4

Function at 0x1004010e0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call sub.cygwin1.dll___getreent
mov rcx, qword [rax + 0x18]
lea r9, str._______________Q_msgkey____M_shmkey____S_semkey__...
lea r8, str.usage:_ipcrm___q_msqid____m_shmid____s_semid_
lea rdx, str._s_n_s_n
call sub.cygwin1.dll_fprintf
mov ecx, 1
call sub.cygwin1.dll_exit
nop
nop word cs:[rax + rax]
Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62

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]
lea r9, str._J_ms8m
mov r8d, 3
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], 2
call sub.jli.dll_JLI_Launch
mov rbx, qword [rsp + 0x80]
add rsp, 0x70
pop rdi
ret

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140084820
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140084968
Function at 0x14008a2f4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14008a37b
mov rsi, rbx
cmp word [rax], bp
je 0x14008a33a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14008a324
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14008a320
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140089214
mov rdi, rax
test rax, rax
je 0x14008a368
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140083dc0
mov rbp, rdi
xor ecx, ecx
call fcn.140087948
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14000264c
Capabilities:
Parse pe header

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

Function at 0x140465dc5
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp], rsi
mov esi, 0x9bb8bb32
shr rsi, 0x42
sub rsi, 0xffffffff9baad1b7
push r9
sub sil, sil
lea rsi, [0x14046cd08]
mov r9d, 0xdeb139a2
movzx r9d, byte [r11]
push 0x48968781
xor r9d, eax
and r9d, 0xff
mov r9d, dword [rsi + r9*4]
shr eax, 8
shl word [rsp + 3], 0x64
xor eax, r9d
inc r11
xor eax, 0xee22e7b2
dec r8
lea rsp, [rsp + 8]
jne 0x140465de5
call fcn.140464625
Function at 0x1400053b4
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x1400053f8
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.1400074a0
lea rax, [rsi + 1]
cmp rax, 2
jb case.default.0x1400053f1
mov qword [rdi], rsi
call fcn.140010b70
mov ecx, ebx
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
jg 0x14013c18f
push rdi
push rax
add byte [rbx], al
push rdx
and byte [rcx + 0x2e], ah
jge 0x14013c19a
add byte [rdx + 0x20], dl
push rdx
and byte [rcx + 0x60], bl
and byte [rdi + 0x7d], bh
add byte [rdx + 0x34], dl
push rdx
xor al, 0x2e
add byte [rsi + 0x20], al
invalid
invalid
outsb dx, byte [rsi]
push rcx
push rcx
xor eax, dword [rax]
push rax
and byte [rsi + rbp + 0x76], ch
invalid

Function at 0x140007890
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x188
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x180], rax
lea rcx, [rsp + 0x64]
mov r8d, 0x118
xor edx, edx
call fcn.140067c70
mov dword [rsp + 0x60], 0x11c
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [rsp + 0x2c], 0
mov ecx, dword [rsp + 0x64]
mov edx, dword [rsp + 0x68]
lea rax, [rsp + 0x2c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x98
call fcn.140065764
mov rsi, rax
mov edi, dword [rsp + 0x2c]
mov eax, dword [0x1400b1000]
mov ecx, dword [0x1400b31f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14000795c
lea r8, [0x1400b0fd0]
lea rdx, [rsp + 0x60]
mov rcx, rsi
mov r9d, edi
call fcn.1400079d0
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140065b10
mov rax, rsi
add rsp, 0x188
pop rdi
pop rsi
ret
lea rcx, [0x1400b1000]
call fcn.140065628
cmp dword [0x1400b1000], 0xffffffff
jne 0x140007928
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movaps xmm0, xmmword [rsp + 0x30]
movaps xmm1, xmmword [rsp + 0x40]
movaps xmm2, xmmword [rsp + 0x50]
movups xmmword [0x1400b0ff0], xmm2
movups xmmword [0x1400b0fe0], xmm1
movups xmmword [0x1400b0fd0], xmm0
lea rcx, [0x1400b1000]
call fcn.1400655c8
jmp 0x140007928
Function at 0x140018700
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 0x140018734
test rax, rax
jne 0x140018734
cmp dword [rsi + 0x14], 0
je 0x140018726
xor eax, eax
jmp 0x140018734
xor eax, eax
cmp qword [rsi + 8], 0
mov edx, 0
je 0x14001878b
lea rcx, [rax + 1]
cmp rcx, 2
jb 0x140018754
call fcn.140010b70
mov rcx, qword [rsi]
call fcn.140019550
mov qword [rsi], 0
xor eax, eax
mov rcx, qword [rsi + 8]
lea rdx, [rcx + 1]
cmp rdx, 2
jb 0x14001877d
call fcn.140010b70
mov rcx, qword [rsi + 8]
call fcn.140019550
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 0x1400187da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x1400187bc
call fcn.140010b70
mov rcx, qword [rsi]
call fcn.140019550
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400187ce
mov qword [rsi], rbx
call fcn.140010b70
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi + 8]
mov rbp, qword [rdi + 8]
cmp rax, rbp
je 0x14001882a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
add rax, 1
cmp rax, 2
jb 0x14001880f
call fcn.140010b70
mov rcx, qword [rsi + 8]
call fcn.140019550
mov qword [rsi + 8], 0
lea rax, [rbp + 1]
cmp rax, 2
jb 0x140018822
mov qword [rsi + 8], rbp
call fcn.140010b70
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 0x140018950
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x140018a06
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 0x140018a0a
mov rbx, qword [rsp + 0x38]
cmp qword [rsi], rbx
je 0x140018a1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov rax, qword [rsi]
add rax, 1
cmp rax, 2
jb 0x1400189f2
call fcn.140010b70
mov rcx, qword [rsi]
call fcn.140019550
mov qword [rsi], 0
lea rax, [rbx + 1]
cmp rax, 2
jb 0x140018a12
mov qword [rsi], rbx
call fcn.140010b70
jmp 0x140018a12
mov bl, 1
jmp 0x140018a1f
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.140065b10
mov eax, ebx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
ret
Function at 0x140018c1c
Capabilities:
Terminate process

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
call fcn.1400188e0
test al, al
je 0x140018c4b
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.140018cf8
mov rcx, qword [rsi + 0x58]
test rcx, rcx
je 0x140018ca1
mov rdx, qword [rsi + 0x68]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140018c8a
mov rax, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rax
cmp rcx, 0x20
jae 0x140018cf1
add rdx, 0x27
mov rcx, rax
lea rbx, [rsi + 0x58]
call fcn.1400659f8
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], 0
mov rcx, qword [rsi + 0x50]
test rcx, rcx
je 0x140018caf
call fcn.14006c0e4
mov rdi, qword [rdi]
test rdi, rdi
je 0x140018cc7
mov rcx, rdi
call fcn.140030c8a
mov rcx, rdi
call fcn.1400657a0
lea rcx, [rsi + 0x28]
call fcn.1400074a0
lea rcx, [rsi + 0x20]
call fcn.1400074a0
lea rcx, [rsi + 0x18]
call fcn.1400074a0
mov rcx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140018840
call fcn.14006c06c
int3
Function at 0x14001948c
Capabilities:
Terminate process

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call fcn.1400188e0
test al, al
je 0x1400194ae
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 0x14001bba0
Capabilities:
Query or enumerate registry value

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

Function at 0x14001d51a
Capabilities:
Compare security identifiers

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x80], rax
cmp byte [rcx + 0x6c], 0
je 0x14001d682
mov rsi, rdx
mov rdi, rcx
lea r9, [rsp + 0x34]
mov dword [r9], 0xaaaaaaaa
lea rdx, [rcx + 0x60]
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8d, 2
call fcn.14001d6b3
mov r15, qword [rbx]
test r15, r15
je 0x14001d689
mov qword [rsp + 0x20], rdi
cmp dword [r15], 0
je 0x14001d676
lea rbx, [r15 + 8]
mov rax, qword [rsp + 0x20]
add rax, 0x30
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov r14, qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rbp, r12
shl rbp, 4
test dword [rbx + rbp + 8], 0xc0000020
jne 0x14001d667
add rbp, rbx
test rsi, rsi
je 0x14001d622
mov rax, qword [rsi]
cmp qword [rsi + 8], rax
je 0x14001d622
mov r13d, 1
xor ecx, ecx
mov rdi, qword [rbp]
mov rdx, rcx
shl rdx, 6
lea rcx, [rdx + rcx*4]
add rcx, rax
call fcn.14001e378
mov rcx, rax
mov rdx, rdi
call r14
test eax, eax
jne 0x14001d667
mov ecx, r13d
mov rax, qword [rsi]
mov rdx, qword [rsi + 8]
sub rdx, rax
sar rdx, 2
movabs rdi, 0xf0f0f0f0f0f0f0f1
imul rdx, rdi
inc r13d
cmp rdx, rcx
ja 0x14001d5d7
mov rdx, qword [rbp]
lea rbp, [rsp + 0x38]
mov rcx, rbp
call fcn.14001df54
mov rdi, qword [rsp + 0x20]
mov rdx, qword [rdi + 0x38]
cmp rdx, qword [rdi + 0x40]
je 0x14001d65a
mov r8d, 0x44
mov rcx, rdx
mov rdx, rbp
call fcn.1400675c0
add qword [rdi + 0x38], 0x44
jmp 0x14001d667
mov rcx, qword [rsp + 0x28]
mov r8, rbp
call fcn.140009cf2
inc r12
mov eax, dword [r15]
cmp r12, rax
jb 0x14001d5a9
mov rcx, r15
call fcn.1400659f8
xor esi, esi
jmp 0x14001d68d
mov esi, 0x3f0
jmp 0x14001d68d
mov esi, dword [rsp + 0x34]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140065b10
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140020843
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 [0x1400af118]
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 0x1400208f1
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 0x1400208f1
test r14d, r14d
setne al
cmp r15, rsi
sete sil
and sil, al
jmp 0x1400208f3
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140065b10
mov eax, esi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140023be0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x1400af0a8]
cmp ecx, 0xffffffff
je 0x140023c03
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and eax, 3
add eax, 0xffffffff
cmp eax, 2
setb al
jmp 0x140023c05
xor eax, eax
add rsp, 0x28
ret
Function at 0x140023c10
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 [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, dword [0x1400af0a8]
cmp ecx, 0xffffffff
je 0x140023c45
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x140023c4a
call fcn.140023e60
mov eax, dword [0x1400b29b8]
mov ecx, dword [0x1400b31f0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140023e0d
mov rbx, qword [0x1400b29b0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140023e00
mov rcx, qword [0x1400b11a0]
add rcx, 1
mov edx, 0x100
lea rax, [0x1400b11b0]
nop
movzx edi, cl
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140023cca
lea edi, [rcx + 1]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rax + rsi*8], 0
je 0x140023cca
add rcx, 2
add rdx, 0xfffffffffffffffe
jne 0x140023ca0
jmp 0x140023cef
lea rcx, [rax + rsi*8]
mov dword [rcx], 1
lea rcx, [rdi + rdi*2]
mov qword [rax + rcx*8 + 8], r14
mov qword [0x1400b11a0], rdi
mov dword [r15], edi
mov eax, dword [rax + rcx*8 + 0x10]
mov dword [r15 + 4], eax
movabs r14, 0xaaaaaaaaaaaaaaaa
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsp + 0x30], r14
mov edi, dword [r15]
cmp edi, 0xffffffff
jne 0x140023d77
mov ecx, 0xffffffff
call fcn.14000ff90
mov rdi, rax
mov ecx, 0xffffffff
call fcn.14000ff90
lea rdx, str.slot____kInvalidSlotValue
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.1400104a0
cmp qword [rsp + 0x30], 0
je 0x140023d74
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea rdi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rdi
mov r8d, 0x199
call fcn.14000bf80
mov rcx, rdi
call fcn.14000bf50
mov rcx, rdi
call fcn.14000bf60
mov edi, dword [r15]
mov qword [rsp + 0x30], r14
cmp edi, 0x100
jl 0x140023de6
mov ecx, 0x100
call fcn.14000ff90
mov rsi, rax
mov ecx, edi
call fcn.14000ff90
lea rdx, str.slot____kThreadLocalStorageSize
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rsi
call fcn.1400104a0
cmp qword [rsp + 0x30], 0
je 0x140023de6
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x19a
call fcn.14000bf80
mov rcx, rsi
call fcn.14000bf50
mov rcx, rsi
call fcn.14000bf60
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140065b10
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rcx, rbx
call fcn.1400255c0
jmp 0x140023c87
lea rcx, [0x1400b29b8]
call fcn.140065628
cmp dword [0x1400b29b8], 0xffffffff
jne 0x140023c6f
mov ecx, 8
call fcn.140065764
mov rbx, rax
mov rcx, rax
call fcn.14001aae0
mov qword [0x1400b29b0], rbx
lea rcx, [0x1400b29b8]
call fcn.1400655c8
jmp 0x140023c6f
Function at 0x140023e60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140065df0
sub rsp, rax
mov rax, qword [0x1400af118]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov ecx, dword [0x1400af0a8]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
jne 0x140023f52
lea rcx, [rsp + 0x2c]
call fcn.140036930
test al, al
jne 0x140023ed3
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea r9, str.PlatformThreadLocalStorage::AllocTLS_key_
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xd3
call fcn.14000bed0
mov rcx, rsi
call fcn.14000bf50
mov rcx, rsi
call fcn.14000bf60
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
jne 0x140023f30
lea rcx, [rsp + 0x2c]
call fcn.140036930
test al, al
je 0x140023ef1
cmp dword [rsp + 0x2c], 0xffffffff
jne 0x140023f22
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, 0xdd
call fcn.14000bed0
mov rcx, rsi
call fcn.14000bf50
mov rcx, rsi
call fcn.14000bf60
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
mov eax, 0xffffffff
lock cmpxchg dword [0x1400af0a8], ecx
mov ecx, dword [rsp + 0x2c]
je 0x140023f52
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1400af0a8]
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 0x140023fce
xor ecx, ecx
call fcn.14000ff90
mov rdi, rax
mov ecx, esi
call fcn.14000ff90
lea rdx, str.GetTlsVectorStateAndValue_key___TlsVectorState::kUninitialized
lea rcx, [rsp + 0x30]
mov r8, rax
mov r9, rdi
call fcn.1400104a0
cmp qword [rsp + 0x30], 0
je 0x140023fce
lea rdx, str..._.._base_threading_thread_local_storage.cc
lea rsi, [rsp + 0x20]
lea r9, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xef
call fcn.14000bf80
mov rcx, rsi
call fcn.14000bf50
mov rcx, rsi
call fcn.14000bf60
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140067c70
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.140065b30
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.1400675c0
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.140065b10
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret

Function at 0x140024040
Capabilities:
Get thread local storage value

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