joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400f45d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov eax, dword [0x1402e80a8]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400f4633
cmp rdi, rsi
je 0x1400f4629
mov eax, 0xffffffff
lea rcx, [0x1402e7ca8]
movzx edx, byte [rdi]
movzx ebx, al
xor ebx, edx
shr eax, 8
xor eax, dword [rcx + rbx*4]
inc rdi
cmp rdi, rsi
jne 0x1400f460f
not eax
jmp 0x1400f462b
xor eax, eax
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402e80a8]
call fcn.140142860
cmp dword [0x1402e80a8], 0xffffffff
jne 0x1400f45fe
lea rbx, [0x1402e7ca8]
mov r8d, 0x400
mov rcx, rbx
mov dl, 0xaa
call fcn.140145e20
xor eax, eax
mov r8d, 0xedb88320
mov edx, eax
shr edx, 1
mov ecx, eax
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
shr edx, 1
and ecx, 1
neg ecx
and ecx, r8d
xor ecx, edx
shr ecx, 1
and edx, 1
neg edx
and edx, r8d
xor edx, ecx
mov dword [rbx], edx
inc rax
add rbx, 4
cmp rax, 0x100
jne 0x1400f4667
lea rcx, [0x1402e80a8]
call fcn.1401428f8
jmp 0x1400f45fe

Function at 0x1400f9090
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400f90a5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret

Function at 0x1400f9520
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1402e80f0]
cmp rdi, 1
jbe 0x1400f9549
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.1401385f0
lea rcx, [0x1402e80f0]
call fcn.1400c2580
test al, al
je 0x1400f958f
mov qword [0x1402e80f8], 0
lea rbx, [0x1402e80f0]
lea rdi, [0x1402e80f8]
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 0x1400f9537
mov rdi, qword [0x1402e80f0]
jmp 0x1400f9537

Function at 0x1400fc430
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x1402e8150], 0
jne 0x1400fc46d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400fc460
mov dword [rdi], eax
mov dword [0x1402e8158], eax
mov qword [0x1402e8150], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400ffcc0
Capabilities:
Create thread

Disassembly:
push rsi
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r8, [0x1400ffd60]
xor ecx, ecx
xor edx, edx
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsi + 8], rax
test rax, rax
je 0x1400ffd19
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140143020
nop
add rsp, 0x40
pop rsi
ret
lea rdx, str..._.._third_party_crashpad_crashpad_util_thread_thread_win.cc
lea rsi, [rsp + 0x30]
mov rcx, rsi
mov r8d, 0x1b
call fcn.1401f1960
mov rcx, rsi
call fcn.1401f1890
lea rdx, [0x1402a3292]
mov r8d, ntohl
mov rcx, rax
call fcn.140124730
mov rcx, rsi
call fcn.1401f18a0
jmp 0x1400ffd05

Function at 0x1401046c0
Capabilities:
Decompress data using quicklz

Disassembly:
mov eax, ecx
or eax, edx
test al, 1
je 0x1401046cb
xor eax, eax
ret
mov r9d, dword [r8]
mov r10d, r9d
and r10d, 0xf800d000
xor eax, eax
cmp r10d, 0xf0008000
jne 0x1401046ca
mov r10d, r9d
and r10d, 0x3c00000
cmp r10d, 0x3c00000
je 0x1401046ca
sub edx, ecx
lea r10d, [rdx - 4]
and r10d, 1
lea r11d, [r10 + rdx]
add r11d, 0xfffffffc
mov ecx, r11d
and ecx, 1
jne 0x1401046ca
lea ecx, [r10 + rdx]
add ecx, 0xffffc
cmp ecx, 0x1fffff
ja 0x1401046ca
mov eax, r11d
shr eax, 1
and eax, 0x7ff
and r9d, 0xfbc0d000
mov ecx, r11d
shl ecx, 6
and ecx, 0x4000000
mov edx, r11d
shl edx, 4
and edx, 0x3f0000
or edx, ecx
mov ecx, r11d
shr ecx, 5
and ecx, 0x2000
or ecx, edx
shr r11d, 8
and r11d, 0x800
or r11d, ecx
or r11d, eax
or r11d, r9d
mov dword [r8], r11d
mov al, 1
ret
Function at 0x140124ac0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
cmp qword [rcx], rdx
je 0x140124b09
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
add rax, 1
cmp rax, 2
jae 0x140124b12
lea rax, [rsi + 1]
cmp rax, 2
jb 0x140124af9
mov qword [rdi], rsi
call fcn.14012aa20
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
call fcn.14012aa20
mov rcx, qword [rdi]
call fcn.14012dff0
mov qword [rdi], 0
jmp 0x140124ae7
Function at 0x140126020
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm13
movdqa xmmword [rsp + 0x60], xmm12
movdqa xmmword [rsp + 0x50], xmm11
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 xmm0, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm4, r8d
pxor xmm4, xmm0
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jb 0x140126155
movabs rax, 0x154442bd4
movq xmm9, rax
movdqa xmm8, xmmword [0x140297e80]
nop word cs:[rax + rax]
nop dword [rax]
movdqa xmm6, xmm4
pclmulqdq xmm6, xmm9, 0
movdqa xmm12, xmm3
pclmulqdq xmm12, xmm9, 0
movdqa xmm11, xmm2
pclmulqdq xmm11, xmm9, 0
movdqa xmm10, xmm1
pclmulqdq xmm10, xmm9, 0
movdqa xmm0, xmm4
pclmulqdq xmm0, xmm8, 0x11
movdqa xmm5, xmm3
pclmulqdq xmm5, xmm8, 0x11
movdqa xmm7, xmm2
pclmulqdq xmm7, xmm8, 0x11
movdqa xmm13, xmm1
pclmulqdq xmm13, xmm8, 0x11
movdqu xmm4, xmmword [rcx]
pxor xmm4, xmm6
pxor xmm4, xmm0
movdqu xmm3, xmmword [rcx + 0x10]
pxor xmm3, xmm12
pxor xmm3, xmm5
movdqu xmm2, xmmword [rcx + 0x20]
pxor xmm2, xmm11
pxor xmm2, xmm7
movdqu xmm1, xmmword [rcx + 0x30]
pxor xmm1, xmm10
pxor xmm1, xmm13
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x1401260b0
movabs rax, 0x1751997d0
movq xmm0, rax
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x140297e90]
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm5, xmm4
pclmulqdq xmm5, xmm0, 0
pxor xmm5, xmm2
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm5
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
cmp rdx, 0x10
jb 0x1401261e4
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm4
pclmulqdq xmm2, xmm0, 0
pxor xmm2, xmm1
pclmulqdq xmm4, xmm3, 0x11
pxor xmm4, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x1401261ba
movdqa xmm0, xmmword [0x140297e90]
pclmulqdq xmm0, xmm4, 1
psrldq xmm4, 8
pxor xmm4, xmm0
pxor xmm0, xmm0
pxor xmm1, xmm1
pblendw xmm1, xmm4, 3
psrldq xmm4, 4
movabs rax, 0x163cd6124
movq xmm2, rax
pclmulqdq xmm2, xmm1, 0
pxor xmm2, xmm4
pxor xmm1, xmm1
pblendw xmm1, xmm2, 3
pclmulqdq xmm1, xmmword [0x140297ea0], 0x10
pblendw xmm1, xmm0, 0xfc
movabs rax, 0x1db710641
movq xmm0, rax
pclmulqdq xmm0, xmm1, 0
pxor xmm0, xmm2
pextrd eax, xmm0, 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]
movaps xmm11, xmmword [rsp + 0x50]
movaps xmm12, xmmword [rsp + 0x60]
movaps xmm13, xmmword [rsp + 0x70]
add rsp, 0x88
ret
Function at 0x14012dc10
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov esi, r9d
mov r14, r8
mov r12, rdx
mov r15, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xb8], rax
movabs r13, 0xaaaaaaaaaaaaaaaa
lea rdi, [rsp + 0x60]
mov qword [rdi + 0x50], r13
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rdi + 0x40], xmm0
movaps xmmword [rdi + 0x30], xmm0
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
lea rdx, str.Read
lea r8, str..._.._base_files_file_win.cc
lea rbx, [rsp + 0x40]
mov rcx, rbx
mov r9d, 0x3e
call fcn.14012aa00
mov rcx, rdi
mov rdx, rbx
xor r8d, r8d
call fcn.140131050
test esi, esi
js 0x14012dd32
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], 0
call fcn.140130e60
test al, al
jne 0x14012dd4c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r12
lea r9, [rsp + 0x2c]
mov dword [r9], 0xaaaaaaaa
mov rcx, qword [r15]
mov qword [rsp + 0x20], rbx
mov rdx, r14
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14012dd39
mov esi, dword [rsp + 0x2c]
lea rcx, [rsp + 0x30]
call fcn.140130e80
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 0xffffffff
jmp 0x14012dd03
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0x26
setne sil
neg esi
jmp 0x14012dcf9
mov r9d, esi
lea rdx, str.File::Read
lea rcx, [rsp + 0x30]
mov r8, r15
call fcn.1401ea6f0
jmp 0x14012dcbf
Function at 0x14012dd70
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14d, r9d
mov r15, r8
mov r13, rdx
mov r12, rcx
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0xc0], rax
movabs rbp, 0xaaaaaaaaaaaaaaaa
lea rsi, [rsp + 0x60]
mov qword [rsi + 0x50], rbp
movaps xmm0, xmmword [0x1402961a0]
movaps xmmword [rsi + 0x40], xmm0
movaps xmmword [rsi + 0x30], xmm0
movaps xmmword [rsi + 0x20], xmm0
movaps xmmword [rsi + 0x10], xmm0
movaps xmmword [rsi], xmm0
lea rdx, str.Write
lea r8, str..._.._base_files_file_win.cc
lea rdi, [rsp + 0x40]
mov rcx, rdi
mov r9d, 0x73
call fcn.14012aa00
xor ebx, ebx
mov rcx, rsi
mov rdx, rdi
xor r8d, r8d
call fcn.140131050
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], 0
call fcn.140130e60
test al, al
jne 0x14012de8c
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], r13
lea rsi, [rsp + 0x2c]
mov dword [rsi], 0xaaaaaaaa
mov rcx, qword [r12]
mov qword [rsp + 0x20], rdi
mov rdx, r15
mov r8d, r14d
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sbb ebx, ebx
or ebx, dword [rsi]
lea rcx, [rsp + 0x30]
call fcn.140130e80
lea rcx, [rsp + 0x60]
call fcn.1401310b0
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140143020
mov eax, ebx
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movsxd r9, r14d
lea rdx, str.File::Write
lea rcx, [rsp + 0x30]
mov r8, r12
call fcn.1401ea6f0
jmp 0x14012de16

