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

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1402dd871
call fcn.1402f17c0
test al, al
jne 0x1402dd871
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1402dd7c2
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1402fbfa0
test rax, rax
je 0x1402dd807
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1402fbfa0
mov rsi, rax
test rax, rax
je 0x1402dd807
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1402dd83a
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1402f05b0
imul rdi, rdi, 0x21
movzx ecx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1402dd820
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1402ecde0
Capabilities:
Get common file path
Initialize winsock library

Disassembly:
sub rsp, 0x1e8
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x1d0], rax
test cl, 2
je 0x1402ece46
mov ecx, 0x202
lea rdx, [rsp + 0x30]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1402ece29
movzx eax, word [rsp + 0x30]
cmp al, 2
jne 0x1402ece23
shr ax, 8
cmp al, 2
je 0x1402ece46
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140398000
add rsp, 0x1e8
ret
mov qword [rsp + 0x200], rsi
lea rcx, str.kernel32
mov qword [rsp + 0x208], rdi
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1402ece79
mov qword [0x14059fd58], rsi
jmp 0x1402ed004
mov qword [rsp + 0x1f0], rbx
lea rdx, [0x1404a3ca8]
mov rcx, rdi
mov qword [rsp + 0x1f8], rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rbx, str.iphlpapi.dll
mov rbp, rax
mov rcx, rbx
lea rdx, [0x1404a3cb8]
call fcn.1403c0754
test rax, rax
je 0x1402ecedd
mov rcx, rbx
test rbp, rbp
je 0x1402ececf
xor edx, edx
lea r8d, [rdx + 8]
call rbp
mov rsi, rax
jmp 0x1402ecfcc
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
jmp 0x1402ecfcc
test rbp, rbp
je 0x1402ecf0c
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1402ecf0c
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
call rbp
mov rsi, rax
jmp 0x1402ecfcc
xor edx, edx
mov qword [rsp + 0x1e0], r14
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r14d, eax
test eax, eax
je 0x1402ecfc4
lea ecx, [rax + 1]
lea rcx, [rcx*2 + 0x18]
call qword [fcn.1403b44e4]
mov rdi, rax
test rax, rax
je 0x1402ecfbb
mov edx, r14d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1402ecfbb
mov rcx, 0xffffffffffffffff
mov rax, rcx
nop dword [rax]
cmp word [rdi + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1402ecf60
mov dword [rdi + rax*2], 0x5c
cmp word [rdi + rcx*2 + 2], si
lea rcx, [rcx + 1]
jne 0x1402ecf72
lea rdx, [rcx + rcx]
sub rdx, rbx
add rdx, rdi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rdx + rbx], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1402ecf90
mov rcx, rdi
test rbp, rbp
je 0x1402ecfb2
xor edx, edx
lea r8d, [rdx + 8]
call rbp
jmp 0x1402ecfb8
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
mov rcx, rdi
call qword [fcn.1403a7ac0]
mov r14, qword [rsp + 0x1e0]
mov rbp, qword [rsp + 0x1f8]
mov rbx, qword [rsp + 0x1f0]
mov qword [0x14059fd58], rsi
test rsi, rsi
je 0x1402ed004
lea rdx, str.if_nametoindex
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1402ed004
mov qword [0x14059fd50], rax
xor edx, edx
mov dword [rsp + 0x20], 3
mov r9d, 2
xor r8d, r8d
lea ecx, [rdx + 6]
call fcn.14030d770
test al, al
lea rcx, [0x1405b90c0]
setne byte [0x1405b90b8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rdi, qword [rsp + 0x208]
xor eax, eax
mov rsi, qword [rsp + 0x200]
mov rcx, qword [rsp + 0x1d0]
xor rcx, rsp
call fcn.140398000
add rsp, 0x1e8
ret
Function at 0x1402f25a0
Capabilities:
Convert ip address from string

Disassembly:
cmp qword [rsp + 0x28], 0
mov qword [r9], 0
jge 0x1402f25b5
mov eax, 0xfffffffe
ret
mov qword [rsp + 0x28], r9
mov r9b, 1
jmp fcn.1402f2030
Function at 0x1402fc730
Capabilities:
Move file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x60
mov rbx, rcx
movaps xmmword [rsp + 0x50], xmm6
lea rcx, [rsp + 0x30]
mov rdi, rdx
call fcn.1402ddb80
mov rcx, rbx
movups xmm6, xmmword [rax]
call fcn.1402fbaf0
mov rcx, rdi
mov rsi, rax
call fcn.1402fbaf0
mov r8d, 1
mov rdx, rax
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1402fc7e0
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x40]
movdqa xmmword [rsp + 0x20], xmm6
call fcn.1402ddb80
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
movups xmm0, xmmword [rax]
movaps xmmword [rsp + 0x30], xmm0
call fcn.1402ddc10
cmp rax, 0x3e8
ja 0x1402fc811
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
mov r8d, 1
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1402fc790
test rsi, rsi
je 0x1402fc7ed
mov rcx, rsi
call fcn.1403a7ac0
test rbx, rbx
je 0x1402fc7fa
mov rcx, rbx
call fcn.1403a7ac0
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x60
pop rdi
ret
test rsi, rsi
je 0x1402fc81e
mov rcx, rsi
call fcn.1403a7ac0
test rbx, rbx
je 0x1402fc82b
mov rcx, rbx
call fcn.1403a7ac0
mov eax, 1
jmp 0x1402fc7fc
Function at 0x1402fccc0
Capabilities:
Resolve dns

Disassembly:
push rdi
push r12
push r13
push r15
sub rsp, 0x28
mov r13, r9
xor edi, edi
mov qword [r9], rdi
xor r15d, r15d
lea r9, [rsp + 0x68]
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r12d, eax
test eax, eax
jne 0x1402fce5e
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rsi
mov rsi, qword [rsp + 0x68]
test rsi, rsi
je 0x1402fce3e
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x20], r14
nop
mov rax, qword [rsi + 0x18]
test rax, rax
je 0x1402fcd2e
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1402fcd20
inc rbx
jmp 0x1402fcd30
xor ebx, ebx
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1402fcd3d
lea ebp, [rax + 0xe]
jmp 0x1402fcd49
cmp eax, 0x17
jne 0x1402fcde1
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], 0
je 0x1402fcde1
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1402fcde1
cmp rax, rbp
jb 0x1402fcde1
lea rcx, [rbp + 0x30]
add rcx, rbx
call qword [fcn.1403b44e4]
mov r14, rax
test rax, rax
je 0x1402fcdf0
mov ecx, dword [rsi]
mov r8, rbp
mov dword [rax], ecx
mov ecx, dword [rsi + 4]
mov dword [rax + 4], ecx
mov ecx, dword [rsi + 8]
mov dword [rax + 8], ecx
mov ecx, dword [rsi + 0xc]
mov dword [rax + 0xc], ecx
lea rcx, [r14 + 0x30]
mov dword [rax + 0x10], ebp
xor eax, eax
mov qword [r14 + 0x18], rax
mov qword [r14 + 0x28], rax
mov qword [r14 + 0x20], rcx
mov rdx, qword [rsi + 0x20]
call fcn.14039b2e0
test rbx, rbx
je 0x1402fcdce
mov rcx, qword [r14 + 0x20]
mov r8, rbx
add rcx, rbp
mov qword [r14 + 0x18], rcx
mov rdx, qword [rsi + 0x18]
call fcn.14039b2e0
test rdi, rdi
cmove rdi, r14
test r15, r15
je 0x1402fcdde
mov qword [r15 + 0x28], r14
mov r15, r14
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1402fcd10
jmp 0x1402fcdf6
mov r12d, 8
mov rcx, qword [rsp + 0x68]
mov r14, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x58]
test rcx, rcx
je 0x1402fce10
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r12d, r12d
je 0x1402fce39
test rdi, rdi
je 0x1402fce35
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call qword [fcn.1403a7ac0]
mov rdi, rbx
test rbx, rbx
jne 0x1402fce20
xor edi, edi
jmp 0x1402fce4d
test rdi, rdi
jne 0x1402fce4d
mov r12d, 0x2af9
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rsi, qword [rsp + 0x60]
mov eax, r12d
mov rbx, qword [rsp + 0x50]
mov qword [r13], rdi
add rsp, 0x28
pop r15
pop r13
pop r12
pop rdi
ret

Function at 0x1402fd2c0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
mov r9, rdx
mov r8, rcx
mov qword [rsp + 0x28], rbx
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call fcn.1403a8094
test rax, rax
je 0x1402fd2f6
cmp rax, 0xffffffffffffffff
cmovne rbx, rax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
add rsp, 0x30
pop rbx
ret
Function at 0x1402fd360
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1402fd43b
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1402e3f90
cmp eax, 4
je 0x1402fd3b8
mov edx, eax
jmp 0x1402fd3e5
cmp byte [0x14059fd64], r14b
jne 0x1402fd3ef
mov r9d, 2
mov dword [rsp + 0x50], r14d
lea rdx, [rsp + 0x50]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
mov eax, edx
test eax, eax
jne 0x1402fd43d
mov eax, dword [rsp + 0x50]
jmp 0x1402fd40e
imul eax, dword [0x14059fd60], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x14059fd60], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1402fd432
sub rsi, rdi
nop word [rax + rax]
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1402fd420
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1402fd390
mov eax, edx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x1402fd450
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1402fd4f3
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1402e3f90
cmp eax, 4
jne 0x1402fd4bf
cmp byte [0x14059fd64], bpl
jne 0x1402fd50b
lea r9d, [rax - 2]
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x1402fd4f8
mov ecx, dword [rsp + 0x50]
cmp ecx, 0xfffffffc
jae 0x1402fd480
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x1402fd480
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
imul ecx, dword [0x14059fd60], 0x41c64e6d
add ecx, 0x3039
mov dword [0x14059fd60], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
jmp 0x1402fd4c7
Function at 0x1402fd530
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r11, rsp
push rbp
push r12
push r15
sub rsp, 0xe0
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov rax, r8
mov rbp, r8
and rax, 0xfffffffffffffffe
mov r12, rdx
mov r15, rcx
cmp rax, 0x100
jae 0x1402fd6bb
test bpl, 1
je 0x1402fd6bb
mov qword [r11 - 0x20], rsi
mov ecx, 0x2b
mov qword [r11 - 0x28], rdi
lea rdi, [rsp + 0x30]
mov qword [r11 - 0x38], r14
lea r14, [r8 - 1]
shr r14, 1
mov qword [r11 + 0x20], rbx
mov rsi, r14
mov qword [r11 - 0x30], r13
je 0x1402fd65b
xor r13d, r13d
nop dword [rax + rax]
mov ebx, 4
lea rdx, [rsp + 0x20]
cmp rsi, rbx
mov r8d, 4
mov rcx, r15
cmovb rbx, rsi
call fcn.1402e3f90
cmp eax, 4
je 0x1402fd5d8
mov ecx, eax
jmp 0x1402fd605
cmp byte [0x14059fd64], r13b
jne 0x1402fd60f
mov r9d, 2
mov dword [rsp + 0x20], r13d
lea rdx, [rsp + 0x20]
xor ecx, ecx
lea r8d, [r9 + 2]
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb ecx, ecx
and ecx, 2
mov eax, ecx
test eax, eax
jne 0x1402fd676
mov eax, dword [rsp + 0x20]
jmp 0x1402fd62e
imul eax, dword [0x14059fd60], 0x41c64e6d
mov ecx, r13d
add eax, 0x3039
mov dword [0x14059fd60], eax
ror eax, 0x10
mov dword [rsp + 0x20], eax
test rbx, rbx
je 0x1402fd652
sub rsi, rbx
nop word [rax + rax]
mov byte [rdi], al
inc rdi
shr eax, 8
sub rbx, 1
jne 0x1402fd640
mov dword [rsp + 0x20], eax
test rsi, rsi
jne 0x1402fd5b0
mov eax, ecx
test ecx, ecx
jne 0x1402fd676
mov r9, rbp
lea rcx, [rsp + 0x30]
mov r8, r12
mov rdx, r14
call fcn.140306100
xor eax, eax
mov r13, qword [rsp + 0xc8]
mov rbx, qword [rsp + 0x118]
mov rsi, qword [rsp + 0xd8]
mov rdi, qword [rsp + 0xd0]
mov r14, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.140398000
add rsp, 0xe0
pop r15
pop r12
pop rbp
ret
mov eax, 0x2b
jmp 0x1402fd69e
Function at 0x140302d90
Capabilities:
Query environment variable

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, rcx
mov ebx, 1
mov edx, ebx
xor ecx, ecx
xor ebp, ebp
call qword [fcn.1403a8174]
mov rdi, rax
test rax, rax
je 0x140302e0d
nop word [rax + rax]
mov r8d, ebx
mov rdx, rdi
mov rcx, r14
mov rbp, rdi
mov esi, ebx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov ebx, eax
test eax, eax
je 0x140302e38
cmp ebx, esi
je 0x140302e38
cmp ebx, 0x8000
ja 0x140302e38
cmp ebx, esi
jb 0x140302e33
mov edx, ebx
mov rcx, rdi
call qword [fcn.1403a8174]
mov rdi, rax
test rax, rax
jne 0x140302dd0
mov rcx, rbp
call qword [fcn.1403a7ac0]
xor eax, eax
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
mov rax, rdi
jmp 0x140302e18
mov rcx, rdi
jmp 0x140302e10

Function at 0x140304bd0
Capabilities:
Convert ip address from string

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, r8
mov rsi, rdx
mov r13, rcx
cmp r8, 4
jb 0x140304d5e
inc rsi
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
sub rdi, 2
call fcn.1403bd300
cmp rdi, rax
je 0x140304cd4
cmp byte [rsi + rax], 0x25
lea r14, [rsi + rax]
mov rdi, rax
jne 0x140304d5e
xor ebp, ebp
lea rdx, [0x1404a7c80]
lea rcx, [r14 + 1]
lea rbx, [r14 + 1]
lea r8d, [rbp + 2]
call fcn.1403b7740
test eax, eax
jne 0x140304c62
movzx eax, byte [r14 + 3]
lea rcx, [r14 + 3]
test al, al
je 0x140304c62
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x140304d5e
mov rcx, rbp
cmp al, 0x5d
je 0x140304c8d
cmp rcx, 0xf
jge 0x140304c8d
inc rbx
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x140304c70
test ebp, ebp
je 0x140304d5e
cmp byte [rbx], 0x5d
jne 0x140304d5e
movsxd rax, ebp
cmp rax, 0x10
jae 0x140304d7f
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x1402e5fb0.1]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x140304cce
mov eax, 7
jmp 0x140304d63
mov word [r14], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi + rsi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x140304d5e
lea r9d, [rax + 0x2d]
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [rax + 0x16]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x140304d56
lea rax, [rsp + 0x30]
mov rdx, 0xffffffffffffffff
inc rdx
cmp byte [rax + rdx], 0
jne 0x140304d17
cmp rdx, rdi
jae 0x140304d56
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x140304d40
mov rdi, rdx
mov byte [rdx + rsi + 1], al
mov byte [rdi + rsi], 0x5d
xor eax, eax
jmp 0x140304d63
mov eax, socket
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140398000
add rsp, 0x70
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.140398914
int3
Function at 0x140308bd0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x148
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rax, qword [rcx]
mov rdi, rcx
mov rsi, r9
mov rbp, r8
mov rcx, qword [rax + 0x10]
mov dword [r9], 0
xor r9d, r9d
mov rcx, qword [rcx + 0x98]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rbx, eax
cmp rbx, 0xffffffffffffffff
jne 0x140308c71
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x140308c35
mov dword [rsi], 0x51
jmp 0x140308c6a
mov r8d, 0x100
lea rdx, [rsp + 0x30]
mov ecx, ebx
call fcn.1402d43d0
mov rcx, qword [rdi + 8]
lea rdx, str.Recv_failure:__s
mov r8, rax
call fcn.1402ea550
mov rax, qword [rdi + 8]
mov dword [rax + 0xcfc], ebx
mov dword [rsi], 0x38
mov rbx, 0xffffffffffffffff
mov edx, dword [rsi]
lea r8, str.nw_in_read_len_zu______d__err_d
mov rcx, qword [rdi + 8]
mov r9, rbp
mov dword [rsp + 0x28], edx
mov rdx, qword [rdi]
mov dword [rsp + 0x20], ebx
call fcn.1402ea6d0
mov rax, rbx
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.140398000
add rsp, 0x148
pop rdi
pop rsi
pop rbp
pop rbx
ret

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

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x1c0
mov rax, qword [0x14058f6b8]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov rax, qword [rdx + 0x20]
mov rsi, rdx
mov rbx, qword [rcx + 0x10]
mov rcx, qword [rax + 0x2e8]
test dword [rcx + 0x84], 0x800
jne 0x140308df1
mov rcx, qword [rbx + 0x98]
lea r8, [rsp + 0x20]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0x80
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
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140308d81
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, eax
mov ebx, eax
call fcn.1402d43d0
mov r9, rax
lea rdx, str.getsockname___failed_with_errno__d:__s
mov r8d, ebx
mov rcx, rsi
call fcn.1402ea550
mov eax, 2
jmp 0x140308df3
mov edx, dword [rsp + 0x20]
lea r9, [rbx + 0x144]
lea r8, [rbx + 0x114]
lea rcx, [rsp + 0x30]
call fcn.1402eb8e0
test al, al
jne 0x140308df1
mov qword [rsp + 0x1e0], rdi
call fcn.1403aa01c
mov ebx, dword [rax]
call fcn.1403aa01c
mov r8d, 0x100
lea rdx, [rsp + 0xb0]
mov ecx, ebx
mov rdi, rax
call fcn.1402d43d0
mov r8d, dword [rdi]
lea rdx, str.ssloc_inet_ntop___failed_with_errno__d:__s
mov r9, rax
mov rcx, rsi
call fcn.1402ea550
mov rdi, qword [rsp + 0x1e0]
mov eax, 2
jmp 0x140308df3
xor eax, eax
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.140398000
mov rbx, qword [rsp + 0x1e8]
add rsp, 0x1c0
pop rsi
ret
Function at 0x140312ba0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push r12
push r14
push r15
sub rsp, 0x20
mov rbp, rcx
mov r12, r9
mov rcx, r8
mov r14, rdx
call fcn.14016be80
mov r8d, dword [rbp + 0x18]
mov ecx, dword [rbp + 0x20]
add rcx, 0x18
mov r15d, eax
lea r9d, [r8 + r8]
add rcx, r9
call qword [fcn.1403b44e4]
mov rbx, rax
test rax, rax
je 0x140312d46
lea rcx, [rax + 0x18]
mov qword [rax], rbp
mov qword [rax + 8], rcx
mov eax, dword [rbp + 0x18]
add rax, rcx
mov qword [rsp + 0x58], rsi
mov qword [rbx + 0x10], rax
mov qword [rsp + 0x60], rdi
cmp r15d, dword [rbp + 0x1c]
jbe 0x140312c30
call qword [rbp]
mov rcx, qword [rbx + 8]
mov r8d, r15d
mov rdx, r14
call qword [rbp + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbp + 0x18]
add r14, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, r14
call qword [rbp + reloc.WS2_32.dll_recv]
mov r15d, dword [rbp + 0x20]
mov rcx, qword [rbx + 8]
call qword [rbp]
mov rcx, qword [rbx + 0x10]
call qword [rbp]
xor esi, esi
test r15, r15
je 0x140312c92
mov rsi, r15
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x50], al
mov rcx, qword [rbx + 8]
call qword [rbp + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x50]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x50], al
mov r8d, 1
mov rcx, qword [rbx + 0x10]
call qword [rbp + reloc.WS2_32.dll_htonl]
sub r15, 1
jne 0x140312c50
mov eax, dword [rbp + 0x1c]
cmp rsi, rax
jae 0x140312cd3
nop word [rax + rax]
mov rcx, qword [rbx + 8]
lea rdx, [0x1404a9ee9]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1404a9eea]
mov r8d, 1
call qword [rbp + reloc.WS2_32.dll_htonl]
mov eax, dword [rbp + 0x1c]
inc rsi
cmp rsi, rax
jb 0x140312ca0
mov rcx, qword [rsp + 0x70]
call fcn.14016be80
mov r9, qword [rbx]
mov r8d, eax
mov rcx, qword [rbx + 8]
mov rdx, r12
call qword [r9 + reloc.WS2_32.dll_htonl]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rbx]
test rdi, rdi
jne 0x140312d02
mov edi, dword [rsi + 0x18]
add rdi, qword [rbx + 0x10]
mov rdx, qword [rbx + 8]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov r8d, dword [rsi + 0x20]
mov rdx, rdi
mov rcx, qword [rbx + 0x10]
call qword [rsi + reloc.WS2_32.dll_htonl]
mov rdx, qword [rbx + 0x10]
mov rcx, rdi
call qword [rsi + reloc.WS2_32.dll_recv]
mov rcx, rbx
call qword [fcn.1403a7ac0]
mov rdi, qword [rsp + 0x60]
xor eax, eax
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
mov eax, 0x1b
add rsp, 0x20
pop r15
pop r14
pop r12
pop rbp
pop rbx
ret
Function at 0x1403170d0
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov rdi, rcx
mov dword [rcx], edx
add rcx, 0x180
call fcn.14031c6a0
cmp dword [rdi], 0
jne 0x140317219
mov qword [rsp + 0x60], rsi
mov rsi, qword [rdi + 0xb8]
cmp byte [rsi + 0x19], 0
je 0x140317214
mov qword [rsp + 0x50], rbx
add rsi, 0xb8
mov qword [rsp + 0x58], rbp
xor eax, eax
mov qword [rsp + 0x30], rsi
mov ebp, 1
mov ebx, 2
lock cmpxchg dword [rsi], ebp
je 0x14031715e
nop
cmp ebx, 0x10
jae 0x14031714b
test ebx, ebx
je 0x140317147
mov eax, ebx
nop dword [rax + rax]
pause
sub rax, rbp
jne 0x140317140
add ebx, ebx
jmp 0x140317156
mov ebx, 2
call qword [sym.imp.KERNEL32.dll_SwitchToThread]
xor eax, eax
lock cmpxchg dword [rsi], ebp
jne 0x140317130
mov rax, qword [rdi + 0xb8]
xor ebx, ebx
mov byte [rsp + 0x38], bpl
mov rbp, qword [rsp + 0x58]
cmp byte [rax + 0x19], bl
je 0x140317208
mov byte [rax + 0x19], bl
lea r8, [0x14031cd10]
mov rcx, qword [rdi + 0xb8]
xor edx, edx
movzx eax, byte [rdi + 0xc0]
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov byte [rcx + 0x18], al
xor ecx, ecx
mov rax, qword [rdi + 0xb8]
inc dword [rax + 8]
mov rsi, qword [rdi + 0xb8]
mov r9, rsi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140317204
lea r9, str.thrd_success__ret
mov edx, 0xcc
lea r8, [0x1404d34b0]
lea rcx, str.D:Tools_agentworkspaceMars_Releasemarsmarscomm_thread.._windows_thread_thread.h
call sym.WetypeInstaller.exe___ASSERT
mov rax, qword [rdi + 0xb8]
lea rdx, [rsp + 0x30]
mov byte [rax + 0x19], 1
mov rcx, qword [rdi + 0xb8]
call fcn.140316f50
cmp byte [rsp + 0x38], bl
je 0x14031720f
jmp 0x140317208
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0x30]
xchg dword [rax], ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret