joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140060d20
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x140060ec8
push rbp
push rdi
push r14
sub rsp, 0x20
mov rbp, qword [rcx]
mov r14, rcx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], r15
mov rdi, qword [rbp + 0x1e0]
lea rsi, [rdi + 0x1cb8]
lea rbx, [rdi + 0x1eb8]
mov qword [rbx], rsi
cmp rsi, rbx
jae 0x140060d85
lea rax, [rsi + 1]
mov byte [rsi], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140060d85
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140060d85
mov byte [rax], dl
inc qword [rbx]
movzx ecx, word [rdi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rdi + 0x1caa]
movzx r15d, ax
mov word [rsp + 0x48], ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
cmp r9, rbx
jae 0x140060dbc
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x58]
cmp r9, rbx
jae 0x140060e12
movzx eax, byte [rsp + 0x49]
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140060e12
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140060e12
shr cx, 8
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140060e12
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x140060e12
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rdi + 0x1ec0], r9
lea r8, [rdi + 0x1cba]
sub r9, rsi
mov qword [rbx], rsi
sub r9, 2
mov edx, 0x3e
mov rcx, rbp
call fcn.1400607d0
mov rcx, qword [r14 + 0x4c0]
xor r9d, r9d
mov rdx, rsi
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x40]
test eax, eax
jns 0x140060e74
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003cd60
lea rdx, [rdi + 0x1cbb]
mov r8d, 4
mov rcx, r14
call fcn.140060ba0
mov rcx, qword [r14 + 0x4c0]
lea rdx, [rdi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x140060ec0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbp
mov r8d, eax
call fcn.14003cd60
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x140062630
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0xd0
mov rax, qword [0x140278140]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, qword [rcx + 0xa00]
lea rax, [rsp + 0x30]
mov rdi, qword [rcx]
mov r14, rcx
mov dword [rsp + 0x30], 0x80
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov r8d, dword [rbx + 0x15c]
mov rdx, qword [rbx + 0x168]
add r8d, 4
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x150], 0
mov dword [rbx + 0x154], eax
jne 0x1400626c5
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xd0]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x150], eax
mov r8d, dword [rbx + 0x154]
mov qword [rsp + 0xf8], rbp
mov qword [rsp + 0x100], rsi
cmp r8d, 4
jge 0x140062726
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14003cd60
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0x100]
mov rbp, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140076390
add rsp, 0xd0
pop r14
pop rdi
pop rbx
ret
mov rdx, qword [rbx + 0x168]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
sub ecx, 3
je 0x1400627e1
sub ecx, 1
je 0x140062854
sub ecx, 1
je 0x140062790
cmp ecx, 1
je 0x140062773
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140083290]
call fcn.14003cd60
jmp 0x140062854
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.140062360
test eax, eax
je 0x140062854
jmp 0x1400626fa
movzx ecx, byte [rdx + 2]
lea eax, [r8 - 4]
movsxd rbp, eax
lea rsi, [rdx + 4]
movzx eax, byte [rdx + 3]
mov r8, rbp
shl ecx, 8
xor edx, edx
or ecx, eax
mov dword [rbx + 8], ecx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memchr
test rax, rax
je 0x140062854
sub rax, rsi
cmp rax, rbp
jae 0x140062854
mov r8, rsi
lea rdx, str.TFTP_error:__s_n
mov rcx, rdi
call fcn.14003cee0
jmp 0x140062854
cmp r8d, 4
jle 0x140062854
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x48]
inc eax
movzx eax, ax
cmp eax, ecx
jne 0x140062854
lea eax, [r8 - 4]
mov rcx, r14
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.14003cc80
mov esi, eax
test eax, eax
je 0x140062833
mov edx, 5
mov rcx, rbx
call fcn.140063320
mov eax, esi
jmp 0x1400626fa
mov eax, dword [rbx + 0x154]
mov rcx, rdi
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rdx, qword [rdi + 0xf8]
call fcn.14004b750
mov rcx, r14
call fcn.14004ba30
test eax, eax
je 0x1400626f8
mov edx, 5
mov rcx, rbx
call fcn.140063320
mov eax, Ordinal_46
jmp 0x1400626fa
Function at 0x1400755f0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [str.r_a_]
mov rdi, rax
test rax, rax
jne 0x140075632
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x140075679
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov rcx, qword [rdi + 8]
mov ebp, dword [rbx + 0x20]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x1400756d2
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x140075690
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x140075713
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140088a1a]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140088a1b]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x1400756e0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret

Function at 0x14007579c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400757d6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400757db
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140075824
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140075824
dec r8
sub rdx, 1
jne 0x14007580a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x140076e98
Capabilities:
Parse pe header

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

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x10
lea rbp, [rsp + 0x10]
mov rsi, rcx
mov rax, qword [0x1404a5680]
xor rax, rbp
mov qword [rbp - 8], rax
imul eax, dword [0x140293cf8], 0x3dd83394
imul ecx, dword [0x140293cfc], 0xa08f2027
add eax, ecx
add eax, 0x9e99c03e
imul rax, rax, 0x250
call fcn.1401e2600
sub rsp, rax
mov rdi, rsp
mov rbx, qword [rsi]
movabs r14, 0xbab4530c3743a312
lea r15, [0x140247420]
jmp 0x140053a19
test ax, ax
jne 0x140053ab2
mov rcx, qword [rbx + 0x40]
mov rax, qword [0x1402f4380]
add rax, r14
sub rsp, 0x20
mov rdx, rdi
call rax
add rsp, 0x20
mov ecx, eax
cmp eax, 0x12
jge 0x140053af2
test eax, eax
jne 0x140053acc
movzx r12d, word [rdi + 0x2c]
mov rax, qword [0x1402f4398]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
cmp r12w, word [r15 + rax*2]
jne 0x140053ab2
movzx eax, word [rdi + 0x2e]
cmp ax, 0x2e
jl 0x140053a10
jne 0x140053ab2
movzx r12d, word [rdi + 0x30]
mov rax, qword [0x1402f43a0]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, word [0x140293d00]
movzx ecx, word [0x140293d02]
shrd cx, ax, 7
mov eax, ecx
xor eax, 0xd570
cmp r12w, ax
je 0x140053a19
add r14, qword [0x1402f43a8]
sub rsp, 0x20
mov rcx, rbx
mov rdx, rdi
call r14
add rsp, 0x20
xor ecx, ecx
mov esi, ecx
mov rcx, qword [rbp - 8]
xor rcx, rbp
sub rsp, 0x20
call fcn.1401e2660
add rsp, 0x20
mov eax, esi
mov rsp, rbp
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
jne 0x140053acc
xorps xmm0, xmm0
mov rdi, qword [rsi + 8]
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140053aca
mov esi, 0xffffffff
lock xadd dword [rdi + 8], esi
mov rax, qword [0x1402f4388]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140247408]
cmp esi, dword [rcx + rax*4]
jne 0x140053aca
mov rax, qword [rdi]
sub rsp, 0x20
mov rcx, rdi
call qword [rax]
add rsp, 0x20
mov esi, 0xffffffff
lock xadd dword [rdi + 0xc], esi
add r14, qword [0x1402f4390]
sub rsp, 0x20
call r14
add rsp, 0x20
cdqe
lea rcx, [0x140247414]
cmp esi, dword [rcx + rax*4]
jne 0x140053aca
mov rax, qword [rdi]
sub rsp, 0x20
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x140053ac6
Function at 0x140083450
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
mov rsi, rcx
mov eax, dword [0x1402969d4]
mov ecx, dword [0x1402969d8]
shrd ecx, eax, 9
xor ecx, 0xc11c4d59
mov eax, ecx
shl rax, 4
call fcn.1401e2600
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x10], rax
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rax], rsi
mov rcx, qword [0x1402969e0]
mov rdx, qword [0x1402969e8]
shrd rdx, rcx, 2
mov qword [rax + 8], rsi
movabs rcx, 0xbe203875e1553b46
xor rcx, rdx
movabs r14, 0xa9fd917b086794a4
mov rax, qword [0x1402f9e40]
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 [0x1402f9e48]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140251e08]
movzx eax, byte [rax + rcx]
mov byte [rbx + 0x18], al
mov rax, qword [0x1402f9e50]
add rax, r14
sub rsp, 0x20
call rax
add rsp, 0x20
cdqe
lea rcx, [0x140251e0b]
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.140083740
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 [0x1402f9e58]
movabs r12, 0xa9fd917b086794a4
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x1402969f0]
movzx ecx, byte [reloc.OLEAUT32.dll_VariantCopy]
imul eax, eax, 0x7b
mov edx, ecx
shl ecx, 4
sub edx, ecx
mov ecx, edx
add cl, al
add cl, 0xa7
cmp r14b, cl
jne 0x14008365b
mov rax, rbx
mov rbx, rax
mov r14, qword [rax]
movzx r15d, byte [r14 + 0x19]
mov rax, qword [0x1402f9e60]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x1402969f2]
movzx ecx, byte [0x1402969f3]
shr cl, 4
shl al, 4
or al, cl
mov ecx, eax
xor cl, 0x2a
mov rax, r14
cmp r15b, cl
je 0x1400835c0
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 [0x1402f9e68]
add rax, r12
sub rsp, 0x20
call rax
add rsp, 0x20
movzx eax, byte [0x1402969f4]
movzx ecx, byte [0x1402969f5]
imul eax, eax, 0x71
mov edx, ecx
shl edx, 4
add edx, ecx
neg edx
mov ecx, edx
add cl, al
add cl, 0xac
mov rax, r14
cmp r15b, cl
je 0x140083610
jmp 0x140083664
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 0x1401f3f70
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x1401f40d6
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 [0x1404a5680]
xor rax, rsp
mov qword [rsp + 0x840], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
je 0x1401f40be
mov r8, rdx
mov qword [r11 - 0x10], rbx
mov edx, 0x801
lea r9, [r11 + 0x18]
lea rcx, [rsp + 0x30]
call fcn.140205030
movsxd rcx, eax
mov rbx, 0xffffffffffffffff
cmp rcx, 0x801
jb 0x1401f4031
mov rcx, qword [rsp + 0x878]
mov rax, rbx
nop word [rax + rax]
cmp byte [rcx + rax + 1], 0
lea rax, [rax + 1]
jne 0x1401f3ff0
cmp byte [rax + rcx - 1], 0xa
jne 0x1401f4018
lea r8, str...._n
mov edx, 5
lea rcx, [rsp + 0x82c]
jmp 0x1401f402c
lea r8, [0x14025e160]
mov edx, 4
lea rcx, [rsp + 0x82d]
call fcn.140204fc0
lea rax, [rsp + 0x30]
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401f4036
cmp qword [rdi + 0x718], 0
je 0x1401f407e
mov dl, 1
mov rcx, rdi
call fcn.1401e4980
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.1401e4980
jmp 0x1401f40b6
mov r9, qword [rdi + 0x668]
lea rcx, [0x14025b698]
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.1401e2660
add rsp, 0x860
pop rdi
ret
Function at 0x1401f40e0
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 [0x1404a5680]
xor rax, rsp
mov qword [rsp + 0x140], rax
cmp byte [rcx + 0xf1e], 0
mov rdi, rcx
jne 0x1401f4123
cmp qword [rcx + 0x678], 0
je 0x1401f4200
mov r8, rdx
mov qword [rsp + 0x158], rbx
mov edx, 0x100
lea r9, [rsp + 0x180]
lea rcx, [rsp + 0x30]
call fcn.140205030
lea rax, [rsp + 0x30]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1401f4151
mov rcx, qword [rdi + 0x678]
test rcx, rcx
je 0x1401f4198
cmp byte [rdi + 0x1597], 0
jne 0x1401f4198
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 0x1401f4180
mov byte [rdi + 0x1597], 1
cmp byte [rdi + 0xf1e], 0
je 0x1401f41f8
mov byte [rsp + rbx + 0x30], 0xa
inc rbx
cmp rbx, 0x102
jae 0x1401f4253
cmp qword [rdi + 0x718], 0
mov byte [rsp + rbx + 0x30], 0
je 0x1401f4219
mov dl, 1
mov rcx, rdi
call fcn.1401e4980
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.1401e4980
mov rbx, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1401e2660
add rsp, 0x160
pop rdi
ret
mov r9, qword [rdi + 0x668]
lea rcx, [0x14025b698]
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 0x1401f41f8
call fcn.1401f7c1c
int3