Function at 0x14012deb0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov qword [rcx], 0
test rdx, rdx
je 0x14012def7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x14012df11
lea rax, [rdi + 1]
cmp rax, 2
jb 0x14012deef
mov qword [rsi], rdi
call fcn.14012aa20
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 0x14012df27
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret
call fcn.14012aa20
mov rcx, qword [rsi]
call fcn.14012dff0
mov qword [rsi], 0
jmp 0x14012dedd
int3
Function at 0x14012f330
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x1402cf018]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402e20f8]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012f391
mov rax, qword [0x1402e20f0]
mov esi, dword [rax]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140143020
mov eax, esi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402e20f8]
call fcn.140142860
cmp dword [0x1402e20f8], 0xffffffff
jne 0x14012f36c
lea rsi, [rsp + 0x34]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140145e20
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, 0x88
call fcn.140142708
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402e2140]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14012f451
lea r8, [0x1402e2110]
lea rdx, [rsp + 0x30]
mov rcx, rsi
mov r9d, edi
call fcn.1400a7bb0
mov qword [0x1402e20f0], rsi
lea rcx, [0x1402e20f8]
call fcn.1401428f8
jmp 0x14012f36c
lea rcx, [0x1402e2140]
call fcn.140142860
cmp dword [0x1402e2140], 0xffffffff
jne 0x14012f422
xorps xmm0, xmm0
movups xmmword [0x1402e2130], xmm0
movups xmmword [0x1402e2120], xmm0
movups xmmword [0x1402e2110], xmm0
lea rcx, [0x1402e2110]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402e2140]
call fcn.1401428f8
jmp 0x14012f422
Function at 0x140137a90
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x140137aba
xor r9d, r9d
xor eax, eax
nop word [rax + rax]
movzx r10d, byte [rdx + r9]
xor r10b, byte [rcx + r9]
movzx r10d, r10b
or eax, r10d
add r9, 1
cmp r8, r9
jne 0x140137aa0
ret
xor eax, eax
jmp 0x140137ab9

Function at 0x140137ad0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x140137b0c
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 0x140137b16
add rdi, rbx
sub rsi, rbx
jne 0x140137aea
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
int3

Function at 0x1401385b0
Capabilities:
Get thread local storage value

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

