joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1403f0870
Capabilities:
Get common file path
Query environment variable
Query or enumerate registry value

Disassembly:
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x270
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rsi, r8
mov r15d, edx
mov rbp, rcx
call fcn.1403f6500
test eax, eax
jne 0x1403f0a76
mov byte [rsp + 0x40], al
call fcn.1403f7de0
cmp eax, 3
jne 0x1403f0941
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f095a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rdx, str.DatabasePath
lea rax, [rsp + 0x150]
mov dword [rsp + 0x30], 0x104
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r8d, 0x104
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1403f095a
cmp eax, 2
jne 0x1403f0a76
mov edx, 0x104
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea rcx, [rsp + 0x40]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1403f0962
mov eax, dword [str.hosts]
lea rdx, [0x140518a80]
mov dword [rcx], eax
movzx eax, word [0x140558a0c]
mov word [rcx + 4], ax
movzx eax, byte [0x140558a0e]
mov byte [rcx + 6], al
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov r14, rax
test rax, rax
jne 0x1403f09c1
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
jbe 0x1403f0a76
mov qword [rsi], r14
lea eax, [r14 + 0xe]
jmp 0x1403f0a7b
mov r8, rsi
mov edx, r15d
mov rcx, r14
call fcn.1403f7f20
mov edi, eax
test eax, eax
jne 0x1403f0a49
mov qword [rsp + 0x2b8], rbx
nop dword [rax]
mov rcx, qword [rsi]
mov rdx, rbp
mov rcx, qword [rcx]
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
je 0x1403f0a41
mov rbx, qword [rsi]
mov rbx, qword [rbx + 8]
mov rax, qword [rbx]
test rax, rax
je 0x1403f0a25
mov rdx, rbp
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll__stricmp
test eax, eax
je 0x1403f0a1f
mov rax, qword [rbx + 8]
add rbx, 8
test rax, rax
jne 0x1403f0a01
jmp 0x1403f0a25
cmp qword [rbx], 0
jne 0x1403f0a41
mov rcx, qword [rsi]
call fcn.1403f7410
mov r8, rsi
mov edx, r15d
mov rcx, r14
call fcn.1403f7f20
mov edi, eax
test eax, eax
je 0x1403f09e0
mov rbx, qword [rsp + 0x2b8]
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
cmp edi, 0xd
jne 0x1403f0a67
mov edi, 4
mov qword [rsi], 0
mov eax, edi
jmp 0x1403f0a7b
test edi, edi
je 0x1403f0a72
mov qword [rsi], 0
mov eax, edi
jmp 0x1403f0a7b
mov eax, 4
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140284180
add rsp, 0x270
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1403f2030
Capabilities:
Check os version

Disassembly:
sub rsp, 0xd8
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x90
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], __WSAFDIsSet
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x1403f2096
cmp dword [rsp + 0x24], 6
jb 0x1403f2096
mov eax, 1
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140284180
add rsp, 0xd8
ret
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140284180
add rsp, 0xd8
ret
Function at 0x1403f2d10
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rcx
mov qword [rcx], rbx
call fcn.1403f7de0
cmp eax, 3
jne 0x1403f2e22
lea rax, [rsp + 0x58]
mov qword [rsp + 0x50], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rdi], rbx
lea rdx, str.SystemCurrentControlSetServicesTcpipParameters
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f2f29
mov rcx, qword [rsp + 0x58]
lea rdx, str.NameServer
mov r8, rdi
call fcn.1403f2f40
mov esi, eax
test eax, eax
jne 0x1403f2df7
mov rcx, qword [rsp + 0x58]
lea rdx, str.DhcpNameServer
mov r8, rdi
call fcn.1403f2f40
mov esi, eax
test eax, eax
jne 0x1403f2df7
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x50]
lea r9d, [rbx + 9]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.Interfaces
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1403f2dc7
mov qword [rsp + 0x50], rbx
jmp 0x1403f2e07
mov rcx, qword [rsp + 0x50]
lea rdx, str.NameServer
mov r8, rdi
call fcn.1403f3390
mov esi, eax
test eax, eax
jne 0x1403f2df7
mov rcx, qword [rsp + 0x50]
lea rdx, str.DhcpNameServer
mov r8, rdi
call fcn.1403f3390
mov esi, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1403f2e07
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x1403f2f29
cmp qword [rdi], rbx
jmp 0x1403f2f1a
cmp eax, 2
jne 0x1403f2f29
lea rax, [rsp + 0x60]
mov qword [rdi], rbx
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SystemCurrentControlSetServicesVxDMSTCP
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f2f29
mov rsi, qword [rsp + 0x60]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x58], ebx
lea rdx, str.NameServer
mov dword [rsp + 0x50], ebx
mov qword [rdi], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1403f2e9f
cmp eax, 0xea
jne 0x1403f2f07
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1403f2f07
lea ecx, [rax + 1]
call qword [0x14060c6e8]
mov qword [rdi], rax
test rax, rax
je 0x1403f2f07
lea rcx, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
mov rcx, rsi
mov qword [rsp + 0x20], rax
lea rdx, str.NameServer
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403f2efb
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x1403f2efb
mov ecx, eax
mov rax, qword [rdi]
mov byte [rcx + rax], bl
mov ebx, 1
jmp 0x1403f2f07
mov rcx, qword [rdi]
call qword [0x14060c6f8]
mov qword [rdi], rbx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x1403f2f29
cmp qword [rdi], 0
je 0x1403f2f29
mov eax, 1
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1403f2f40
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x50]
mov qword [r8], rbp
mov rbx, r8
mov qword [rsp + 0x28], rax
xor r8d, r8d
xor r9d, r9d
mov dword [rsp + 0x50], ebp
mov rdi, rdx
mov qword [rsp + 0x20], rbp
mov rsi, rcx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1403f2f8c
cmp eax, 0xea
jne 0x1403f2fef
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x1403f2fef
lea ecx, [rax + 1]
call qword [0x14060c6e8]
mov qword [rbx], rax
test rax, rax
je 0x1403f2fef
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rsi
mov qword [rsp + 0x20], rax
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403f2fe3
mov eax, dword [rsp + 0x50]
cmp eax, 1
je 0x1403f2fe3
mov ecx, eax
mov rax, qword [rbx]
mov byte [rcx + rax], bpl
mov eax, 1
jmp 0x1403f2ff1
mov rcx, qword [rbx]
call qword [0x14060c6f8]
mov qword [rbx], rbp
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1403f3390
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push rbx
push rbp
push rsi
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor ebx, ebx
mov dword [rsp + 0x44], 0x100
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
mov rsi, r8
mov r15, rdx
mov qword [r8], rbx
mov qword [rsp + 0x28], rbx
lea r8, [rsp + 0x50]
xor edx, edx
mov qword [rsp + 0x20], rbx
lea ebp, [rbx + 1]
mov r14, rcx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x1403f3517
mov qword [rsp + 0x1a8], rdi
lea rax, [rsp + 0x48]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1403f34d4
mov rdi, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
mov rcx, rdi
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov dword [rsp + 0x40], ebx
mov rdx, r15
mov qword [rsi], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1403f3461
cmp eax, 0xea
jne 0x1403f34c3
mov eax, dword [rsp + 0x40]
test eax, eax
je 0x1403f34c3
lea ecx, [rax + 1]
call qword [0x14060c6e8]
mov qword [rsi], rax
test rax, rax
je 0x1403f34c3
lea rcx, [rsp + 0x40]
xor r9d, r9d
mov qword [rsp + 0x28], rcx
xor r8d, r8d
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1403f34b7
mov eax, dword [rsp + 0x40]
cmp eax, 1
je 0x1403f34b7
mov ecx, eax
mov edi, 1
mov rax, qword [rsi]
mov byte [rcx + rax], bl
jmp 0x1403f34c5
mov rcx, qword [rsi]
call qword [0x14060c6f8]
mov qword [rsi], rbx
mov edi, ebx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1403f350f
mov qword [rsp + 0x38], rbx
lea r9, [rsp + 0x44]
mov qword [rsp + 0x30], rbx
lea r8, [rsp + 0x50]
mov edx, ebp
mov qword [rsp + 0x28], rbx
mov rcx, r14
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x44], 0x100
inc ebp
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x1403f3400
mov rdi, qword [rsp + 0x1a8]
cmp qword [rsi], rbx
setne bl
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140284180
add rsp, 0x160
pop r15
pop r14
pop rsi
pop rbp
pop rbx
ret
Function at 0x1403f4790
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [r8 + 0x12200], 0
mov rbx, r8
mov edi, edx
mov rsi, rcx
jne 0x1403f48ce
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [rbx + 0x1c], 0
lea r9, [rbx + 0x1c]
jle 0x1403f480b
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1403f48c7
cmp dword [rbx + 0x20], 0
lea r9, [rbx + 0x20]
jle 0x1403f483a
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1403f48c7
cmp edi, 2
jne 0x1403f486d
mov ecx, dword [rbx + 0x74]
test ecx, ecx
je 0x1403f48ce
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov eax, edi
mov word [rsp + 0x38], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x3c], eax
lea r8d, [rdi + 0xe]
jmp 0x1403f48b5
cmp edi, 0x17
jne 0x1403f48ce
mov rax, qword [rbx + 0x78]
cmp rax, qword [0x140558ef0]
jne 0x1403f488f
mov rax, qword [rbx + 0x80]
cmp rax, qword [0x140558ef8]
je 0x1403f48ce
movups xmm0, xmmword [rbx + 0x78]
xor eax, eax
mov dword [rsp + 0x3a], eax
mov word [rsp + 0x3e], ax
mov dword [rsp + 0x50], eax
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x38], ax
movups xmmword [rsp + 0x40], xmm0
lea r8d, [rax + 5]
lea rdx, [rsp + 0x38]
mov rcx, rsi
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
jns 0x1403f48ce
mov eax, 0xffffffff
jmp 0x1403f48d0
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140284180
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x30
mov r10, rdx
mov rbx, r8
mov edx, dword [rdx + 0xa0]
mov r11, rcx
inc edx
mov dword [r10 + 0xa0], edx
mov eax, dword [rcx + 8]
mov r9d, dword [rcx + 0x98]
imul eax, r9d
cmp edx, eax
jge 0x1403f4c96
mov eax, dword [r10 + 0xa4]
inc eax
cdq
idiv r9d
mov dword [r10 + 0xa4], edx
movsxd r8, edx
lea rcx, [r8 + r8*8]
shl rcx, 4
add rcx, qword [r11 + 0x90]
cmp dword [rcx + 0x88], 0
jne 0x1403f4c73
mov rax, qword [r10 + 0xa8]
cmp dword [rax + r8*8], 0
lea rdx, [rax + r8*8]
jne 0x1403f4c73
cmp dword [r10 + 0xb0], 0
je 0x1403f4cb9
mov eax, dword [rcx + 0x60]
cmp dword [rdx + 4], eax
jne 0x1403f4cb9
mov ecx, dword [r10 + 0xa0]
inc ecx
mov dword [r10 + 0xa0], ecx
mov eax, dword [r11 + 8]
mov r9d, dword [r11 + 0x98]
imul eax, r9d
cmp ecx, eax
jl 0x1403f4c20
mov r8d, dword [r10 + 0xb4]
xor r9d, r9d
mov rdx, r10
mov dword [rsp + 0x20], 0
mov rcx, r11
call fcn.1403f48f0
add rsp, 0x30
pop rbx
ret
mov r8, rbx
mov rdx, r10
mov rcx, r11
add rsp, 0x30
pop rbx
jmp fcn.1403f44c0
Function at 0x1403f4f60
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140601e40]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rdx]
mov r15d, 2
mov rsi, rdx
mov rbx, rcx
cmp eax, r15d
je 0x1403f4fd2
cmp eax, 0x17
jne 0x1403f5056
mov ecx, dword [rdx + 0x14]
lea r14d, [r15 + 0x1a]
xor eax, eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x38], eax
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x20], ax
test ecx, ecx
jne 0x1403f4fbd
mov ecx, dword [rbx + 0x14]
call fcn.1403f7f00
movups xmm0, xmmword [rsi + 4]
mov word [rsp + 0x22], ax
movups xmmword [rsp + 0x28], xmm0
jmp 0x1403f4ffe
mov ecx, dword [rdx + 0x14]
xor eax, eax
mov qword [rsp + 0x28], rax
mov word [rsp + 0x20], r15w
lea r14d, [rax + 0x10]
test ecx, ecx
jne 0x1403f4fed
mov ecx, dword [rbx + 0x14]
call fcn.1403f7f00
mov word [rsp + 0x22], ax
mov eax, dword [rsi + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rbx + 0x12200]
xor r8d, r8d
mov ecx, dword [rsi]
mov edx, r15d
test rax, rax
je 0x1403f501d
mov r9, qword [rbx + 0x12208]
call qword [rax]
jmp 0x1403f5023
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1403f5056
mov edx, dword [rsi]
mov r8, rbx
mov rcx, rax
call fcn.1403f4790
test eax, eax
jns 0x1403f507c
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
jne 0x1403f5116
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140284180
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov rax, qword [rbx + 0x121f0]
test rax, rax
je 0x1403f50c5
mov r8, qword [rbx + 0x121f8]
mov edx, r15d
mov rcx, rdi
call rax
mov ebp, eax
test eax, eax
jns 0x1403f50c5
mov r8, qword [rbx + 0x12200]
mov rcx, rdi
test r8, r8
je 0x1403f50bb
mov rdx, qword [rbx + 0x12208]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
mov eax, ebp
jmp 0x1403f505b
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebp
jmp 0x1403f505b
mov rax, qword [rbx + 0x12200]
lea rdx, [rsp + 0x20]
mov r8d, r14d
mov rcx, rdi
test rax, rax
je 0x1403f50e8
mov r9, qword [rbx + 0x12208]
call qword [rax + reloc.WS2_32.dll_recv]
jmp 0x1403f50ee
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1403f5125
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
add eax, 0xffffd8cd
cmp eax, 1
jbe 0x1403f5125
mov rax, qword [rbx + 0x12200]
mov rcx, rdi
test rax, rax
je 0x1403f5050
mov rdx, qword [rbx + 0x12208]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
jmp 0x1403f5056
mov rax, qword [rbx + 0x121e0]
test rax, rax
je 0x1403f514a
mov r8, qword [rbx + 0x121e8]
mov edx, r15d
mov rcx, rdi
call rax
mov ebp, eax
test eax, eax
js 0x1403f509d
mov rax, qword [rbx + 0x121d0]
test rax, rax
je 0x1403f5169
mov rcx, qword [rbx + 0x121d8]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 1]
call rax
mov qword [rsi + 0x20], rdi
xor eax, eax
jmp 0x1403f505b
Function at 0x1403f5cc0
Capabilities:
Send data
Send data on socket

Disassembly:
push rbp
push rsi
push r12
push r13
sub rsp, 0x38
mov r12, r9
mov r13, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
jne 0x1403f5ce6
cmp r8, 0xffffffffffffffff
je 0x1403f5f19
mov qword [rsp + 0x70], r14
xor r14d, r14d
cmp dword [rcx + 0x98], r14d
jle 0x1403f5f14
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x30], r15
xor r15d, r15d
mov qword [rsp + 0x68], rdi
nop dword [rax]
mov rbx, qword [rbp + 0x90]
add rbx, r15
mov rax, qword [rbx + 0x50]
test rax, rax
je 0x1403f5eee
mov rcx, qword [rbx + 0x28]
cmp rcx, 0xffffffffffffffff
je 0x1403f5eee
cmp dword [rbx + 0x88], 0
jne 0x1403f5eee
test rsi, rsi
je 0x1403f5da8
mov rdx, rsi
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1403f5eee
mov edx, dword [rsi]
xor eax, eax
test edx, edx
je 0x1403f5da2
mov r8, qword [rbx + 0x28]
cmp qword [rsi + rax*8 + 8], r8
je 0x1403f5d76
inc eax
cmp eax, edx
jb 0x1403f5d63
mov rax, qword [rbx + 0x50]
jmp 0x1403f5db1
lea ecx, [rdx - 1]
cmp eax, ecx
jae 0x1403f5d9d
nop dword [rax]
mov edx, eax
lea r8d, [rax + 1]
mov rax, qword [rsi + r8*8 + 8]
mov qword [rsi + rdx*8 + 8], rax
mov eax, r8d
mov edx, dword [rsi]
lea ecx, [rdx - 1]
cmp r8d, ecx
jb 0x1403f5d80
lea eax, [rdx - 1]
mov dword [rsi], eax
mov rax, qword [rbx + 0x50]
jmp 0x1403f5db1
cmp rcx, r13
jne 0x1403f5eee
xor ecx, ecx
test rax, rax
je 0x1403f5dcc
nop dword [rax + rax]
mov rax, qword [rax + 0x20]
inc rcx
test rax, rax
jne 0x1403f5dc0
shl rcx, 4
call qword [0x14060c6e8]
mov rdx, qword [rbx + 0x50]
mov rdi, rax
test rax, rax
je 0x1403f5e76
xor r8d, r8d
test rdx, rdx
je 0x1403f5e0f
mov r9, rax
mov rcx, qword [rdx]
inc r8
mov qword [r9], rcx
lea r9, [r9 + 0x10]
mov rax, qword [rdx + 8]
mov qword [r9 - 8], rax
mov rdx, qword [rdx + 0x20]
test rdx, rdx
jne 0x1403f5df1
mov rax, qword [rbp + 0x12200]
mov rdx, rdi
mov rcx, qword [rbx + 0x28]
test rax, rax
je 0x1403f5e2e
mov r9, qword [rbp + 0x12208]
call qword [rax + 0x20]
jmp 0x1403f5e33
call fcn.1403f8b30
mov rcx, rdi
mov rbx, rax
call qword [0x14060c6f8]
test rbx, rbx
jns 0x1403f5e71
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x1403f5eee
cmp eax, 0x2733
je 0x1403f5eee
mov r8, r12
mov edx, r14d
mov rcx, rbp
call fcn.1403f4aa0
jmp 0x1403f5eee
mov r8, rbx
jmp 0x1403f5ee3
mov rax, qword [rbp + 0x12200]
mov r8, qword [rdx + 8]
mov rdx, qword [rdx]
mov rcx, qword [rbx + 0x28]
test rax, rax
je 0x1403f5eae
mov r9, qword [rbp + 0x12208]
mov qword [rsp + 0x20], rdx
lea rdx, [rsp + 0x20]
mov qword [rsp + 0x28], r8
mov r8d, 1
call qword [rax + 0x20]
jmp 0x1403f5eb9
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cdqe
test rax, rax
jns 0x1403f5ee0
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0xb
je 0x1403f5eee
cmp eax, 0x2733
je 0x1403f5eee
mov r8, r12
mov edx, r14d
mov rcx, rbp
call fcn.1403f4aa0
jmp 0x1403f5eee
mov r8, rax
mov edx, r14d
mov rcx, rbp
call fcn.1403f4380
inc r14d
add r15, 0x90
cmp r14d, dword [rbp + 0x98]
jl 0x1403f5d10
mov r15, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r14, qword [rsp + 0x70]
add rsp, 0x38
pop r13
pop r12
pop rsi
pop rbp
ret
Function at 0x1403f7490
Capabilities:
Check if file exists

Disassembly:
push rbx
sub rsp, 0x20
mov rax, r8
mov r9, rdx
cmp ecx, 2
je 0x1403f74cd
cmp ecx, 0x17
jne 0x1403f74b7
lea r8d, [rcx - 7]
mov rdx, rax
mov rcx, r9
call fcn.1403f7a30
jmp 0x1403f74de
mov ecx, 0x273f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov r8d, 4
mov rdx, rax
mov rcx, r9
call fcn.1403f76c0
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1403f74f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x1403f74f8
xor eax, eax
add rsp, 0x20
pop rbx
ret
sar ebx, 0x1f
and ebx, 0xfffffffe
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r15
sub rsp, 0x20
xor edi, edi
mov r15, rcx
test r8d, r8d
jle 0x1403f8c24
lea rbx, [rdx + 8]
movsxd rsi, r8d
mov rdx, rbx
mov r8d, edi
nop dword [rax + rax]
mov rcx, qword [rdx]
mov eax, 0x7fffffff
sub rax, rdi
cmp rcx, rax
ja 0x1403f8c24
add rdi, rcx
inc r8
add rdx, 0x10
cmp r8, rsi
jl 0x1403f8b60
test rdi, rdi
je 0x1403f8c14
mov rcx, rdi
mov qword [rsp + 0x48], r14
call qword [0x14060c6e8]
mov r14, rax
test rax, rax
jne 0x1403f8bc2
lea ecx, [rax + 0xc]
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rax, [r14 - 1]
mov r14, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov qword [rsp + 0x40], rbp
mov rbp, r14
nop word [rax + rax]
mov r8, qword [rbx]
mov rcx, rbp
mov rdx, qword [rbx - 8]
call sub.VCRUNTIME140.dll_memcpy
add rbp, qword [rbx]
lea rbx, [rbx + 0x10]
sub rsi, 1
jne 0x1403f8bd0
xor r9d, r9d
mov r8d, edi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.WS2_32.dll_send]
mov rcx, r14
movsxd rbx, eax
call qword [0x14060c6f8]
mov rbp, qword [rsp + 0x40]
mov rax, rbx
jmp 0x1403f8baf
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret
mov ecx, 0x2726
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x50]
mov rax, 0xffffffffffffffff
add rsp, 0x20
pop r15
pop rdi
pop rsi
ret

Function at 0x1403f90b0
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov r10, rdx
mov r9, rcx
shr r10, 2
test r10, r10
je 0x1403f90ec
nop
imul eax, dword [r9], 0xcc9e2d51
add r9, 4
rol eax, 0xf
imul ecx, eax, 0x1b873593
xor r8d, ecx
rol r8d, 0xd
add r8d, 0xfaddaf14
lea r8d, [r8 + r8*4]
sub r10, 1
jne 0x1403f90c0
mov rax, rdx
xor ecx, ecx
and eax, 3
sub rax, 1
je 0x1403f9118
sub rax, 1
je 0x1403f910e
cmp rax, 1
jne 0x1403f9130
movzx ecx, byte [r9 + 2]
shl ecx, 0x10
movzx eax, byte [r9 + 1]
shl eax, 8
xor ecx, eax
movzx eax, byte [r9]
xor eax, ecx
imul ecx, eax, 0xcc9e2d51
rol ecx, 0xf
imul eax, ecx, 0x1b873593
xor r8d, eax
xor r8d, edx
mov eax, r8d
shr eax, 0x10
xor eax, r8d
imul ecx, eax, 0x85ebca6b
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
ret