Function at 0x1401f42c0
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 0x1401f4302
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 0x1401f4460
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 [0x1404a5680]
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 0x1401f4567
lea rax, [0x1401f4310]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1401f4567
cmp qword [rbx], r13
je 0x1401f44ee
test rdi, rdi
je 0x1401f4567
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.1402034e0
cmp eax, 0xffffffff
je 0x1401f4567
test al, 1
je 0x1401f4567
mov rax, qword [rbx]
test rax, rax
jne 0x1401f4540
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 0x1401f4563
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 0x1401f4567
add qword [rbx + 0x10], rcx
jmp 0x1401f4567
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 0x1401f45d4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1401f45a0
mov dword [r14], 0x51
mov rax, r13
jmp 0x1401f45d7
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.14021fb70
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.1401f40e0
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.1401e2660
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1401f4740
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 0x1401f479e
mov dl, 1
call fcn.1401e4980
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.1401e4980
mov eax, ebx
jmp 0x1401f47e2
cmp ebx, 2
ja 0x1401f47e0
mov r9, qword [rdi + 0x668]
lea rdx, [0x14025b698]
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 0x1401f5410
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub rsp, 0x28
cmp byte [rcx + 0x558], 0
je 0x1401f542d
call fcn.1401edbe0
test eax, eax
jne 0x1401f5453
xor al, al
add rsp, 0x28
ret
mov rcx, qword [rcx + 0x4c0]
cmp rcx, 0xffffffffffffffff
je 0x1401f5426
mov r9d, 2
lea rdx, [rsp + 0x30]
lea r8d, [r9 - 1]
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x1401f5426
mov al, 1
add rsp, 0x28
ret
Function at 0x1401f6940
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