Function at 0x1401385f0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov ecx, dword [0x1402d4508]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14013862e
movsxd rcx, dword [rsi]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [rsi + 4]
movsxd rdx, dword [rsi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
pop rdi
pop rsi
ret
test rdi, rdi
je 0x140138627
call fcn.1400db040
jmp 0x14013860e

Function at 0x1401387f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov eax, ecx
test r8, r8
je 0x14013881c
xor ecx, ecx
lea r9, [0x1402b2230]
movzx r10d, al
movzx r11d, byte [rdx + rcx]
xor r11d, r10d
shr eax, 8
xor eax, dword [r9 + r11*4]
add rcx, 1
cmp r8, rcx
jne 0x140138800
ret

Function at 0x14013ce50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1402e7bf0]
cmp rsi, 1
jbe 0x14013ce73
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401385f0
lea rcx, [0x1402e7bf0]
call fcn.1400c2580
test al, al
je 0x14013ceb9
mov qword [0x1402e7bf8], 0
lea rdi, [0x1402e7bf0]
lea rsi, [0x1402e7bf8]
mov rcx, rsi
xor edx, edx
call fcn.1400db170
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c2620
jmp 0x14013ce63
mov rsi, qword [0x1402e7bf0]
jmp 0x14013ce63

Function at 0x14013d240
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, qword [0x1402e80b0]
cmp rsi, 1
jbe 0x14013d263
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401385f0
lea rcx, [0x1402e80b0]
call fcn.1400c2580
test al, al
je 0x14013d2a9
mov qword [0x1402e80b8], 0
lea rdi, [0x1402e80b0]
lea rsi, [0x1402e80b8]
mov rcx, rsi
xor edx, edx
call fcn.1400db170
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
mov r9, rdi
call fcn.1400c2620
jmp 0x14013d253
mov rsi, qword [0x1402e80b0]
jmp 0x14013d253
Function at 0x14013fd60
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402e8108]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14013fd95
lea rcx, [0x1402e8100]
add rsp, 0x28
jmp fcn.1401385b0
lea rcx, [0x1402e8108]
call fcn.140142860
cmp dword [0x1402e8108], 0xffffffff
jne 0x14013fd85
mov qword [0x1402e8100], 0
lea rcx, [0x1402e8100]
xor edx, edx
call fcn.1400db170
lea rcx, [0x1402e8108]
call fcn.1401428f8
jmp 0x14013fd85

Function at 0x140142010
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402e8828]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140142076
lea rcx, [0x1402e8820]
xor edx, edx
call fcn.1401385f0
mov eax, dword [0x1402e8838]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401420b2
lea rcx, [0x1402e8830]
xor edx, edx
add rsp, 0x28
jmp fcn.1401385f0
lea rcx, [0x1402e8828]
call fcn.140142860
cmp dword [0x1402e8828], 0xffffffff
jne 0x140142035
mov qword [0x1402e8820], 0
lea rcx, [0x1402e8820]
xor edx, edx
call fcn.1400db170
lea rcx, [0x1402e8828]
call fcn.1401428f8
jmp 0x140142035
lea rcx, [0x1402e8838]
call fcn.140142860
cmp dword [0x1402e8838], 0xffffffff
jne 0x140142064
mov qword [0x1402e8830], 0
lea rcx, [0x1402e8830]
xor edx, edx
call fcn.1400db170
lea rcx, [0x1402e8838]
call fcn.1401428f8
jmp 0x140142064

Function at 0x140142100
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402e8848]
mov ecx, dword [0x1402da9d4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14014213d
lea rcx, [0x1402e8840]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1401385f0
lea rcx, [0x1402e8848]
call fcn.140142860
cmp dword [0x1402e8848], 0xffffffff
jne 0x140142129
mov qword [0x1402e8840], 0
lea rcx, [0x1402e8840]
xor edx, edx
call fcn.1400db170
lea rcx, [0x1402e8848]
call fcn.1401428f8
jmp 0x140142129
Function at 0x140173880
Capabilities:
Check mutex on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov byte [rcx], 0
mov qword [rcx + 8], 0
lea r8, str.A946A6A9_917E_4949_B9BC_6BADA8C7FD63
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rsi + 8], rax
test rax, rax
je 0x1401738c0
mov rcx, rax
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
sete byte [rsi]
mov rax, rsi
add rsp, 0x20
pop rsi
ret

Function at 0x140176400
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rcx + 0x10]
cmp rbx, qword [rcx + 0x18]
je 0x14017643c
mov rax, qword [r14]
mov qword [rbx], rax
add qword [rbp + 0x10], 8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov r15, qword [rbp]
mov rdi, qword [rbp + 8]
mov rax, rdi
sub rax, r15
jbe 0x140176499
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
add rax, rcx
inc rax
sar rax, 1
mov r12, rax
neg r12
shl rax, 3
mov r15, rdi
sub r15, rax
sub rbx, rdi
je 0x140176488
mov rcx, r15
mov rdx, rdi
mov r8, rbx
call fcn.140145a10
mov rdi, qword [rbp + 8]
add rbx, r15
mov qword [rbp + 0x10], rbx
lea rax, [rdi + r12*8]
mov qword [rbp + 8], rax
jmp 0x140176420
mov rax, rbx
sub rax, r15
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140176530
mov r12, r13
shr r12, 2
lea rcx, [r13*8]
call fcn.140142708
lea r9, [rax + r12*8]
lea r8, [rax + r13*8]
mov r10, r9
sub rbx, rdi
je 0x140176503
lea r10, [r9 + rbx]
sar rbx, 3
shl rbx, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rsi, qword [rdi + rdx]
mov qword [rcx + rdx], rsi
add rdx, 8
cmp rbx, rdx
jne 0x1401764f2
mov qword [rbp], rax
mov qword [rbp + 8], r9
mov qword [rbp + 0x10], r10
mov qword [rbp + 0x18], r8
mov rbx, r10
test r15, r15
je 0x140176420
mov rcx, r15
call fcn.140142744
mov rbx, qword [rbp + 0x10]
jmp 0x140176420
call fcn.1401564d0
int3
Function at 0x140176540
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, rdx
mov rbp, rcx
mov rbx, qword [rcx + 8]
cmp rbx, qword [rcx]
je 0x14017657f
mov r15, rbx
mov rax, qword [r14]
mov qword [r15 - 8], rax
add qword [rbp + 8], 0xfffffffffffffff8
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rdi, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
cmp rdi, rax
jae 0x1401765d1
sub rax, rdi
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r12, [rax + rcx]
inc r12
sar r12, 1
lea r15, [rdi + r12*8]
mov r8, rdi
sub r8, rbx
je 0x1401765c3
sub r15, r8
mov rcx, r15
mov rdx, rbx
call fcn.140145a10
mov rdi, qword [rbp + 0x10]
mov qword [rbp + 8], r15
lea rax, [rdi + r12*8]
mov qword [rbp + 0x10], rax
jmp 0x140176562
sub rax, rbx
mov rcx, rax
sar rcx, 2
test rax, rax
mov r13d, 1
cmovne r13, rcx
mov rax, r13
shr rax, 0x3d
jne 0x140176663
lea r12, [r13 + 3]
shr r12, 2
lea rcx, [r13*8]
call fcn.140142708
lea r15, [rax + r12*8]
lea r8, [rax + r13*8]
mov r9, r15
sub rdi, rbx
je 0x140176639
lea r9, [r15 + rdi]
sar rdi, 3
shl rdi, 3
lea rcx, [rax + r12*8]
xor edx, edx
mov rsi, qword [rbx + rdx]
mov qword [rcx + rdx], rsi
add rdx, 8
cmp rdi, rdx
jne 0x140176628
mov qword [rbp], rax
mov qword [rbp + 8], r15
mov qword [rbp + 0x10], r9
mov qword [rbp + 0x18], r8
test rbx, rbx
je 0x140176562
mov rcx, rbx
call fcn.140142744
mov r15, qword [rbp + 8]
jmp 0x140176562
call fcn.1401564d0
int3

Function at 0x140177de0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov r14, rcx
mov edi, 2
cmp rdx, 1
jne 0x140177e1a
mov rsi, qword [r14 + 8]
cmp rdi, rsi
ja 0x140177f15
jae 0x140177f0b
mov rax, qword [r14 + 0x18]
test rax, rax
js 0x140177e35
cvtsi2ss xmm0, rax
jmp 0x140177e4a
lea rax, [rdx - 1]
test rdx, rax
jne 0x140177e28
mov rdi, rdx
jmp 0x140177df7
mov rcx, rdx
call fcn.140127310
mov rdi, rax
jmp 0x140177df7
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [r14 + 0x20]
call fcn.140171610
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140297d90]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rsi, 3
jb 0x140177ef7
mov rcx, rsi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rbx, rsi
sub rbx, rdx
movabs rdx, 0x3333333333333333
mov rcx, rbx
shr rcx, 2
and rbx, rdx
and rcx, rdx
add rcx, rbx
mov rdx, rcx
shr rdx, 4
add rdx, rcx
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rdx
movabs rdx, 0x101010101010101
imul rdx, rcx
shr rdx, 0x38
cmp edx, 1
ja 0x140177ef7
cmp rax, 2
jb 0x140177eff
dec rax
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
jmp 0x140177eff
mov rcx, rax
call fcn.140127310
cmp rdi, rax
cmovb rdi, rax
cmp rdi, rsi
jb 0x140177f15
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, r14
mov rdx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp 0x140177650