joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001450
Capabilities:
Connect socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x1e0
mov r12, rcx
mov ebx, edx
mov rbp, r8
mov rdi, r9
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140001490
xor eax, eax
add rsp, 0x1e0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor r8d, r8d
mov edx, 1
mov ecx, 2
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x1400015e0
mov eax, 2
movzx ecx, bx
mov qword [rsp + 0x32], 0
mov word [rsp + 0x30], ax
mov qword [rsp + 0x38], 0
call qword [sym.imp.WS2_32.dll_htons]
mov rcx, r12
mov word [rsp + 0x32], ax
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x34], eax
cmp eax, 0xffffffff
je 0x1400015c8
lea rdx, [rsp + 0x30]
mov r8d, 0x10
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
js 0x1400015c8
mov rcx, rbp
call sym.strlen
xor r9d, r9d
lea rdx, [rsp + 0x28]
mov rcx, rsi
mov rbx, qword [sym.imp.WS2_32.dll_send]
mov r8d, 8
mov qword [rsp + 0x28], rax
call rbx
xor r9d, r9d
mov rdx, rbp
mov r8d, dword [rsp + 0x28]
mov rcx, rsi
call rbx
xor r9d, r9d
mov rbp, qword [sym.imp.WS2_32.dll_recv]
mov rcx, rsi
lea rdx, [rsp + 0x24]
mov r8d, 4
call rbp
cmp eax, 4
jne 0x1400015c8
mov ecx, dword [rsp + 0x24]
xor ebx, ebx
call qword [sym.imp.WS2_32.dll_ntohl]
movsxd rcx, eax
mov dword [rsp + 0x24], eax
call sym.operator_new___unsigned_long_long_
mov r8d, dword [rsp + 0x24]
mov qword [rdi], rax
mov rdx, rax
test r8d, r8d
jne 0x1400015a5
jmp 0x1400015f0
cdqe
add rbx, rax
movsxd rax, dword [rsp + 0x24]
mov r8, rax
cmp rbx, rax
jae 0x1400015f0
mov rdx, qword [rdi]
add rdx, rbx
xor r9d, r9d
sub r8d, ebx
mov rcx, rsi
call rbp
test eax, eax
jg 0x140001590
mov rcx, qword [rdi]
test rcx, rcx
je 0x1400015c8
call sym.operator_delete___void_
nop dword [rax]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14000147c
call qword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x14000147c
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [rsp + 0x230]
mov qword [rax], rbx
mov eax, 1
jmp 0x14000147e
Function at 0x140001610
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi
Encrypt or decrypt via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
mov dword [rsp + 0x78], edx
mov rdi, rcx
mov rbx, r8
mov rsi, r9
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x38]
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001708
lea rax, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x800c
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140001708
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
mov r8d, esi
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x140001708
lea rax, [rsp + 0x48]
xor r9d, r9d
mov r8, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, 0x6610
call qword [sym.imp.ADVAPI32.dll_CryptDeriveKey]
test eax, eax
je 0x140001708
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x140001708
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
xor eax, eax
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
mov eax, 0xffffffff
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret

Function at 0x14000b5f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x14000b660
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14001c0a4]
mov rbx, rcx
test esi, esi
jle 0x14000b790
mov rax, qword [0x14001c0a8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b6ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b735
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b690
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14000b7b2
mov rax, qword [0x14001c0a8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14001c0a8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b797
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14000b72e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14000b740
add dword [0x14001c0a4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14001c0a8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b72e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x14000b6b8
mov rax, qword [0x14001c0a8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000bd40
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14001c100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14001c0e0]
test rbx, rbx
je 0x14000bd9c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14000bd93
test eax, eax
jne 0x14000bd93
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bd78
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x14000bfb0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x14000bfc8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x14000bfd0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret
Function at 0x14000bfe0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14000c02d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x14000c024
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000c02f
add rax, 0x28
cmp rax, r9
jne 0x14000c010
xor eax, eax
ret

Function at 0x14000c030
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14000c0c0
mov rdx, qword [0x140018440]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000c0ae
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000c0ae
cmp word [rax + 0x18], 0x20b
jne 0x14000c0ae
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14000c0c0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14000c099
add rbx, 0x28
cmp rbx, rdi
je 0x14000c0c0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14000c090
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x140018440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c0f0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c0f8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c0f0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c14d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000c144
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c0f0
add rax, 0x28
cmp rax, r9
jne 0x14000c130
xor eax, eax
ret

Function at 0x14000c150
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140018440]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c16f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c178
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c16f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000c190
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x140018440]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14000c1b0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14000c1b8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14000c1b0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14000c200
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14000c1f7
test rcx, rcx
je 0x14000c1b0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x14000c1e8
xor eax, eax
ret
Function at 0x14000c210
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140018440]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c22f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c238
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x140018440]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c270
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c278
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c270
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14000c270
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14000c2c4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14000c2d0
add rdx, 0x28
cmp rdx, r9
jne 0x14000c2b0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140018440]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14000c302
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14000c310
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c302
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14000c302
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14000c302
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14000c365
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14000c378
add rdx, 0x28
cmp r10, rdx
jne 0x14000c350
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14000c387
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14000c397
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000c36e
test ecx, ecx
jg 0x14000c380
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14000c4c0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000c4f0
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp dbg.__mingwthr_key_dtor
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
add edx, dword [rsp + rsi*2]
invalid
xor ecx, dword [rax]
je 0x14003aae3
add ecx, dword [rax + 0xf030505]
invalid
jb 0x14109bfee
add dword [0x14405aaf3], eax
add eax, 0x4020005
add bh, byte [rax + rbx*2]
add eax, 0x4020024
add dword [rdx + 5], ecx
add eax, 0x1040200
add byte [rdx], al
add al, 4
cmp al, 5
invalid
invalid
add eax, 0x581061e
adc byte [rsi], al
add dword [0x15e08e72c], eax
add ax, 0x4c01
pop rax
and byte cs:[0x1a306b122], al
add eax, 0x63030605
add eax, 0x63030605
invalid
add dword [0x14508fb41], eax
invalid
add al, byte [rcx + rax]
leave
add byte [rdx], al
add al, 1
invalid
add esi, dword [rax + 0x1205827f]
invalid
add al, 1
invalid
sbb al, 0x66
add eax, 0xf030605
sahf
add eax, 0x80d031c
je 0x14003ab9a
invalid
add eax, 0x5010619
invalid
sbb dword [rsi], eax
add dword [0x14586b1a4], eax
sbb al, 0xc7
add eax, 0x5010612
sbb dword [rax + 0x3905661c], edi
add ax, 0x39
add al, byte [rdx + rax]
invalid
add ax, 0x39
add al, byte [rdx + rax]
add edx, dword [rax - 0x62]
add eax, 0x14080607
add eax, 0x501061d
sbb eax, 0x17050106
sbb eax, 0x17050106
leave
add eax, 0x7052d1d
invalid
add eax, 0x20053a17
add rax, 0x3a0617
invalid
cmp al, byte [rax]
add al, byte [rcx + rax]
invalid
invalid
add eax, 0x10030603
add dword [0x14405ac11], eax
add al, byte [rcx + rax]
invalid
add dword [0x14594b21a], eax
sbb dword [rsi], eax
add esp, esp
add al, byte [rcx + rax]
invalid
add eax, 0x68030603
invalid
sldt word [rdx]
add al, 1
add esi, dword [rbx + 0x58]
add eax, 0x4020039
add bl, byte [rsi + 0x2003505]
add al, 1
or byte [rdi + 5], bh
and eax, dword [rax]
add al, byte [rcx + rax]
cmp al, 5
add eax, dword [rsi]
xchg ebx, eax
add eax, 0x5010606
sldt word [rdx]
add al, 1
invalid
add byte ss:[rdx], al
add al, 1
add ax, 0x1c
add al, byte [rcx + rax]
add rax, 0xa030605
invalid
add dword [rsi], eax
adc eax, dword [rax]
add al, byte [rcx + rax]
add byte [rdx], al
add al, 1
je 0x14003ac7d
invalid
add edx, edx
add byte [rcx], al
add eax, 0x5a50603
add eax, 0x1050106
invalid

Function at 0x14000c530
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x14000c560
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x14000c578
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x14000cd90
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400183a0]
mov r11d, dword [rsi]
mov rbx, rcx
test r11d, r11d
jne 0x14000cdc8
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14000ce30
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
mov r12, qword [rcx + 0x10]
test r12, r12
je 0x14000ce40
mov esi, dword [0x14001c188]
mov r13, qword [sym.imp.KERNEL32.dll_GetLastError]
call r13
mov edi, eax
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rsi, rsi
je 0x14000ce98
mov rbp, qword [rsi]
cmp rbp, r12
jb 0x14000cee0
sub r12, 1
mov rax, qword [rsi + r12*8 + 8]
test rax, rax
jne 0x14000cdb7
mov rcx, rbx
call fcn.14000ccf0
mov qword [rsi + r12*8 + 8], rax
jmp 0x14000cdb7
call fcn.14000ccf0
mov qword [rbx + 0x10], rax
jmp 0x14000cdb7
mov r10d, dword [rsi]
test r10d, r10d
je 0x14000cf71
mov r9d, dword [0x140015040]
test r9d, r9d
je 0x14000cf99
lea rcx, [0x14001c1a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov r12, qword [rbx + 0x10]
test r12, r12
je 0x14000cf7e
mov eax, dword [rsi]
test eax, eax
je 0x14000cdd1
lea rcx, [0x14001c1a0]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x14000cdd1
lea rcx, [r12 + 0x21]
mov edx, 8
lea rdi, [r12 + 0x20]
call sym.calloc
mov rsi, rax
test rax, rax
je 0x14000cfd4
mov qword [rax], rdi
mov ecx, dword [0x14001c188]
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x14000ce0b
call r13
jmp 0x14000ce0b
lea rdi, [rbp + rbp]
lea rax, [r12 + 0x20]
mov rcx, rsi
cmp rdi, r12
cmovb rdi, rax
lea rdx, [rdi*8 + 8]
call sym.realloc
mov rsi, rax
test rax, rax
je 0x14000cfd4
mov qword [rax], rdi
sub rdi, rbp
lea rcx, [rax + rbp*8 + 8]
xor edx, edx
lea r8, [rdi*8]
call sym.memset
jmp 0x14000cebb
lea rcx, [0x14001c1a0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x14000cfcc
lea rdx, [0x14000cca0]
mov ecx, eax
mov dword [0x14001c188], eax
call dbg.__mingwthr_key_dtor
test eax, eax
jne 0x14000cfd4
mov dword [0x140015040], 1
mov edx, dword [rsi]
test edx, edx
jne 0x14000ce5c
mov r12, qword [rbx + 0x10]
test r12, r12
jne 0x14000cdd1
mov rax, qword [0x14001c180]
lea r12, [rax + 1]
mov qword [0x14001c180], r12
mov qword [rbx + 0x10], r12
jmp 0x14000ce76
lock add dword [0x140015044], 1
je 0x14000cf29
mov r8d, dword [0x140015040]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
lea rdi, [0x140015040]
test r8d, r8d
jne 0x14000cf67
nop dword [rax]
xor ecx, ecx
call rbp
mov ecx, dword [rdi]
test ecx, ecx
je 0x14000cfc0
jmp 0x14000cf67
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x14000cf59
call sym.abort
nop
nop word [rax + rax]
Function at 0x1400135b0
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
cmp byte [0x140015160], 0
jne 0x1400136b6
mov byte [0x140015160], 1
call sym.__cxa_current_exception_type
test rax, rax
je 0x14001368c
mov rbx, qword [rax + 8]
xor eax, eax
lea r9, [rsp + 0x2c]
cmp byte [rbx], 0x2a
mov dword [rsp + 0x2c], 0xffffffff
sete al
xor r8d, r8d
xor edx, edx
add rbx, rax
mov rcx, rbx
call sym.__cxa_demangle
mov ecx, 2
mov rsi, qword [dbg.__acrt_iob_func]
mov rdi, rax
call rsi
mov edx, 1
lea rcx, str.terminate_called_after_throwing_an_instance_of_
mov r8d, 0x30
mov r9, rax
call sym.fwrite
mov edx, dword [rsp + 0x2c]
mov ecx, 2
test edx, edx
je 0x14001367d
call rsi
mov rcx, rbx
mov rdx, rax
call sym.fputs
mov ecx, 2
call rsi
mov r8d, 2
mov edx, 1
lea rcx, [0x140016181]
mov r9, rax
call sym.fwrite
mov eax, dword [rsp + 0x2c]
test eax, eax
jne 0x140013678
mov rcx, rdi
call sym.free
call sym.__cxa_rethrow
call rsi
mov rcx, rdi
mov rdx, rax
call sym.fputs
jmp 0x140013647
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x2d
mov edx, 1
lea rcx, str.terminate_called_without_an_active_exception_n
mov r9, rax
call sym.fwrite
call sym.abort
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1d
mov edx, 1
lea rcx, str.terminate_called_recursively_n
mov r9, rax
call sym.fwrite
call sym.abort
sub rdx, 1
mov rcx, rax
jne 0x14001374b
call sym.__cxa_begin_catch
mov rcx, rax
mov rax, qword [rax]
call qword [rax + 0x10]
mov ecx, 2
mov rbx, rax
call rsi
mov r9, rax
mov r8d, 0xb
mov edx, 1
lea rcx, str.__what__:
call sym.fwrite
mov ecx, 2
call rsi
mov rdx, rax
mov rcx, rbx
call sym.fputs
mov ecx, 2
call rsi
mov rdx, rax
mov ecx, 0xa
call sym.fputc
call sym.__cxa_end_catch
jmp 0x1400136b1
call sym.__cxa_begin_catch
call sym.__cxa_end_catch
jmp 0x1400136b1

Function at 0x140014220
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140015180]
jmp sym.__emutls_get_address

Function at 0x140014230
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x140015180]
jmp sym.__emutls_get_address
Function at 0x180005170
Capabilities:
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], 0xfffffffffffffffe
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
add rcx, 0x48
xorps xmm0, xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
lea rdx, [rbp - 0x10]
mov r8d, 0x20
call fcn.1800f7190
test rax, rax
je 0x1800051e0
mov qword [rbp + 0x18], rax
mov rcx, rax
mov qword [rbp + 0x10], rdx
call qword [rdx]
mov rax, qword [rbp + 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x180005231
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp + 0x18]
call fcn.1800052b0
jmp 0x180005231
movaps xmm0, xmmword [rbp - 0x10]
movaps xmm1, xmmword [rbp]
movups xmmword [rbp - 0x50], xmm1
movups xmmword [rbp - 0x60], xmm0
lea r8, [0x18013c7f0]
lea rcx, [rbp - 0x40]
lea rdx, [rbp - 0x60]
mov r9d, 8
call fcn.1800f6f80
mov rax, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x18]
mov qword [rdi + 0x28], rcx
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdi + 0x18], xmm0
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rdi + 8], xmm0
mov rcx, qword [rdi + 0x30]
mov qword [rdi + 0x38], rcx
mov qword [rdi], rax
mov qword [rdi + 0x40], rbx
mov rax, 0xffffffffffffff00
add rax, qword [rdi + 0x30]
mov qword [rdi + 0x38], rax
mov rcx, rdi
mov edx, 6
mov r8, rsi
add rsp, 0xa8
pop rbx
pop rdi
pop rsi
pop rbp
jmp fcn.1800f49f0
Function at 0x18002e100
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x18002e142
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x18002e14a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x18002e15b
jmp 0x18002e172
xor r10d, r10d
jmp 0x18002e1fd
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x18002e172
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x18002e189
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x18002e1a9
add r11, r8
jmp 0x18002e2da
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x18002e272
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x18002e220
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x18002e290
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x18002e2a2
jmp 0x18002e2bc
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x18002e2bc
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x18002e2d6
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret