joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b7090
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov edi, 2
cmp rdx, 1
jne 0x1400b70c0
mov rbx, qword [rsi + 8]
cmp rdi, rbx
jbe 0x1400b70ce
mov rcx, rsi
mov rdx, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14009c9f0
lea rax, [rdx - 1]
test rdx, rax
jne 0x1400b70e4
mov rdi, rdx
jmp 0x1400b70a5
jae 0x1400b71d1
mov rax, qword [rsi + 0x18]
test rax, rax
js 0x1400b70f1
cvtsi2ss xmm0, rax
jmp 0x1400b7106
mov rcx, rdx
call fcn.1400fb590
mov rdi, rax
jmp 0x1400b70a5
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rsi + 0x20]
call fcn.14016b48c
cvttss2si rax, xmm0
mov rcx, rax
subss xmm0, dword [0x1401fad08]
cvttss2si rdx, xmm0
sar rcx, 0x3f
and rdx, rcx
or rdx, rax
cmp rbx, 3
jb 0x1400b71b9
mov rax, rbx
shr rax, 1
movabs rcx, 0x5555555555555555
and rcx, rax
mov rax, rbx
sub rax, rcx
movabs rcx, 0x3333333333333333
mov r8, rax
shr r8, 2
and rax, rcx
and r8, rcx
add r8, rax
mov rax, r8
shr rax, 4
add rax, r8
movabs rcx, 0xf0f0f0f0f0f0f0f
and rcx, rax
movabs rax, 0x101010101010101
imul rax, rcx
shr rax, 0x38
cmp eax, 1
ja 0x1400b71b9
lea rax, [rdx - 1]
bsr rcx, rax
xor ecx, 0x3f
neg cl
mov eax, 1
shl rax, cl
cmp rdx, 2
cmovb rax, rdx
jmp 0x1400b71c1
mov rcx, rdx
call fcn.1400fb590
cmp rdi, rax
cmovbe rdi, rax
cmp rdi, rbx
jb 0x1400b70ae
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x1400b7870
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x10]
cmp r15, qword [rcx + 0x18]
je 0x1400b78af
test r15, r15
je 0x1400b799d
mov rax, qword [rdi]
mov qword [r15], rax
add qword [rsi + 0x10], 8
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
mov r14, qword [rsi]
mov rbx, qword [rsi + 8]
mov rax, rbx
sub rax, r14
jbe 0x1400b78f9
sar rax, 3
lea rcx, [rax + 1]
shr rcx, 0x3f
lea r14, [rax + rcx]
inc r14
shr r14, 1
shl r14, 3
mov rcx, rbx
sub rcx, r14
mov r8, r15
sub r8, rbx
mov rdx, rbx
call fcn.14014f780
sub r15, r14
mov qword [rsi + 0x10], r15
sub qword [rsi + 8], r14
jmp 0x1400b788d
mov rax, r15
sub rax, r14
sar rax, 2
cmp r15, r14
mov r12d, 1
cmovne r12, rax
mov rax, r12
shr rax, 0x3d
jne 0x1400b79c9
lea rcx, [r12*8]
call fcn.14014c3b0
mov rcx, r12
and rcx, 0xfffffffffffffffc
lea rcx, [rax + rcx*2]
mov rdx, rcx
sub r15, rbx
je 0x1400b796d
mov r8, r15
sar r8, 3
and r15, 0xfffffffffffffff8
mov rdx, r15
add rdx, rcx
shl r8, 3
xor r9d, r9d
mov r10, rcx
add r10, r9
je 0x1400b799d
mov r11, qword [rbx + r9]
mov qword [r10], r11
add r9, 8
cmp r8, r9
jne 0x1400b7955
lea r8, [rax + r12*8]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
mov qword [rsi + 0x18], r8
mov r15, rdx
test r14, r14
je 0x1400b788d
mov rcx, r14
call fcn.14014c3ec
mov r15, qword [rsi + 0x10]
jmp 0x1400b788d
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.14018a2b0
call fcn.140189a80
int3
Function at 0x1400b8d30
Capabilities:
Initialize winsock library

Disassembly:
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x1b8], rax
mov rax, qword [0x140244338]
cmp rax, 1
jbe 0x1400b8d71
mov rcx, qword [rsp + 0x1b8]
xor rcx, rsp
call fcn.14014ced0
nop
add rsp, 0x1c0
pop rsi
ret
lea rcx, [0x140244338]
call fcn.14009b320
test al, al
je 0x1400b8dc8
lea rsi, [rsp + 0x20]
mov r8d, 0x198
mov rcx, rsi
mov dl, 0xaa
call fcn.14014fe30
mov cx, 0x202
mov rdx, rsi
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400b8dad
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, [0x140244340]
lea rcx, [0x140244338]
xor r8d, r8d
mov r9, rcx
call fcn.14009b3e0
jmp 0x1400b8d57
mov rax, qword [0x140244338]
jmp 0x1400b8d57
Function at 0x1400b9350
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rdx
mov rsi, rcx
mov dword [rcx], 1
xor eax, eax
mov qword [rcx + 8], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1400b9382
call fcn.140100430
cmp qword [rsi + 8], r14
je 0x1400b93b4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400b93cf
cmp r15, 2
jb 0x1400b93ac
mov qword [rsi + 8], r14
call fcn.140100430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x1400b93e7
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140100430
mov rcx, qword [rsi + 8]
call fcn.140112e70
mov qword [rsi + 8], 0
jmp 0x1400b939d
call fcn.140100430
mov rcx, qword [rdi]
call fcn.140112e70
mov qword [rdi], 0
jmp 0x1400b93c0
Function at 0x1400c3c30
Capabilities:
Set thread local storage value

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x50], rax
test rcx, rcx
je 0x1400c3e4c
movabs rax, 0xe69e32f3ad9ea63
cmp qword [0x140232a80], rax
jne 0x1400c3e4f
mov rsi, rcx
mov r14d, dword [rcx + 0xc]
add r14, 0x518
mov byte [rsp + 0x3f], 0xaa
mov dl, byte [rcx + 2]
mov rcx, r14
call fcn.140102160
movzx eax, ax
lea r12, [rax + rax*4]
lea r15, [rsi + r12*8]
add r15, 0x48
lea rbx, [rsi + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x1400c3e0e
mov rax, qword [r15]
mov rdi, qword [rax]
test rdi, rdi
je 0x1400c3d9c
mov byte [rsp + 0x3f], 0
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400c3e07
lea rdx, [rsi + r12*8]
bswap rcx
mov r14d, dword [rdx + 0x60]
mov rdx, rcx
xor rdx, rdi
cmp rdx, 0x1fffff
ja 0x1400c3e1b
mov edx, ecx
and edx, 0x1fc000
je 0x1400c3e1b
prefetcht0 byte [rcx]
mov qword [rax], rcx
mov ecx, dword [rax + 0x18]
lea edx, [rcx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [rax + 0x18], ecx
mov rax, qword [rax + 0x10]
mov eax, dword [rax + 0x18]
add rax, qword [rsi + 0x1498]
mov qword [rsi + 0x1498], rax
mov rcx, qword [rsi + 0x14a0]
cmp rcx, rax
cmova rax, rcx
mov qword [rsi + 0x14a0], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, rdi
mov rdx, rsi
call fcn.14012abf0
mov ecx, dword [0x140248958]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x14023ece4]
mov rcx, qword gs:[0x58]
mov rax, qword [rcx + rax*8]
mov qword [rax + 0x120], rdi
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014ced0
mov rax, rdi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rax, [rsp + 0x3f]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x4000
mov rcx, r15
mov rdx, rsi
mov r8d, 2
mov r9, r14
call fcn.14012bbd0
test rax, rax
je 0x1400c3e52
mov rdi, 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 0x1400c3d17
xor ecx, ecx
jmp 0x1400c3cfd
mov rcx, rbx
call fcn.14012ba40
jmp 0x1400c3cae
movaps xmm0, xmmword [0x14020b860]
lea rsi, [rsp + 0x40]
movaps xmmword [rsi], xmm0
mov r8, qword [rdi]
lea rdx, str.first
mov rcx, rsi
call fcn.1401aeb70
mov rcx, rsi
call fcn.140039860
mov rcx, r14
call fcn.1401aebe0
int3
int3
xor edi, edi
jmp 0x1400c3d41
Function at 0x1400c8b20
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
lea rdx, [rsi + 0x18]
mov rax, qword [rcx]
mov rax, qword [rax + 0x90]
call qword [case.0x1401b58f0.0]
mov byte [rsi + 0x429], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x1401b58f0.0]
test rax, rax
je 0x1400c8bcd
mov eax, dword [0x14024a3a0]
mov ecx, dword [0x14023ece4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c8b92
lea rcx, [0x14024a390]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14010cc90
lea rcx, [0x14024a3a0]
call fcn.14014c510
cmp dword [0x14024a3a0], 0xffffffff
jne 0x1400c8b7e
xorps xmm0, xmm0
movups xmmword [0x14024a390], xmm0
lea rcx, [0x14024a390]
xor edx, edx
call fcn.1400a7400
lea rcx, [0x14024a3a0]
call fcn.14014c5a8
jmp 0x1400c8b7e
add rsp, 0x20
pop rsi
ret

Function at 0x1400cbc30
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14024a3e8]
cmp rdi, 1
jbe 0x1400cbc59
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14010cc90
lea rcx, [0x14024a3e8]
call fcn.14009b320
test al, al
je 0x1400cbc9e
xorps xmm0, xmm0
movups xmmword [0x14024a3f0], xmm0
lea rbx, [0x14024a3e8]
lea rdi, [0x14024a3f0]
mov rcx, rdi
xor edx, edx
call fcn.1400a7400
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14009b3e0
jmp 0x1400cbc47
mov rdi, qword [0x14024a3e8]
jmp 0x1400cbc47

Function at 0x1400cc0e0
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 0x1400cc0f5
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400cd1e0
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
cmp dword [rcx + 0x10], 0
jne 0x1400cd2ce
cmp qword [rsi], 0
jne 0x1400cd2ce
cmp dword [rsi + 0x14], 0
jne 0x1400cd2ce
cmp qword [rsi + 8], 0
jne 0x1400cd2ce
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400cd250
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400cd2a0
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400cd248
mov qword [rsi], r14
call fcn.140100430
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400cd28a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400cd2b6
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400cd282
mov qword [rsi + 8], r14
call fcn.140100430
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 rdi
pop rsi
pop r14
ret
call fcn.140100430
mov rcx, qword [rsi]
call fcn.140112e70
mov qword [rsi], 0
jmp 0x1400cd236
call fcn.140100430
mov rcx, qword [rsi + 8]
call fcn.140112e70
mov qword [rsi + 8], 0
jmp 0x1400cd26f
mov rcx, rsi
call fcn.1401c2ba0
mov rax, qword [rsi]
jmp 0x1400cd21a
Function at 0x1400cd4c0
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
jne 0x1400cd589
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400cd5f7
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400cd581
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400cd585
call fcn.140100430
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x1400cd546
test rbx, rbx
je 0x1400cd569
call fcn.140100430
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400cd561
mov qword [rsi + 8], rbx
call fcn.140100430
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14014ced0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x1400cd52b
xor ebx, ebx
jmp 0x1400cd523
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400cd5f7
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea rbx, [rsp + 0x28]
mov qword [rbx], 0
mov rcx, rbx
call fcn.1400ef060
mov rcx, qword [rbx]
mov edx, 1
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x1400cd5ff
mov rax, qword [rsp + 0x28]
inc rax
cmp rax, 2
jb 0x1400cd506
call fcn.140100430
mov rcx, qword [rsp + 0x28]
call fcn.140112e70
jmp 0x1400cd506
mov byte [rsi], 0
jmp 0x1400cd569
mov byte [rsi], 0
mov rax, qword [rsp + 0x28]
inc rax
cmp rax, 2
jb 0x1400cd569
call fcn.140100430
mov rcx, qword [rsp + 0x28]
call fcn.140112e70
jmp 0x1400cd569

