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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd rbp, edx
mov edi, r8d
mov rbx, rcx
mov r8, rbp
xor edx, edx
mov rcx, r9
mov rsi, r9
call sub.msvcrt.dll_memset
mov eax, ebp
xor edx, edx
imul eax, edi
movsxd rcx, eax
movzx eax, dil
add rcx, rbx
imul r9d, eax, 0xd
mov r8b, r9b
xor r8b, 0x6e
test ebp, ebp
jle 0x180085286
mov al, r8b
xor al, byte [rcx]
mov byte [rsi], al
mov al, r9b
add al, byte [rcx]
inc rsi
add al, dl
inc rcx
add r8b, al
inc edx
cmp edx, ebp
jl 0x180085269
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18008adb0
Capabilities:
Encode data using xor

Disassembly:
xorps xmm0, xmm0
movsxd r8, ecx
lea rdx, [0x1800e8150]
lea rax, [0x1801a0da8]
add rdx, r8
mov r9, rax
movups xmmword [0x1801a0da8], xmm0
movups xmmword [0x1801a0db8], xmm0
mov cl, r8b
inc r8d
xor cl, byte [rdx]
inc rdx
xor cl, 0x6e
mov byte [r9], cl
inc r9
test cl, cl
jne 0x18008add8
ret

Function at 0x18008f330
Capabilities:
Access peb ldr_data

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, 0x40
mov rbp, r9
mov r14, r8
mov rbx, rdx
mov rsi, rcx
call fcn.18008fcd0
mov rdi, qword [rsp + 0x70]
mov qword [rax + 0x138], rbx
mov rbx, qword [rdi + 8]
call fcn.18008fcd0
mov qword [rax + 0x128], rbx
mov rax, qword [rsi]
mov rbx, qword [rax + 0x38]
call fcn.18008fcd0
mov ecx, dword [0x1801a14e8]
mov r9, rdi
mov byte [rsp + 0x38], 1
mov r8, rbp
mov edx, 0x14
mov qword [rax + 0x130], rbx
xor ebx, ebx
mov rax, qword gs:[0x58]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov rcx, qword [rax + rcx*8]
mov eax, dword [rsp + 0x80]
mov dword [rdx + rcx], eax
mov rdx, r14
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsi]
mov qword [rsp + 0x20], rax
call fcn.1800911b0
call fcn.18008fcd0
mov rcx, qword [rsp + 0x88]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov qword [rax + 0x138], rbx
lea eax, [rbx + 1]
mov rbx, qword [rsp + 0x50]
mov dword [rcx], 1
add rsp, 0x40
pop r14
ret
Function at 0x180092460
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x1800ff980]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18009249c
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18008edd4
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], 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
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x180092558
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x1800925be
test ebx, ebx
jne 0x1800925be
lea ecx, [rax + 2]
call fcn.18008edd4
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18008ea70
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret
Function at 0x18009bfd0
Capabilities:
Get disk information

