joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140150730
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
xorps xmm0, xmm0
movups xmmword [rcx + 9], xmm0
movups xmmword [rcx], xmm0
mov eax, dword [0x1402a5468]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140150815
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401507a0
mov rcx, qword [0x1402a5458]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a5460]
jne 0x1401507a0
test rsi, rsi
je 0x1401507a0
cmp qword [rax + rcx], 0
jne 0x1401508b1
mov eax, dword [0x1402a5468]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140150863
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140150809
mov rcx, qword [0x1402a5458]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402a5460]
mov rdx, qword [0x1402a5458]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov al, 1
mov byte [rsi + 0x18], al
mov rax, rsi
add rsp, 0x20
pop rsi
ret
test rsi, rsi
je 0x1401507fb
call fcn.140002990
jmp 0x1401507d7
lea rcx, [0x1402a5468]
call fcn.14017b2bc
cmp dword [0x1402a5468], 0xffffffff
jne 0x140150767
mov qword [0x1402a5460], 0
lea rcx, [0x1402a5458]
mov qword [0x1402a5458], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a5468]
call fcn.14017b25c
jmp 0x140150767
lea rcx, [0x1402a5468]
call fcn.14017b2bc
cmp dword [0x1402a5468], 0xffffffff
jne 0x1401507c5
mov qword [0x1402a5460], 0
lea rcx, [0x1402a5458]
mov qword [0x1402a5458], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a5468]
call fcn.14017b25c
jmp 0x1401507c5
xor eax, eax
jmp 0x1401507fd
Function at 0x1401508c0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [rcx + 0x18], 0
je 0x140150a1b
mov eax, dword [0x1402a5468]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140150a34
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [0x1402a5468]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140150a82
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140150975
mov rcx, qword [0x1402a5458]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1402a5460]
mov rdx, qword [0x1402a5458]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
cmp rbx, r14
jne 0x1401509e2
test rbx, rbx
jne 0x14015099e
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rdi, qword [rsi + 8]
mov rcx, rbx
cmp rdi, rbx
je 0x140150a26
mov rcx, qword [rdi - 0x10]
test rcx, rcx
jne 0x1401509d1
mov rcx, qword [rdi - 0x38]
add rdi, 0xffffffffffffffc8
test rcx, rcx
je 0x1401509ca
lock dec dword [rcx + 8]
je 0x140150ad0
cmp rdi, rbx
jne 0x1401509aa
jmp 0x140150a23
lock dec dword [rcx]
jne 0x1401509b3
mov rax, qword [rcx + 0x10]
call qword [case.0x1401e7f70.0]
jmp 0x1401509b3
lea rdi, [rsp + 0x28]
mov r9, qword [rbx + 0x30]
mov rcx, qword [rbx]
mov rax, qword [rbx + 0x28]
mov qword [rsp + 0x28], rax
mov qword [rbx + 0x28], 0
mov rax, qword [rcx]
mov rax, qword [rax]
lea rdx, [rbx + 8]
mov r8, rdi
call qword [case.0x1401e7f70.0]
add rbx, 0x38
cmp rbx, r14
jne 0x1401509e7
mov rbx, qword [rsi]
jmp 0x140150981
mov rcx, qword [rsi]
mov qword [rsi + 8], rbx
call fcn.14017b254
jmp 0x140150986
lea rcx, [0x1402a5468]
call fcn.14017b2bc
cmp dword [0x1402a5468], 0xffffffff
jne 0x14015090a
mov qword [0x1402a5460], 0
lea rcx, [0x1402a5458]
mov qword [0x1402a5458], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a5468]
call fcn.14017b25c
jmp 0x14015090a
lea rcx, [0x1402a5468]
call fcn.14017b2bc
cmp dword [0x1402a5468], 0xffffffff
jne 0x14015093b
mov qword [0x1402a5460], 0
lea rcx, [0x1402a5458]
mov qword [0x1402a5458], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a5468]
call fcn.14017b25c
jmp 0x14015093b
call fcn.140123c50
jmp 0x1401509ca
Function at 0x140151120
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402a2740]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140151180
mov rsi, qword [0x1402a2738]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402a2740]
call fcn.14017b2bc
cmp dword [0x1402a2740], 0xffffffff
jne 0x14015115c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.1401808d0
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x2c]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.14017b1d8
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402a2788]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140151240
lea r8, [0x1402a2758]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.14001bd40
mov qword [0x1402a2738], rsi
lea rcx, [0x1402a2740]
call fcn.14017b25c
jmp 0x14015115c
lea rcx, [0x1402a2788]
call fcn.14017b2bc
cmp dword [0x1402a2788], 0xffffffff
jne 0x140151211
xorps xmm0, xmm0
movups xmmword [0x1402a2778], xmm0
movups xmmword [0x1402a2768], xmm0
movups xmmword [0x1402a2758], xmm0
lea rcx, [0x1402a2758]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402a2788]
call fcn.14017b25c
jmp 0x140151211
Function at 0x1401526f0
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x68
mov rsi, rdx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, qword [rcx + 0x30]
mov rax, qword [rdi]
mov rbx, qword [rax + 0x10]
lea rax, [0x140173df0]
cmp rbx, rax
jne 0x1401528db
test byte [0x14029c830], 0x19
jne 0x140152907
cmp qword [rsi + 0x48], 0
jne 0x140152823
mov eax, dword [0x1402a54e0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015283f
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401527a3
mov rcx, qword [0x1402a54d0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a54d8]
jne 0x1401527a3
mov rax, qword [rax + rcx]
test rax, rax
je 0x1401527a3
mov rcx, qword [rax + 0x10]
mov qword [rsi + 0x70], rcx
mov eax, dword [rax + 8]
mov dword [rsi + 0x68], eax
mov eax, dword [0x1402a54b0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14015288d
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140152823
mov rcx, qword [0x1402a54a0]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a54a8]
jne 0x140152823
mov rax, qword [rax + rcx]
test rax, rax
je 0x140152823
mov rcx, qword [rax + 0x20]
mov qword [rsi + 0x48], rcx
movups xmm0, xmmword [rax + 0x48]
mov rcx, qword [rax + 0x58]
mov qword [rsi + 0x60], rcx
movups xmmword [rsi + 0x50], xmm0
cmp byte [rax + 0x7c], 0
jne 0x14015283b
cmp qword [rax + 0x60], 0
setne al
mov byte [rsi + 0x7c], al
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
ret
mov al, 1
jmp 0x140152820
lea rcx, [0x1402a54e0]
call fcn.14017b2bc
cmp dword [0x1402a54e0], 0xffffffff
jne 0x140152763
mov qword [0x1402a54d8], 0
lea rcx, [0x1402a54d0]
mov qword [0x1402a54d0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a54e0]
call fcn.14017b25c
jmp 0x140152763
lea rcx, [0x1402a54b0]
call fcn.14017b2bc
cmp dword [0x1402a54b0], 0xffffffff
jne 0x1401527c8
mov qword [0x1402a54a8], 0
lea rcx, [0x1402a54a0]
mov qword [0x1402a54a0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a54b0]
call fcn.14017b25c
jmp 0x1401527c8
mov r14, qword [case.0x1401e7f70.0]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.14017e7b0
mov rcx, rdi
mov rdx, rsi
mov rax, rbx
mov r8, r14
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r14
jmp r8
add edi, 0x1b8
mov eax, dword [rsi + 0x78]
shl rax, 0x20
and edi, 0xfffffff8
or rdi, rax
xor rdi, qword [0x14029f540]
lea rax, [0x140074fa0]
lea rbx, [rsp + 0x38]
mov qword [rbx + 0x18], rax
lea rax, [0x140278c88]
mov qword [rbx + 0x20], rax
mov qword [rbx + 8], rdi
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], 0
lea rdx, [0x14029c830]
lea r8, str.SequenceManager_PostTask
lea r9, [0x1402780e8]
mov cl, 0x49
call fcn.140075040
mov rax, qword [rbx + 0x20]
mov rax, qword [rax + 8]
test rax, rax
je 0x140152733
mov rcx, qword [rsp + 0x40]
call qword [case.0x1401e7f70.0]
jmp 0x140152733
Function at 0x140154fe0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r15, qword [rdx]
mov qword [rdx], rax
lea r12, [r15 + 1]
cmp r12, 2
jb 0x14015500d
call fcn.140105b90
cmp qword [rsi], r15
je 0x14015503c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14015505d
cmp r12, 2
jb 0x140155034
mov qword [rsi], r15
call fcn.140105b90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
movups xmm0, xmmword [rdi + 8]
movups xmm1, xmmword [rdi + 0x18]
movups xmmword [rsi + 0x18], xmm1
movups xmmword [rsi + 8], xmm0
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.140105b90
mov r14, qword [rsi]
cmp qword [0x1402a45d0], 0
je 0x14015508e
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401e7f70.0]
mov qword [rsi], 0
jmp 0x140155026
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401550cf
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1401550c9
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
call fcn.140005a10
jmp 0x14015506f
xor ecx, ecx
mov dl, 1
jmp 0x1401550c2
xor ecx, ecx
jmp 0x1401550c0