Function at 0x1401f70c0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
jne 0x1401f70ea
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x140263208]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14025e0fc]
mov rcx, rbx
mov r14, rax
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strpbrk]
test rax, rax
je 0x1401f714e
mov rcx, rbx
test r14, r14
je 0x1401f7138
xor edx, edx
lea r8d, [rdx + 8]
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
test r14, r14
je 0x1401f7186
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401f7186
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call r14
mov r14, qword [rsp + 0x48]
mov rbp, rax
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov r15d, eax
test eax, eax
je 0x1401f7248
mov qword [rsp + 0x40], rsi
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop
inc rdx
cmp byte [rbx + rdx], bpl
jne 0x1401f71b0
lea ecx, [rax + 1]
add rcx, rdx
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x1401f723a
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1401f723a
mov rax, rsi
cmp byte [rdi + rax + 1], bpl
lea rax, [rax + 1]
jne 0x1401f71e0
mov ecx, 0x5c
mov word [rax + rdi], cx
inc rsi
cmp byte [rdi + rsi], bpl
jne 0x1401f71f4
mov rcx, rdi
sub rcx, rbx
add rcx, rsi
nop word [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x1401f7210
mov rcx, rdi
test r14, r14
je 0x1401f7231
xor edx, edx
lea r8d, [rdx + 8]
call r14
jmp 0x1401f7237
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
mov rcx, rdi
call qword [fcn.1402306c0]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1401f8104
Capabilities:
Parse pe header

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