Disassembly:
push rbp
sub rsp, 0x250
mov rax, qword [0x1800ff980]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1800b8eb0]
mov rbp, rcx
call sub.msvcrt.dll_wcspbrk
test rax, rax
je 0x18009c191
mov qword [rsp + 0x268], rbx
xor ebx, ebx
mov qword [rsp + 0x270], rsi
mov qword [rsp + 0x278], rdi
call sub.msvcrt.dll__errno
mov esi, dword [rax]
call sub.msvcrt.dll__errno
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], ebx
call sub.msvcrt.dll__wfullpath
mov rdi, rax
test rax, rax
je 0x18009c04f
call sub.msvcrt.dll__errno
mov dword [rax], esi
jmp 0x18009c080
call sub.msvcrt.dll__errno
cmp dword [rax], 0x22
jne 0x18009c16f
call sub.msvcrt.dll__errno
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], esi
call sub.msvcrt.dll__wfullpath
mov rbx, rax
mov rdi, rax
test rax, rax
je 0x18009c16f
mov rax, 0xffffffffffffffff
mov rcx, rax
nop word [rax + rax]
inc rcx
cmp word [rdi + rcx*2], 0
jne 0x18009c090
cmp rcx, 3
je 0x18009c155
inc rax
cmp word [rdi + rax*2], 0
jne 0x18009c0a4
cmp rax, 5
jb 0x18009c16f
movzx eax, word [rdi]
cmp ax, 0x5c
je 0x18009c0cb
cmp ax, 0x2f
jne 0x18009c16f
movzx eax, word [rdi + 2]
cmp ax, 0x5c
je 0x18009c0df
cmp ax, 0x2f
jne 0x18009c16f
movzx eax, word [rdi + 4]
cmp ax, 0x5c
je 0x18009c16f
cmp ax, 0x2f
je 0x18009c16f
movzx eax, word [rdi + 6]
lea rcx, [rdi + 6]
test ax, ax
je 0x18009c16f
cmp ax, 0x5c
je 0x18009c119
cmp ax, 0x2f
je 0x18009c119
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x18009c100
test ax, ax
je 0x18009c16f
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
je 0x18009c16f
nop dword [rax + rax]
cmp ax, 0x5c
je 0x18009c149
cmp ax, 0x2f
je 0x18009c149
movzx eax, word [rcx + 2]
add rcx, 2
test ax, ax
jne 0x18009c130
test ax, ax
je 0x18009c155
cmp word [rcx + 2], 0
jne 0x18009c16f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov rcx, rbx
cmp eax, 1
jbe 0x18009c172
call fcn.1800925f8
mov al, 1
jmp 0x18009c179
mov rcx, rbx
call fcn.1800925f8
xor al, al
mov rsi, qword [rsp + 0x270]
mov rbx, qword [rsp + 0x268]
mov rdi, qword [rsp + 0x278]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18008ea70
add rsp, 0x250
pop rbp
ret
Function at 0x18009c9d0
Capabilities:
Get geographical location

Disassembly:
push rbx
push rbp
push rdi
push r15
sub rsp, 0x538
mov rax, qword [0x1800ff980]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov r15d, ecx
mov rbp, rdx
mov rcx, qword [0x1801a1ac8]
test rcx, rcx
jne 0x18009ca2b
call fcn.18009ed50
mov rcx, rax
lea rdx, str._create_locale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x1801a1ac8], rcx
xor ebx, ebx
cmp rcx, 0xffffffffffffffff
mov edi, ebx
cmovne rdi, rcx
test rdi, rdi
je 0x18009cb75
test rbp, rbp
je 0x18009ca7e
lea edx, [rbx + 0x2d]
mov rcx, rbp
call sub.msvcrt.dll_strchr
test rax, rax
je 0x18009ca7e
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rbp
movsx eax, byte [rdx]
test al, al
je 0x18009ca8b
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x18009ca62
mov rdx, rbp
mov ecx, r15d
call rdi
jmp 0x18009cc52
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x18009cc6f
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x18009ca7e
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x18009ca7e
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x18009ca7e
lea rax, [rsp + 0x320]
lea rcx, [rsp + 0x20]
movzx edx, word [rax]
test dx, dx
je 0x18009cb5b
mov byte [rcx], dl
inc ebx
inc rcx
add rax, 2
cmp ebx, 0x100
jne 0x18009cb33
mov rdx, rbp
mov ecx, r15d
call rdi
jmp 0x18009cc52
movsxd rax, ebx
lea rbp, [rsp + 0x20]
mov rdx, rbp
mov ecx, r15d
mov byte [rsp + rax + 0x20], 0
call rdi
jmp 0x18009cc52
cmp r15d, 5
ja 0x18009cc44
test rbp, rbp
je 0x18009cc44
call fcn.18009cdb0
mov rdi, rax
test rax, rax
je 0x18009cc4f
mov qword [rsp + 0x570], rsi
mov qword [rsp + 0x530], r14
call fcn.18008fcd0
mov rdx, rbp
mov rsi, rax
mov r14d, dword [rax + 0xc8]
mov ecx, r14d
or ecx, 2
mov dword [rax + 0xc8], ecx
mov ecx, r15d
call fcn.18009cf10
test rax, rax
je 0x18009cbef
mov rax, qword [rsi + 0xc0]
mov ecx, dword [rax + 4]
call sub.msvcrt.dll__setmbcp
test eax, eax
jne 0x18009cbef
call fcn.18009cdb0
mov rbx, rax
mov rcx, qword [rsi + 0xc0]
mov dword [rsi + 0xc8], r14d
mov rax, qword [rdi]
mov r14, qword [rsp + 0x530]
cmp rax, rcx
je 0x18009cc17
mov qword [rdi], rcx
mov qword [rsi + 0xc0], rax
mov rax, qword [rdi + 8]
mov rcx, qword [rsi + 0xb8]
cmp rax, rcx
je 0x18009cc32
mov qword [rdi + 8], rcx
mov qword [rsi + 0xb8], rax
mov rcx, rdi
call fcn.18009cc80
mov rsi, qword [rsp + 0x570]
jmp 0x18009cc4f
call sub.msvcrt.dll__errno
mov dword [rax], 0x16
mov rax, rbx
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.18008ea70
add rsp, 0x538
pop r15
pop rdi
pop rbp
pop rbx
ret
call fcn.18008f190
int3
Function at 0x18009cf10
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x1800ff980]
xor rax, rsp
mov qword [rsp + 0x520], rax
xor ebx, ebx
mov rdi, rdx
mov esi, ecx
test rdx, rdx
je 0x18009cf7c
lea edx, [rbx + 0x2d]
mov rcx, rdi
call sub.msvcrt.dll_strchr
test rax, rax
je 0x18009cf7c
mov ecx, ebx
lea r8, [rsp + 0x120]
mov rdx, rdi
nop dword [rax]
movsx eax, byte [rdx]
test al, al
je 0x18009cfcf
mov word [r8], ax
inc ecx
add r8, 2
inc rdx
cmp ecx, 0x100
jne 0x18009cf60
mov rcx, qword [0x1801a1ad8]
test rcx, rcx
jne 0x18009cfb2
call fcn.18009ed50
mov rcx, rax
lea rdx, str.setlocale
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov rcx, 0xffffffffffffffff
cmovne rcx, rax
mov qword [0x1801a1ad8], rcx
cmp rcx, 0xffffffffffffffff
cmovne rbx, rcx
test rbx, rbx
je 0x18009d0b3
mov rdx, rdi
mov ecx, esi
call rbx
jmp 0x18009d0b5
movsxd rax, ecx
add rax, rax
cmp rax, 0x200
jae 0x18009d0da
mov edx, 0x2d
mov word [rsp + rax + 0x120], bx
lea rcx, [rsp + 0x120]
call sub.msvcrt.dll_wcsrchr
test rax, rax
je 0x18009cf7c
mov r9d, 0xff
lea r8, [rsp + 0x320]
mov edx, 0x1001
lea rcx, [rsp + 0x120]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x18009cf7c
lea ecx, [rax - 1]
mov r9d, 0x100
movsxd rdx, ecx
lea r8, [rsp + 0x320]
sub r9d, eax
mov ecx, 0x5f
cdqe
mov word [rsp + rdx*2 + 0x320], cx
mov edx, 0x1002
lea rcx, [rsp + 0x120]
lea r8, [r8 + rax*2]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
je 0x18009cf7c
lea rcx, [rsp + 0x320]
mov eax, ebx
lea rdx, [rsp + 0x20]
movzx r8d, word [rcx]
test r8w, r8w
je 0x18009d0a3
mov byte [rdx], r8b
inc eax
inc rdx
add rcx, 2
cmp eax, 0x100
jne 0x18009d081
jmp 0x18009cf7c
cdqe
lea rdi, [rsp + 0x20]
mov byte [rsp + rax + 0x20], bl
jmp 0x18009cf7c
xor eax, eax
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.18008ea70
lea r11, [rsp + 0x530]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call fcn.18008f190
int3
Function at 0x140130000
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
xchg rdx, r8
mov qword [rsp + 0x10], r8
xchg rdx, r8
mov qword [rsp + 8], rcx
jmp 0x140130137
nop
sub rsp, 8
mov qword [rsp], rbp
push rbx

Function at 0x1401309af
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
cmp eax, dword [rcx + 0x51]
lea r12d, [rdx + 0xe1e5]
je 0x140130e2c
movabs rdx, 0x29fddbffffff3be9
test rbx, rdi
lea r10d, [rbp + 0x87a7]
and edi, 0xcd1781ad
lea ebx, [rdx + 0x2497]
call 0x140130dfe

Function at 0x1401312d7
Capabilities:
Execute syscall
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
rol bh, 0x44
and al, 0x20
add byte [rax], dh
add byte [rax], al
wait
cmp dword [rsi], esp
lea r9d, [rdx - 0xf2e]
movabs rcx, 0x328e96751b6670eb
test rdx, rdx
jmp 0x140130743
Function at 0x140087060
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x10
lea rbp, [rsp + 0x10]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, rdx
imul eax, dword [str.1_nQs_Q], 0x95890a11
mov rsi, rcx
imul ecx, dword [0x1402a4cf8], 0x58bcc674
add eax, ecx
add eax, 0x701ca4a8
shl rax, 4
call fcn.1401ee5e0
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rax], rsi
mov qword [rax + 8], rsi
movabs rax, 0x2b49978bff74a68d
imul rax, qword [0x1402a4d00]
movabs rcx, 0xe37b9f3a33c0ef83
imul rcx, qword [0x1402a4d08]
mov rdx, rcx
add rdx, rax
movabs rcx, 0x1e689c81f2ce84ae
add rcx, rdx
movabs r14, 0x95987a9f2cc84b5e
mov rax, qword [0x14030a9c0]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
mov rbx, rax
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rax + 0x10], rax
mov rax, qword [0x14030a9c8]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x14025f398]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0x18], al
mov rax, qword [0x14030a9d0]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x14025f39b]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0x19], al
mov qword [rsi], rbx
mov rax, qword [rdi]
mov rdx, qword [rax + 8]
nop
sub rsp, 0x20
mov rcx, rsi
mov r8, rbx
call fcn.140087370
add rsp, 0x20
nop
mov rcx, qword [rsi]
mov qword [rcx + 8], rax
mov rax, qword [rdi + 8]
mov qword [rsi + 8], rax
mov rdi, qword [rsi]
mov rbx, qword [rdi + 8]
movzx r14d, byte [rbx + 0x19]
mov rax, qword [0x14030a9d8]
movabs r12, 0x95987a9f2cc84b5e
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [reloc.WS2_32.dll_gethostname]
movzx ecx, byte [0x1402a4d11]
lea edx, [rax + rax*2]
lea eax, [rax + rdx*4]
mov edx, ecx
shl edx, 6
lea ecx, [rdx + rcx*2]
add cl, al
add cl, 0xb9
cmp r14b, cl
jne 0x140087285
mov rax, rbx
nop dword [rax]
mov rbx, rax
mov r14, qword [rax]
movzx r15d, byte [r14 + 0x19]
mov rax, qword [0x14030a9e0]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x1402a4d12]
movzx ecx, byte [0x1402a4d13]
shr cl, 2
shl al, 6
or al, cl
mov ecx, eax
xor cl, 0xd5
mov rax, r14
cmp r15b, cl
je 0x1400871f0
mov qword [rdi], rbx
mov rdi, qword [rsi]
mov rax, qword [rdi + 8]
nop dword [rax]
mov rbx, rax
mov r14, qword [rax + 0x10]
movzx r15d, byte [r14 + 0x19]
mov rax, qword [0x14030a9e8]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x1402a4d14]
movzx ecx, byte [0x1402a4d15]
shr cl, 4
shl al, 4
or al, cl
mov ecx, eax
xor cl, 0x7d
mov rax, r14
cmp r15b, cl
je 0x140087240
jmp 0x14008728e
mov qword [rdi], rdi
mov rdi, qword [rsi]
mov rbx, rdi
mov qword [rdi + 0x10], rbx
mov rax, rsi
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
Function at 0x1401fff50
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1402000b6
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 0x18], r8
mov qword [r11 + 0x20], r9
push rdi
sub rsp, 0x860
mov rax, qword [0x1404b6b40]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x14020009e
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140211010
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x140200011
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1401fffd0
cmp byte [rax + rcx - 1], 0xa
jne 0x1401ffff8
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x14020000c
lea r8, [0x14026b7b0]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140210fa0
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140200016
cmp qword [rdi + 0x718], 0
je 0x14020005e
mov dl, 1
mov rcx, rdi
call fcn.1401f0960
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1401f0960
jmp 0x140200096
mov r9, qword [rdi + 0x668]
lea rcx, [0x140268ce8]
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 + 0x668]
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 rbx, qword [rsp + 0x858]
mov rcx, qword [rsp + 0x840]
xor rcx, rsp
call fcn.1401ee640
add rsp, 0x860
pop rdi
ret
Function at 0x1402000c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rdi
sub rsp, 0x160
mov rax, qword [0x1404b6b40]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x140200103
cmp qword [rcx + 0x678], 0
je 0x1402001e0
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140211010
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140200131
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x140200178
cmp byte [rdi + 0x1597], 0
jne 0x140200178
lea rdx, [rsp + 0x30]
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
mov byte [rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140200160
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x1402001d8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x140200233
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1402001f9
mov dl, 1
mov rcx, rdi
call fcn.1401f0960
mov rax, qword [rdi + 0x670]
lea r8, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
call fcn.1401f0960
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401ee640
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x140268ce8]
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 + 0x668]
lea rcx, [rsp + 0x30]
mov r8d, 1
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x1402001d8
call fcn.140203bfc
int3

Function at 0x1402002a0
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 0x1402002e2
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, gethostname
mov qword [rbx], 0
cmp eax, 0x2733
mov edx, 0x51
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 0x140200440
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x1404b6b40]
xor rax, rsp
mov qword [rsp + 0x120], rax
mov r14, qword [rsp + 0x1a0]
mov rsi, rcx
movsxd rcx, edx
xor r13d, r13d
mov rax, rcx
mov r12, r9
shl rax, 5
mov r15, r8
lea rbx, [rsi + 0x508]
mov rbp, qword [rsi + rcx*8 + 0x4c0]
add rbx, rax
mov rax, qword [rsi + 0x698]
mov rdi, qword [rbx + 8]
sub rdi, qword [rbx + 0x10]
test byte [rax + 0x7c], 3
je 0x140200547
lea rax, [0x1402002f0]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x140200547
cmp qword [rbx], r13
je 0x1402004ce
test rdi, rdi
je 0x140200547
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.14020f4c0
cmp eax, 0xffffffff
je 0x140200547
test al, 1
je 0x140200547
mov rax, qword [rbx]
test rax, rax
jne 0x140200520
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
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 rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x140200543
mov rdx, qword [rbx + 0x10]
xor r9d, r9d
add rdx, rax
mov r8d, edi
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
test eax, eax
jle 0x140200547
add qword [rbx + 0x10], rcx
jmp 0x140200547
mov qword [rbx + 8], r13
xor r9d, r9d
mov r8d, r12d
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_send]
movsxd rdi, eax
mov dword [r14], r13d
cmp rdi, 0xffffffffffffffff
jne 0x1402005b4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140200580
mov dword [r14], 0x51
mov rax, r13
jmp 0x1402005b7
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14022bb50
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1402000c0
mov rcx, qword [rsi]
mov dword [rcx + 0x11b0], ebx
mov dword [r14], gethostname
mov rax, rdi
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1401ee640
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x140200720
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, 0x30
cmp qword [rcx + 0x718], 0
mov rsi, r9
mov rbp, r8
movsxd rbx, edx
mov rdi, rcx
je 0x14020077e
mov dl, 1
call fcn.1401f0960
mov rax, qword [rdi + 0x670]
mov r9, rsi
mov r8, rbp
mov qword [rsp + 0x20], rax
mov edx, ebx
mov rcx, rdi
call qword [rdi + 0x718]
xor edx, edx
mov rcx, rdi
mov ebx, eax
call fcn.1401f0960
mov eax, ebx
jmp 0x1402007c2
cmp ebx, 2
ja 0x1402007c0
mov r9, qword [rdi + 0x668]
lea rdx, [0x140268ce8]
lea rcx, [rbx + rbx*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 [rdi + 0x668]
mov r8d, 1
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x1402013f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x14020140d
call fcn.1401f9bc0
test eax, eax
jne 0x140201433
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x140201406
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x140201406
mov al, 1
add rsp, 0x28
ret