Function at 0x1401550e0
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rbx, r9
mov ebp, r8d
mov rdi, rdx
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r13, qword [rdx]
mov qword [rdx], rax
lea r15, [r13 + 1]
cmp r15, 2
jb 0x140155116
call fcn.140105b90
mov r12, qword [rsp + 0x90]
cmp qword [rsi], r13
je 0x14015514f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140155183
cmp r15, 2
jb 0x140155146
mov qword [rsi], r13
call fcn.140105b90
mov ecx, r14d
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [rsi + 8], ebp
mov qword [rsi + 0x10], rbx
movups xmm0, xmmword [r12]
movups xmmword [rsi + 0x18], xmm0
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1401551fc
mov rax, rsi
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140105b90
mov rdx, qword [rsi]
cmp qword [0x1402a45d0], 0
je 0x1401551b1
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
call qword [case.0x1401e7f70.0]
mov qword [rsi], 0
jmp 0x140155138
mov qword [rsp + 0x20], rdx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140155215
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1401551f6
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
call fcn.140005a10
mov rdx, qword [rsp + 0x20]
jmp 0x140155195
xor ecx, ecx
mov dl, 1
jmp 0x1401551ea
call fcn.140105b90
mov rcx, qword [rdi]
call fcn.1401651a0
mov qword [rdi], 0
jmp 0x14015516f
xor ecx, ecx
jmp 0x1401551e8
Function at 0x140156620
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, qword [0x14029f558]
cmp rdi, 1
jbe 0x1401566bc
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140156703
mov rcx, qword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 8]
jne 0x140156703
mov rcx, qword [rax + rcx]
test rsi, rsi
je 0x14015667b
lock inc dword [rsi]
mov qword [rsp + 0x28], rsi
mov rax, qword [rcx + 0x150]
cmp rax, qword [rcx + 0x158]
jae 0x14015670a
test rax, rax
je 0x140156744
mov qword [rax], rsi
add rax, 8
mov qword [rcx + 0x150], rax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14017e7b0
nop
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14029f558]
call fcn.140008ab0
test al, al
je 0x140156770
mov qword [0x14029f568], 0
lea rdi, [0x14029f560]
mov qword [0x14029f560], 0xffffffffffffffff
mov rcx, rdi
xor edx, edx
call fcn.140002850
mov qword [0x14029f558], rdi
jmp 0x140156645
xor ecx, ecx
jmp 0x140156673
add rcx, 0x148
lea rsi, [rsp + 0x28]
mov rdx, rsi
call fcn.1401c5da0
mov rsi, qword [rsi]
test rsi, rsi
je 0x1401566a7
lock dec dword [rsi]
jne 0x1401566a7
mov rcx, rsi
call fcn.140127500
mov rcx, rsi
call fcn.14017b254
jmp 0x1401566a7
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401bdbc0
mov rdi, qword [0x14029f558]
jmp 0x140156645