Function at 0x1400ce3b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.1400a5ee0
test al, al
jne 0x1400ce438
call fcn.1400a5e70
movzx edx, al
mov ecx, esi
call fcn.1400aef00
mov eax, dword [0x14024a4a8]
mov ecx, dword [0x14023ece4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ce407
movsxd rdx, esi
inc rdx
lea rcx, [0x14024a498]
add rsp, 0x20
pop rsi
jmp fcn.14010cc90
lea rcx, [0x14024a4a8]
call fcn.14014c510
cmp dword [0x14024a4a8], 0xffffffff
jne 0x1400ce3f0
lea rcx, [0x14024a498]
xor edx, edx
call fcn.1400a7400
lea rcx, [0x14024a4a8]
call fcn.14014c5a8
jmp 0x1400ce3f0
mov edx, 3
jmp 0x1400ce3c8

Function at 0x1400ce440
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.1400aef00
mov eax, dword [0x14024a4a8]
mov ecx, dword [0x14023ece4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ce484
movsxd rdx, esi
inc rdx
lea rcx, [0x14024a498]
add rsp, 0x20
pop rsi
jmp fcn.14010cc90
lea rcx, [0x14024a4a8]
call fcn.14014c510
cmp dword [0x14024a4a8], 0xffffffff
jne 0x1400ce46d
lea rcx, [0x14024a498]
xor edx, edx
call fcn.1400a7400
lea rcx, [0x14024a4a8]
call fcn.14014c5a8
jmp 0x1400ce46d
Function at 0x1400cec20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400ced6d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x14020b860]
lea rdi, [rsp + 0x40]
movaps xmmword [rdi], xmm0
movaps xmmword [rdi - 0x10], xmm0
movaps xmmword [rdi - 0x20], xmm0
lea r12, [rsp + 0x30]
lea rbx, [rcx + 0x108]
mov eax, dword [rcx + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rcx + 0x114], eax
mov rax, qword [rcx + 0xf8]
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov r8, rsi
call qword [case.0x1401b58f0.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, r12
mov r8, rsi
call qword [case.0x1401b58f0.0]
mov eax, dword [rsi + 0x114]
bswap eax
inc eax
bswap eax
mov dword [rsi + 0x114], eax
mov rax, qword [rsi + 0xf8]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call qword [case.0x1401b58f0.0]
test r14, r14
je 0x1400ced03
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400cecf3
lea r14, [rsi + 0xf8]
mov eax, dword [0x14024a4d4]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400ced71
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400ced3e
lea rcx, [fcn.140001000]
mov qword [r14], rcx
mov qword [rsi + 0x100], rax
movups xmm0, xmmword [rdi]
movups xmmword [rbx], xmm0
mov esi, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14014ced0
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400ced50
bt eax, 9
jae 0x1400ced91
call fcn.140004450
lea rax, [0x140004920]
test r14, r14
je 0x1400ced3e
lea rcx, [0x140004620]
jmp 0x1400ced3b
call fcn.1401c3f30
lea rax, [0x1401c4730]
test r14, r14
je 0x1400ced3e
lea rcx, [0x1401c3df0]
jmp 0x1400ced3b
Function at 0x1400d26c0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400d280d
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400d2806
cmp r14, rax
ja 0x1400d2812
lea rcx, [r14*8]
call fcn.14014c3b0
shl rbx, 3
add rbx, rax
je 0x1400d2817
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rdi], 0
mov qword [rbx], rcx
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
jne 0x1400d2785
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x1400d27e2
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rdx - 8]
mov qword [rdx - 8], 0
lea r9, [rdx - 8]
mov qword [rbx - 8], r8
add rbx, 0xfffffffffffffff8
mov rdx, r9
cmp r9, rdi
jne 0x1400d2785
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x1400d2776
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400d2843
mov rcx, qword [r14]
mov qword [r14], 0
test rcx, rcx
jne 0x1400d27f3
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
je 0x1400d2776
jmp 0x1400d27c0
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14014c3ec
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401b58f0.0]
jmp 0x1400d27d4
xor eax, eax
jmp 0x1400d273d
call fcn.1401663e0
call fcn.140189a80
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.14018a2b0
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.14018a2b0
int3

Function at 0x1400d9280
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x14024b2d8], 0
jne 0x1400d92bd
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400d92b0
mov dword [rdi], eax
mov dword [0x14024b2e0], eax
mov qword [0x14024b2d8], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400d9360
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x70
mov rdi, r8
mov rsi, rdx
mov r12, qword [rsp + 0xd8]
mov rbx, qword [rsp + 0xd0]
mov rax, qword [0x14022f038]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r15, rbx
shr r15, 0x20
movzx eax, r9b
lea ebp, [rax + rax]
add ebp, 4
mov qword [rsp + 0x20], r12
mov rcx, r8
mov edx, ebp
mov r8d, r15d
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
je 0x1400d9427
movaps xmm0, xmmword [0x14020b860]
lea rdi, [rsp + 0x30]
movaps xmmword [rdi + 0x20], xmm0
movaps xmmword [rdi + 0x10], xmm0
movaps xmmword [rdi], xmm0
mov r8d, 0x30
mov rcx, r14
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rcx, qword [rdi + 0x18]
sub rcx, r14
add rcx, qword [rdi + 8]
test rax, rax
cmove rcx, rax
mov byte [rsi], 1
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], r14
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.14014ced0
mov rax, rsi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1401c8900
mov qword [rsp + 0x20], r12
mov rcx, rdi
mov edx, ebp
mov r8d, r15d
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r14, rax
test rax, rax
jne 0x1400d93c2
call fcn.1401c8900
mov byte [rsi], 0
jmp 0x1400d9408

Function at 0x1400dd4d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x14024b318]
mov ecx, dword [0x14023ece4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dd50d
lea rcx, [0x14024b308]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.14010cc90
lea rcx, [0x14024b318]
call fcn.14014c510
cmp dword [0x14024b318], 0xffffffff
jne 0x1400dd4f9
xorps xmm0, xmm0
movups xmmword [0x14024b308], xmm0
lea rcx, [0x14024b308]
xor edx, edx
call fcn.1400a7400
lea rcx, [0x14024b318]
call fcn.14014c5a8
jmp 0x1400dd4f9

Function at 0x1400dd550
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14024b318]
mov ecx, dword [0x14023ece4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400dd585
lea rcx, [0x14024b308]
add rsp, 0x28
jmp fcn.1400a7360
lea rcx, [0x14024b318]
call fcn.14014c510
cmp dword [0x14024b318], 0xffffffff
jne 0x1400dd575
xorps xmm0, xmm0
movups xmmword [0x14024b308], xmm0
lea rcx, [0x14024b308]
xor edx, edx
call fcn.1400a7400
lea rcx, [0x14024b318]
call fcn.14014c5a8
jmp 0x1400dd575
Function at 0x1400e0590
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rsi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x1400e06c7
movabs rax, 0x1fffffffffffffff
mov r8, qword [rsi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x1400e06cc
cmp r14, rax
ja 0x1400e06d3
lea rcx, [r14*8]
call fcn.14014c3b0
shl rbx, 3
add rbx, rax
je 0x1400e06d8
lea rax, [rax + r14*8]
mov rcx, qword [rdi]
mov qword [rbx], rcx
mov qword [rdi], 0
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
jne 0x1400e0648
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400e06a6
mov r8, qword [rdx - 8]
mov qword [rbx - 8], r8
mov qword [rdx - 8], 0
lea r8, [rdx - 8]
add rbx, 0xfffffffffffffff8
mov rdx, r8
cmp r8, rdi
jne 0x1400e0648
mov rdi, qword [rsi]
mov r14, qword [rsi + 8]
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
cmp r14, rdi
je 0x1400e06a6
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400e0704
mov rcx, qword [r14]
test rcx, rcx
je 0x1400e069a
lock dec dword [rcx + 8]
je 0x1400e0730
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x1400e0683
test rdi, rdi
je 0x1400e06bc
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14014c3ec
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.1401663e0
xor eax, eax
jmp 0x1400e060d
call fcn.140189a80
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.14018a2b0
lea rax, str.null_pointer_given_to_destroy_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.__loc___nullptr
mov r8d, 0x3f
call fcn.14018a2b0
mov edx, 1
call fcn.1400e9020
jmp 0x1400e069a

Function at 0x1400e17b0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x14024b338]
cmp rdi, 1
jbe 0x1400e17d9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.14010cc90
lea rcx, [0x14024b338]
call fcn.14009b320
test al, al
je 0x1400e181e
xorps xmm0, xmm0
movups xmmword [0x14024b340], xmm0
lea rbx, [0x14024b338]
lea rdi, [0x14024b340]
mov rcx, rdi
xor edx, edx
call fcn.1400a7400
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.14009b3e0
jmp 0x1400e17c7
mov rdi, qword [0x14024b338]
jmp 0x1400e17c7