joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400c4c80
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.0x1401b1830.0]
mov byte [rsi + 0x429], 1
mov rcx, qword [rsi + 0x30]
mov rax, qword [rcx]
mov rax, qword [rax + 0x50]
call qword [case.0x1401b1830.0]
test rax, rax
je 0x1400c4d2d
mov eax, dword [0x140245160]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400c4cf2
lea rcx, [0x140245150]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140108d40
lea rcx, [0x140245160]
call fcn.1401485a0
cmp dword [0x140245160], 0xffffffff
jne 0x1400c4cde
xorps xmm0, xmm0
movups xmmword [0x140245150], xmm0
lea rcx, [0x140245150]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x140245160]
call fcn.140148638
jmp 0x1400c4cde
add rsp, 0x20
pop rsi
ret

Function at 0x1400c7d90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1402451a8]
cmp rdi, 1
jbe 0x1400c7db9
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140108d40
lea rcx, [0x1402451a8]
call fcn.1400977e0
test al, al
je 0x1400c7dfe
xorps xmm0, xmm0
movups xmmword [0x1402451b0], xmm0
lea rbx, [0x1402451a8]
lea rdi, [0x1402451b0]
mov rcx, rdi
xor edx, edx
call fcn.1400a3650
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400978a0
jmp 0x1400c7da7
mov rdi, qword [0x1402451a8]
jmp 0x1400c7da7

Function at 0x1400c8240
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 0x1400c8255
mov dword [rsi], eax
cmp eax, 0xffffffff
setne al
add rsp, 0x20
pop rsi
ret
Function at 0x1400c9340
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 0x1400c942e
cmp qword [rsi], 0
jne 0x1400c942e
cmp dword [rsi + 0x14], 0
jne 0x1400c942e
cmp qword [rsi + 8], 0
jne 0x1400c942e
xor eax, eax
mov r14, qword [rdi]
cmp rax, r14
je 0x1400c93b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400c9400
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400c93a8
mov qword [rsi], r14
call fcn.1400fc5f0
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov r14, qword [rdi + 8]
cmp qword [rsi + 8], r14
je 0x1400c93ea
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi + 8]
inc rax
cmp rax, 2
jae 0x1400c9416
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400c93e2
mov qword [rsi + 8], r14
call fcn.1400fc5f0
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.1400fc5f0
mov rcx, qword [rsi]
call fcn.14010ef00
mov qword [rsi], 0
jmp 0x1400c9396
call fcn.1400fc5f0
mov rcx, qword [rsi + 8]
call fcn.14010ef00
mov qword [rsi + 8], 0
jmp 0x1400c93cf
mov rcx, rsi
call fcn.1401beae0
mov rax, qword [rsi]
jmp 0x1400c937a
Function at 0x1400c9650
Capabilities:
Check if file exists

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
test r8b, r8b
jne 0x1400c9719
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 8
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400c9787
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x1400c9711
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbx, 0xffffffffffffffff
je 0x1400c9715
call fcn.1400fc5f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov byte [rsi], 1
mov qword [rsi + 8], 0
cmp rbx, 0xffffffffffffffff
je 0x1400c96d6
test rbx, rbx
je 0x1400c96f9
call fcn.1400fc5f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rbx + 1]
cmp rax, 2
jb 0x1400c96f1
mov qword [rsi + 8], rbx
call fcn.1400fc5f0
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140148f60
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret
xor ebx, ebx
jmp 0x1400c96bb
xor ebx, ebx
jmp 0x1400c96b3
lea r8, [rsp + 0x30]
mov rcx, rdx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400c9787
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea rbx, [rsp + 0x28]
mov qword [rbx], 0
mov rcx, rbx
call fcn.1400eb220
mov rcx, qword [rbx]
mov edx, 1
mov r8, rdi
call qword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x1400c978f
mov rax, qword [rsp + 0x28]
inc rax
cmp rax, 2
jb 0x1400c9696
call fcn.1400fc5f0
mov rcx, qword [rsp + 0x28]
call fcn.14010ef00
jmp 0x1400c9696
mov byte [rsi], 0
jmp 0x1400c96f9
mov byte [rsi], 0
mov rax, qword [rsp + 0x28]
inc rax
cmp rax, 2
jb 0x1400c96f9
call fcn.1400fc5f0
mov rcx, qword [rsp + 0x28]
call fcn.14010ef00
jmp 0x1400c96f9

Function at 0x1400ca540
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.1400a2130
test al, al
jne 0x1400ca5c8
call fcn.1400a20c0
movzx edx, al
mov ecx, esi
call fcn.1400ab060
mov eax, dword [0x140245268]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ca597
movsxd rdx, esi
inc rdx
lea rcx, [0x140245258]
add rsp, 0x20
pop rsi
jmp fcn.140108d40
lea rcx, [0x140245268]
call fcn.1401485a0
cmp dword [0x140245268], 0xffffffff
jne 0x1400ca580
lea rcx, [0x140245258]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x140245268]
call fcn.140148638
jmp 0x1400ca580
mov edx, 3
jmp 0x1400ca558

Function at 0x1400ca5d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov esi, ecx
call fcn.1400ab060
mov eax, dword [0x140245268]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400ca614
movsxd rdx, esi
inc rdx
lea rcx, [0x140245258]
add rsp, 0x20
pop rsi
jmp fcn.140108d40
lea rcx, [0x140245268]
call fcn.1401485a0
cmp dword [0x140245268], 0xffffffff
jne 0x1400ca5fd
lea rcx, [0x140245258]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x140245268]
call fcn.140148638
jmp 0x1400ca5fd
Function at 0x1400cade0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp r8, 0x30
ja 0x1400caf2d
mov r14, r8
mov r15, rdx
mov rsi, rcx
movaps xmm0, xmmword [0x140206780]
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.0x1401b1830.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.0x1401b1830.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.0x1401b1830.0]
test r14, r14
je 0x1400caec3
xor eax, eax
mov cl, byte [r15 + rax]
xor byte [rsp + rax + 0x20], cl
inc rax
cmp r14, rax
jne 0x1400caeb3
lea r14, [rsi + 0xf8]
mov eax, dword [0x140245294]
lea rcx, [rsp + 0x20]
mov edx, 0x100
mov r8, rsi
bt eax, 0x19
jae 0x1400caf31
call fcn.140003260
lea rax, [0x140001d60]
test r14, r14
je 0x1400caefe
lea rcx, section..text
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.140148f60
mov eax, esi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor esi, esi
jmp 0x1400caf10
bt eax, 9
jae 0x1400caf51
call fcn.140004450
lea rax, [0x140004920]
test r14, r14
je 0x1400caefe
lea rcx, [0x140004620]
jmp 0x1400caefb
call fcn.1401bfe70
lea rax, [0x1401c0670]
test r14, r14
je 0x1400caefe
lea rcx, [0x1401bfd30]
jmp 0x1400caefb
Function at 0x1400ce880
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 0x1400ce9cd
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 0x1400ce9c6
cmp r14, rax
ja 0x1400ce9d2
lea rcx, [r14*8]
call fcn.140148440
shl rbx, 3
add rbx, rax
je 0x1400ce9d7
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 0x1400ce945
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
test rdi, rdi
jne 0x1400ce9a2
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 0x1400ce945
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 0x1400ce936
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400cea03
mov rcx, qword [r14]
mov qword [r14], 0
test rcx, rcx
jne 0x1400ce9b3
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
je 0x1400ce936
jmp 0x1400ce980
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14014847c
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401b1830.0]
jmp 0x1400ce994
xor eax, eax
jmp 0x1400ce8fd
call fcn.140162470
call fcn.140185b10
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.140186340
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.140186340
int3

Function at 0x1400d5440
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp qword [0x140246098], 0
jne 0x1400d547d
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400d5470
mov dword [rdi], eax
mov dword [0x1402460a0], eax
mov qword [0x140246098], rsi
cmp eax, 0xffffffff
setne al
add rsp, 0x28
pop rdi
pop rsi
ret
int3
Function at 0x1400d5520
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 [0x14022a038]
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 0x1400d55e7
movaps xmm0, xmmword [0x140206780]
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.140148f60
mov rax, rsi
add rsp, 0x70
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
call fcn.1401c4840
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 0x1400d5582
call fcn.1401c4840
mov byte [rsi], 0
jmp 0x1400d55c8

Function at 0x1400d9690
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402460d8]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d96cd
lea rcx, [0x1402460c8]
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140108d40
lea rcx, [0x1402460d8]
call fcn.1401485a0
cmp dword [0x1402460d8], 0xffffffff
jne 0x1400d96b9
xorps xmm0, xmm0
movups xmmword [0x1402460c8], xmm0
lea rcx, [0x1402460c8]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x1402460d8]
call fcn.140148638
jmp 0x1400d96b9

Function at 0x1400d9710
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402460d8]
mov ecx, dword [0x140239ae4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1400d9745
lea rcx, [0x1402460c8]
add rsp, 0x28
jmp fcn.1400a35b0
lea rcx, [0x1402460d8]
call fcn.1401485a0
cmp dword [0x1402460d8], 0xffffffff
jne 0x1400d9735
xorps xmm0, xmm0
movups xmmword [0x1402460c8], xmm0
lea rcx, [0x1402460c8]
xor edx, edx
call fcn.1400a3650
lea rcx, [0x1402460d8]
call fcn.140148638
jmp 0x1400d9735
Function at 0x1400dc750
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 0x1400dc887
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 0x1400dc88c
cmp r14, rax
ja 0x1400dc893
lea rcx, [r14*8]
call fcn.140148440
shl rbx, 3
add rbx, rax
je 0x1400dc898
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 0x1400dc808
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400dc866
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 0x1400dc808
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 0x1400dc866
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400dc8c4
mov rcx, qword [r14]
test rcx, rcx
je 0x1400dc85a
lock dec dword [rcx + 8]
je 0x1400dc8f0
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x1400dc843
test rdi, rdi
je 0x1400dc87c
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14014847c
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140162470
xor eax, eax
jmp 0x1400dc7cd
call fcn.140185b10
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.140186340
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.140186340
mov edx, 1
call fcn.1400e51e0
jmp 0x1400dc85a

Function at 0x1400dd970
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov rdi, qword [0x1402460f8]
cmp rdi, 1
jbe 0x1400dd999
mov rcx, rdi
mov rdx, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
jmp fcn.140108d40
lea rcx, [0x1402460f8]
call fcn.1400977e0
test al, al
je 0x1400dd9de
xorps xmm0, xmm0
movups xmmword [0x140246100], xmm0
lea rbx, [0x1402460f8]
lea rdi, [0x140246100]
mov rcx, rdi
xor edx, edx
call fcn.1400a3650
mov rcx, rbx
mov rdx, rdi
xor r8d, r8d
mov r9, rbx
call fcn.1400978a0
jmp 0x1400dd987
mov rdi, qword [0x1402460f8]
jmp 0x1400dd987
Function at 0x1400df140
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 0x1400df283
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 0x1400df27c
cmp r14, rax
ja 0x1400df288
lea rcx, [r14*8]
call fcn.140148440
shl rbx, 3
add rbx, rax
je 0x1400df28d
mov rcx, qword [rdi]
mov qword [rbx], rcx
test rcx, rcx
je 0x1400df1d9
lock inc dword [rcx + 8]
lea rax, [rax + r14*8]
lea rcx, [rbx + 8]
mov rdi, qword [rsi]
mov rdx, qword [rsi + 8]
cmp rdx, rdi
je 0x1400df265
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 0x1400df1ed
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 0x1400df24f
add r14, 0xfffffffffffffff8
test r14, r14
je 0x1400df2b9
mov rcx, qword [r14]
test rcx, rcx
je 0x1400df243
lock dec dword [rcx + 8]
je 0x1400df2e5
lea rax, [r14 - 8]
cmp r14, rdi
mov r14, rax
jne 0x1400df228
test rdi, rdi
je 0x1400df272
mov rcx, rdi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14014847c
mov qword [rsi], rbx
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rax
jmp 0x1400df24f
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x1400df1bd
call fcn.140162470
call fcn.140185b10
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.140186340
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.140186340
mov edx, 1
call fcn.1400e51e0
jmp 0x1400df243
Function at 0x1400e0b70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rdx
mov ebx, ecx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
lea rax, [0x1400e0b40]
lea r8, [rsp + 0x28]
mov qword [r8], rax
lea rcx, [0x140246190]
lea rdx, [0x1400e09c0]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x1400e0c79
cmp dword [0x140246198], 0
jne 0x1400e0c86
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
mov ecx, dword [0x14024619c]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r14, rax
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1400e0c2d
mov ecx, 0x28
call fcn.14012ef00
test rax, rax
je 0x1400e0c86
mov r14, rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax], xmm0
mov qword [rax + 0x20], 0
mov ecx, dword [0x14024619c]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400e0c7e
lea r15, [0x1402461a0]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_AcquireSRWLockExclusive]
movsxd rbx, ebx
lea rax, [0x1402461b0]
mov qword [rax + rbx*8], rdi
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov qword [r14 + rbx*8], rsi
mov esi, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140148f60
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140162470
mov rcx, r14
call fcn.14012ef40
mov rcx, rsi
mov rax, rdi
call qword [case.0x1401b1830.0]
xor esi, esi
jmp 0x1400e0c5d

Function at 0x1400e0ca0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test rdx, rdx
je 0x1400e0cdc
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 0x1400e0ce6
add rdi, rbx
sub rsi, rbx
jne 0x1400e0cba
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140162470
int3

Function at 0x1400e2260
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rsi
sub rsp, 0x30
mov rax, rcx
mov rcx, qword [0x14022a038]
xor rcx, rsp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1400e22e3
cmp byte [rax + 0x90], 0
jne 0x1400e22e3
mov sil, 1
cmp byte [rax + 0x91], 0
jne 0x1400e22ce
lea rdx, [rsp + 0x27]
mov byte [rdx], 0xaa
mov r8d, 1
mov r9d, 2
call qword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
je 0x1400e22e3
cmp esi, 0xffffffff
setne cl
cmp eax, 0x2733
sete sil
or sil, cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140148f60
mov eax, esi
add rsp, 0x30
pop rsi
ret
xor esi, esi
jmp 0x1400e22ce
Function at 0x1400e22f0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x14022a038]
xor rax, rsp
mov qword [rsp + 0xb8], rax
lea rbx, [rsp + 0x28]
mov r8d, SysAllocStringByteLen
mov rcx, rbx
mov dl, 0xaa
call fcn.14014bec0
mov rcx, rbx
call fcn.1400e2730
lea r8, [rsp + 0xa8]
mov rdx, qword [r8 + 8]
mov rcx, qword [rdi + 8]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1400e238a
mov r8d, dword [rsp + 0xa8]
mov rdx, qword [rsp + 0xb0]
mov rcx, rsi
call fcn.1400b48b0
xor ecx, ecx
test al, al
mov esi, 0xffffff94
cmovne esi, ecx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.140148f60
mov eax, esi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
call fcn.1400e27f0
mov esi, eax
jmp 0x1400e236d