joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400cb680
Capabilities:
Modify service

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x1c0
mov r15, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
movzx eax, byte [rdx + 0x57]
test al, al
jns 0x1400cb6b5
mov rax, qword [rdx + 0x48]
mov rbx, qword [rdx + 0x40]
jmp 0x1400cb6b9
lea rbx, [rdx + 0x40]
test rax, rax
cmove rbx, rax
mov rax, qword [rdx + 0x28]
xor edi, edi
cmp rax, qword [rdx + 0x30]
cmovne rdi, rax
movzx eax, byte [rdx + 0x27]
test al, al
jns 0x1400cb6e0
mov rax, qword [rdx + 0x18]
mov rsi, qword [rdx + 0x10]
jmp 0x1400cb6e4
lea rsi, [rdx + 0x10]
test rax, rax
cmove rsi, rax
mov r9d, dword [rdx + 0xc]
mov eax, dword [rdx + 4]
mov r8d, dword [rdx + 8]
mov rcx, qword [r15 + 0xd0]
mov qword [rsp + 0x50], rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rdi
movups xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x20], rsi
mov edx, eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
mov edi, eax
test eax, eax
jne 0x1400cb7c1
mov ecx, 1
call fcn.14004c5c0
test al, al
je 0x1400cb7c1
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x78]
mov r8d, 0x1d1
mov r9d, 1
call fcn.1401944b0
lea rcx, [rsp + 0x88]
lea rdx, str.Failed_to_change_service_config
mov r8d, 0x20
call fcn.140124730
mov r14, rax
lea rbx, [rsp + 0x60]
mov rcx, r15
mov rdx, rbx
call fcn.1400ca1a0
cmp byte [rbx + 0x17], 0
jns 0x1400cb79b
mov rbx, qword [rsp + 0x60]
mov rcx, r14
mov rdx, rbx
call fcn.1401945e0
cmp byte [rsp + 0x77], 0
jns 0x1400cb7b7
mov rcx, qword [rsp + 0x60]
call fcn.140142744
lea rcx, [rsp + 0x78]
call fcn.140194530
test edi, edi
setne bl
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x1c0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x1400cbc30
Capabilities:
Create service

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
mov r15, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov rax, qword [rdx + 0x28]
xor esi, esi
cmp rax, qword [rdx + 0x30]
cmovne rsi, rax
cmp byte [rdx + 0x27], 0
jns 0x1400cbc72
mov r14, qword [rdx + 0x10]
jmp 0x1400cbc76
lea r14, [rdx + 0x10]
cmp byte [rdx + 0x57], 0
jns 0x1400cbc82
mov r12, qword [rdx + 0x40]
jmp 0x1400cbc86
lea r12, [rdx + 0x40]
mov edi, dword [rdx + 0xc]
mov r13d, dword [rdx + 4]
mov ebp, dword [rdx + 8]
lea rbx, [rsp + 0x80]
mov rcx, r15
mov rdx, rbx
call fcn.1400ca1a0
cmp byte [rbx + 0x17], 0
jns 0x1400cbcb1
mov rbx, qword [rsp + 0x80]
mov rcx, qword [r15 + 0xc8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
mov qword [rsp + 0x50], rsi
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], r13d
mov rdx, rbx
mov r8, r12
mov r9d, 0x10003
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x1400cbd0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.14012aa20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp byte [rsp + 0x97], 0
jns 0x1400cbd22
mov rcx, qword [rsp + 0x80]
call fcn.140142744
test rdi, rdi
je 0x1400cbd76
call fcn.14012aa20
cmp qword [r15 + 0xd0], rdi
je 0x1400cbe12
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp qword [r15 + 0xd0], 0
je 0x1400cbd5d
call fcn.14012aa20
mov rcx, qword [r15 + 0xd0]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov qword [r15 + 0xd0], rdi
call fcn.14012aa20
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400cbe12
mov ecx, 1
call fcn.14004c5c0
test al, al
je 0x1400cbe12
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._chrome_installer_util_install_service_work_item_impl.cc
lea rcx, [rsp + 0x80]
mov r8d, 0x28a
mov r9d, 1
call fcn.1401944b0
lea rcx, [rsp + 0x90]
lea rdx, str.Failed_to_create_service
mov r8d, 0x19
call fcn.140124730
mov r14, rax
lea rbx, [rsp + 0x68]
mov rcx, r15
mov rdx, rbx
call fcn.1400ca1a0
cmp byte [rbx + 0x17], 0
jns 0x1400cbde9
mov rbx, qword [rsp + 0x68]
mov rcx, r14
mov rdx, rbx
call fcn.1401945e0
cmp byte [rsp + 0x7f], 0
jns 0x1400cbe05
mov rcx, qword [rsp + 0x68]
call fcn.140142744
lea rcx, [rsp + 0x80]
call fcn.140194530
test rdi, rdi
setne bl
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0x1c8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400ceb00
Capabilities:
Encrypt data using openssl rsa

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov r14, rdx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [0x1402961a0]
lea rdx, [rsp + 0x20]
movaps xmmword [rdx], xmm0
mov r8d, 6
call fcn.1400ce9e0
xor ebp, ebp
test eax, eax
je 0x1400ceb8b
lea rcx, [rsp + 0x20]
call fcn.1400ce760
movzx edi, byte [reloc.OLEAUT32.dll_VariantCopy]
cmp rax, rdi
jne 0x1400ceba5
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140052730
lea rsi, [0x1402b3b70]
test dil, dil
je 0x1400ceb81
lea rdx, [0x1402b3b74]
mov rcx, rax
mov r8, rbx
call fcn.140145910
test eax, eax
jne 0x1400ceba5
mov eax, dword [rsi]
mov dword [r14], eax
mov ebp, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140143020
mov eax, ebp
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea rcx, [rsp + 0x20]
call fcn.1400ce760
movzx edi, byte [reloc.OLEAUT32.dll_VariantInit]
cmp rax, rdi
jne 0x1400cebea
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140052730
lea rsi, [0x1402b3c38]
test dil, dil
je 0x1400ceb81
lea rdx, [0x1402b3c3c]
mov rcx, rax
mov r8, rbx
call fcn.140145910
test eax, eax
je 0x1400ceb81
lea rcx, [rsp + 0x20]
call fcn.1400ce760
movzx edi, byte [reloc.OLEAUT32.dll_VariantInit]
cmp rax, rdi
jne 0x1400cec37
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140052730
lea rsi, [0x1402b3d00]
test dil, dil
je 0x1400ceb81
lea rdx, [0x1402b3d04]
mov rcx, rax
mov r8, rbx
call fcn.140145910
test eax, eax
je 0x1400ceb81
lea rcx, [rsp + 0x20]
call fcn.1400ce760
movzx edi, byte [0x1402b3dd5]
cmp rax, rdi
jne 0x1400cec84
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140052730
lea rsi, [0x1402b3dc8]
test dil, dil
je 0x1400ceb81
lea rdx, [0x1402b3dcc]
mov rcx, rax
mov r8, rbx
call fcn.140145910
test eax, eax
je 0x1400ceb81
lea rcx, [rsp + 0x20]
call fcn.1400ce760
movzx edi, byte [0x1402b3ea5]
cmp rax, rdi
jne 0x1400ceb8b
mov rbx, rax
lea rcx, [rsp + 0x20]
call fcn.140052730
lea rsi, [0x1402b3e98]
test dil, dil
je 0x1400ceb81
lea rdx, [0x1402b3e9c]
mov rcx, rax
mov r8, rbx
call fcn.140145910
test eax, eax
je 0x1400ceb81
jmp 0x1400ceb8b
Function at 0x1400cfb60
Capabilities:
Create pipe

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x188
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x180], rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rsp + 0x40], xmm0
test dl, dl
je 0x1400cfc4d
lea rdi, [rsp + 0x6c]
xor r14d, r14d
mov r8d, 0x110
mov rcx, rdi
xor edx, edx
call fcn.140145e20
mov dword [rdi - 0xc], 0x11c
mov rbx, qword [sym.imp.KERNEL32.dll_VerSetConditionMask]
xor ecx, ecx
mov edx, 2
mov r8b, 3
call rbx
mov rcx, rax
mov edx, 1
mov r8b, 3
call rbx
mov rcx, rax
mov edx, 0x20
mov r8b, 3
call rbx
mov qword [rdi - 8], 6
mov word [rdi + 0x108], 0
lea rcx, [rsp + 0x60]
mov edx, 0x23
mov r8, rax
call qword [sym.imp.KERNEL32.dll_VerifyVersionInfoW]
mov edi, 0x80003
test eax, eax
je 0x1400cfc55
xorps xmm0, xmm0
lea r14, [rsp + 0x40]
movaps xmmword [r14], xmm0
mov qword [r14 + 0x10], 0
mov dword [r14], 0x18
xor ecx, ecx
call fcn.1402211c0
mov qword [r14 + 8], rax
mov dword [r14 + 0x10], 1
jmp 0x1400cfc55
mov edi, 3
xor r14d, r14d
cmp byte [rsi + 0x17], 0
jns 0x1400cfc5e
mov rsi, qword [rsi]
mov qword [rsp + 0x38], r14
mov eax, 0x200
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
mov dword [rsp + 0x30], 0
mov rcx, rsi
mov edx, edi
mov r8d, 6
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rsi, rax
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x188
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1400d6120
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovb eax, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400d6188
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400d6191
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400d6171
int3
mov rcx, qword [rcx + 8]
jmp 0x1400d6120
Function at 0x1400d61a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov ecx, 0xffffffff
cmp r8, rcx
mov ebx, 0xffffffff
cmovb ebx, r8d
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x2c]
mov r15, qword [sym.imp.KERNEL32.dll_ReadFile]
mov r12, qword [sym.imp.KERNEL32.dll_GetFileType]
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, ebx
mov r9, r14
call r15
test eax, eax
je 0x1400d6248
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x1400d6237
cmp eax, 0xffffffff
je 0x1400d625c
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov rcx, rdi
call r12
cmp eax, 3
je 0x1400d61e6
mov eax, dword [rsp + 0x2c]
jmp 0x1400d6217
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x6d
setne sil
neg rsi
jmp 0x1400d6219
int3

Function at 0x1400d6570
Capabilities:
Clear file content

Disassembly:
push rsi
push rdi
sub rsp, 0x178
mov rdi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor esi, esi
xor edx, edx
xor r8d, r8d
call fcn.1400d6490
test rax, rax
jne 0x1400d65af
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov sil, 1
test eax, eax
je 0x1400d65cb
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x178
pop rdi
pop rsi
ret
mov ecx, 2
call fcn.14004c5c0
test al, al
je 0x1400d6621
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
lea rdx, str..._.._third_party_crashpad_crashpad_util_file_file_io_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0xfb
mov r9d, 2
call fcn.1401944b0
lea rcx, [rsp + 0x40]
lea rdx, [0x1402b07be]
mov r8d, ntohl
call fcn.140124730
mov rcx, rsi
call fcn.140194530
xor esi, esi
jmp 0x1400d65af

Function at 0x1400d6a10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov edi, 0xffffffff
cmp r8, rdi
mov eax, 0xffffffff
cmovb eax, r8d
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov qword [rsp + 0x20], 0
mov r8d, eax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400d6188
mov esi, dword [rsp + 0x2c]
cmp rsi, rdi
je 0x1400d6191
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x38
pop rdi
pop rsi
ret
mov rsi, 0xffffffffffffffff
jmp 0x1400d6171
int3
mov rcx, qword [rcx + 8]
jmp 0x1400d6120

Function at 0x1400da820
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1402e5060]
cmp rdi, 1
jbe 0x1400da849
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401385f0
lea rcx, [0x1402e5060]
call fcn.1400c2580
test al, al
je 0x1400da88f
mov qword [0x1402e5068], 0
lea rbx, [0x1402e5060]
lea rdi, [0x1402e5068]
mov rcx, rdi
xor edx, edx
call fcn.1400db170
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400c2620
jmp 0x1400da837
mov rdi, qword [0x1402e5060]
jmp 0x1400da837
Function at 0x1400daeb0
Capabilities:
Get thread local storage value

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

Function at 0x1400daee0
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, rdx
mov r15, rcx
mov ecx, dword [0x1402d4508]
cmp ecx, 0xffffffff
je 0x1400dafbe
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
je 0x1400dafbe
mov eax, dword [0x1402e68c8]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dafc8
mov rbx, qword [0x1402e68c0]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400db00e
mov rax, qword [0x1402e50b0]
inc rax
xor ecx, ecx
lea rdx, [0x1402e50c0]
lea edi, [rax + rcx]
movzx edi, dil
lea rsi, [rdi + rdi*2]
cmp dword [rdx + rsi*8], 0
jne 0x1400db01b
lea rax, [rdx + rsi*8]
mov dword [rax], 1
mov qword [rax + 8], r14
mov qword [0x1402e50b0], rdi
mov dword [r15], edi
mov eax, dword [rax + 0x10]
mov dword [r15 + 4], eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov eax, dword [r15]
cmp eax, 0xffffffff
je 0x1400db030
cmp eax, 0x100
jge 0x1400db033
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.1400db040
jmp 0x1400daf0e
lea rcx, [0x1402e68c8]
call fcn.140142860
cmp dword [0x1402e68c8], 0xffffffff
jne 0x1400daf33
mov ecx, 8
call fcn.140142708
mov rbx, rax
mov rcx, rax
call fcn.140130a40
mov qword [0x1402e68c0], rbx
lea rcx, [0x1402e68c8]
call fcn.1401428f8
jmp 0x1400daf33
mov rcx, rbx
call fcn.140130a60
jmp 0x1400daf4b
inc rcx
cmp rcx, 0x100
jne 0x1400daf5e
jmp 0x1400daf92
int3
int3
Function at 0x1400db040
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
mov eax, 0x1038
call fcn.140142fb0
sub rsp, rax
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov dword [rsp + 0x2c], 0xaaaaaaaa
mov ecx, dword [0x1402d4508]
mov dword [rsp + 0x2c], ecx
cmp ecx, 0xffffffff
je 0x1400db0f4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test al, 3
jne 0x1400db132
lea rsi, [rsp + 0x30]
mov r8d, 0x1000
mov rcx, rsi
xor edx, edx
call fcn.140145e20
mov ecx, dword [rsp + 0x2c]
lea rdx, [rsp + 0x33]
call sub.KERNEL32.dll_TlsSetValue
mov ecx, 0x1000
call fcn.14014277c
mov rdi, rax
mov r8d, 0x1000
mov rcx, rax
mov rdx, rsi
call fcn.140145a10
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.140143020
mov rax, rdi
add rsp, 0x1038
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.1400f9090
test al, al
je 0x1400db135
mov ecx, dword [rsp + 0x2c]
cmp ecx, 0xffffffff
je 0x1400db138
mov eax, 0xffffffff
lock cmpxchg dword [0x1402d4508], ecx
je 0x1400db078
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [0x1402d4508]
mov dword [rsp + 0x2c], ecx
jmp 0x1400db078
int3
int3
lea rcx, [rsp + 0x2c]
call fcn.1400f9090
test al, al
je 0x1400db15d
cmp dword [rsp + 0x2c], 0xffffffff
je 0x1400db15d
mov ecx, 0xffffffff
call sub.KERNEL32.dll_TlsFree
mov ecx, dword [rsp + 0x2c]
jmp 0x1400db10b
int3
Function at 0x1400dd590
Capabilities:
Encrypt data using rc4 prga

Disassembly:
movzx eax, byte [rcx + 0x4f]
test al, al
js 0x1400dd5ad
test rax, rax
jne 0x1400dd5a8
cmp dword [rcx + 0x50], 0
jne 0x1400dd5a8
jmp 0x140138a00
jmp 0x14022ec70
mov rax, qword [rcx + 0x40]
jmp 0x1400dd598
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov byte [rcx + 0x54], 0
mov rax, qword [rcx + 0x10]
mov qword [rcx + 8], rax
cmp rax, qword [rcx + 0x18]
je 0x140138a8f
lea rdi, [rsi + 0x20]
movabs r14, 0x100003600
lea rcx, [rax + 1]
mov qword [rsi + 0x10], rcx
mov dl, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140128490
cmp rax, 0xffffffffffffffff
je 0x140138a57
mov rax, qword [rsi + 0x10]
mov qword [rsi + 8], rax
cmp rax, qword [rsi + 0x18]
jne 0x140138a2c
jmp 0x140138a8f
cmp dword [rsi + 0x58], 1
je 0x140138ab2
mov rax, qword [rsi + 0x10]
mov bl, 1
cmp rax, qword [rsi + 0x18]
je 0x140138a95
mov dl, byte [rax]
mov rcx, rdi
xor r8d, r8d
call fcn.140128490
cmp rax, 0xffffffffffffffff
jne 0x140138a95
cmp dword [rsi + 0x58], 1
mov rax, qword [rsi + 0x10]
je 0x140138aa1
inc rax
mov qword [rsi + 0x10], rax
jmp 0x140138a63
mov byte [rsi + 0x54], 1
xor ebx, ebx
mov eax, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
movzx ecx, byte [rax]
cmp rcx, 0x20
ja 0x140138a86
bt r14, rcx
jae 0x140138a86
jmp 0x140138a95
mov rax, qword [rsi + 8]
movzx eax, byte [rax]
cmp rax, 0x20
ja 0x140138a5d
bt r14, rax
jb 0x140138a47
jmp 0x140138a5d
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], 0
mov byte [rsp + 0x22], 0
mov rbx, qword [rcx + 0x10]
mov rax, qword [rcx + 0x18]
mov rcx, rax
cmp rbx, rax
je 0x14022ecdb
cmp dword [rsi + 0x58], 1
jne 0x14022ecd8
movabs rdx, 0x100003600
mov rcx, rbx
movzx ebx, byte [rcx]
cmp rbx, 0x20
ja 0x14022ecdb
bt rdx, rbx
jae 0x14022ecdb
inc rcx
mov qword [rsi + 0x10], rcx
cmp rcx, rax
jne 0x14022ecb8
mov rcx, rax
jmp 0x14022ecdb
mov rcx, rbx
cmp byte [rsi + 0x54], 0
sete dil
lea rbx, [rsp + 0x20]
test dil, 1
je 0x14022ed18
mov rdx, rax
mov rax, rcx
mov byte [rsi + 0x54], 1
mov qword [rsi + 8], rax
cmp rax, rdx
je 0x14022ed77
mov rcx, rax
inc rcx
mov qword [rsi + 0x10], rcx
xor edi, edi
test byte [rsi + 0x50], 1
mov rax, rdx
je 0x14022ece8
jmp 0x14022ed5d
mov byte [rsi + 0x54], 0
mov qword [rsi + 8], rcx
cmp rcx, rax
je 0x14022ed51
mov r8b, byte [rcx]
mov rcx, rsi
mov rdx, rbx
call fcn.14022ed80
mov rcx, qword [rsi + 0x10]
test al, al
je 0x14022ed48
inc rcx
mov qword [rsi + 0x10], rcx
cmp rcx, qword [rsi + 0x18]
jne 0x14022ed25
mov rax, rcx
cmp qword [rsi + 8], rcx
jne 0x14022ed5d
test byte [rsi + 0x50], 2
jne 0x14022ed5d
mov rdx, qword [rsi + 0x18]
jmp 0x14022ecf4
mov sil, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14022ed60
Function at 0x1400e25a0
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x40], rax
test rcx, rcx
je 0x1400e27a0
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x1402d4540], rax
jne 0x1400e27a3
mov rsi, rcx
mov byte [rsp + 0x3f], 0xaa
lea rdi, [rcx + 0x2f8]
lea r14, [rcx + 0x48]
mov ebx, 1
xor r15d, r15d
mov rbp, qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
mov rcx, r14
call rbp
test al, al
je 0x1400e2765
mov rax, qword [rdi]
mov rbx, qword [rax]
test rbx, rbx
je 0x1400e26f0
mov byte [rsp + 0x3f], 0
mov rdx, qword [rbx]
test rdx, rdx
je 0x1400e275e
mov ecx, dword [rsi + 0x310]
mov rdi, rdx
bswap rdi
test edi, 0x1fc000
je 0x1400e279b
mov rbp, rdi
xor rbp, rbx
cmp rbp, 0x1fffff
ja 0x1400e279b
not rdx
cmp qword [rbx + 8], rdx
jne 0x1400e279b
prefetcht0 byte [rdi]
mov qword [rax], rdi
inc word [rax + 0x18]
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0xaa0]
mov qword [rsi + 0xaa0], rax
mov rcx, qword [rsi + 0xaa8]
cmp rcx, rax
cmovae rax, rcx
mov qword [rsi + 0xaa8], rax
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rbx
mov rdx, rsi
call fcn.14013b930
mov ecx, dword [0x1402e75f0]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x1402da9d4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x130], rbx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140143020
mov rax, rbx
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov r9d, 0x2f8
mov rcx, rdi
mov rdx, rsi
mov r8d, 2
call fcn.140123760
test rax, rax
je 0x1400e27a6
mov rbx, rax
mov rcx, rax
and rcx, 0xffffffffffe00000
mov rdx, rax
shr rdx, 9
and edx, 0xfe0
lea rax, [rdx + rcx]
movzx ecx, byte [rdx + rcx + 0x101e]
and ecx, 0x3f
shl rcx, 5
sub rax, rcx
add rax, 0x1000
jmp 0x1400e266c
xor edi, edi
jmp 0x1400e2665
mov eax, ebx
test ebx, ebx
jle 0x1400e2774
pause
dec eax
jne 0x1400e276b
add r15d, ebx
add ebx, ebx
cmp ebx, 0x40
mov eax, 0x40
cmovge ebx, eax
cmp r15d, 0x3e8
jl 0x1400e25fd
mov rcx, r14
call fcn.1400e2820
jmp 0x1400e260a
call fcn.140173290
int3
int3
xor ebx, ebx
jmp 0x1400e2696
Function at 0x1400e2a30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400e2ad0]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1402e7650]
lea rdx, [0x1400e28f0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400e2ac2
cmp dword [0x1402e7658], 0
jne 0x1400e2abe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1402e765c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x1400e2abe
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140143020
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x1400e2aa6
call fcn.1401564d0
int3

Function at 0x1400e2b00
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x30
mov rdi, r8
mov r14, rdx
mov ebx, ecx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400e2ad0]
lea r8, [rsp + 0x20]
mov qword [r8], rax
lea rcx, [0x1402e7650]
lea rdx, [0x1400e28f0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400e2bf9
cmp dword [0x1402e7658], 0
jne 0x1400e2c06
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x1402e765c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
jne 0x1400e2baf
mov ecx, 0x20
call fcn.1400cece0
test rax, rax
je 0x1400e2c06
mov rsi, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov ecx, dword [0x1402e765c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400e2bfe
lea rbp, [0x1402e7660]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1402e7670]
mov qword [rax + rbx*8], rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [rsi + rbx*8], r14
mov esi, 1
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x30
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
call fcn.1401564d0
mov rcx, rsi
call fcn.140137a40
mov rcx, r14
call rdi
xor esi, esi
jmp 0x1400e2bdf