Function at 0x140157be0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x140157c29
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x140157c45
lea rax, [rdi + 1]
cmp rax, 2
jb 0x140157c21
mov qword [rsi], rdi
call fcn.140105b90
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi + 8], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rdi
je 0x140157cb7
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140105b90
mov r14, qword [rsi]
cmp qword [0x1402a45d0], 0
je 0x140157c76
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401e7f70.0]
mov qword [rsi], 0
jmp 0x140157c0f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x140157cba
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x140157cb1
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
call fcn.140005a10
jmp 0x140157c57
xor ecx, ecx
mov dl, 1
jmp 0x140157caa
int3
xor ecx, ecx
jmp 0x140157ca8
Function at 0x140158de0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140158e1c
mov rsi, rdx
mov rdi, rcx
mov r14d, 0xffffffff
cmp rsi, r14
mov ebx, 0xffffffff
cmovb rbx, rsi
mov rcx, rdi
mov edx, ebx
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140158e26
add rdi, rbx
sub rsi, rbx
jne 0x140158dfa
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3
Function at 0x14015ffc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x1401600b7
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x1401600b7
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x1401600dc
add r9, 0x88
je 0x1401600dc
mov eax, dword [r9]
test rax, rax
je 0x1401600b7
add rax, rcx
je 0x1401600b7
cmp rdx, 0xffff
jbe 0x1401600d6
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x1401600b7
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x140160090
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x140160092
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x14016007d
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x1401600bb
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
jne 0x14016004b
xor eax, eax
jmp 0x1401600dc
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140160680
Capabilities:
Get thread local storage value

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [0x1402a4558]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14016075a
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140160750
mov rcx, qword [0x1402a4548]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a4550]
jne 0x140160750
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140160750
cmp byte [rsi], 0
je 0x140160750
mov rax, qword [rdi]
test rax, rax
js 0x1401607a8
cmp dword [rdi + 0x14], 1
movabs rbx, 0x4000000000000000
jne 0x1401607b9
cmp qword [rdi + 8], 0
jne 0x1401607d3
movabs rax, 0xbfffffffffffffff
lock and qword [rdi], rax
mov rsi, qword [rsi + 8]
cmp qword [rdi + 8], 0
jne 0x1401607f7
mov rax, qword [rdi]
and rax, rbx
movabs rcx, 0xffffffffffffff
and rsi, rcx
or rsi, rax
mov qword [rdi], rsi
dec dword [rdi + 0x14]
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x1402a4558]
call fcn.14017b2bc
cmp dword [0x1402a4558], 0xffffffff
jne 0x1401606b1
mov qword [0x1402a4550], 0
lea rcx, [0x1402a4548]
mov qword [0x1402a4548], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a4558]
call fcn.14017b25c
jmp 0x1401606b1
mov rcx, qword [0x1402a4540]
call fcn.1401ba0f0
jmp 0x1401606f8
cmp byte [rsi + 0x10], 0
je 0x140160725
cmp qword [rdi + 8], 0
jne 0x14016081b
lock or qword [rdi], rbx
jmp 0x140160725
lea rcx, [rdi + 8]
mov r14, qword [rdi]
call fcn.1401ba590
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x140160717
lea rcx, [rdi + 8]
mov r14, qword [rdi]
call fcn.1401ba590
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x140160734
lea rcx, [rdi + 8]
mov r14, qword [rdi]
call fcn.1401ba590
movabs rcx, 0xff00000000000000
and rcx, r14
or rcx, rax
mov qword [rdi], rcx
jmp 0x1401607ca
Function at 0x1401612f0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x1401613ee
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x140271d90]
nop dword [rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x140161360
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140271da0]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x14016147d
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x140161453
movdqa xmm1, xmmword [0x140271da0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x140271db0], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret