joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc553880
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc554960
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc554282
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc576108]
test eax, eax
je 0x2fc55431a
lea rax, [0x2fc5760e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc576110]
mov qword [rbp - 8], rax
jmp 0x2fc5542fe
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5542f2
cmp qword [rbp - 0x10], 0
je 0x2fc5542f2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5542b8
lea rax, [0x2fc5760e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55431b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc554420
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc554448
mov eax, 0
jmp 0x2fc554496
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc554471
mov eax, 0
jmp 0x2fc554496
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc554491
mov eax, 0
jmp 0x2fc554496
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55449c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55451a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc554511
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc554511
mov rax, qword [rbp - 8]
jmp 0x2fc55452f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5544e4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc552970
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc553a50
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc553372
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc575108]
test eax, eax
je 0x2fc55340a
lea rax, [0x2fc5750e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc575110]
mov qword [rbp - 8], rax
jmp 0x2fc5533ee
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc5533e2
cmp qword [rbp - 0x10], 0
je 0x2fc5533e2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc5533a8
lea rax, [0x2fc5750e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc55340b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc553510
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc553538
mov eax, 0
jmp 0x2fc553586
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc553561
mov eax, 0
jmp 0x2fc553586
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc553581
mov eax, 0
jmp 0x2fc553586
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc55358c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc55360a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc553601
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc553601
mov rax, qword [rbp - 8]
jmp 0x2fc55361f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc5535d4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

Function at 0x1400023b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000a008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000a008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000a008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140029de0]
mov dword [rax], 1
mov rax, qword [0x140029df0]
mov dword [rax], 1
mov rax, qword [0x140029e00]
mov dword [rax], 1
mov rax, qword [0x140029d60]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400015e0
Capabilities:
Set registry value

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb0
add rdx, rcx
lea rdi, [rsp + 0x60]
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
and word [rdi + 0x10], 0
mov rbx, r9
mov r14, r8
mov ebp, 1
mov dword [rdi + 0x18], ebp
lea rsi, [rsp + 0x98]
mov rcx, rsi
mov rdx, rdi
call fcn.1400019bb
lea rax, str.MicrosoftSync0
mov qword [rdi], rax
lea rax, [0x14002587d]
mov qword [rdi + 8], rax
and word [rdi + 0x10], 0
mov dword [rdi + 0x18], ebp
lea rcx, [rsp + 0x80]
lea rdi, [rsp + 0x60]
mov rdx, rdi
call fcn.1400019bb
add rbx, r14
mov qword [rdi], r14
mov qword [rdi + 8], rbx
and word [rdi + 0x10], 0
mov dword [rdi + 0x18], ebp
lea rcx, [rsp + 0x48]
lea rdi, [rsp + 0x60]
mov rdx, rdi
call fcn.1400019bb
and qword [rdi], 0
mov rsi, qword [rsi]
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000001
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegCreateKeyExW
test eax, eax
jne 0x1400016f2
mov rcx, qword [rsp + 0x60]
mov rdx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x48]
mov r8d, dword [rsp + 0x58]
add r8d, r8d
mov dword [rsp + 0x28], r8d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov r9d, 1
call sub.advapi32.dll_RegSetValueExW
mov rcx, qword [rsp + 0x60]
call sub.advapi32.dll_RegCloseKey
and qword [rsp + 0x40], 0
mov qword [rsp + 0x38], rdi
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0xf003f
and dword [rsp + 0x20], 0
mov rcx, 0xffffffff80000002
mov rdx, rsi
xor r8d, r8d
xor r9d, r9d
call sub.advapi32.dll_RegCreateKeyExW
mov rdi, qword [rsp + 0x80]
test eax, eax
je 0x140001738
mov rbx, qword [rsp + 0x48]
jmp 0x14000176c
mov rcx, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x58]
add eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
mov rdx, rdi
xor r8d, r8d
mov r9d, 1
call sub.advapi32.dll_RegSetValueExW
mov rcx, qword [rsp + 0x60]
call sub.advapi32.dll_RegCloseKey
mov rdx, qword [rsp + 0x50]
mov rcx, rbx
call fcn.1400159bd
mov rdx, qword [rsp + 0x88]
mov rcx, rdi
call fcn.1400159bd
mov rdx, qword [rsp + 0xa0]
mov rcx, rsi
call fcn.1400159bd
nop
add rsp, 0xb0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x14000a023
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
mov r10, qword [rsp + 0x68]
mov r11, qword [rsp + 0x60]
mov rax, qword [rsp + 0x58]
mov esi, ecx
shr esi, 8
lea r8, [rdx + r8*2]
xor edi, edi
cmp rdx, r8
je 0x14000a09f
lea rbx, [rdx + 2]
movzx r15d, byte [rdx + 1]
lea r14, [rdi + r15]
cmp byte [rdx], sil
jne 0x14000a07f
cmp r14, rdi
jb 0x14000a0dc
cmp r14, rax
ja 0x14000a0dc
add rdi, r9
xor edx, edx
cmp r15, rdx
je 0x14000a089
lea r12, [rdx + 1]
cmp byte [rdi + rdx], cl
mov rdx, r12
jne 0x14000a06c
jmp 0x14000a091
mov rdx, rbx
mov rdi, r14
jbe 0x14000a046
jmp 0x14000a09f
mov rdx, rbx
mov rdi, r14
jmp 0x14000a046
xor eax, eax
and al, 1
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
movzx ecx, cx
add r10, r11
mov al, 1
cmp r11, r10
je 0x14000a093
lea r8, [r11 + 1]
movzx edx, byte [r11]
test dl, dl
js 0x14000a0bd
mov r11, r8
jmp 0x14000a0d4
cmp r8, r10
je 0x14000a0dc
and edx, 0x7f
shl edx, 8
movzx r8d, byte [r11 + 1]
add r11, 2
or edx, r8d
sub ecx, edx
js 0x14000a093
xor al, 1
jmp 0x14000a0a7
ud2
Function at 0x14000e16e
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x50
cmp byte [rcx + 0x79], 0
je 0x14000e185
xor esi, esi
jmp 0x14000e31c
mov rdi, rcx
mov rsi, qword [rcx + 0x48]
lea rdx, [rcx + 8]
cmp qword [rcx], 0
je 0x14000e1cc
mov r9, qword [rdi + 0x50]
movups xmm0, xmmword [rdi + 0x58]
cmp qword [rdi + 0x38], 0xffffffffffffffff
sete byte [rsp + 0x30]
movups xmmword [rsp + 0x20], xmm0
lea rbx, [rsp + 0x38]
mov rcx, rbx
mov r8, rsi
call fcn.14000e337
cmp qword [rbx], 0
jne 0x14000e304
jmp 0x14000e2c9
mov al, byte [rdi + 0x1a]
mov r9, qword [rdi + 0x50]
mov r8, qword [rdi + 8]
mov r10b, byte [rdi + 0x18]
test al, al
jne 0x14000e2c9
mov ecx, r10d
xor cl, 1
mov byte [rdi + 0x18], cl
test r8, r8
je 0x14000e208
cmp r9, r8
jbe 0x14000e202
cmp byte [rsi + r8], 0xbf
jg 0x14000e208
jmp 0x14000e32a
jne 0x14000e32a
cmp r9, r8
je 0x14000e2c0
movzx ebx, byte [rsi + r8]
test bl, bl
js 0x14000e21f
mov r11d, ebx
jmp 0x14000e275
mov r11d, ebx
and r11d, 0x1f
movzx r14d, byte [rsi + r8 + 1]
and r14d, 0x3f
cmp bl, 0xdf
jbe 0x14000e265
movzx ebp, byte [rsi + r8 + 2]
shl r14d, 6
and ebp, 0x3f
or ebp, r14d
cmp bl, 0xf0
jb 0x14000e26e
movzx ebx, byte [rsi + r8 + 3]
and r11d, 7
shl r11d, 0x12
shl ebp, 6
and ebx, 0x3f
or ebx, ebp
or r11d, ebx
jmp 0x14000e275
shl r11d, 6
or r11d, r14d
jmp 0x14000e275
shl r11d, 0xc
or r11d, ebp
test r10b, r10b
jne 0x14000e2f7
cmp r11d, 0x110000
je 0x14000e2c5
mov r10d, 1
cmp r11d, 0x80
jb 0x14000e2b2
mov r10d, 2
cmp r11d, 0x800
jb 0x14000e2b2
cmp r11d, 0x10000
mov r10d, 4
sbb r10, 0
add r8, r10
mov qword [rdx], r8
mov r10d, ecx
jmp 0x14000e1db
test r10b, r10b
jne 0x14000e2fa
mov byte [rdi + 0x1a], 1
cmp byte [rdi + 0x79], 0
jne 0x14000e17e
mov byte [rdi + 0x79], 1
cmp byte [rdi + 0x78], 0
mov rsi, qword [rdi + 0x68]
mov rdx, qword [rdi + 0x70]
jne 0x14000e2ee
cmp rdx, rsi
je 0x14000e17e
sub rdx, rsi
add rsi, qword [rdi + 0x48]
jmp 0x14000e31c
mov r9, r8
mov qword [rsp + 0x40], r9
mov qword [rsp + 0x48], r9
mov rdx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rdi + 0x68]
add rsi, rcx
sub rdx, rcx
mov qword [rdi + 0x68], rax
mov rax, rsi
add rsp, 0x50
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
mov rcx, rsi
mov rdx, r9
call fcn.14000a906
ud2

Function at 0x14000e4df
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov r14, rcx
lea r15, [rsp + 0x28]
mov r13d, 0x7fffffff
lea rsi, str.failed_to_write_whole_buffer
test rdi, rdi
je 0x14000e56a
cmp rdi, r13
mov r8d, 0x7fffffff
cmovb r8, rdi
mov rcx, r14
mov rdx, rbx
xor r9d, r9d
call sub.ws2_32.dll_send
cmp eax, 0xffffffff
je 0x14000e53e
test eax, eax
je 0x14000e571
cdqe
sub rdi, rax
jb 0x14000e584
add rbx, rax
jmp 0x14000e509
call fcn.14001652d
mov r12, rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 1
mov rcx, rax
call fcn.14000e588
cmp al, 0x23
jne 0x14000e56e
mov rcx, r15
call fcn.14000c94a
jmp 0x14000e509
xor esi, esi
jmp 0x14000e571
mov rsi, r12
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
Function at 0x14000e6b7
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
mov rdi, r8
mov rbx, rdx
mov r14, rcx
lea r15, [rsp + 0x50]
xor esi, esi
mov ebp, 0x7fffffff
lea r12, [rsp + 0x28]
test rdi, rdi
je 0x14000e78c
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rdi
and qword [rsp + 0x38], 0
mov qword [rsp + 0x40], rdi
cmp rdi, rbp
mov r13d, 0x7fffffff
cmovb r13, rdi
mov rcx, r12
call fcn.14001a6a1
mov rcx, r14
mov rdx, rax
mov r8d, r13d
xor r9d, r9d
call sub.ws2_32.dll_recv
cmp eax, 0xffffffff
je 0x14000e733
cdqe
add rax, qword [rsp + 0x38]
jmp 0x14000e744
call sub.ws2_32.dll_WSAGetLastError
cmp eax, 0x274a
jne 0x14000e753
mov rax, qword [rsp + 0x38]
test rax, rax
je 0x14000e785
sub rdi, rax
jb 0x14000e7a5
add rbx, rax
jmp 0x14000e6e1
mov r13d, eax
shl r13, 0x20
or r13, 2
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], 1
mov rcx, r13
call fcn.14000e588
cmp al, 0x23
jne 0x14000e7a0
mov rcx, r15
call fcn.14000c94a
jmp 0x14000e6e1
lea rsi, str.failed_to_fill_whole_buffer
mov rax, rsi
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rsi, r13
jmp 0x14000e78c
ud2
Function at 0x140010817
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
lea rcx, [0x140024038]
call fcn.14001084e
mov ecx, eax
add rsp, 0x28
jmp fcn.1400213a8

Function at 0x140010832
Capabilities:
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rdx
call fcn.14001084e
mov ecx, eax
mov rdx, rsi
add rsp, 0x20
pop rsi
jmp fcn.1400213b0

Function at 0x14001084e
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140019538
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400195a8
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400195ef
cmp dword [rsp + 0x2c], 0
je 0x1400195d0
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400195df
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14002e188]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14002e188], rsi
jne 0x14001958a
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400195d5
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400195ef
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400195d5
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400195d5
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2
Function at 0x1400112a0
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0xa0
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
movaps xmmword [rcx + 0x10], xmm0
movaps xmmword [rcx], xmm0
call fcn.1400136d8
test rax, rax
je 0x1400112d8
mov edx, 4
mov rcx, rax
call fcn.14000c660
jmp 0x140011311
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
lea rdx, [rsp + 0x40]
movups xmmword [rdx + 0x10], xmm1
movups xmmword [rdx], xmm0
lea rbx, [rsp + 0x70]
mov rcx, rbx
call fcn.1400107a9
movaps xmm0, xmmword [rbx]
movaps xmm1, xmmword [rbx + 0x10]
movaps xmm2, xmmword [rbx + 0x20]
movaps xmmword [rdi + 0x20], xmm2
movaps xmmword [rdi + 0x10], xmm1
movaps xmmword [rdi], xmm0
and qword [rdi + 0x40], 0
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov rdx, rsi
add rsp, 0xa0
pop rbx
pop rdi
pop rsi
jmp fcn.14001089b
Function at 0x1400136d8
Capabilities:
Generate random numbers via rtlgenrandom
Generate random numbers via winapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
mov r12d, 0x20
xor esi, esi
mov r13d, 0xffffffff
test r12, r12
je 0x140013769
mov r14, rdi
cmp r12, r13
mov r15d, 0xffffffff
cmovb r15, r12
add rdi, r15
sub r12, r15
xor ecx, ecx
mov rdx, r14
mov r8d, r15d
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
cmp eax, 0xc0000000
jb 0x1400136f8
mov ebx, eax
mov rcx, r14
mov edx, r15d
call sub.advapi32.dll_SystemFunction036
test al, al
jne 0x1400136f8
xor ebx, 0x80000000
je 0x140013767
mov al, byte [0x14002e1b0]
mov ecx, 4
mov edx, 4
call fcn.14000c5d0
test rax, rax
je 0x14001377c
mov rsi, rax
mov dword [rax], ebx
jmp 0x140013769
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 4
mov edx, 4
call fcn.1400074ca
ud2

Function at 0x14001687c
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
movups xmm0, xmmword [0x140029028]
lea rax, [rsp + 0x60]
movaps xmmword [rax], xmm0
mov ecx, 0xffffffff
cmp r9, rcx
cmovb rcx, r9
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
mov dword [rsp + 0x30], ecx
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], rax
mov rcx, rdx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.ntdll.dll_NtWriteFile
cmp eax, 0x103
jne 0x1400168eb
mov rcx, rdi
mov edx, 0xffffffff
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140016921
test eax, eax
js 0x1400168fc
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140016914
mov ecx, eax
call sub.ntdll.dll_RtlNtStatusToDosError
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
lea rcx, [rsp + 0x58]
mov byte [rcx + 4], 0
and dword [rcx], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
lea rdx, [rsp + 0x78]
mov qword [rdx], rax
mov qword [rdx + 8], 1
lea rax, [rsp + 0x50]
mov qword [rdx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rdx + 0x18], xmm0
call fcn.140016b32
mov rcx, rax
call fcn.14001661f
mov ecx, 7
int 0x29
ud2

Function at 0x1400194e5
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.14001084e
mov ecx, eax
add rsp, 0x28
jmp fcn.1400213a8
Function at 0x140019538
Capabilities:
Allocate thread local storage

Disassembly:
mov eax, dword [rcx + 0x18]
test eax, eax
je 0x140019538
dec eax
ret
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
cmp qword [rcx], 0
je 0x1400195a8
lea r8, [rsp + 0x2c]
and dword [r8], 0
lea rbx, [rsi + 0x10]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
cmp eax, 1
jne 0x1400195ef
cmp dword [rsp + 0x2c], 0
je 0x1400195d0
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400195df
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14002e188]
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14002e188], rsi
jne 0x14001958a
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x1400195d5
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1400195ef
mov edi, eax
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
je 0x1400195d5
mov esi, eax
mov ecx, edi
call sub.kernel32.dll_TlsFree
dec esi
mov edi, esi
jmp 0x1400195d5
mov edi, dword [rsi + 0x18]
dec edi
mov eax, edi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
ud2