joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140014f10
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbp
push rsi
sub rsp, 0xb8
lea rbp, [rsp + 0x80]
mov rax, rdx
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
movaps xmmword [rbp - 0x60], xmm0
mov dword [rbp + 0x34], 0x80
lea rdx, [rbp - 0x60]
lea r8, [rbp + 0x34]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x140014fba
mov eax, dword [rbp + 0x34]
movzx ecx, word [rbp - 0x60]
cmp ecx, 2
je 0x140014fca
cmp ecx, 0x17
jne 0x140014fe8
cmp eax, 0x1b
jbe 0x140015002
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov edx, dword [rbp - 0x48]
movups xmm0, xmmword [rbp - 0x58]
movups xmmword [rbp + 0x24], xmm0
mov word [rsi], 1
movups xmm0, xmmword [rbp + 0x22]
movups xmmword [rsi + 2], xmm0
movzx r8d, word [rbp + 0x32]
mov word [rsi + 0x12], r8w
mov dword [rsi + 0x14], ecx
mov dword [rsi + 0x18], edx
mov word [rsi + 0x1c], ax
jmp 0x140014ff8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
jmp 0x140014fef
cmp eax, 0xf
jbe 0x14001501a
movzx eax, word [rbp - 0x5e]
rol ax, 8
mov ecx, dword [rbp - 0x5c]
mov word [rsi], 0
mov word [rsi + 6], ax
mov dword [rsi + 2], ecx
jmp 0x140014ff8
lea rax, str.invalid_argument
mov qword [rsi + 8], rax
mov word [rsi], 2
add rsp, 0xb8
pop rsi
pop rbp
ret
lea rcx, str.assertion_failed:_len___mem::size_of::_c::sockaddr_in6___
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x3a
call fcn.140026f60
lea rcx, [0x14002c549]
lea r8, str.library_std_src_sys_common_net.rsassertion_failed:_len___mem::size_of::_c::sockaddr_in___
mov edx, 0x39
call fcn.140026f60
int3

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

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov rax, r8
cmp r8, 0x7fffffff
mov r8d, 0x7fffffff
cmovb r8, rax
cmp word [r9], 0
je 0x140015174
movups xmm0, xmmword [r9 + 4]
mov eax, dword [r9 + 0x14]
mov r11d, dword [r9 + 0x18]
movzx r10d, word [r9 + 0x1c]
mov r9d, 0x1c
mov si, 0x17
jmp 0x14001518a
mov eax, dword [r9 + 2]
movzx r10d, word [r9 + 6]
xorps xmm0, xmm0
mov r9d, reloc.WS2_32.dll_recv
mov si, 2
rol r10w, 8
mov word [rbp - 0x14], si
mov word [rbp - 0x12], r10w
mov dword [rbp - 0x10], eax
movups xmmword [rbp - 0xc], xmm0
mov dword [rbp + 4], r11d
mov rcx, qword [rcx]
mov dword [rsp + 0x28], r9d
lea rax, [rbp - 0x14]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_sendto]
cmp eax, 0xffffffff
je 0x1400151c9
movsxd rdx, eax
xor eax, eax
jmp 0x1400151de
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov eax, 1
add rsp, 0x58
pop rsi
pop rbp
ret
Function at 0x1400151f0
Capabilities:
Connect socket

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, r8
mov r8, rdx
mov rdx, rcx
lea rcx, [rbp - 0x38]
call fcn.14000e1a0
mov rax, qword [rbp - 0x38]
mov rdi, qword [rbp - 0x30]
test rax, rax
je 0x140007626
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x28]
mov qword [rbp - 8], rax
mov r12, qword [rbp - 0x20]
cmp rdi, r12
je 0x140007649
lea r13, [rbp - 0x36]
xor ebx, ebx
lea r14, [rbp - 0x38]
nop dword [rax]
movzx eax, word [rdi]
movups xmm0, xmmword [rdi + 0x10]
movups xmmword [rbp - 0x52], xmm0
movups xmm0, xmmword [rdi + 2]
movaps xmmword [rbp - 0x60], xmm0
cmp ax, 2
je 0x140007678
mov word [rbp - 0x38], ax
movups xmm0, xmmword [rbp - 0x52]
movups xmmword [r13 + 0xe], xmm0
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [r13], xmm0
mov qword [rbp - 0x18], rbx
mov rcx, rsi
xor edx, edx
mov r8, r14
call 0x1400151f0
mov r15, rax
test rax, rax
je 0x140007686
mov qword [rbp - 0x18], r15
mov rcx, rbx
call fcn.1400078f0
add rdi, 0x20
mov rbx, r15
cmp rdi, r12
jne 0x1400075c0
jmp 0x14000764c
mov edx, 1
mov rcx, rsi
mov r8, rdi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp 0x1400151f0
xor r15d, r15d
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x140007668
shl rdx, 5
mov r8d, 4
mov rcx, qword [rbp - 0x10]
call fcn.140002360
test r15, r15
lea rax, str.could_not_resolve_to_any_addresses
cmovne rax, r15
jmp 0x1400076ac
mov r15, rbx
mov rdx, qword [rbp - 8]
test rdx, rdx
jne 0x140007655
jmp 0x140007668
mov rdx, qword [rbp - 8]
test rdx, rdx
je 0x1400076a2
shl rdx, 5
mov r8d, 4
mov rcx, qword [rbp - 0x10]
call fcn.140002360
mov rcx, rbx
call fcn.1400078f0
xor eax, eax
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
push rbp
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rax, r8
test rdx, rdx
je 0x140015208
add rsp, 0x40
pop rbp
ret
cmp word [rax], 0
je 0x14001522a
movups xmm0, xmmword [rax + 4]
mov edx, dword [rax + 0x14]
mov r9d, dword [rax + 0x18]
movzx eax, word [rax + 0x1c]
mov r8d, 0x1c
mov r10w, 0x17
jmp 0x14001523f
mov edx, dword [rax + 2]
movzx eax, word [rax + 6]
xorps xmm0, xmm0
mov r8d, reloc.WS2_32.dll_recv
mov r10w, 2
rol ax, 8
mov word [rbp - 0x1c], r10w
mov word [rbp - 0x1a], ax
mov dword [rbp - 0x18], edx
movups xmmword [rbp - 0x14], xmm0
mov dword [rbp - 4], r9d
mov rcx, qword [rcx]
lea rdx, [rbp - 0x1c]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x140015271
xor eax, eax
add rsp, 0x40
pop rbp
ret
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
add rsp, 0x40
pop rbp
ret
Function at 0x140023700
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
test r8, r8
je 0x14002378a
mov rax, rdx
mov rdx, qword [rbp + 0x50]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x140023780
cmp r11, r10
ja 0x140023806
cmp r10, rdx
ja 0x140023818
add r11, r9
xor ebx, ebx
nop word cs:[rax + rax]
cmp rdi, rbx
je 0x140023782
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x140023760
jmp 0x1400237e7
ja 0x14002378a
mov r11, r10
cmp rax, r8
jne 0x140023727
mov rdx, qword [rbp + 0x60]
test rdx, rdx
je 0x1400237eb
mov r8, qword [rbp + 0x58]
add rdx, r8
movzx ecx, cx
mov al, 1
nop
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x1400237c0
mov r8, r10
sub ecx, r9d
jns 0x1400237de
jmp 0x1400237ed
cmp r10, rdx
je 0x1400237fa
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x1400237ed
xor al, 1
cmp r8, rdx
jne 0x1400237a0
jmp 0x1400237ed
xor eax, eax
jmp 0x1400237ed
mov al, 1
and al, 1
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
lea rcx, str.librarycore_srcunicodeprintable.rs
call fcn.140026e60
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1400272c0
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400272b0
int3

Function at 0x1400256f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002573e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002573e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002573e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002573e
cmp dword [rcx + 0x84], 0xe
jbe 0x14002573e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140025740
xor al, al
add rsp, 0x28
ret
Function at 0x140026430
Capabilities:
Resolve dns

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov r14, r9
mov rsi, rcx
lea rcx, [rbp - 0x28]
call fcn.14001ce80
mov rdx, qword [rbp - 0x28]
movabs rax, 0x8000000000000000
cmp rdx, rax
jne 0x1400264b9
mov rdi, qword [rbp - 0x20]
mov rbx, qword [rbp - 0x18]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
movaps xmmword [rbp - 0x40], xmm0
movaps xmmword [rbp - 0x50], xmm0
mov dword [rbp - 0x58], 1
mov qword [rbp - 8], 0
lea r8, [rbp - 0x60]
lea r9, [rbp - 8]
mov rcx, rdi
xor edx, edx
call qword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x1400264ec
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
shl rax, 0x20
or rax, 2
mov ecx, 1
jmp 0x140026500
lea rax, str.file_name_contained_an_unexpected_NUL_byte
mov qword [rsi + 8], rax
mov qword [rsi], 1
test rdx, rdx
je 0x140026520
mov rcx, qword [rbp - 0x20]
mov r8d, 1
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.140002360
mov rcx, qword [r14]
mov rax, qword [rbp - 8]
movzx ecx, word [rcx]
mov qword [rsi + 0x10], rax
mov word [rsi + 0x18], cx
xor ecx, ecx
mov qword [rsi + 8], rax
mov qword [rsi], rcx
mov byte [rdi], 0
test rbx, rbx
je 0x140026520
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140002360
nop
add rsp, 0x80
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x180014ea0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rdx, 0xcbf29ce484222325
xor r8d, r8d
movzx eax, byte [rcx + r8]
movabs r9, 0x100000001b3
xor rdx, rax
inc r8
imul rdx, r9
cmp r8, 4
jb 0x180014ead
mov rax, rdx
ret
Function at 0x180021588
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x1800215af
and qword [r8], 0
call fcn.180021694
mov rbx, rax
test rax, rax
je 0x180021677
mov rcx, rax
call fcn.180021510
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x18002166e
mov rax, qword [0x18014df28]
test rax, rax
je 0x1800215e7
inc dword [rax + 0xec]
mov rdx, qword [0x18014df38]
lea rcx, [rdi + rbp]
call qword [section..data]
mov rsi, rax
test rax, rax
je 0x18002166e
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x180021646
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x18014df28]
test rax, rax
je 0x180021634
dec dword [rax + 0xec]
mov rdx, qword [0x18014df38]
mov rcx, rsi
call qword [0x18014c008]
jmp 0x180021677
test ebp, ebp
jle 0x180021658
lea rcx, [rsi + rdi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x180021669
mov qword [r14], rdi
mov rax, rsi
jmp 0x180021679
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1800219ec
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r9, rcx
not r8d
test rdx, rdx
je 0x180021a1a
movzx eax, byte [r9]
inc r9
movzx ecx, r8b
xor rcx, rax
shr r8d, 8
lea rax, [0x1800c1400]
xor r8d, dword [rax + rcx*4]
sub rdx, 1
jne 0x1800219f7
not r8d
mov eax, r8d
ret

Function at 0x180021a24
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x180021a7e
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rbx, [0x1800c1400]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x180021a68
cmp rdx, 2
jb 0x180021a68
cmp byte [r10], r11b
jne 0x180021a68
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x180021a46
jmp 0x180021abf
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x180021abf
mov r11b, reloc.WLDAP32.dll_Ordinal_35
lea rbx, [0x1800c1400]
cmp dl, r11b
jne 0x180021aa3
cmp byte [r10], r11b
jne 0x180021aa3
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x180021a91
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret
Function at 0x180023a98
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5ca0], 0
lea rbx, [rcx + 0x5ca8]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x180023b31
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x180023ae9
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.180030444
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.18002fb40
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5ca0]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x18014df30]
movsxd r8, eax
mov rax, qword [rdi + 0x5cb0]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x180023b39
mov rcx, rbx
call fcn.18002fb40
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18002aef8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x18014df28]
mov rbx, rcx
and dword [rax + 0x5bfc], 0
test rcx, rcx
je 0x18002af61
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.18002af6c
lea rdx, [0x1800c2b1c]
mov rcx, rbx
mov rdi, rax
call fcn.180021694
mov rbx, rax
test rax, rax
je 0x18002af61
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18005aaa4
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x18014d740]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x18014f960]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x18005aae9
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x20]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x18005ab1f
mov eax, 0xa
jmp 0x18005abae
test esi, esi
je 0x18005ab41
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x18005ab62
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x18005ab62
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x18005ab5c
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x18005ab62
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800bca40
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18005ac10
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x18014d740]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x18005adac
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rax
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x18005ad4e
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x18005ad0a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18005ad0a
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18005ad0a
mov rdx, qword [rdi]
test rdx, rdx
jne 0x18005accc
mov dword [rdi + 8], 0x80
mov r8d, 0x200
mov rcx, qword [0x18014e370]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x18005ad32
jmp 0x18005acfd
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x18005acfd
add eax, eax
mov r8, rdx
mov r9d, eax
xor edx, edx
mov dword [rdi + 8], eax
mov rcx, qword [0x18014e370]
shl r9, 2
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x18005ad32
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], Ordinal_33
mov rcx, rbp
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x18005ac7a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x18005ad4e
mov esi, ebx
cmp qword [rdi], rbx
je 0x18005ad4e
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18014e370]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x18005adac
cmp qword [rdi], rbx
je 0x18005adb1
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x18005adb1
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x18005ada3
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.18005aff0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x18005ad67
jmp 0x18005adb1
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800bca40
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18005b18c
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x18005b1f0
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x18005b1de
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x18005b1d7
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18005b1ab
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x18014e370]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x18005b564
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x18005b57b
cmp r8b, 0x90
je 0x18005b57b
cmp r8b, 0xcc
jne 0x18005b59d
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18005b599
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x18005b59d
add edx, r10d
cmp edx, r9d
jb 0x18005b589
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180068ee8
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18014d740]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x180068f57
cmp byte [rcx + 0x71], 0
je 0x180068f57
mov rax, qword [rcx]
or edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x180068fac
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 0x180068f71
sub eax, 1
je 0x180068f75
cmp eax, 2
jne 0x180068fac
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1800bca40
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x180068fa3
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 0x180068fac
cmp byte [rbx + 0x71], 0
sete al
jmp 0x180068f59
xor al, al
jmp 0x180068f59
Function at 0x18006b234
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x18014d740]
xor rax, rsp
mov qword [rbp - 8], rax
or esi, 0xffffffff
mov r14d, edx
mov rdi, rcx
cmp edx, esi
jne 0x18006b26e
xor eax, eax
jmp 0x18006b38d
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x18006b2a7
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x18006b2a7
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], r14b
mov eax, r14d
jmp 0x18006b38d
cmp qword [rdi + 0x80], 0
je 0x18006b38b
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x18006b2e1
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x18006b302
movsx ecx, r14b
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, esi
jmp 0x18006b387
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], r14b
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x18006b350
sub eax, 1
je 0x18006b350
cmp eax, 2
jne 0x18006b38b
movsx ecx, byte [rbp - 0x30]
jmp 0x18006b2ee
mov rbx, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub rbx, rax
je 0x18006b37b
mov r9, qword [rdi + 0x80]
lea rcx, [rbp - 0x28]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x18006b38b
lea rax, [rbp - 0x30]
mov byte [rdi + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne esi, r14d
mov eax, esi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1800bca40
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret