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

Disassembly:
test rcx, rcx
je 0x14046dbe2
nop word cs:[rax + rax]
cmp byte [rcx], 0
lea rcx, [rcx + 1]
sete al
setns dl
xor dl, al
jne 0x14046dbd0
ret
mov al, 1
ret

Function at 0x14046ffa0
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x60
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 4
mov edx, 0x4004747b
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140470011
mov dword [rsp + 0x20], 4
lea r9, [rsp + 0x54]
mov rcx, rsi
mov edx, 0xffff
mov r8d, 0x1001
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x60
pop rsi
ret

Function at 0x1404742a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
add edx, 0xffffff38
cmp edx, 0x64
jae 0x1404742e6
cmp byte [rsi + 0xaaf], 0
je 0x1404742cc
lea rdx, str.Connect_data_stream_actively
mov rcx, rsi
call fcn.14043cd70
mov rcx, rsi
xor edx, edx
call fcn.1404729a0
mov rcx, rsi
xor edx, edx
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.140475b40
mov rdi, qword [rsi + 0x20]
mov edx, dword [rdi + 0x6b8]
test edx, edx
je 0x140474316
inc edx
cmp edx, 2
jne 0x14047433a
lea rdx, str.Failed_to_do_PORT
mov rcx, rsi
call fcn.14043cca0
mov eax, 0x1e
add rsp, 0x28
pop rdi
pop rsi
ret
cmp byte [rsi + 0xaaf], 0
je 0x14047432e
lea rdx, str.disabling_EPRT_usage
mov rcx, rsi
call fcn.14043cd70
mov byte [rdi + 0x2da], 0
mov edx, 1
mov rcx, rsi
add rsp, 0x28
pop rdi
pop rsi
jmp 0x140474e10

Function at 0x140474c70
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx + 0x1a0]
cmp dword [rax + 0x10], 1
jne 0x140474cbd
mov r9, qword [rdx + 0x670]
test r9, r9
je 0x140474cbd
add rdx, 0x5d0
lea r8, str.SIZE__s
mov rcx, rsi
call fcn.1404928c0
test eax, eax
jne 0x140474cb7
mov rcx, rsi
mov dl, reloc.WS2_32.dll_socket
call fcn.1404729a0
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140474cd0

Function at 0x140474cd0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rax, qword [rcx + 0x1a0]
cmp dword [rax + 0x10], 0
je 0x140474d1e
cmp qword [rdx + 0x670], 0
je 0x140474d1e
add rdx, 0x5d0
lea r8, str.REST__d
mov rcx, rsi
xor r9d, r9d
call fcn.1404928c0
test eax, eax
jne 0x140474d18
mov rcx, rsi
mov dl, reloc.WLDAP32.dll_Ordinal_26
call fcn.1404729a0
xor eax, eax
add rsp, 0x20
pop rsi
ret
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp fcn.140474d30
Function at 0x140476040
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xb8
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rdi, qword [rcx + 0x20]
mov rbx, qword [rdi + 0x1b0]
mov dword [rsp + 0x24], Ordinal_133
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1404760bc
lea rdx, str.Error_accept__ing_server_connect
mov rcx, rsi
call fcn.14043cca0
mov ebx, 0x1e
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.14049f400
mov eax, ebx
add rsp, 0xb8
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov dword [rsp + 0x24], Ordinal_133
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x24]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsp + 0x28], rax
cmp rax, 0xffffffffffffffff
je 0x14047608a
mov rbx, rax
cmp byte [rsi + 0xaaf], 0
je 0x1404760fd
lea rdx, str.Connection_accepted_from_server
mov rcx, rsi
call fcn.14043cd70
mov byte [rdi + 0x2d5], 0
mov rcx, rbx
mov edx, 1
call fcn.14048a070
lea r9, [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
mov r8d, 1
call fcn.140457440
mov ebx, eax
test eax, eax
jne 0x14047609e
cmp qword [rsi + 0x270], 0
je 0x140476188
mov rcx, rsi
mov dl, 1
call fcn.140448690
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsi + 0x278]
mov r8d, 1
call qword [rsi + 0x270]
mov ebp, eax
xor ebx, ebx
mov rcx, rsi
xor edx, edx
call fcn.140448690
test ebp, ebp
je 0x14047609e
mov rcx, rsi
mov rdx, rdi
call fcn.140475bf0
mov ebx, Ordinal_46
jmp 0x14047609e
xor ebx, ebx
jmp 0x14047609e

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

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rbx, qword [rcx + 0x1a0]
mov r14d, edx
mov eax, dword [rbx + r14*4 + 8]
cmp eax, 3
je 0x14047e183
mov esi, edx
mov rdi, rcx
cmp eax, 2
je 0x14047e19f
test eax, eax
jne 0x14047e212
cmp dword [rbx + r14*4 + 0x808], 1
jne 0x14047e1c6
mov dword [rbx + r14*4 + 8], 1
mov rcx, rdi
mov edx, 0xfb
mov r8d, esi
call fcn.14047e5f0
cmp dword [rbx + r14*4 + 0x1808], 1
je 0x14047e1ea
jmp 0x14047e212
mov eax, dword [rbx + r14*4 + 0x408]
cmp eax, 1
je 0x14047e1fd
test eax, eax
jne 0x14047e212
mov dword [rbx + r14*4 + 8], 0
jmp 0x14047e212
mov eax, dword [rbx + r14*4 + 0x408]
cmp eax, 1
je 0x14047e21c
test eax, eax
jne 0x14047e212
mov dword [rbx + r14*4 + 8], 1
cmp dword [rbx + r14*4 + 0x1808], 1
je 0x14047e1ea
jmp 0x14047e212
cmp dword [rbx + r14*4 + 0x1808], 1
jne 0x14047e231
mov dword [rbx + r14*4 + 8], 1
mov rcx, rdi
mov edx, 0xfb
mov r8d, esi
call fcn.14047e5f0
mov rcx, rdi
mov edx, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14047e690
mov dword [rbx + r14*4 + 8], 1
mov dword [rbx + r14*4 + 0x408], 0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov dword [rbx + r14*4 + 8], 3
mov dword [rbx + r14*4 + 0x1008], 0
mov rcx, rdi
mov edx, 0xfc
mov r8d, esi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14047e5f0
Function at 0x14047e2f0
Capabilities:
Send data
Send data on socket

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x858
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov r13, qword [rcx + 0x20]
mov rdi, qword [rcx + 0x1a0]
mov r9, qword [rdi + 0x1ec0]
sub r9, qword [rdi + 0x1eb8]
add r9, 2
lea r8, [rdi + 0x1cb8]
mov edx, 0x3c
call fcn.14047e880
mov rax, qword [rdi + 0x1eb8]
lea rcx, [rax + 1]
mov qword [rdi + 0x1eb8], rcx
movzx eax, byte [rax]
cmp eax, 0x27
je 0x14047e3b3
cmp eax, 0x23
je 0x14047e4ab
cmp eax, 0x18
jne 0x14047e5c8
add rdi, 0x1c08
mov rcx, rdi
call fcn.1404bc040
mov r14, rax
lea rbx, [rax + 4]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_26
jmp 0x14047e4e7
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_41
mov dword [rsp + 0x20], 0xfa
lea r8, str._c_c_c_c
lea rcx, [rsp + 0x50]
mov ebx, 0x800
mov edx, 0x800
mov r9d, 0xff
call fcn.140454850
mov rbp, qword [rdi + 0x1cb0]
mov edi, 4
test rbp, rbp
je 0x14047e556
lea r14, [0x1404f0342]
lea r15, str._c_.s_c_s
jmp 0x14047e465
mov r8d, eax
sub r8d, r12d
inc rax
mov edx, 0x800
sub rdx, rdi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x20], r8d
mov dword [rsp + 0x30], 1
mov r8, r15
xor r9d, r9d
call fcn.140454850
cdqe
add rdi, rax
mov rbp, qword [rbp + 8]
test rbp, rbp
je 0x14047e556
mov r12, qword [rbp]
mov rcx, r12
call fcn.1404bc040
add rax, rdi
inc rax
cmp rax, 0x7f9
ja 0x14047e458
mov rcx, r12
mov edx, Ordinal_46
call fcn.1404a4048
lea rcx, [rsp + rdi]
add rcx, 0x50
test rax, rax
jne 0x14047e420
mov edx, 0x800
sub rdx, rdi
mov qword [rsp + 0x20], r12
mov r8, r14
jmp 0x14047e44b
add rdi, 0x1c28
mov rcx, rdi
call fcn.1404bc040
mov r14, rax
lea rbx, [rax + 4]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x48], 0xf0
mov dword [rsp + 0x40], 0xff
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_41
mov dword [rsp + 0x20], 0xfa
lea r8, str._c_c_c_c_s_c_c
lea rdi, [rsp + 0x50]
mov edx, 0x800
mov rcx, rdi
mov r9d, 0xff
call fcn.140454850
add r14d, 6
mov rcx, qword [r13 + 0x1a8]
mov rdx, rdi
mov r8d, r14d
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14047e544
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14043cca0
lea r8, [rsp + 0x52]
mov rcx, rsi
mov edx, 0x3e
mov r9, rbx
jmp 0x14047e5c3
sub rbx, rdi
lea rcx, [rsp + rdi]
add rcx, 0x50
mov dword [rsp + 0x20], 0xf0
lea r8, [0x1404f4fab]
mov rdx, rbx
mov r9d, 0xff
call fcn.140454850
lea r8d, [rdi + 2]
mov rcx, qword [r13 + 0x1a8]
lea rdx, [rsp + 0x50]
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14047e5b3
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14043cca0
lea r8, [rsp + 0x52]
mov rcx, rsi
mov edx, 0x3e
mov r9, rdi
call fcn.14047e880
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x858
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14047e5f0
Capabilities:
Send data
Send data on socket

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, r8d
mov edi, edx
mov rbx, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rax, qword [rcx + 0x20]
mov byte [rsp + 0x25], 0xff
mov byte [rsp + 0x26], dil
mov byte [rsp + 0x27], sil
mov rcx, qword [rax + 0x1a8]
lea rdx, [rsp + 0x25]
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14047e658
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rbx
mov r8d, eax
call fcn.14043cca0
lea rdx, str.SENT
mov rcx, rbx
mov r8d, edi
mov r9d, esi
call fcn.14047dea0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14049f400
nop
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret

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

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
cmp edx, 0x1f
jne 0x14047e7fe
mov rsi, rcx
mov r15, qword [rcx + 0x20]
mov rdi, qword [rcx + 0x1a0]
lea r12, [rdi + 0x1eb8]
mov word [rdi + 0x1cb8], 0xfaff
lea rbx, [rdi + 0x1cbb]
mov qword [rdi + 0x1eb8], rbx
mov byte [rdi + 0x1cba], 0x1f
movzx ecx, word [rdi + 0x1ca8]
mov r14, qword [sym.imp.WS2_32.dll_htons]
call r14
mov ebp, eax
movzx ecx, word [rdi + 0x1caa]
call r14
mov r9, qword [rdi + 0x1eb8]
cmp r9, r12
jb 0x14047e80e
cmp r9, r12
jb 0x14047e826
cmp r9, r12
jb 0x14047e841
cmp r9, r12
jb 0x14047e859
cmp r9, r12
jae 0x14047e737
lea rax, [r9 + 1]
mov qword [r12], rax
mov byte [r9], 0xff
mov r9, qword [r12]
lea r14, [rdi + 0x1cb8]
lea r8, [rdi + 0x1cba]
cmp r9, r12
jae 0x14047e75a
lea rax, [r9 + 1]
mov qword [r12], rax
mov byte [r9], 0xf0
mov r9, qword [r12]
mov qword [rdi + 0x1ec0], r9
mov qword [rdi + 0x1eb8], r14
sub r9, r14
add r9, 0xfffffffffffffffe
mov rcx, rsi
mov edx, 0x3e
call fcn.14047e880
mov rcx, qword [r15 + 0x1a8]
mov rdx, r14
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14047e7b1
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14043cca0
mov r8d, 4
mov rcx, rsi
mov rdx, rbx
call fcn.14047d780
add rdi, 0x1cbf
mov rcx, qword [r15 + 0x1a8]
mov rdx, rdi
mov r8d, 2
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x14047e7fe
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea rdx, str.Sending_data_failed___d_
mov rcx, rsi
mov r8d, eax
call fcn.14043cca0
nop
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], bpl
mov r9, qword [r12]
cmp r9, r12
jae 0x14047e710
shr ebp, 8
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], bpl
mov r9, qword [r12]
cmp r9, r12
jae 0x14047e719
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], al
mov r9, qword [r12]
cmp r9, r12
jae 0x14047e722
shr eax, 8
lea rcx, [r9 + 1]
mov qword [r12], rcx
mov byte [r9], al
mov r9, qword [r12]
cmp r9, r12
jb 0x14047e727
jmp 0x14047e737
Function at 0x14047ecb0
Capabilities:
Send data
Send data on socket

