joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140109670
Capabilities:
Encode data using base64

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
mov r14, qword [rsp + 0x50]
xor eax, eax
mov qword [r9], rax
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov qword [r14], rax
test r8, r8
jne 0x1401096b8
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rdx + rbx], al
jne 0x1401096b0
lea rcx, [rbx + 2]
movabs rbp, 0xaaaaaaaaaaaaaaab
mov rax, rbp
mul rcx
shr rdx, 1
lea rcx, [rdx*4 + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, rax
mov r9, rax
test rax, rax
jne 0x1401096f1
lea eax, [r9 + 0x1b]
jmp 0x1401097e2
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp rbx, 3
jb 0x140109777
mov rax, rbp
mul rbx
mov r8, rdx
shr r8, 1
imul rax, r8, 0xfffffffffffffffd
add rbx, rax
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
movzx eax, byte [rdi + 1]
and edx, 3
shr rax, 4
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
movzx edx, byte [rdi + 1]
movzx eax, byte [rdi + 2]
and edx, 0xf
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r10]
mov byte [rcx + 2], al
movzx eax, byte [rdi + 2]
add rdi, 3
and eax, 0x3f
movzx eax, byte [rax + r10]
mov byte [rcx + 3], al
add rcx, 4
sub r8, 1
jne 0x140109711
test rbx, rbx
je 0x1401097d4
movzx eax, byte [rdi]
shr rax, 2
movzx eax, byte [rax + r10]
mov byte [rcx], al
movzx edx, byte [rdi]
and edx, 3
shl rdx, 4
cmp rbx, 1
jne 0x1401097aa
movzx eax, byte [rdx + r10]
mov byte [rcx + 1], al
mov word [rcx + 2], 0x3d3d
jmp 0x1401097d0
movzx eax, byte [rdi + 1]
shr rax, 4
or rax, rdx
movzx eax, byte [rax + r10]
mov byte [rcx + 1], al
movzx eax, byte [rdi + 1]
and eax, 0xf
movzx eax, byte [r10 + rax*4]
mov byte [rcx + 2], al
mov byte [rcx + 3], 0x3d
add rcx, 4
mov byte [rcx], 0
sub rcx, r9
mov qword [r14], rcx
xor eax, eax
mov qword [rsi], r9
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 0x140118a40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
mov eax, dword [rcx + 0xd74]
xor esi, esi
xor r12d, r12d
mov edi, r8d
mov r14d, edx
mov r13, rcx
cmp r8d, eax
jg 0x140118aa8
cmp r8d, 0xffffffff
cmove edi, eax
test r9, r9
je 0x140118a85
mov r9, qword [r9 + 0x28]
test r9, r9
je 0x140118aa8
mov r9, qword [r9 + 0x10]
jmp 0x140118a8c
mov r9, qword [rcx + 0x1200]
test r9, r9
je 0x140118aa8
mov rbx, qword [r9]
test byte [rbx + 0x2c], r14b
je 0x140118a9f
cmp dword [rbx + 0x28], edi
je 0x140118abc
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x140118a91
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
pop r14
pop r13
pop r12
pop rdi
ret
mov r10, qword [rcx + 0x1200]
mov qword [rsp + 0x30], r15
test r10, r10
je 0x140118b74
mov qword [rsp + 0x28], rbp
mov rbp, qword [rbx + 0x18]
nop word [rax + rax]
mov r11, qword [r10]
mov r8, qword [r11 + 0x18]
test rbp, rbp
je 0x140118b45
test r8, r8
je 0x140118b59
cmp byte [rbp], 0
mov rax, rbp
je 0x140118b2a
nop word [rax + rax]
movzx ecx, byte [r8]
test cl, cl
je 0x140118b2a
movzx edx, byte [rax]
lea rbp, [0x140248570]
movzx ecx, byte [rcx + rbp]
cmp byte [rdx + rbp], cl
mov rbp, qword [rbx + 0x18]
jne 0x140118b41
inc rax
inc r8
cmp byte [rax], 0
jne 0x140118b00
xor edx, edx
cmp byte [r8], dl
setne dl
xor ecx, ecx
cmp byte [rax], cl
sete cl
xor edx, ecx
test edx, edx
je 0x140118b59
jmp 0x140118b4a
xor edx, edx
jmp 0x140118b3b
test r8, r8
jne 0x140118b59
cmp dword [r11 + 0x28], edi
jne 0x140118b59
test byte [r11 + 0x2c], r14b
je 0x140118b59
inc rsi
cmp r10, r9
jne 0x140118b62
lea r12, [rsi - 1]
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140118ae0
mov rbp, qword [rsp + 0x28]
mov rcx, qword [rbx + 0x18]
lea rax, [r13 + 0x1220]
mov r15, qword [rsp + 0x30]
mov qword [rax], rcx
mov rcx, qword [rbx + 0x20]
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rsi
mov rsi, qword [rsp + 0x40]
mov qword [rax + 0x18], r12
movzx ecx, byte [rbx + 0x2c]
mov rbx, qword [rsp + 0x38]
bts ecx, 0x1b
mov dword [rax + 0x20], ecx
mov qword [rax + 0x28], r9
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14011aa80
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [0x1402b5478]
mov rbx, rcx
mov dword [rsp + 0x34], 0x4020
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x38], 4
test eax, eax
jne 0x14011aafc
xor r8d, r8d
mov dword [rsp + 0x20], 3
xor edx, edx
lea ecx, [rax + 6]
call fcn.140105950
test al, al
je 0x14011aaf0
mov dword [0x1402b5478], 2
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x50
pop rbx
ret
mov dword [0x1402b5478], 1
jmp 0x14011ab01
cmp eax, 2
je 0x14011ab53
lea rax, [rsp + 0x38]
mov edx, 0xffff
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x14011ab32
mov eax, dword [rsp + 0x34]
cmp dword [rsp + 0x30], eax
jg 0x14011ab53
lea r9, [rsp + 0x34]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x50
pop rbx
ret
Function at 0x14011b470
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x1c0
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rdi, qword [rcx + 0x10]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], Ordinal_133
mov rsi, rdx
lea rdx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [rsp + 0xa0], xmm0
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x14011b528
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
lea rdx, [rsp + 0xb0]
mov ebx, eax
call fcn.1400e24e0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.140100cb0
mov eax, 2
jmp 0x14011b5f8
movzx ecx, word [rsp + 0x30]
mov edx, ecx
sub edx, 1
je 0x14011b5c1
cmp edx, 1
jne 0x14011b56a
lea r9d, [rdx + 0x2d]
lea rdx, [rsp + 0x34]
lea r8, [rdi + 0xd4]
call fcn.140118fc0
test rax, rax
je 0x14011b56a
movzx ecx, word [rsp + 0x32]
call qword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
jmp 0x14011b5f0
xor eax, eax
mov byte [rdi + 0xd4], 0
mov dword [rdi + 0x104], eax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 0x273f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ebx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1400e24e0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.140100cb0
mov eax, 2
jmp 0x14011b5f8
cmp dword [rsp + 0x20], 2
jle 0x14011b5e7
lea r9, [rsp + 0x32]
mov edx, reloc.WLDAP32.dll_Ordinal_46
lea r8, [0x140284558]
lea rcx, [rdi + 0xd4]
call sym.CheraxLoader.exe_curl_msnprintf
jmp 0x14011b5ee
mov byte [rdi + 0xd4], 0
xor eax, eax
mov dword [rdi + 0x104], eax
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14014d450
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14011e910
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Move file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp byte [0x1402b5b38], 0
mov rbp, rdx
mov rbx, rcx
je 0x14011e973
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov r8, qword [0x1402b5b30]
mov rax, qword [rsp + 0x20]
cqo
idiv r8
mov rsi, rax
mov rax, qword [rsp + 0x20]
cqo
idiv r8
imul rax, rdx, 0xf4240
cqo
idiv r8
mov r14, rax
jmp 0x14011e999
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
mov esi, edx
imul edx, edx, 0x3e8
sub r8d, edx
imul r14d, r8d, 0x3e8
mov rcx, rbx
mov qword [rsp + 0x70], r15
call fcn.140105620
mov rcx, rbp
mov rdi, rax
call fcn.140105620
mov r8d, 1
mov rdx, rax
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x14011eaa4
movabs rbp, 0x20c49ba5e353f6
movabs r15, 0x4189374bc6a7ec
cmp byte [0x1402b5b38], 0
je 0x14011ea1c
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rsp + 0x20]
cqo
idiv qword [0x1402b5b30]
mov r9, rax
imul rax, rdx, 0xf4240
cqo
idiv qword [0x1402b5b30]
mov rcx, rax
jmp 0x14011ea43
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r8d, eax
mov eax, 0x10624dd3
mul r8d
shr edx, 6
imul ecx, edx, 0x3e8
mov r9d, edx
sub r8d, ecx
imul ecx, r8d, 0x3e8
sub r9, rsi
lea rax, [r9 + rbp]
cmp rax, r15
ja 0x14011eadf
sub ecx, r14d
mov eax, 0x10624dd3
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul rax, r9, 0x3e8
movsxd rcx, edx
add rcx, rax
js 0x14011eadf
cmp rcx, 0x3e8
jg 0x14011eadf
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x14011e9e2
test rdi, rdi
je 0x14011eab2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14011eac0
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor eax, eax
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x30
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
test rdi, rdi
je 0x14011eaed
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test rbx, rbx
je 0x14011eafb
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, 1
jmp 0x14011eac2
Function at 0x14012bc80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rax, qword [rcx + 0x18]
mov rdi, rcx
xor r9d, r9d
mov rbx, qword [rax + 0x610]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], Ordinal_133
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r8d, dword [rbx + 0x144]
mov rdx, qword [rbx + 0x150]
add r8d, 4
mov rcx, qword [rbx + 0x18]
call qword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [rbx + 0x138], 0
mov dword [rbx + 0x13c], eax
jne 0x14012bd17
movsxd r8, dword [rsp + 0x30]
lea rcx, [rbx + 0xb8]
lea rdx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsp + 0x30]
mov dword [rbx + 0x138], eax
mov r8d, dword [rbx + 0x13c]
mov qword [rsp + 0xe8], rbp
mov qword [rsp + 0xf0], rsi
cmp r8d, 4
jge 0x14012bd7d
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.140100cb0
mov dword [rbx + 0xc], 7
xor eax, eax
mov rsi, qword [rsp + 0xf0]
mov rbp, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.14014d450
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
ret
mov rdx, qword [rbx + 0x150]
movzx eax, byte [rdx]
movzx ecx, byte [rdx + 1]
shl eax, 8
or ecx, eax
mov dword [rbx + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x14012bdb3.1
movsxd rax, ecx
lea r9, [0x140000000]
mov ecx, dword [r9 + rax*4 + 0x12bed4]
add rcx, r9
jmp rcx
cmp r8d, 4
jle case.0x14012bdb3.4
movzx eax, byte [rdx + 3]
movzx ecx, byte [rdx + 2]
shl ecx, 8
or ecx, eax
movzx eax, word [rbx + 0x14c]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x14012bdb3.4
lea eax, [r8 - 4]
mov rcx, rdi
lea r8, [rdx + 4]
movsxd r9, eax
mov edx, 1
call fcn.1400f2d80
mov esi, eax
test eax, eax
je 0x14012be12
mov edx, 5
mov rcx, rbx
call fcn.14012b940
mov eax, esi
jmp 0x14012bd4c
mov eax, dword [rbx + 0x13c]
sub eax, 4
cdqe
add qword [rdi + 0xf8], rax
mov rax, qword [rdi + 0xf8]
mov qword [rdi + 0xaf8], rax
jmp case.0x14012bdb3.4
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 case.0x14012bdb3.4
sub rax, rsi
cmp rax, rbp
jae case.0x14012bdb3.4
mov r8, rsi
lea rdx, str.TFTP_error:__s
mov rcx, rdi
call fcn.140100de0
jmp case.0x14012bdb3.4
add r8d, 0xfffffffe
add rdx, 2
mov rcx, rbx
call fcn.14012a6a0
test eax, eax
je case.0x14012bdb3.4
jmp 0x14012bd4c
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
lea rdx, [0x140284558]
call fcn.140100cb0
mov rcx, rdi
call fcn.14010a560
test eax, eax
je 0x14012bd4a
mov edx, 5
mov rcx, rbx
call fcn.14012b940
mov eax, Ordinal_46
jmp 0x14012bd4c
Function at 0x14012e5a0
Capabilities:
Get local ipv4 addresses
Get socket information
Set socket configuration

Disassembly:
push rbx
push rsi
push rdi
push r15
sub rsp, 0x48
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rsi, qword [rcx + 0x18]
lea r8, [rsp + 0x20]
mov rbx, rcx
lea rdx, [rsp + 0x28]
mov rdi, qword [rsi + 0x1b0]
mov rcx, rdi
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x14012e806
lea r8, [rsp + 0x20]
mov dword [rsp + 0x20], reloc.WS2_32.dll_recv
lea rdx, [rsp + 0x28]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov r15, rax
cmp rax, 0xffffffffffffffff
je 0x14012e806
mov qword [rsp + 0x80], r12
lea rdx, str.Connection_accepted_from_server
mov rcx, rbx
mov qword [rsp + 0x40], r14
call fcn.140100de0
lea r8, [rsp + 0x24]
mov byte [rsi + 0x315], 0
mov edx, 0x8004667e
mov dword [rsp + 0x24], 1
mov rcx, r15
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r14, qword [rsi + 0x1e0]
test r14, r14
je 0x14012e7ff
lea rax, str.TCP_ACCEPT
cmp qword [r14], rax
jne 0x14012e7ff
cmp qword [rsi + 0x38], 0
mov rcx, rbx
mov qword [rsp + 0x78], rbp
mov qword [rsp + 0x88], r13
mov r13, qword [r14 + 0x10]
mov rbp, qword [r13 + 0x98]
mov rdx, rbp
je 0x14012e6ec
call fcn.1400f1680
mov rax, qword [rbx + 0xd8]
lea rdi, [rbx + 0xd0]
test rax, rax
jne 0x14012e6b5
mov rax, qword [rdi]
test rax, rax
je 0x14012e6bc
mov byte [rax + 0x18b], 1
mov rcx, qword [rsi + 0x40]
mov rdx, rbp
call qword [rsi + gethostname]
mov rax, qword [rbx + 0xd8]
test rax, rax
je 0x14012e6db
mov byte [rax + 0x18b], 0
jmp 0x14012e701
mov rax, qword [rdi]
test rax, rax
je 0x14012e701
mov byte [rax + 0x18b], 0
jmp 0x14012e701
call fcn.1400f1680
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_closesocket]
lea rdi, [rbx + 0xd0]
mov qword [r13 + 0x98], r15
mov rdx, rbx
mov rcx, r14
mov qword [rsi + 0x1b0], r15
call fcn.14011b620
mov rdx, rbx
mov rcx, r14
call fcn.14011b470
mov rbp, qword [rsp + 0x78]
mov word [r13 + 0x10c], 0x101
mov r13, qword [rsp + 0x88]
mov byte [r14 + 0x24], 1
cmp qword [rbx + 0x270], 0
je 0x14012e7fb
mov rax, qword [rbx + 0xd8]
test rax, rax
jne 0x14012e763
mov rax, qword [rdi]
test rax, rax
je 0x14012e76a
mov byte [rax + 0x18b], 1
mov rcx, qword [rbx + 0x278]
mov r8d, 1
mov rdx, r15
call qword [rbx + 0x270]
mov rcx, qword [rbx + 0xd8]
mov edx, eax
test rcx, rcx
je 0x14012e797
mov byte [rcx + 0x18b], 0
jmp 0x14012e7a6
mov rax, qword [rdi]
test rax, rax
je 0x14012e7a6
mov byte [rax + 0x18b], 0
test edx, edx
je 0x14012e7fb
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax + 0x1e0]
test rcx, rcx
je 0x14012e7c3
mov rax, qword [rcx]
mov rdx, rbx
call qword [rax + 0x20]
mov rdx, rbx
lea rcx, [rsi + 0x1e0]
call fcn.1400f7ba0
mov eax, Ordinal_46
mov r12, qword [rsp + 0x80]
mov r14, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x48
pop r15
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
jmp 0x14012e7d7
mov eax, 2
jmp 0x14012e7d7
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rbx
call fcn.140100cb0
mov eax, 0x1e
jmp 0x14012e7e4
Function at 0x14012fc40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x1b0]
mov rbx, rcx
mov rdx, qword [rcx + 0x18]
cmp dword [rax + 0x10], 0
je 0x14012fc70
mov byte [rdx + 0x6f6], 0xd
mov r8b, reloc.WS2_32.dll_listen
mov dl, 1
add rsp, 0x20
pop rbx
jmp fcn.140130240
cmp byte [rcx + 0xa96], 0
je 0x14012fc85
xor edx, edx
add rsp, 0x20
pop rbx
jmp fcn.14012f220
cmp byte [rcx + 0xa99], 0
je 0x14012fd03
mov r9, qword [rdx + 0x6a0]
test r9, r9
jne 0x14012fcc8
mov r9, qword [rcx + 0x750]
test r9, r9
jne 0x14012fcbf
cmp byte [rbx + 0x12df], 0
lea rcx, str.NLST
lea r9, str.LIST
cmovne r9, rcx
lea r8, str.PRET__s
jmp 0x14012fcdf
cmp byte [rcx + 0xaa6], 0
lea r8, str.PRET_STOR__s
jne 0x14012fcdf
lea r8, str.PRET_RETR__s
add rdx, 0x610
mov rcx, rbx
call fcn.140149990
test eax, eax
jne 0x14012fd0d
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6f6], 0x1d
add rsp, 0x20
pop rbx
ret
add rsp, 0x20
pop rbx
jmp fcn.14012fb90
add rsp, 0x20
pop rbx
ret
Function at 0x140131110
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rbp, qword [rcx + 0x18]
lea eax, [rdx - 0xc8]
xor edi, edi
movzx esi, r8b
mov rbx, rcx
cmp eax, 0x64
jb 0x140131150
lea rdx, str.Couldnt_set_desired_mode
call fcn.140100cb0
lea eax, [rdi + 0x11]
jmp 0x1401312b5
cmp edx, 0xc8
je 0x140131167
mov r8d, edx
lea rdx, str.Got_a__03d_response_code_instead_of_the_assumed_200
call fcn.140100de0
cmp sil, 0x13
jne 0x14013117d
mov rdx, rbp
mov rcx, rbx
call fcn.14012fd20
jmp 0x1401312b1
cmp sil, 0x14
jne 0x140131293
cmp byte [rbx + 0x6f0], 2
mov rbp, qword [rbx + 0x18]
jne 0x1401311fb
mov rax, qword [rbx + 0x1b0]
mov rcx, qword [rax]
test rcx, rcx
je 0x1401311fb
xor r9d, r9d
mov qword [rsp + 0x40], rdi
lea r8, [rsp + 0x40]
mov dword [rsp + 0x20], 3
xor edx, edx
call fcn.14013cc10
test eax, eax
jne 0x1401312b1
mov rsi, qword [rsp + 0x40]
lea edx, [rax + 0x2f]
mov rcx, rsi
call qword [sym.imp.VCRUNTIME140.dll_strrchr]
test rax, rax
je 0x1401311f2
sub rax, rsi
mov ecx, 1
mov rdi, rsi
cmovne rcx, rax
mov byte [rcx + rsi], 0
jmp 0x1401311fb
mov rcx, rsi
call qword [0x1402b30c8]
mov rdx, qword [rbx + 0x750]
test rdx, rdx
jne 0x140131220
cmp byte [rbx + 0x12df], 0
lea rax, str.NLST
lea rdx, str.LIST
cmovne rdx, rax
lea r8, [0x1401f81f9]
test rdi, rdi
mov r9, r8
lea rax, [0x1401f8764]
cmovne r9, rdi
lea rcx, [0x140287e18]
cmovne r8, rax
call sym.CheraxLoader.exe_curl_maprintf
mov rcx, rdi
mov rsi, rax
call qword [0x1402b30c8]
test rsi, rsi
jne 0x14013125e
lea edi, [rsi + 0x1b]
jmp 0x1401312b3
lea rdx, [rbp + 0x610]
mov r9, rsi
lea r8, [0x140284558]
mov rcx, rbx
call fcn.140149990
mov rcx, rsi
mov edi, eax
call qword [0x1402b30c8]
test edi, edi
jne 0x1401312b3
mov rcx, qword [rbx + 0x18]
mov byte [rcx + 0x6f6], 0x1f
jmp 0x1401312b3
cmp sil, 0x15
jne 0x14013129e
mov r8b, reloc.WS2_32.dll_listen
jmp 0x1401312a7
cmp sil, 0x16
jne 0x1401312b3
mov r8b, reloc.WLDAP32.dll_Ordinal_14
mov dl, 1
mov rcx, rbx
call fcn.140130240
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1402b3030]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov byte [rsp + 0x20], 0xff
mov rcx, qword [rcx + 0x18]
mov esi, r8d
mov edi, edx
mov byte [rsp + 0x22], sil
xor r9d, r9d
mov byte [rsp + 0x21], dil
lea rdx, [rsp + 0x20]
mov rcx, qword [rcx + 0x1a8]
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1401348b7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.140100cb0
mov r9d, esi
lea rdx, str.SENT
mov r8d, edi
mov rcx, rbx
call fcn.140134720
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14014d450
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401354f0
Capabilities:
Send data
Send data on socket

Disassembly:
cmp edx, 0x1f
jne 0x1401356a5
push rsi
push rdi
push r13
sub rsp, 0x30
mov rsi, qword [rcx + 0x1b0]
mov rdi, rcx
mov r13, qword [rcx + 0x18]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x28], r14
lea rbx, [rsi + 0x1eb8]
lea r14, [rsi + 0x1cb8]
mov qword [rsp + 0x20], r15
mov qword [rbx], r14
mov rax, r14
cmp r14, rbx
jae 0x140135547
lea rax, [r14 + 1]
mov byte [r14], 0xff
mov qword [rbx], rax
cmp rax, rbx
jae 0x140135560
mov byte [rax], 0xfa
inc qword [rbx]
mov rax, qword [rbx]
cmp rax, rbx
jae 0x140135560
mov byte [rax], 0x1f
inc qword [rbx]
movzx ecx, word [rsi + 0x1ca8]
call qword [sym.imp.WS2_32.dll_htons]
movzx ecx, word [rsi + 0x1caa]
movzx ebp, ax
shr bp, 8
movzx r15d, ax
call qword [sym.imp.WS2_32.dll_htons]
mov r9, qword [rbx]
movzx ecx, ax
shr cx, 8
cmp r9, rbx
jae 0x14013559d
mov byte [r9], r15b
inc qword [rbx]
mov r9, qword [rbx]
mov r15, qword [rsp + 0x20]
cmp r9, rbx
jae 0x1401355b0
mov byte [r9], bpl
inc qword [rbx]
mov r9, qword [rbx]
mov rbp, qword [rsp + 0x60]
cmp r9, rbx
jae 0x1401355ef
mov byte [r9], al
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401355ef
mov byte [r9], cl
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401355ef
mov byte [r9], 0xff
inc qword [rbx]
mov r9, qword [rbx]
cmp r9, rbx
jae 0x1401355ef
mov byte [r9], 0xf0
mov r9, qword [rbx]
inc r9
mov qword [rsi + 0x1ec0], r9
lea r8, [rsi + 0x1cba]
sub r9, r14
mov qword [rbx], r14
sub r9, 2
mov edx, 0x3e
mov rcx, rdi
call fcn.1401348f0
mov rcx, qword [r13 + 0x1a8]
xor r9d, r9d
mov rdx, r14
lea r8d, [r9 + 3]
call qword [sym.imp.WS2_32.dll_send]
mov r14, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
test eax, eax
jns 0x140135651
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140100cb0
lea rdx, [rsi + 0x1cbb]
mov r8d, 4
mov rcx, rdi
call fcn.140135f70
mov rcx, qword [r13 + 0x1a8]
lea rdx, [rsi + 0x1cbf]
xor r9d, r9d
lea r8d, [r9 + 2]
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14013569d
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rdi
mov r8d, eax
call fcn.140100cb0
add rsp, 0x30
pop r13
pop rdi
pop rsi
ret