joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400187b0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
xor ebp, ebp
lea r15, [0x1401fd840]
mov rdi, r9
mov r14, rdx
mov rsi, rcx
mov ebx, ebp
cmp rcx, 0xffffffffffffffff
je 0x1400188e2
test r8b, r8b
je 0x140018829
movzx eax, byte [rdx]
test al, 8
je 0x140018829
or al, 8
mov dword [rsp + 0x60], ebp
xor ecx, ecx
mov byte [rdx], al
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea r9, [rsp + 0x60]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x80
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
je 0x1400188e2
mov ecx, dword [rdi]
movabs rdx, 0x8fafd21e25c5e09b
cmp ecx, 0x2733
jne 0x140018880
mov rax, qword [rdi + 8]
cmp qword [rax + 8], rdx
je 0x140018892
cmp ecx, 0x4d5
jne 0x1400188de
mov rax, qword [rdi + 8]
cmp qword [rax + 8], rdx
jne 0x1400188de
lea r8, [rsp + 0x60]
mov dword [rsp + 0x60], ebp
mov edx, 0x8004667e
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [r14], 0xfc
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], r15
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x1400188f8
mov dword [rsp + 0x30], ebp
mov byte [rsp + 0x34], bpl
mov qword [rsp + 0x38], r15
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x140018920
Capabilities:
Connect socket
Get socket status

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x388]
sub rsp, 0x488
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0x370], rax
xor r15d, r15d
mov rdi, r9
mov rsi, r8
mov rbx, rdx
mov r14, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140018982
lea rsi, [0x1401fd840]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rsi
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [r9], xmm0
jmp 0x1400189db
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov r8d, esi
mov rdx, rbx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
lea rsi, [0x1401fd840]
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
jne 0x1400189db
mov dword [rsp + 0x30], r15d
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov ecx, dword [rdi]
movabs rdx, 0x8fafd21e25c5e09b
cmp ecx, 0x2734
jne 0x1400189f9
mov rax, qword [rdi + 8]
cmp qword [rax + 8], rdx
je 0x140018a13
cmp ecx, 0x2733
jne 0x140018b26
mov rax, qword [rdi + 8]
cmp qword [rax + 8], rdx
jne 0x140018b26
cmp r14, 0xffffffffffffffff
jne 0x140018a2b
mov dword [rsp + 0x30], 0x2719
mov byte [rsp + 0x34], 1
jmp 0x140018b19
xor ecx, ecx
mov qword [rbp + 0x168], r14
mov dword [rbp + 0x160], 1
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x50], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r14 + 1]
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x50]
xor edx, edx
lea r8, [rbp + 0x160]
call qword [sym.imp.WS2_32.dll_select]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rsi
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
test ebx, ebx
js 0x140018b26
mov dword [rsp + 0x30], r15d
xor ecx, ecx
mov byte [rsp + 0x34], r15b
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
mov dword [rsp + 0x40], r15d
movups xmmword [rdi], xmm0
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x44], 4
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov edx, 0xffff
mov r8d, 0x1007
mov rcx, r14
call qword [sym.imp.WS2_32.dll_getsockopt]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rsi
setne byte [rsp + 0x34]
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
cmp ebx, 0xffffffff
je 0x140018b26
mov eax, dword [rsp + 0x40]
test eax, eax
mov dword [rsp + 0x30], eax
setne byte [rsp + 0x34]
mov qword [rsp + 0x38], rsi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov rcx, qword [rbp + 0x370]
xor rcx, rsp
call fcn.140158980
add rsp, 0x488
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140018e40
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x20], r9d
push rdi
sub rsp, 0x50
mov rsi, rcx
mov rbx, r8
xor ecx, ecx
mov rdi, rdx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
xor ebp, ebp
lea r9, [rsp + 0x78]
mov qword [rsp + 0x30], rbp
mov r8d, ebx
mov qword [rsp + 0x28], rbp
mov rdx, rdi
mov rcx, rsi
mov dword [rsp + 0x20], ebp
mov dword [rsp + 0x78], ebp
call qword [sym.imp.WS2_32.dll_WSASend]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x80]
test eax, eax
mov dword [rsp + 0x40], eax
lea rax, [0x1401fd840]
setne byte [rsp + 0x44]
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov edx, dword [rcx]
cmp edx, 0x40
jne 0x140018ed2
mov dword [rsp + 0x40], 0x2746
jmp 0x140018ee2
cmp edx, 0x4d2
jne 0x140018ef4
mov dword [rsp + 0x40], 0x274d
mov byte [rsp + 0x44], 1
mov qword [rsp + 0x48], rax
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
test ebx, ebx
je 0x140018eff
mov eax, 0xffffffff
jmp 0x140018f19
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x78]
mov dword [rsp + 0x40], ebp
mov byte [rsp + 0x44], bpl
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x140018f30
Capabilities:
Get socket status

Disassembly:
push rbp
push rbx
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x198]
sub rsp, 0x298
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rbp + 0x180], rax
mov rbx, qword [rbp + 0x200]
mov rax, r9
mov qword [rsp + 0x30], rax
mov r13, r8
movzx r12d, dl
mov r15, rcx
cmp rcx, 0xffffffffffffffff
jne 0x140018fa1
lea rdi, [0x1401fd840]
mov dword [rsp + 0x30], 0x2719
mov qword [rsp + 0x38], rdi
xor eax, eax
mov byte [rsp + 0x34], 1
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140019118
cmp byte [rbp + 0x1f8], 0
mov qword [rsp + 0x290], r14
je 0x140018fe0
test r12b, 0x10
je 0x140018fe0
xor r14d, r14d
lea rdi, [0x1401fd840]
mov dword [rsp + 0x30], r14d
xor eax, eax
mov byte [rsp + 0x34], r14b
mov qword [rsp + 0x38], rdi
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rbx], xmm0
jmp 0x140019110
mov r8, rax
mov qword [rsp + 0x2d8], rsi
mov rdx, r13
mov qword [rsp + 0x20], rbx
call fcn.140018e40
test eax, eax
jns 0x140019106
and r12b, 1
lea rdi, [0x1401fd840]
xor r14d, r14d
movabs rdx, 0x8fafd21e25c5e09b
nop dword [rax + rax]
test r12b, r12b
jne 0x140019138
mov ecx, dword [rbx]
cmp ecx, 0x2733
jne 0x14001903d
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
je 0x140019057
cmp ecx, 0x4d5
jne 0x140019138
mov rax, qword [rbx + 8]
cmp qword [rax + 8], rdx
jne 0x140019138
xor ecx, ecx
mov qword [rsp + 0x78], r15
mov dword [rsp + 0x70], 1
call qword [sym.imp.WS2_32.dll_WSASetLastError]
lea ecx, [r15 + 1]
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x70]
xor edx, edx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x48], rdi
setne byte [rsp + 0x44]
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
test esi, esi
jne 0x1400190c2
mov dword [rsp + 0x50], r14d
mov byte [rsp + 0x54], r14b
mov qword [rsp + 0x58], rdi
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rbx], xmm0
jmp 0x1400190df
jle 0x1400190db
mov dword [rsp + 0x60], r14d
mov byte [rsp + 0x64], r14b
mov qword [rsp + 0x68], rdi
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [rbx], xmm0
test esi, esi
js 0x140019138
mov r8, qword [rsp + 0x30]
mov rdx, r13
mov rcx, r15
mov qword [rsp + 0x20], rbx
call fcn.140018e40
movabs rdx, 0x8fafd21e25c5e09b
test eax, eax
js 0x140019020
cdqe
mov rsi, qword [rsp + 0x2d8]
mov r14, qword [rsp + 0x290]
mov rcx, qword [rbp + 0x180]
xor rcx, rsp
call fcn.140158980
add rsp, 0x298
pop r15
pop r13
pop r12
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
jmp 0x140019108
Function at 0x140019880
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rsi
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov eax, ebx
lock xadd dword [rcx + 0x30], eax
test eax, eax
jne 0x1400198e0
call fcn.1400199f0
mov dword [rsp + 0x28], ebx
mov byte [rsp + 0x2c], bl
lea rax, [0x1401fd840]
mov qword [rsp + 0x30], rax
movups xmm0, xmmword [rsp + 0x28]
movups xmmword [rsi], xmm0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rbx
lea rax, [rcx + 0x28]
test rdi, rdi
cmove rax, rbx
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov ecx, dword [0x140297ae4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov qword [rsp + 0x38], rax
lea rdx, [rsp + 0x28]
mov ecx, dword [0x140297ae4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
mov r8, rsi
mov rcx, rdi
call fcn.140019b50
test rax, rax
je 0x14001995f
nop dword [rax + rax]
lea rax, [rbx + 1]
cmp rbx, 0xffffffffffffffff
cmove rax, rbx
mov rbx, rax
mov r8, rsi
mov rcx, rdi
call fcn.140019b50
test rax, rax
jne 0x140019940
mov rdx, qword [rsp + 0x38]
mov ecx, dword [0x140297ae4]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
nop
lea rdi, [rsp + 0x40]
mov esi, 3
nop dword [rax + rax]
mov rcx, qword [rdi]
test rcx, rcx
je 0x14001998d
call fcn.140159060
add rdi, 8
sub rsi, 1
jne 0x140019980
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x14001a220
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rsp + 0xa8], rbx
mov r14, r8
mov rdi, rdx
mov r15, rcx
xor sil, sil
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
lea rbx, [rcx + 0x90]
mov ebp, 4
nop
mov r8, qword [rbx + 8]
test r8, r8
je 0x14001a2a5
xor edx, edx
mov rax, rdi
div r8
shl rdx, 4
mov rcx, qword [rbx]
add rcx, rdx
mov rax, qword [rcx]
mov rdx, qword [rbx - 0x20]
cmp rax, rdx
je 0x14001a2a9
mov rcx, qword [rcx + 8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x14001a2a5
cmp qword [rax + 0x10], rdi
je 0x14001a3b0
mov rax, qword [rax]
cmp rax, rcx
jne 0x14001a293
mov rdx, qword [rbx - 0x20]
lea rcx, [rbx - 0x28]
mov r9, r14
lea r8, [rsp + 0x48]
call fcn.140029050
test al, al
jne 0x14001a2c3
test sil, sil
je 0x14001a2c6
mov sil, 1
add rbx, 0x38
sub rbp, 1
jne 0x14001a260
lea rdx, [rsp + 0x48]
mov rcx, qword [r15 + 0x28]
call fcn.140019a60
test sil, sil
je 0x14001a342
mov byte [rsp + 0xa0], bpl
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x58], 1
mov rbx, qword [r15 + 0x60]
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov dword [rsp + 0xb8], ebp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], ebp
lea r9, [rsp + 0xb8]
lea r8d, [rbp + 1]
lea rdx, [rsp + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_WSASend]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
nop
mov rdi, qword [rsp + 0x48]
mov rdx, rdi
test rdi, rdi
je 0x14001a39c
mov rax, rdx
lea rsi, [0x1401fd840]
nop dword [rax]
mov rbx, rax
test rax, rax
je 0x14001a373
mov rbx, qword [rdi + 0x20]
mov rdi, rbx
mov qword [rax + 0x20], rbp
mov rax, qword [rdx + 0x28]
mov dword [rsp + 0x48], ebp
mov byte [rsp + 0x4c], 0
mov qword [rsp + 0x50], rsi
xor r9d, r9d
lea r8, [rsp + 0x48]
xor ecx, ecx
call rax
mov rax, rbx
mov rdx, rbx
test rbx, rbx
jne 0x14001a360
mov rbx, qword [rsp + 0xa8]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rdx, rax
jmp 0x14001a2a9
Function at 0x140020b60
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x60
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rdi, r9
mov rsi, rdx
mov rbx, rcx
xor ebp, ebp
mov dword [r11 + 0x28], ebp
lea rax, [r11 + 0x28]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x40], rbp
mov qword [r11 - 0x48], rbp
lea r9d, [rbp + 2]
mov r8, rdi
lea rdx, [0x1401fd1ac]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x58], rbp
mov edx, dword [rsp + 0x90]
shr rdx, 1
lea rcx, [rsp + 0x48]
call fcn.14002e010
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbp
lea r9d, [rbp + 2]
mov r8, rdi
lea rdx, [0x1401fd1ac]
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov qword [rsi + 0x10], rbp
mov qword [rsi + 0x18], 7
mov word [rsi], bp
test eax, eax
je 0x140020c5d
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140020cc2
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020cbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020ce3
jmp 0x140020cbd
mov rdx, qword [rsp + 0x48]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rdx + r8*2], 0
jne 0x140020c70
mov rcx, rsi
call fcn.14000c0a0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140020cc2
mov rdx, qword [rsp + 0x58]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140020cbd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140020cdd
call fcn.1401589a4
mov rax, rsi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
call fcn.14017c9e8
int3
call fcn.14017c9e8
int3
Function at 0x140026b80
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x1402744d0]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x140297a60], eax
inc eax
cmp eax, 1
jne 0x140026bcd
lea ecx, [rax + 1]
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
xchg dword [0x140297a64], eax
test dil, dil
je 0x140026be0
xor eax, eax
lock xadd dword [0x140297a64], eax
test eax, eax
jne 0x140026c04
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140158980
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
lea rdx, str.winsock
lea rax, [0x1401fd840]
mov byte [rsp + 0x24], 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rax
call fcn.140017ec0
int3
Function at 0x1400375f0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
lea rax, [rcx + 0x20]
mov rdi, rcx
mov ecx, dword [0x140297ae4]
mov rbx, rdx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor esi, esi
test rax, rax
je 0x140037649
mov rax, qword [rax + 8]
test rax, rax
je 0x140037649
mov rdx, qword [rax]
test rdx, rdx
je 0x140037649
mov qword [rax], rsi
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x140037641
mov byte [rdx + 0x48], al
jmp 0x14003765a
mov rcx, rdx
call fcn.140159060
mov ecx, 0x49
call fcn.1401589ac
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rsi
lea rax, [0x14003de10]
mov qword [rdx + 0x28], rax
mov qword [rdx], rsi
mov qword [rdx + 8], rsi
mov qword [rdx + 0x10], rsi
mov qword [rdx + 0x18], rsi
mov dword [rdx + 0x30], esi
mov rax, qword [rbx]
mov qword [rdx + 0x38], rax
mov qword [rbx], rsi
mov rcx, qword [rdi + 0x18]
mov rcx, qword [rcx + 0x10]
call fcn.1400191c0
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rsi
call fcn.14003c240
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400376c0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x70], rbp
mov qword [rsp + 0x78], rsi
mov rdi, rdx
mov rsi, rcx
mov rax, qword [rcx + 0x18]
mov r8, qword [rax + 0x10]
lea rbx, [r8 + 0x28]
xor ebp, ebp
test r8, r8
cmove rbx, rbp
mov ecx, dword [0x140297ae4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003771e
nop word [rax + rax]
cmp qword [rax], rbx
je 0x140037758
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x140037710
lea rax, [rsi + 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [0x140297ae4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140037795
mov rax, qword [rax + 8]
test rax, rax
je 0x140037795
mov rdx, qword [rax]
test rdx, rdx
je 0x140037795
mov qword [rax], rbp
movzx eax, byte [rdx]
cmp al, 0x12
jb 0x14003778d
mov byte [rdx + 0x48], al
jmp 0x1400377a6
cmp qword [rax + 8], rbp
je 0x14003771e
mov rax, qword [rdi]
mov qword [rsp + 0x60], rax
mov qword [rdi], rbp
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x60]
call fcn.140042650
nop
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x14003778b
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x1400377f2
mov rcx, rdx
call fcn.140159060
mov ecx, 0x49
call fcn.1401589ac
mov rdx, rax
mov byte [rax + 0x48], reloc.WS2_32.dll_select
mov qword [rdx + 0x20], rbp
lea rax, [0x14003de10]
mov qword [rdx + 0x28], rax
mov qword [rdx], rbp
mov qword [rdx + 8], rbp
mov qword [rdx + 0x10], rbp
mov qword [rdx + 0x18], rbp
mov dword [rdx + 0x30], ebp
mov rax, qword [rdi]
mov qword [rdx + 0x38], rax
mov qword [rdi], rbp
mov rcx, qword [rsi + 0x18]
mov rcx, qword [rcx + 0x10]
call fcn.1400191c0
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x30], rbp
lea rcx, [rsp + 0x28]
call fcn.14003c240
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
Function at 0x14003c240
Capabilities:
Get thread local storage value

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x40], rbx
mov rdi, rcx
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14003c279
mov rcx, qword [rax + 0x38]
test rcx, rcx
je 0x14003c271
mov rax, qword [rcx]
xor edx, edx
call rax
nop
mov qword [rdi + 0x10], 0
mov rbx, qword [rdi + 8]
test rbx, rbx
je 0x14003c2ce
mov ecx, dword [0x140297ae4]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14003c2be
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14003c2be
cmp qword [rcx], 0
jne 0x14003c2be
movzx eax, byte [rbx + 0x48]
mov byte [rbx], al
mov qword [rcx], rbx
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rcx, rbx
call fcn.140159060
mov qword [rdi + 8], 0
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x140105050
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rcx, rdx
mov edx, 4
jmp 0x14011599c
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.1400d5194
mov rcx, rax
mov rdx, rbx
add rsp, 0x20
pop rbx
jmp 0x1401050f0
mov rcx, rdx
jmp 0x14011598c
mov rdx, rcx
lea rcx, [rsp + 8]
jmp 0x140104f70
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdx, rdx
je 0x1401159cc
movzx eax, byte [r9 + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc r9
imul r8, r10
cmp r9, rdx
jb 0x1401159ae
mov rax, r8
ret
Function at 0x14010a5b4
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov r14, r8
mov rdi, rdx
mov r13, rcx
and dword [rax - 0x38], 0
mov rcx, r8
call fcn.1400ce2ac
mov rbp, rax
lea r9, [rax + 2]
movabs rcx, 0xaaaaaaaaaaaaaaab
mov rax, rcx
mul r9
mov r12, rdx
shr r12, 1
mov rax, rcx
mul rbp
shr rdx, 1
lea rcx, [rdx + rdx*2]
mov r15, rbp
sub r15, rcx
mov rcx, rdi
call fcn.14000ace0
mov dword [rsp + 0x20], 1
mov rcx, r14
call fcn.14010835c
mov rdx, rax
mov rcx, rdi
call fcn.14000a6f0
test rbp, rbp
je 0x14010a6f1
mov esi, 2
lea rdx, [rsi - 2]
mov rcx, r14
call fcn.140104968
movzx ebx, byte [rax]
shl ebx, 8
lea rdx, [rsi - 1]
cmp rdx, rbp
jae 0x14010a67a
mov rcx, r14
call fcn.140104968
movzx ecx, byte [rax]
or ebx, ecx
shl ebx, 8
cmp rsi, rbp
jae 0x14010a692
mov rdx, rsi
mov rcx, r14
call fcn.140104968
movzx ecx, byte [rax]
or ebx, ecx
mov rax, rbx
shr rax, 0x12
mov dl, byte [rax + r13]
mov rcx, rdi
call fcn.14000c460
mov rax, rbx
shr rax, 0xc
and eax, 0x3f
mov dl, byte [rax + r13]
mov rcx, rdi
call fcn.14000c460
mov rax, rbx
shr rax, 6
and eax, 0x3f
mov dl, byte [rax + r13]
mov rcx, rdi
call fcn.14000c460
and ebx, 0x3f
mov dl, byte [rbx + r13]
mov rcx, rdi
call fcn.14000c460
add rsi, 3
lea rax, [rsi - 2]
cmp rax, rbp
jb 0x14010a652
test r15, r15
je 0x14010a722
lea rdx, [r12*4 - 1]
mov rcx, rdi
call fcn.14000a930
mov byte [rax], 0x3d
cmp r15, 1
jne 0x14010a722
lea rdx, [r12*4 - 2]
mov rcx, rdi
call fcn.14000a930
mov byte [rax], 0x3d
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret

Function at 0x140112108
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140112464
cmp dword [rbx + 0x84], 0
jge 0x14011214e
cmp byte [rbx + 0x70], 0
jne 0x14011214e
cmp byte [rbx + 0x89], 0
jne 0x14011214e
mov dl, 0xa
mov rcx, rbx
call fcn.140112338
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
lea rdx, [0x1401df60c]
mov byte [rbx + 0x70], 0
mov rcx, rbx
call fcn.1401140c4
mov rdx, rdi
mov rcx, rbx
call fcn.1401140c4
lea rdx, [0x1401df660]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1401140c4

Function at 0x140112188
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rdx
mov rbx, rcx
call fcn.140112464
cmp dword [rbx + 0x84], 0
jge 0x1401121ce
cmp byte [rbx + 0x70], 0
jne 0x1401121ce
cmp byte [rbx + 0x89], 0
jne 0x1401121ce
mov dl, 0xa
mov rcx, rbx
call fcn.140112338
mov rax, qword [rbx]
mov rcx, rbx
mov edx, dword [rbx + 0x80]
call qword [rax + 0x58]
lea rdx, [0x1401df608]
mov byte [rbx + 0x70], 0
mov rcx, rbx
call fcn.1401140c4
mov rdx, rdi
mov rcx, rbx
call fcn.1401140c4
lea rdx, [0x1401df664]
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.1401140c4