joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002fb60
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14002fd04
cmp r9, 4
jb 0x14002fbaa
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14002fb90
xor r11d, r11d
test r9, r9
je 0x14002fd04
cmp r9, 8
jb 0x14002fcdd
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14002fbdc
cmp rdx, r8
jae 0x14002fcdd
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14002fbf1
cmp rdx, r10
jae 0x14002fcdd
mov rdx, r10
mov qword [rsp + 0x10], rbx
sub rdx, r8
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x14002fc97
mov rdi, r9
mov qword [rsp + 0x18], rsi
and edi, 0x3f
mov rsi, r9
sub rsi, rdi
mov rbx, rcx
lea rax, [r8 + 0x10]
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rsi
jb 0x14002fc30
mov rsi, qword [rsp + 0x18]
cmp rdi, 8
jb 0x14002fccf
mov rbx, r9
and rbx, 0xfffffffffffffff8
mov rdi, rcx
lea rax, [r11 + r8]
sub rdi, r8
nop dword [rax + rax]
movq xmm1, qword [rax + rdx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax + rdi - 8], xmm1
cmp r11, rbx
jb 0x14002fcb0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x14002fd04
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14002fcf0
add rsp, 8
ret

Function at 0x140035768
Capabilities:
Parse pe header

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

Disassembly:
sub rcx, qword [r15]
xor dword [rdi + 0x2f], ebp
retf 0x801e
jge 0x180030932
cmp dword [rcx], esi
invalid
xor dword [rbx - 0x7b6a3580], ecx
jnp 0x18003094b
invalid
outsb dx, byte [rsi]
pop rsp
mov ch, 0x74
test al, 3
stc
mov ch, 0x37
sar byte [rsi], 0xe5
mov esp, dword [rdi - 0x26]
or dword [rdx - 0x38daa6d], eax
cwde
movabs byte [0xfb62cf56b4315941], al
adc eax, 0xaff26251
scasd eax, dword [rdi]
xor byte [rdi], bl
imul edi, esi, 0x28
mov eax, ds
ror dword [rbx + 0x59223f66], 1
movabs dword [0x3159599ab342427e], eax
rcl ebx, 0x19
jge 0x180030a11
jno 0x1800309b5
clc
btr dword [rbx + 0x67], ecx
sal byte [rbp - 0x3eea8ff1], 0x91
jle 0x180030a82
add eax, 0x7d7e81ab
sbb esp, dword [rsi]
jo 0x1800309ee
sbb eax, 0xb51ddccc
add dword [rsi], 0x7c
lodsd eax, dword [rsi]
invalid
fbld tbyte [rbp - 0xb]
or byte [rbx - 0x6614eee9], bh
jrcxz 0x180030ac0
mov al, byte [rdi + rcx - 8]
sbb dl, bl
stc
mov ch, 0x7e
mov cl, 0x6e
invalid
cmp ebx, ebx
cmpsq qword [rsi], qword [rdi]
or dl, ch
adc ah, byte [rax + 0x5d]
wait
stosb byte [rdi], al
mov al, 0x32
mov dl, ah
invalid

Function at 0x1800355e0
Capabilities:
Encode data using xor

Disassembly:
xor eax, 0x71db0cd9
cli
sub eax, 0xc3581673
xor dword [rdi + 0x29], edi
and ebx, ebx
jo 0x1800355e5
invalid

Function at 0x180058b30
Capabilities:
Encode data using xor

Disassembly:
mov ch, 0x7e
sbb byte [rdi], bl
sub ebp, ebp
outsd dx, dword [rsi]
and eax, 0x4f85a5f6
xor ecx, dword [rsi + 0x20]
loop 0x180058b0e
or ecx, dword [rdx]
xchg edi, eax
mov dl, 0x98
fnstenv [rsi + 0x14]
xchg esi, eax
iretd
Function at 0x1400461c0
Capabilities:
Get common file path
Get disk information
Get hostname
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x540]
sub rsp, 0x640
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rbp + 0x530], rax
xor ebx, ebx
mov dword [rsp + 0x48], ebx
call fcn.140101d90
mov edx, 0x400
lea rcx, [rbp + 0x130]
call qword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jne 0x140046254
xorps xmm0, xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x130]
call fcn.140101130
movsx eax, word [rbp - 0x60]
cmp eax, 2
je 0x14004624d
cmp eax, 0x17
jne 0x140046254
mov eax, dword [rbp - 0x58]
jmp 0x140046250
mov eax, dword [rbp - 0x5c]
mov dword [rsp + 0x48], eax
call sub.WS2_32.dll_WSACleanup
mov dword [rsp + 0x40], ebx
lea rcx, [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [rsp + 0x44], ebx
mov edx, 0x104
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rcx, [rbp + 0x20]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140046286
cmp rax, 3
jb 0x1400462d7
cmp byte [rbp + 0x21], 0x3a
jne 0x1400462d7
cmp byte [rbp + 0x22], 0x5c
jne 0x1400462d7
mov byte [rbp + 0x23], bl
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x44]
xor r8d, r8d
xor edx, edx
lea rcx, [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [rsp + 0x44]
test eax, eax
cmove ecx, ebx
mov dword [rsp + 0x44], ecx
mov r8d, 4
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x40]
call fcn.1401040c0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rbx
lea rcx, [rsp + 0x50]
call fcn.140045da0
mov rbx, rax
test rax, rax
je 0x140046330
nop dword [rax]
lea rdx, [rbx + 0x198]
mov r8d, dword [rbx + 0x194]
lea rcx, [rsp + 0x40]
call fcn.1401040c0
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140046310
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14004636f
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14004636a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14004636a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140131388
mov r8d, 4
lea rdx, [rsp + 0x44]
lea rcx, [rsp + 0x40]
call fcn.1401040c0
mov r8d, 2
lea rdx, [rbp - 0x6c]
lea rcx, [rsp + 0x40]
call fcn.1401040c0
mov r8d, 2
lea rdx, [rbp - 0x6a]
lea rcx, [rsp + 0x40]
call fcn.1401040c0
mov r8d, 4
lea rdx, [rbp - 0x74]
lea rcx, [rsp + 0x40]
call fcn.1401040c0
mov eax, dword [rsp + 0x40]
mov rcx, qword [rbp + 0x530]
xor rcx, rsp
call fcn.140131030
mov rbx, qword [rsp + 0x650]
add rsp, 0x640
pop rbp
ret
Function at 0x14007f190
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x40
movzx ebp, word [rdx + 8]
mov rsi, r8
movzx eax, word [rdx + 0xa]
xor r11d, r11d
shl ebp, 0x10
mov r8, rcx
or ebp, eax
mov r9, rsi
mov r10d, r11d
mov ebx, ebp
test rsi, rsi
je 0x14007f1e0
movsx eax, byte [r9]
test al, al
je 0x14007f1e0
inc r10d
mov ecx, r10d
and ecx, 3
shl ecx, 3
shl eax, cl
xor ebx, eax
add r9, 1
jne 0x14007f1c2
mov eax, 0x4b5c8c1
mul ebx
mov eax, ebx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0xa
imul eax, eax, 0x7db
sub ebx, eax
mov rax, qword [r8]
mov rbx, qword [rax + rbx*8]
test rbx, rbx
je 0x14007f32f
mov qword [rsp + 0x50], rdi
cmp qword [rbx + 8], r11
je 0x14007f287
mov rcx, qword [rbx]
mov rax, qword [rcx]
cmp rax, rcx
je 0x14007f287
mov rdi, qword [rax + 0x10]
movzx r8d, word [rdi + 8]
movzx edx, word [rdi + 0xa]
shl r8d, 0x10
or r8d, edx
cmp r8d, ebp
jne 0x14007f27d
mov rdx, qword [rdi + 0x50]
test rdx, rdx
jne 0x14007f249
test rsi, rsi
je 0x14007f28a
jmp 0x14007f27f
test rsi, rsi
je 0x14007f27f
mov r10, rsi
sub r10, rdx
nop dword [rax]
nop dword [rax + rax]
movzx r9d, byte [rdx]
movzx r8d, byte [rdx + r10]
sub r9d, r8d
jne 0x14007f276
inc rdx
test r8d, r8d
jne 0x14007f260
test r9d, r9d
je 0x14007f28a
jmp 0x14007f27f
ja 0x14007f287
mov rax, qword [rax]
cmp rax, rcx
jne 0x14007f220
mov rdi, r11
mov r9, qword [rbx]
lea rax, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], r11
mov qword [rsp + 0x30], rax
mov rdx, qword [r9]
cmp rdx, r9
je 0x14007f2ed
nop dword [rax]
mov r8, qword [rdx]
cmp qword [rdx + 0x10], rdi
jne 0x14007f2e0
dec qword [rbx + 8]
mov rcx, qword [rdx]
mov qword [rdx], r11
mov rax, qword [rdx + 8]
mov qword [rax], rcx
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
mov qword [rax], rdx
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x30], rdx
mov rdx, r8
cmp r8, r9
jne 0x14007f2b0
mov r11, qword [rsp + 0x28]
test r11, r11
je 0x14007f318
nop dword [rax]
nop word [rax + rax]
mov rbx, qword [r11]
mov edx, 0x18
mov rcx, r11
call fcn.140131388
mov r11, rbx
test rbx, rbx
jne 0x14007f300
test rdi, rdi
je 0x14007f32a
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rdi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret
Function at 0x1400880f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rax, qword [rcx + 0x28]
mov rdi, rcx
add rcx, 0x28
call qword [rax + 0x48]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, qword [rdi + 0x80]
mov edx, 1
mov r9, rax
mov r8d, 0x8000
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r9, qword [rdi + 0x28]
lea rcx, [rdi + 0x28]
mov rdx, qword [rdi + 0x80]
mov r8, rax
call qword [r9 + 0x40]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_feof]
test eax, eax
je 0x140088161
mov rax, qword [rdi + 0x28]
lea rcx, [rdi + 0x28]
call qword [rax + 0x50]
mov rax, qword [rdi]
xor edx, edx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [rax + 0x30]

Function at 0x1400887d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor edi, edi
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test r8, r8
je 0x140088863
test rdx, rdx
je 0x140088863
cmp dword [rcx + 0x24], edi
jne 0x140088863
mov rax, qword [rcx + 0x18]
cmp qword [rax], rdi
je 0x140088863
cmp rbx, 0x2000000
jle 0x140088846
mov r9, qword [rbp + 0x18]
mov edx, 1
mov r8d, 0x2000000
mov rcx, rsi
mov r9, qword [r9]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rdi, rax
add rsi, rax
cmp rax, 0x2000000
jne 0x140088863
sub rbx, rax
cmp rbx, rax
jg 0x140088810
test rbx, rbx
je 0x140088863
mov r9, qword [rbp + 0x18]
mov r8, rbx
mov edx, 1
mov rcx, rsi
mov r9, qword [r9]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add rax, rdi
jmp 0x140088866
mov rax, rdi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x140088c30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbx, rdx
test r8, r8
je 0x140088c74
test rdx, rdx
je 0x140088c74
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r8, rdi
mov edx, 1
mov r9, rax
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rdi
ret
Function at 0x1400c1360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400c1433
cmp byte [rcx + 0x71], 0
je 0x1400c1433
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400c142f
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 0x1400c13f4
sub eax, 1
je 0x1400c13f8
cmp eax, 2
jne 0x1400c142f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140131030
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400c1426
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 0x1400c142f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400c13dc
xor al, al
jmp 0x1400c13dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140131030
add rsp, 0x60
pop rbx
ret
Function at 0x1400c3810
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x1400c383d
xor eax, eax
jmp 0x1400c39a6
mov qword [rsp + 0xa0], rbx
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 0x1400c387d
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 0x1400c387d
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], sil
mov eax, esi
jmp 0x1400c399e
cmp qword [rdi + 0x80], 0
je 0x1400c3999
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 0x1400c38b7
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 0x1400c38e2
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400c399e
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x1400c3951
sub eax, 1
je 0x1400c3951
cmp eax, 2
jne 0x1400c3999
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x1400c399e
mov rbx, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x1400c397f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x1400c3999
lea rax, [rsp + 0x40]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x1400c399e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140131030
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400c4500
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x1400c4531
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400c4548
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x30], rbx
mov rbx, rsi
mov qword [rsp + 0x38], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x1400c4599
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x1400c4611
mov rcx, rbp
call fcn.1400c2150
cmp rbx, 0xfff
jbe 0x1400c45f1
nop word [rax + rax]
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x1400c4632
cmp rbx, rax
ja 0x1400c45c0
test rdi, rdi
je 0x1400c4611
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x30]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
sub rsi, rbx
jmp 0x1400c4614
Function at 0x1400c4640
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x1400c4661
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x1400c46dc
test rax, rax
jle 0x1400c46bc
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x1400c46dc
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400c46dc
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
Function at 0x1400ca6e0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140653828]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, r9
movzx ebx, r8b
movzx ebp, dx
mov rdi, rcx
call fcn.1400caab0
mov r14d, 2
mov dword [rsp + 0x28], 0x80
mov ecx, r14d
mov dword [rsp + 0x20], 0
lea edx, [rbx + 1]
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_WSASocketA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400ca819
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x1400ca74e
mov rcx, qword [rdi]
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x1400ca76f
cmp word [rax + 0x10], r14w
jne 0x1400ca76f
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov dword [rsp + 0x3c], eax
jmp 0x1400ca7b1
cmp qword [rdi + 0x18], 0x10
mov word [rsp + 0x38], r14w
mov dword [rsp + 0x30], reloc.WS2_32.dll_recv
jb 0x1400ca787
mov rdi, qword [rdi]
lea rax, [rsp + 0x30]
xor r8d, r8d
lea r9, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov edx, r14d
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_WSAStringToAddressA]
cmp eax, 0xffffffff
je 0x1400ca803
cmp dword [rsp + 0x30], 0x10
jne 0x1400ca803
movzx ecx, bp
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x3a], ax
mov word [rsp + 0x38], r14w
nop word [rax + rax]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1400ca7f8
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
je 0x1400ca7d0
jmp 0x1400ca806
mov dword [rsi], 0
mov rax, rbx
jmp 0x1400ca830
mov dword [rsi], r14d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, rbx
mov edi, eax
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400ca821
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], edi
mov rax, qword [0x1401e9588]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140131030
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret