joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011398
Capabilities:
Parse pe header

Disassembly:
jmp 0x140015b70
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140015b90
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140015ba3
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140015bcd
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015be1
xor al, al
jmp 0x140015c11
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015bf3
xor al, al
jmp 0x140015c11
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140015c0f
xor al, al
jmp 0x140015c11
mov al, 1
add rsp, 0x38
ret
Function at 0x1a9bbc0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1a9bbcd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1a9bbdd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1a9bbc5
lea eax, [rcx + 1]
jmp 0x1a9bbeb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1a9bbfe
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1a9bbe4
sub eax, 3
jb 0x1a9bc1e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1a9bc6d
sar eax, 1
movsxd rbp, eax
jb 0x1a9bc54
jmp 0x1a9bc2c
add ebx, ebx
jne 0x1a9bc2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1a9bc54
inc ecx
add ebx, ebx
jne 0x1a9bc3a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1a9bc54
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1a9bc4d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1a9bc3c
add ecx, 2
jmp 0x1a9bc59
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01a9bb82
jmp 0x1a9bbcd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x1678000]
mov eax, dword [rdi]
or eax, eax
je 0x1a9bcc9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x169b000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1a9bc79
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1a9bcc3
mov qword [rbx], rax
add rbx, 8
jmp 0x1a9bc99
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1a9bd0d
cmp al, 0xef
ja 0x1a9bcf5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1a9bcd5
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1a9bce4
mov eax, dword [rdi]
add rdi, 4
jmp 0x1a9bce4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1a9bd61
sub rsp, 0xffffffffffffff80
jmp 0x465e00
Function at 0x140003800
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rsp + 0x78], rbx
mov rbp, r8
mov r15, rdx
mov rdi, rcx
mov qword [rsp + 0x30], rcx
xor ebx, ebx
mov dword [rsp + 0x20], ebx
test r8, r8
je 0x140003849
test bpl, 3
jne 0x140003841
cmp byte [rdx + r8 - 1], 0x3d
jne 0x140003849
mov r14d, 1
jmp 0x14000384c
mov r14d, ebx
mov eax, r14d
lea rsi, [r8 + 3]
shr rsi, 2
sub rsi, rax
shl rsi, 2
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], bl
mov rdx, rsi
shr rdx, 2
lea rax, [rax + rdx*2]
add rdx, rax
xor r8d, r8d
call fcn.140008670
mov dword [rsp + 0x20], 1
lea r10, [0x140071240]
test rsi, rsi
je 0x140003926
lea r8, [r15 + 1]
lea r9, [rsi - 1]
shr r9, 2
inc r9
nop dword [rax]
movzx eax, byte [r8 - 1]
mov ecx, dword [r10 + rax*4]
shl ecx, 6
movzx eax, byte [r8]
or ecx, dword [r10 + rax*4]
shl ecx, 6
movzx eax, byte [r8 + 1]
or ecx, dword [r10 + rax*4]
shl ecx, 6
movzx eax, byte [r8 + 2]
or ecx, dword [r10 + rax*4]
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400038e9
mov rdx, qword [rdi]
mov eax, ecx
sar eax, 0x10
mov byte [rdx + rbx], al
mov rdx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x1400038fe
mov rdx, qword [rdi]
mov eax, ecx
sar eax, 8
mov byte [rdx + rbx + 1], al
mov rax, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x140003914
mov rax, qword [rdi]
mov byte [rax + rbx + 2], cl
add rbx, 3
add r8, 4
sub r9, 1
jne 0x1400038b0
test r14d, r14d
je 0x1400039c5
movzx edx, byte [rsi + r15 + 1]
movzx eax, byte [rsi + r15]
mov ecx, dword [r10 + rax*4]
shl ecx, 6
mov r8d, dword [r10 + rdx*4]
or r8d, ecx
shl r8d, 0xc
mov rdx, qword [rdi + 0x10]
mov rcx, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000395d
mov rcx, qword [rdi]
mov eax, r8d
sar eax, 0x10
mov byte [rcx + rdx - 1], al
lea rax, [rsi + 2]
cmp rbp, rax
jbe 0x1400039c5
movzx eax, byte [rsi + r15 + 2]
cmp al, 0x3d
je 0x1400039c5
movzx eax, al
mov edx, dword [r10 + rax*4]
shl edx, 6
sar edx, 8
sar r8d, 8
or dl, r8b
mov rax, qword [rdi + 0x10]
mov r8, qword [rdi + 0x18]
cmp rax, r8
jae 0x1400039b9
lea rcx, [rax + 1]
mov qword [rdi + 0x10], rcx
mov rcx, rdi
cmp r8, 0x10
jb 0x1400039af
mov rcx, qword [rdi]
mov byte [rcx + rax], dl
mov byte [rcx + rax + 1], 0
jmp 0x1400039c5
movzx r9d, dl
mov rcx, rdi
call fcn.140009f40
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400039e0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x140
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rdi, r8
mov rbp, rcx
movsxd rsi, edx
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [r8 + rbx], 0
jne 0x140003a21
lea rcx, [rsi + 1]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x30]
call fcn.140006610
nop
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140006de0
xor r8d, r8d
test rsi, rsi
je 0x140003a9d
mov eax, r8d
mov rcx, r14
sub rbp, r14
nop dword [rax]
nop word [rax + rax]
xor edx, edx
div rbx
movzx eax, byte [rdx + rdi]
xor al, byte [rcx + rbp]
mov byte [rcx], al
inc r8d
lea rcx, [rcx + 1]
movsxd rax, r8d
cmp rax, rsi
jb 0x140003a80
mov byte [r14 + rsi], 0
lea rcx, [rsp + 0x30]
call fcn.140003ae0
mov rax, r14
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140014a10
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140005ba0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rbp, rdx
mov rdi, rcx
je 0x140005c3a
mov rbx, r8
test r8, r8
jle 0x140005c32
mov rcx, rdi
call fcn.140002bf0
test rax, rax
jle 0x140005c10
mov rcx, qword [rdi + 0x40]
cmp rbx, rax
mov rsi, rbx
mov rdx, rbp
cmovge rsi, rax
mov r8, rsi
mov rcx, qword [rcx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rsi
sub dword [rax], esi
mov rcx, qword [rdi + 0x40]
movsxd rax, esi
add qword [rcx], rax
jmp 0x140005c2a
mov rax, qword [rdi]
mov rcx, rdi
movzx edx, byte [rbp]
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x140005c32
dec rbx
mov esi, 1
add rbp, rsi
test rbx, rbx
jg 0x140005bd2
sub r14, rbx
mov rax, r14
jmp 0x140005cb2
mov rax, qword [rcx + 0x40]
mov rsi, r14
mov r9, qword [rax]
test r9, r9
je 0x140005c51
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140005c53
xor ecx, ecx
movsxd rbx, ecx
test r14, r14
jle 0x140005cac
test ecx, ecx
jle 0x140005c87
cmp r14, rbx
mov rcx, r9
cmovl rbx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add rbp, rbx
sub r14, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x40]
movsxd rax, ebx
add qword [rcx], rax
test r14, r14
jle 0x140005cac
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140005cac
mov r8, r14
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140005cd0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov r14, r8
mov rsi, rdx
mov rbx, rcx
je 0x140005d6b
mov rdi, r8
test r8, r8
jle 0x140005d60
mov rcx, rbx
call fcn.1400089e0
test rax, rax
jle 0x140005d40
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140005d58
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + gethostname]
cmp eax, 0xffffffff
je 0x140005d60
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140005d02
sub r14, rdi
mov rax, r14
jmp 0x140005e1b
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140005d82
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140005d84
xor ecx, ecx
movsxd rdi, ecx
test r14, r14
jle 0x140005e15
test ecx, ecx
jle 0x140005dbc
cmp r14, rdi
mov rcx, rsi
cmovl rdi, r14
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub r14, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
test r14, r14
jle 0x140005e15
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x140005e15
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140005e01
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov r9, qword [rbx + 0x80]
mov r8, r14
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
sub rbp, r14
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140006290
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400062bd
xor eax, eax
jmp 0x140006421
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400062f7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400062f7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140006421
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140006414
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000633a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140006365
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140006419
lea r8, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov rax, qword [rcx]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x38], r8
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x78]
mov qword [rsp + 0x30], r8
lea r8, [rsp + 0x58]
mov qword [rsp + 0x28], r8
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], r8
lea r8, [rsp + 0x50]
call qword [rax + gethostname]
test eax, eax
js 0x140006414
cmp eax, 1
jle 0x1400063d4
cmp eax, 3
jne 0x140006414
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140006419
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140006402
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140006414
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov eax, edi
jne 0x140006419
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140014a10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140008800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400088ac
cmp byte [rcx + 0x71], 0
je 0x1400088ac
mov rax, qword [rcx]
mov edx, 0xffffffff
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14000886d
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
call qword [rax + 0x40]
test eax, eax
je 0x140008871
sub eax, 1
je 0x140008875
sub eax, 2
je 0x1400088ac
xor al, al
jmp 0x1400088ae
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400088a3
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 0x14000886d
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400088ae
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140014a10
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x14000b8c0
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x50], rax
cmp qword [0x140084f48], 0
jne 0x14000b931
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x24]
dec ecx
mov eax, ecx
shr eax, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or ecx, eax
mov eax, ecx
shr eax, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or ecx, eax
mov eax, ecx
shr eax, 0x10
or eax, ecx
inc eax
mov qword [0x140084f38], rax
mov eax, dword [rsp + 0x48]
mov qword [0x140084f40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [0x140084f48], rax
lea rax, [0x140084f38]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014a10
add rsp, 0x68
ret

Function at 0x140013e90
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140014a10
add rsp, 0x68
ret
Function at 0x1400190e0
Capabilities:
Initialize winsock library

Disassembly:
push rbx
sub rsp, 0x1d0
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov eax, dword [0x140084bb4]
mov ebx, ecx
mov r8d, eax
inc eax
mov dword [0x140084bb4], eax
test r8d, r8d
jne 0x1400191d1
test dl, dl
je 0x140019161
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [fcn.14005d555], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
mov qword [0x1400830c0], rax
mov rax, qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strdup]
mov qword [case.0x140020366.0], rax
mov rax, qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov qword [sub.api_ms_win_crt_heap_l1_1_0.dll_calloc], rax
call fcn.140022d50
test eax, eax
je 0x1400191f2
test bl, 2
je 0x1400191a1
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1400191f2
movzx eax, word [rsp + 0x20]
cmp al, 2
jne 0x1400191ec
shr ax, 8
cmp al, 2
jne 0x1400191ec
call fcn.140021c10
test eax, eax
jne 0x1400191f2
call fcn.1400208d0
test eax, eax
jne 0x1400191f2
call fcn.140021970
mov eax, dword [0x140084d00]
test bl, 4
mov ecx, 1
mov dword [0x140084bb8], ebx
cmovne eax, ecx
mov dword [0x140084d00], eax
call fcn.14002bd40
xor eax, eax
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.140014a10
add rsp, 0x1d0
pop rbx
ret
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
jmp 0x1400191d3
Function at 0x140029560
Capabilities:
Write file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0xe0
mov rax, qword [0x140083010]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [rcx + 0x731], 0
mov r14, r9
mov rax, qword [rsp + 0x130]
mov rbp, r8
mov esi, edx
mov rdi, rcx
je 0x140029691
test rax, rax
je 0x140029691
mov rdx, qword [rax + 0xd8]
test rdx, rdx
je 0x140029691
mov ecx, esi
lea r9, str.Data
sub ecx, 1
je 0x1400295eb
sub ecx, 1
je 0x1400295db
sub ecx, 1
je 0x1400295f2
cmp ecx, 1
je 0x1400295e2
jmp 0x140029691
lea r9, str.Header
lea rax, [0x140065dd0]
jmp 0x1400295f9
lea r9, str.Header
lea rax, str.from
mov qword [rsp + 0x28], rdx
lea r8, str.__s__s__s_
mov edx, 0xa0
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x30]
call fcn.140039e20
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140029622
mov r10, qword [rdi + 0x2b8]
test r10, r10
je 0x140029659
mov rax, qword [rdi + 0x208]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call r10
test eax, eax
je 0x140029691
jmp 0x1400296a1
mov r9, qword [rdi + 0x200]
lea rcx, [0x140065cf8]
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rdi + 0x200]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, r14
mov r8, rbp
mov edx, esi
mov rcx, rdi
call fcn.14002a140
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140014a10
add rsp, 0xe0
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400299a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, 0xffffffffffffffff
jne 0x1400299db
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov edx, 0x51
cmp eax, 0x2733
cmove ecx, edx
mov eax, ecx
add rsp, 0x20
pop rbx
ret
mov qword [rbx], rcx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140029e70
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rdi, rcx
mov r15, r8
mov rcx, qword [rcx + 0x240]
mov eax, 0x238
cmp rdx, rcx
mov r8d, 0x240
mov ebx, 0x280
mov r14, r9
cmove eax, r8d
mov rbp, qword [rax + rdi]
mov eax, 0x2a0
cmove ebx, eax
mov rax, qword [rdi + 0x3e8]
add rbx, rdi
xor r12d, r12d
mov rsi, qword [rbx + 8]
sub rsi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140029f83
cmp rdx, rcx
mov eax, 0x260
mov r8d, 0x268
lea rcx, [0x140029a20]
cmove eax, r8d
cmp qword [rax + rdi], rcx
jne 0x140029f83
cmp qword [rbx], r12
je 0x140029f0d
test rsi, rsi
je 0x140029f83
or r8, 0xffffffffffffffff
xor r9d, r9d
or rdx, r8
mov rcx, rbp
call fcn.140028fd0
cmp eax, 0xffffffff
je 0x140029f83
test al, 1
je 0x140029f83
mov rax, qword [rbx]
test rax, rax
jne 0x140029f5c
mov rax, qword [rdi]
mov ecx, dword [rax + 0x6f0]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r12
mov qword [rbx + 0x18], r12
test rax, rax
je 0x140029f7f
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, esi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140029f83
add qword [rbx + 0x10], rcx
jmp 0x140029f83
mov qword [rbx + 8], r12
xor r9d, r9d
mov r8d, r14d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rsi, eax
cmp rsi, 0xffffffffffffffff
jne 0x140029fe6
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140029fba
mov rcx, qword [rsp + 0x60]
lea eax, [rsi + 0x52]
mov qword [rcx], r12
jmp 0x140029ff1
mov edx, ebx
mov rcx, rdi
call fcn.14003bfa0
mov rcx, qword [rdi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1400296c0
mov rax, qword [rdi]
mov dword [rax + 0x4c7c], ebx
mov eax, gethostname
jmp 0x140029fe9
mov eax, r12d
mov rcx, qword [rsp + 0x60]
mov qword [rcx], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002a140
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov r10, qword [rcx + 0x2b8]
mov rdi, r9
mov rsi, r8
mov rbx, rcx
test r10, r10
je 0x14002a183
mov rax, qword [rcx + 0x208]
mov qword [rsp + 0x20], rax
call r10
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
cmp edx, 2
ja 0x14002a1c8
mov r9, qword [rbx + 0x200]
movsxd rcx, edx
lea rdx, [0x140065cf8]
lea rcx, [rcx + rcx*2]
add rcx, rdx
mov edx, 2
lea r8d, [rdx - 1]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, qword [rbx + 0x200]
mov r8d, 1
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x14002a2c0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x2c0], 0
je 0x14002a2dd
call fcn.1400224c0
test eax, eax
jne 0x14002a308
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x238]
cmp rcx, 0xffffffffffffffff
je 0x14002a2d6
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x14002a308
add rsp, 0x28
ret
mov al, 1
add rsp, 0x28
ret
Function at 0x14002bca0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
cdqe
add rsp, 0x28
ret