joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6b9c60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x6b9c6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x6b9c7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x6b9c65
lea eax, [rcx + 1]
jmp 0x6b9c8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x6b9c9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x6b9c84
sub eax, 3
jb 0x6b9cbe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x6b9d0d
sar eax, 1
movsxd rbp, eax
jb 0x6b9cf4
jmp 0x6b9ccc
add ebx, ebx
jne 0x6b9cca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6b9cf4
inc ecx
add ebx, ebx
jne 0x6b9cda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x6b9cf4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x6b9ced
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x6b9cdc
add ecx, 2
jmp 0x6b9cf9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.006b9c22
jmp 0x6b9c6d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x9b800
mov dl, 0x1c
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x6b9d59
cmp rsi, rcx
jae 0x6b9d61
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x6b9d40
cmp al, 0x8f
ja 0x6b9d40
cmp byte [rsi - 2], 0xf
je 0x6b9d46
sub al, 0xe8
cmp al, 1
ja 0x6b9d2a
cmp rsi, rcx
jae 0x6b9d61
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x6b9d30
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x6b9d61
lodsb al, byte [rsi]
jmp 0x6b9d40
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x2b5000]
mov eax, dword [rdi]
or eax, eax
je 0x6b9dbe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2b9000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x6b9d6e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x6b9db8
mov qword [rbx], rax
add rbx, 8
jmp 0x6b9d8e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x6b9df8
cmp al, 0xef
ja 0x6b9dea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x6b9dca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x6b9dd9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x6b9e4c
sub rsp, 0xffffffffffffff80
jmp 0x468e60
Function at 0x1400809c0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov r14, rcx
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor ebp, ebp
test rax, rax
je 0x1400809fb
mov rdx, qword [rax + 8]
jmp 0x1400809fe
mov rdx, rbp
mov r9d, 8
mov r8d, 0x88
movzx ecx, byte [rsp + 0x50]
call fcn.140088b90
mov r8, rax
mov rcx, qword [rbx + 8]
mov qword [rax + 0x10], rcx
mov rdx, qword [rbx + 0x20]
mov qword [rbx + 0x20], rbp
mov rcx, qword [rbx + 0x18]
mov qword [rbx + 0x18], rbp
mov rax, qword [rbx + 0x10]
mov qword [rbx + 0x10], rbp
mov qword [r8 + 0x18], rax
mov qword [r8 + 0x20], rcx
mov qword [r8 + 0x28], rdx
mov rax, qword [rbx + 0x28]
mov qword [r8 + 0x30], rax
mov rax, qword [rbx + 0x30]
mov qword [r8 + 0x38], rax
mov rax, qword [rbx + 0x38]
mov qword [r8 + 0x40], rax
mov rax, qword [rbx + 0x40]
mov qword [r8 + 0x48], rax
mov eax, dword [rbx + 0x48]
mov dword [r8 + 0x50], eax
mov qword [r8 + 0x58], rbp
mov qword [r8 + 0x60], rbp
mov rax, qword [rbx + 0x50]
mov qword [r8 + 0x58], rax
mov rax, qword [rbx + 0x58]
mov qword [r8 + 0x60], rax
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x58], rbp
movups xmm0, xmmword [rbx + 0x60]
movups xmmword [r8 + 0x68], xmm0
mov rax, qword [rbx + 0x70]
mov qword [r8 + 0x78], rax
lea rax, [0x140089d80]
mov qword [r8], rax
mov qword [r14], r8
mov rdi, qword [rbx + 0x58]
test rdi, rdi
je 0x140080add
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x140080add
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x140080add
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.WSOCK32.dll_htonl]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140080b23
mov rdx, qword [rbx + 0x20]
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140080b12
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140080b39
mov rcx, r8
call fcn.140105724
mov qword [rbx + 0x10], rbp
mov qword [rbx + 0x18], rbp
mov qword [rbx + 0x20], rbp
mov rax, r14
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140081d40
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rbx, rdx
xor edi, edi
mov cl, 1
call sub.MSVCP140.dll_private:_static_class_std::locale::_Locimp____ptr64___cdecl_std::locale::_Init_bool_
mov rcx, rax
mov qword [rsp + 0x28], rax
mov rdx, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140081d87
mov rdx, qword [rbx]
mov r8, rdx
mov rsi, rdx
jmp 0x140081d8d
mov rsi, rbx
mov r8, rbx
mov rbp, qword [rbx + 0x10]
add rbp, r8
cmp rdx, rbp
je 0x140081dfe
movabs r14, 0xcbf29ce484222325
movabs r15, 0x100000001b3
mov r12d, 0x9e3779b9
movzx ebx, byte [rsi]
lea rcx, [rsp + 0x20]
call fcn.140091250
movzx edx, bl
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::ctype_char_::toupper_char_const___ptr64]
movzx ecx, al
xor rcx, r14
imul rcx, r15
mov rax, rdi
shl rax, 6
mov rdx, rdi
shr rdx, 2
add rcx, rax
lea rax, [rdx + r12]
add rcx, rax
xor rdi, rcx
inc rsi
cmp rsi, rbp
jne 0x140081db3
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140081e1c
mov rdx, qword [rcx]
call qword [rdx + select]
test rax, rax
je 0x140081e1c
mov r8, qword [rax]
mov edx, 1
mov rcx, rax
call qword [r8]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret
Function at 0x140088cc0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rbp, r9
mov rbx, r8
mov r14, rdx
mov rsi, rcx
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r12d, r12d
test rax, rax
je 0x140088d04
mov rdx, qword [rax + 8]
jmp 0x140088d07
mov rdx, r12
mov r9d, 8
mov r8d, 0x200
movzx ecx, byte [rsp + 0xa0]
call fcn.140088a70
mov rdi, rax
movzx edx, byte [r14 + 8]
shr dl, 2
and dl, 1
mov rcx, qword [r14]
mov qword [rax + 0x20], r12
lea rax, [0x1400aa790]
mov qword [rdi + 0x28], rax
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
mov qword [rdi + 0x18], r12
mov dword [rdi + 0x30], r12d
lea rax, [rsi + 0x28]
mov qword [rdi + 0x38], rax
mov qword [rdi + 0x40], rcx
mov qword [rdi + 0x48], 0xffffffffffffffff
mov qword [rdi + 0x50], rbx
mov eax, dword [r14 + 0x38]
mov dword [rdi + 0x58], eax
mov qword [rdi + 0x60], rbp
mov byte [rdi + 0x188], dl
mov qword [rdi + 0x190], r12
mov qword [rdi + 0x198], r12
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rcx]
mov qword [rdi + 0x1a0], rax
mov qword [rdi + 0x1a8], r12
mov qword [rdi + 0x1b0], r12
mov rax, qword [rcx + 8]
mov qword [rdi + 0x1a8], rax
mov rax, qword [rcx + 0x10]
mov qword [rdi + 0x1b0], rax
mov qword [rcx + 8], r12
mov qword [rcx + 0x10], r12
mov rax, qword [rcx + 0x18]
mov qword [rdi + 0x1b8], rax
movzx eax, word [rcx + 0x20]
mov word [rdi + 0x1c0], ax
lea rcx, [rdi + 0x1c8]
mov r9, qword [rsp + 0xa8]
xor r8d, r8d
xor edx, edx
call fcn.140093bb0
mov qword [rsp + 0x50], rdi
mov r10d, dword [r14 + 0x38]
mov rcx, qword [rbx + 8]
mov rax, qword [rsi + 0x30]
lock inc dword [rax + 0x30]
cmp qword [r14], 0xffffffffffffffff
jne 0x140088e2c
xor r9d, r9d
mov r8d, 0x2719
mov rdx, rdi
mov rcx, qword [rsi + 0x30]
call fcn.1400b7050
jmp 0x140088f0e
cmp rcx, 0xffffffffffffffff
je 0x140088e4c
xor r9d, r9d
mov r8d, 1
mov rdx, rdi
mov rcx, qword [rsi + 0x30]
call fcn.1400b7050
jmp 0x140088f0e
mov dword [rsp + 0x40], r12d
lea rax, [0x1401405e8]
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x40]
mov edx, 1
mov r8d, 6
mov ecx, r10d
call fcn.1400c1030
mov rbx, rax
lea rcx, [rdi + 0x48]
call fcn.1400bc650
mov qword [rdi + 0x48], rbx
xor r9d, r9d
cmp rbx, 0xffffffffffffffff
jne 0x140088ea1
lea r8, [rsp + 0x40]
mov rdx, rdi
mov rcx, qword [rsi + 0x30]
call fcn.1400b6fb0
jmp 0x140088f0e
mov dword [rsp + 0xa0], r12d
mov qword [rsp + 0x38], rdi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x90
mov dword [rsp + 0x20], 0x90
lea r8, [rdi + 0x68]
mov rdx, rbx
mov rcx, qword [r14]
call sub.WSOCK32.dll_AcceptEx
mov ebx, eax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
test ebx, ebx
jne 0x140088f01
cmp eax, 0x3e5
je 0x140088f01
xor r9d, r9d
mov r8d, eax
mov rdx, rdi
mov rcx, qword [rsi + 0x30]
call fcn.1400b7050
jmp 0x140088f0e
mov rdx, rdi
mov rcx, qword [rsi + 0x30]
call fcn.1400b7350
nop
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x140089500
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rdi, rdx
mov rbp, qword [rcx]
lea r14, [rcx + 0x40]
lea rsi, [rcx + 8]
mov qword [rsp + 0x30], rdx
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
xor r15d, r15d
test rax, rax
je 0x140089545
mov rdx, qword [rax + 8]
jmp 0x140089548
mov rdx, r15
mov r9d, 8
mov r8d, 0xa0
movzx ecx, byte [rsp + 0x70]
call fcn.140088a70
mov rbx, rax
mov qword [rsp + 0x38], rax
mov qword [rax + 0x20], r15
lea rax, [0x1400aa5e0]
mov qword [rbx + 0x28], rax
mov qword [rbx], r15
mov qword [rbx + 8], r15
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], r15
mov dword [rbx + 0x30], r15d
mov dword [rbx + 0x38], r15d
lea rax, [0x1401405e8]
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], r15
mov rax, qword [rdi]
mov qword [rbx + 0x50], rax
movzx eax, byte [rdi + 8]
mov byte [rbx + 0x58], al
mov rax, qword [rdi + 0x10]
mov qword [rbx + 0x60], rax
lea rcx, [rbx + 0x68]
mov r9, r14
xor r8d, r8d
xor edx, edx
call fcn.140093bb0
mov qword [rsp + 0x40], rbx
mov byte [rsi + 8], 1
lea r9, [rsi + 0x10]
lea rdx, [rbp + 0x28]
mov qword [rsp + 0x20], rbx
mov r8, rsi
mov rcx, qword [rbp + 0x58]
call fcn.140090ea0
nop
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14008ad80
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rsi, rcx
cmp qword [rcx + 0x20], 0
je 0x14008af08
mov rcx, qword [rcx + 0x28]
mov rax, qword [rcx + 0x18]
test rax, rax
je 0x14008adec
lea rcx, [0x140089910]
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], rdx
movaps xmm0, xmmword [rbp - 0x60]
movdqa xmmword [rbp - 0x60], xmm0
lea rdx, [rbp - 0x60]
mov rcx, rsi
call rax
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov r14, qword [rcx + 0x10]
mov rax, qword [rdx]
mov qword [rbp - 0x40], rax
mov rax, qword [rdx + 8]
mov qword [rbp - 0x38], rax
mov rax, qword [rdx + 0x10]
mov qword [rbp - 0x30], rax
xor ebx, ebx
mov qword [rdx + 8], rbx
mov qword [rdx + 0x10], rbx
mov rax, qword [rdx + 0x18]
mov qword [rbp - 0x28], rax
movzx eax, word [rdx + 0x20]
mov word [rbp - 0x20], ax
movups xmm0, xmmword [rdx + 0x28]
movups xmmword [rbp - 0x18], xmm0
lea rax, [rbp - 0x40]
mov qword [rbp + 0x30], rax
mov ecx, dword [0x140146110]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x14008ae48
mov rdx, qword [rax + 8]
jmp 0x14008ae4b
mov rdx, rbx
mov r9d, 8
mov r8d, 0x48
movzx ecx, byte [rbp + 0x20]
call fcn.140088b90
mov rdx, rax
mov rcx, qword [rbp - 0x40]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbx
mov rcx, qword [rbp - 0x38]
mov qword [rax + 0x10], rcx
mov rcx, qword [rbp - 0x30]
mov qword [rax + 0x18], rcx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov rax, qword [rbp - 0x28]
mov qword [rdx + 0x20], rax
movzx eax, word [rbp - 0x20]
mov word [rdx + 0x28], ax
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rdx + 0x30], xmm0
lea rax, [0x140089930]
mov qword [rdx], rax
mov qword [rbp + 0x20], rdx
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x14008aee7
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x14008aee7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14008aee7
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.WSOCK32.dll_htonl]
nop
lea rdx, [rbp + 0x20]
mov rcx, rsi
call r14
nop
mov rcx, qword [rbp + 0x20]
test rcx, rcx
je 0x14008af03
mov rax, qword [rcx]
xor edx, edx
call rax
nop
jmp 0x14008add4
lea rcx, [rbp - 0x60]
call fcn.140094a40
nop
lea rcx, [rbp - 0x60]
call fcn.140091080
int3
Function at 0x1400940e0
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1e0
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
movzx edi, dl
mov rbx, rcx
mov eax, 1
lock xadd dword [0x140146120], eax
inc eax
cmp eax, 1
jne 0x14009412f
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WSOCK32.dll_WSAStartup]
xchg dword [0x140146124], eax
test dil, dil
je 0x140094142
xor eax, eax
lock xadd dword [0x140146124], eax
test eax, eax
jne 0x140094166
mov rax, rbx
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140105ae0
mov rbx, qword [rsp + 0x1f0]
add rsp, 0x1e0
pop rdi
ret
mov dword [rsp + 0x20], eax
call fcn.1400b0a10
lea rdx, str.winsock
mov qword [rsp + 0x28], rax
lea rcx, [rsp + 0x20]
call fcn.1400abaa0
int3
Function at 0x1400a14a0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400a1573
cmp byte [rcx + 0x71], 0
je 0x1400a1573
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400a156f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400a1534
sub eax, 1
je 0x1400a1538
cmp eax, 2
jne 0x1400a156f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140105ae0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400a1566
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400a156f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400a151c
xor al, al
jmp 0x1400a151c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140105ae0
add rsp, 0x60
pop rbx
ret
Function at 0x1400a6450
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov qword [rcx + 0x10], r14
mov qword [rcx + 0x18], reloc.WSOCK32.dll_ntohs
mov byte [rcx], r14b
mov dword [rsp + 0x20], 1
mov r13d, 0xfffffffa
mov rcx, rdx
cmp qword [rdx + 0x18], 0xf
jbe 0x1400a64a9
mov rcx, qword [rdx]
mov r8, rcx
jmp 0x1400a64ac
mov r8, rdx
mov r15, rcx
mov rax, qword [rdx + 0x10]
add rax, r8
mov qword [rsp + 0x78], rax
cmp rcx, rax
je 0x1400a65c9
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
movzx ebx, byte [rsp + 0x70]
shl r14d, 8
movzx eax, byte [r15]
add r14d, eax
add r13d, 8
js 0x1400a6560
movsxd r12, r14d
movsxd rsi, r13d
lea ecx, [r13 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov ebp, edx
imul eax, edx, 0xfffffffa
add r13d, eax
mov rax, r12
mov rcx, rsi
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a653e
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400a6533
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a6556
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140087070
lea r8, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
sub rsi, 6
sub rbp, 1
jne 0x1400a6501
inc r15
cmp r15, qword [rsp + 0x78]
jne 0x1400a64d0
cmp r13d, 0xfffffffa
jle 0x1400a65c9
lea ecx, [r13 + 8]
shl r14d, 8
movsxd rax, r14d
sar rax, cl
and eax, 0x3f
movzx r9d, byte [rax + r8]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a65b6
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400a65ab
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400a65c9
movzx r8d, byte [rsp + 0x70]
mov edx, 1
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi + 0x10]
test cl, 3
je 0x1400a6619
movzx ebx, byte [rsp + 0x70]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400a65fc
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0xf
jbe 0x1400a65f4
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1400a6610
mov r9b, 0x3d
movzx r8d, bl
mov edx, 1
mov rcx, rdi
call fcn.140087070
mov rcx, qword [rdi + 0x10]
test cl, 3
jne 0x1400a65d7
mov rax, rdi
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400a6ce0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x70
xor eax, eax
lea rbx, [rcx + 0x28]
test rcx, rcx
mov ecx, dword [0x140146110]
cmove rbx, rax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1400a6e15
cmp qword [rax], rbx
je 0x1400a6d1c
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x1400a6d08
add rsp, 0x70
pop rbx
ret
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1400a6e15
mov ecx, dword [rbx + 0x50]
test ecx, ecx
je 0x1400a6dd9
cmp ecx, 1
jne 0x1400a6e15
xorps xmm0, xmm0
mov dword [rbx + 0x50], 2
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x30]
movdqu xmmword [rsp + 0x30], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
xorps xmm0, xmm0
lea rax, vtable.asio::multiple_exceptions.0
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x58]
movups xmmword [rsp + 0x48], xmm0
movdqu xmmword [rsp + 0x58], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopy_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x30]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea r8, [0x14013b3a0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCopyException_void____ptr64__void_const____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
lea rax, vtable.std::exception.0
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x40], rax
call sub.VCRUNTIME140.dll___std_exception_destroy
jmp 0x1400a6dfd
xorps xmm0, xmm0
mov dword [rbx + 0x50], 1
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x20], xmm0
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCreate_void____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrCurrentException_void____ptr64_
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x58]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrAssign_void____ptr64__void_const____ptr64_
lea rcx, [rsp + 0x20]
call sub.MSVCP140.dll_void___cdecl___ExceptionPtrDestroy_void____ptr64_
add rsp, 0x70
pop rbx
ret
Function at 0x1400a73e0
Capabilities:
Set socket configuration

Disassembly:
mov r11, rsp
push rbp
push rdi
push r12
push r15
sub rsp, 0x48
xor r12d, r12d
mov rdi, r9
mov r15, rdx
mov rbp, rcx
cmp rcx, 0xffffffffffffffff
je 0x1400a752c
mov qword [r11 + 0x18], rsi
mov qword [r11 - 0x28], r14
test r8b, r8b
je 0x1400a744b
movzx eax, byte [rdx]
test al, 8
je 0x1400a744b
or al, 8
mov dword [r11 + 8], r12d
mov byte [rdx], al
lea r9, [r11 + 8]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x80
call qword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x1400a744b
call fcn.1400b0a10
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov rcx, rbp
call qword [sym.imp.WSOCK32.dll_closesocket]
lea r14, [rdi + 8]
mov esi, eax
test eax, eax
jne 0x1400a7466
mov dword [rdi], r12d
jmp 0x1400a74f1
mov qword [rsp + 0x78], rbx
call fcn.1400b0a10
mov rbx, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
call fcn.1400b0a10
mov rcx, qword [r14]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400a74a4
cmp dword [rdi], 0x2733
je 0x1400a74be
call fcn.1400b0a10
mov rcx, qword [r14]
mov rax, qword [rax + 8]
cmp qword [rcx + 8], rax
jne 0x1400a7528
cmp dword [rdi], 0x4d5
jne 0x1400a7528
lea r8, [rsp + 0x70]
mov dword [rsp + 0x70], r12d
mov edx, 0x8004667e
mov rcx, rbp
call qword [sym.imp.WSOCK32.dll_ioctlsocket]
and byte [r15], 0xfc
mov rcx, rbp
call qword [sym.imp.WSOCK32.dll_closesocket]
mov esi, eax
test eax, eax
jne 0x1400a7509
mov dword [rdi], r12d
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbp
ret
call fcn.1400b0a10
mov rbx, rax
call qword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rbx
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rdi], xmm0
mov eax, esi
jmp 0x1400a74ec
mov eax, r12d
add rsp, 0x48
pop r15
pop r12
pop rdi
pop rbp
ret
Function at 0x1400ab360
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x140140940]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str.asio_58CCDC44_6264_4842_90C2_F3C545CB8AA7__u__p
mov edx, 0x80
lea rcx, [rsp + 0x40]
call fcn.1400c4320
lea r8, [rsp + 0x40]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
mov qword [rsp + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rdi, rdi
jne 0x1400ab3d3
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400ab452
cmp eax, 0xb7
jne 0x1400ab3e8
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp byte [rbx], 0
jne 0x1400ab421
lea rcx, [rbx + 8]
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1400ab41e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x1400ab452
mov byte [rbx], 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x1400ab452
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140105ae0
mov rbx, qword [rsp + 0x168]
add rsp, 0x150
pop rdi
ret