Disassembly:
mov rax, qword [rcx + 0x1a0]
movsxd r8, edx
mov edx, dword [rax + r8*4 + 8]
cmp edx, 3
je 0x14047ece0
cmp edx, 2
je 0x14047ecec
test edx, edx
jne 0x14047eceb
mov dword [rax + r8*4 + 8], 2
mov edx, 0xfb
jmp fcn.14047e5f0
cmp dword [rax + r8*4 + 0x408], 0
je 0x14047ed04
ret
cmp dword [rax + r8*4 + 0x408], 1
jne 0x14047eceb
mov dword [rax + r8*4 + 0x408], 0
ret
mov dword [rax + r8*4 + 0x408], 1
ret

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

Disassembly:
mov rax, qword [rcx + 0x1a0]
movsxd r8, edx
mov edx, dword [rax + r8*4 + 0xc08]
cmp edx, 3
je 0x14047ed56
cmp edx, 2
je 0x14047ed62
test edx, edx
jne 0x14047ed61
mov dword [rax + r8*4 + 0xc08], 2
mov edx, 0xfd
jmp fcn.14047e5f0
cmp dword [rax + r8*4 + 0x1008], 0
je 0x14047ed7a
ret
cmp dword [rax + r8*4 + 0x1008], 1
jne 0x14047ed61
mov dword [rax + r8*4 + 0x1008], 0
ret
mov dword [rax + r8*4 + 0x1008], 1
ret
Function at 0x14047f530
Capabilities:
Receive data
Receive data on socket

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc0
mov rdi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rax, qword [rcx + 0x20]
mov rsi, qword [rax + 0x5d0]
mov dword [rsp + 0x34], Ordinal_133
mov r8d, dword [rsi + 0x144]
add r8d, 4
mov rdx, qword [rsi + 0x150]
mov rcx, qword [rsi + 0x18]
lea rax, [rsp + 0x34]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_recvfrom]
mov ebx, eax
mov dword [rsi + 0x13c], eax
cmp dword [rsi + 0x138], 0
je 0x14047f5c9
cmp ebx, 3
jg 0x14047f5f3
lea rdx, str.Received_too_short_packet
mov rcx, rdi
call fcn.14043cca0
mov dword [rsi + 0xc], 7
jmp 0x14047f742
lea rcx, [rsi + 0xb8]
movsxd rbx, dword [rsp + 0x34]
lea rdx, [rsp + 0x38]
mov r8, rbx
call fcn.1404a3620
mov dword [rsi + 0x138], ebx
mov ebx, dword [rsi + 0x13c]
cmp ebx, 3
jle 0x14047f5ae
lea r14, [rsi + 0x150]
mov rcx, r14
call fcn.140480430
movzx eax, ax
mov dword [rsi + 0xc], eax
add eax, 0xfffffffd
cmp eax, 3
ja case.default.0x14047f61e
lea rcx, [0x1404e5f50]
movsxd rax, dword [rcx + rax*4]
add rax, rcx
jmp rax
cmp ebx, 5
jb case.0x14047f61e.4
mov ebp, dword [rsi + 0x14c]
inc ebp
mov rcx, r14
call fcn.140480410
cmp bp, ax
jne case.0x14047f61e.4
add ebx, 0xfffffffc
mov r8, qword [r14]
add r8, 4
mov rcx, rdi
mov edx, 1
mov r9, rbx
call fcn.1404503f0
test eax, eax
je 0x14047f6fd
mov ebx, eax
mov rcx, rsi
mov edx, 5
call fcn.14047f490
jmp 0x14047f744
lea rdx, [0x1404f113e]
lea r8, str.Internal_error:_Unexpected_packet
mov rcx, rdi
call fcn.14043cca0
jmp case.0x14047f61e.4
mov rcx, r14
call fcn.140480410
mov r14, qword [rsi + 0x150]
add r14, 4
add ebx, 0xfffffffc
movzx eax, ax
mov dword [rsi + 8], eax
mov rcx, r14
mov rdx, rbx
call fcn.140480440
cmp rax, rbx
jae case.0x14047f61e.4
cmp byte [rdi + 0xaaf], 0
je case.0x14047f61e.4
lea rdx, str.TFTP_error:__s
mov rcx, rdi
mov r8, r14
call fcn.14043cd70
jmp case.0x14047f61e.4
add ebx, 0xfffffffe
mov rdx, qword [rsi + 0x150]
add rdx, 2
mov rcx, rsi
mov r8d, ebx
call fcn.140480470
mov ebx, eax
test eax, eax
jne 0x14047f744
jmp case.0x14047f61e.4
movsxd rax, dword [rsi + 0x13c]
mov rcx, qword [rdi + 0x100]
lea rdx, [rax + rcx]
add rdx, 0xfffffffffffffffc
mov qword [rdi + 0x100], rdx
mov rcx, rdi
call fcn.14046d2b0
mov rcx, rdi
call fcn.14046ccf0
test eax, eax
je 0x14047f742
mov rcx, rsi
mov edx, 5
call fcn.14047f490
mov ebx, Ordinal_46
jmp 0x14047f744
xor ebx, ebx
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.14049f400
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
Function at 0x140486a60
Capabilities:
Get socket status

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov r14, r9
mov rbx, r8
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rcx, rcx
je 0x140486a8e
cmp dword [rsi], 0
jne 0x140486a98
test rdi, rdi
je 0x140486aaf
cmp dword [rdi], 0
je 0x140486aaf
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.1404943a0
test rbx, rbx
jne 0x140486ac6
xor r9d, r9d
jmp 0x140486ad0
test rbx, rbx
je 0x140486b15
cmp dword [rbx], 0
je 0x140486b15
lea rcx, [rsp + 0x28]
mov rdx, r14
call fcn.1404943a0
xor r9d, r9d
cmp dword [rbx], 0
cmovne r9, rbx
xor r8d, r8d
test rdi, rdi
je 0x140486adf
cmp dword [rdi], 0
cmovne r8, rdi
xor edx, edx
test rsi, rsi
je 0x140486aed
cmp dword [rsi], 0
cmovne rdx, rsi
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14049f400
mov rcx, r14
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.140486590

Function at 0x140486d40
Capabilities:
Move file

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x58
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x40]
call fcn.140452730
mov rcx, rdi
call fcn.14045cf00
mov rdi, rax
mov rcx, rsi
call fcn.14045cf00
mov rsi, rax
mov rcx, rdi
mov rdx, rax
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x140486df0
lea rbx, [rsp + 0x30]
lea r14, [rsp + 0x20]
mov r15, qword [sym.imp.KERNEL32.dll_Sleep]
mov r12, qword [sym.imp.KERNEL32.dll_MoveFileExW]
mov rcx, rbx
call fcn.140452730
movups xmm0, xmmword [rsp + 0x40]
movaps xmmword [rsp + 0x20], xmm0
mov rcx, rbx
mov rdx, r14
call fcn.1404527f0
cmp rax, 0x3e9
jae 0x140486e29
mov ecx, 1
call r15
mov rcx, rdi
mov rdx, rsi
mov r8d, 1
call r12
test eax, eax
je 0x140486db0
test rdi, rdi
je 0x140486dfd
mov rcx, rdi
call fcn.1404ba1dc
xor edi, edi
test rsi, rsi
je 0x140486e0c
mov rcx, rsi
call fcn.1404ba1dc
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14049f400
mov eax, edi
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
test rdi, rdi
je 0x140486e36
mov rcx, rdi
call fcn.1404ba1dc
mov edi, 1
test rsi, rsi
jne 0x140486e04
jmp 0x140486e0c

Function at 0x140487fa0
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8, rsi
call fcn.1404a3cc0
xor ecx, ecx
mov rdx, rdi
mov r8d, esi
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setne cl
add ecx, ecx
mov eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret
push rsi
sub rsp, 0x20
mov rsi, rdx
mov r8d, 4
call fcn.14043dd50
cmp eax, 4
jne 0x14048813a
mov edx, 4
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x140487fa0
nop
add rsp, 0x20
pop rsi
ret
Function at 0x140488110
Capabilities:
Generate random numbers via winapi

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8, rsi
call fcn.1404a3cc0
xor ecx, ecx
mov rdx, rdi
mov r8d, esi
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
xor ecx, ecx
test eax, eax
setne cl
add ecx, ecx
mov eax, ecx
add rsp, 0x28
pop rdi
pop rsi
ret
push rsi
sub rsp, 0x20
mov rsi, rdx
mov r8d, 4
call fcn.14043dd50
cmp eax, 4
jne 0x14048813a
mov edx, 4
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x140487fa0
nop
add rsp, 0x20
pop rsi
ret

Function at 0x14048a070
Capabilities:
Set socket configuration

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x28], rax
xor eax, eax
test edx, edx
setne al
mov dword [rsp + 0x24], eax
lea r8, [rsp + 0x24]
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov esi, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14049f400
mov eax, esi
add rsp, 0x30
pop rsi
ret
Function at 0x14048bc60
Capabilities:
Get file size
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x158
mov rbx, r8
mov rdi, rdx
mov r12, rcx
mov rax, qword [0x140516758]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rcx, rdx
call fcn.14045cf00
test rax, rax
je 0x14048bd21
mov rsi, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_133
mov dword [rsp + 0x20], 3
mov rcx, rax
mov edx, 0x80000000
mov r8d, 1
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14048bd60
mov r14, rax
lea rdx, [rsp + 0x48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14048bd97
mov r13, qword [rsp + 0x48]
cmp r13, 0x100001
jl 0x14048be0c
lea rdx, str.schannel:_CA_file_exceeds_max_size_of__u_bytes
mov rcx, rbx
mov r8d, 0x100000
call fcn.14043cca0
jmp 0x14048bdc4
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140470780
lea rdx, str.schannel:_invalid_path_name_for_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14043cca0
xor ecx, ecx
call qword [fcn.1404ba1dc]
mov edi, Ordinal_79
jmp 0x14048bde6
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140470780
lea rdx, str.schannel:_failed_to_open_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14043cca0
mov edi, Ordinal_79
xor r15d, r15d
jmp 0x14048bdd5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140470780
lea rdx, str.schannel:_failed_to_determine_size_of_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14043cca0
mov edi, Ordinal_79
xor r15d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [fcn.1404ba1dc]
mov rcx, rsi
call fcn.1404ba1dc
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14049f400
mov eax, edi
add rsp, 0x158
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [r13 + 1]
call qword [fcn.1404baf0c]
test rax, rax
je 0x14048be73
mov r15, rax
xor ebp, ebp
test r13, r13
mov qword [rsp + 0x38], r12
je 0x14048be7d
xor r12d, r12d
nop dword [rax]
mov r8d, r13d
sub r8d, ebp
mov dword [rsp + 0x44], 0
lea rdx, [r15 + r12]
mov qword [rsp + 0x20], 0
mov rcx, r14
lea r9, [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14048bea4
mov eax, dword [rsp + 0x44]
add ebp, eax
test eax, eax
cmove r13, r12
mov r12, rbp
cmp r13, rbp
ja 0x14048be30
jmp 0x14048be80
mov edi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x14048bdc9
xor r13d, r13d
mov byte [r15 + r13], 0
mov qword [rsp + 0x20], rbx
mov rcx, qword [rsp + 0x38]
mov rdx, r15
mov r8, r13
mov r9, rdi
call fcn.14048b990
mov edi, eax
jmp 0x14048bdcc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov ecx, eax
call fcn.140470780
lea rdx, str.schannel:_failed_to_read_from_CA_file__s:__s
mov rcx, rbx
mov r8, rdi
mov r9, rax
call fcn.14043cca0
mov edi, Ordinal_79
jmp 0x14048bdcc