joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140164615
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x140305150
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, Ordinal_46
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14054a080]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x14057d425]
call fcn.140168477
nop
lea rdx, [rbp + 0x128]
lea rcx, [rbp + 0x104]
call fcn.1402f95d0
mov rcx, rax
call fcn.14016263a
mov qword [rbp + 0x148], rax
call fcn.140167919
mov qword [rbp + 0x150], rax
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x150]
call fcn.140164eb2
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
je 0x140305216
lea r9, [rbp + 0x24]
mov r8d, 0x40
mov edx, 4
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
mov rax, qword [rbp + 8]
mov dword [rax], 0x1ee7c0de
lea r9, [rbp + 0x24]
mov r8d, dword [rbp + 0x24]
mov edx, 4
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
nop
lea rcx, [rbp - 0x20]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14016710d
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140164822
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret

Function at 0x14016461f
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14036d930
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r10, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x28], rcx
xor esi, esi
cmp byte [r8 + 0xa], sil
je 0x14036d964
mov eax, esi
lea ecx, [rax + 0x7e]
xor byte [r8 + rax], cl
inc rax
cmp rax, 9
jb 0x14036d950
mov byte [r8 + 0xa], sil
add r8, 9
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x30]
call fcn.140164485
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0xf
jbe 0x14036d989
mov rbx, qword [rbx]
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.140168cf1
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14036da03
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14036d9fe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14036d9fe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167054
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x1401648c7
Capabilities:
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
jmp 0x1403bcd60
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x138
mov rax, qword [0x14054a080]
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 0x1403bce67
lea rax, [0x140165f33]
cmp qword [rsi + rcx*8 + 0x4e8], rax
jne 0x1403bce67
cmp qword [rbx], r13
je 0x1403bcdee
test rdi, rdi
je 0x1403bce67
mov rdx, 0xffffffffffffffff
xor r9d, r9d
mov r8, rdx
mov rcx, rbp
call fcn.140168c2e
cmp eax, 0xffffffff
je 0x1403bce67
test al, 1
je 0x1403bce67
mov rax, qword [rbx]
test rax, rax
jne 0x1403bce40
mov rax, qword [rsi]
mov ecx, dword [rax + 0xb70]
add ecx, ecx
movsxd rcx, ecx
mov qword [rbx + 8], rcx
call qword [fcn.1401655ba]
mov rdi, qword [rbx + 8]
mov qword [rbx], rax
mov qword [rbx + 0x10], r13
mov qword [rbx + 0x18], r13
test rax, rax
je 0x1403bce63
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 0x1403bce67
add qword [rbx + 0x10], rcx
jmp 0x1403bce67
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 0x1403bced4
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp eax, 0x2733
jne 0x1403bcea0
mov dword [r14], 0x51
mov rax, r13
jmp 0x1403bced7
mov r8d, 0x100
lea rdx, [rsp + 0x20]
mov ecx, ebx
call fcn.140166bb8
mov rcx, qword [rsi]
lea rdx, str.Send_failure:__s
mov r8, rax
call fcn.140168e95
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.140164822
add rsp, 0x138
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14016493f
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
jmp 0x140311bd0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x20]
lea rcx, [0x14057d3df]
call fcn.140168477
nop
mov qword [rbp + 8], 0x26f
mov qword [rbp + 0x28], 0xe3
mov qword [rbp + 0x48], 0
jmp 0x140311c15
mov rax, qword [rbp + 0x48]
inc rax
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0xe3
jae 0x140311ca6
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x48]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0x64], eax
mov eax, dword [rbp + 0x64]
and eax, 1
test eax, eax
je 0x140311c6b
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140311c75
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0x64]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x48]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140311c0a
mov qword [rbp + 0x88], 0xe3
jmp 0x140311cc4
mov rax, qword [rbp + 0x88]
inc rax
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0x26f
jae 0x140311d6d
mov rax, qword [rbp + 0x1e0]
mov rcx, qword [rbp + 0x88]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0xa4]
and eax, 1
test eax, eax
je 0x140311d29
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140311d33
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xa4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rbp + 0x1e0]
mov rdx, qword [rbp + 0x88]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140311cb3
mov qword [rbp + 0xc8], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rbp + 0x1e0]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x1e0]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rbp + 0xe4], eax
mov eax, dword [rbp + 0xe4]
and eax, 1
test eax, eax
je 0x140311dcd
mov dword [rbp + 0x1b4], 0x9908b0df
jmp 0x140311dd7
mov dword [rbp + 0x1b4], 0
mov eax, dword [rbp + 0xe4]
shr eax, 1
xor eax, dword [rbp + 0x1b4]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rbp + 0x1e0]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rbp + 0x1e0]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rbp + 0x1e0]
mov dword [rax], 0
lea rsp, [rbp + 0x1c8]
pop rdi
pop rbp
ret
Function at 0x1401649bc
Capabilities:
Receive data
Receive data on socket

Disassembly:
jmp 0x1403bcb10
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 0x1403bcb52
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 0x140164ad9
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
jmp 0x14040e930
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 [fcn.1401655ba]
mov rdi, rax
test rax, rax
jne 0x14040e972
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 0x14040e9b9
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
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 0x14040ea12
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.OLEAUT32.dll_VariantClear]
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.OLEAUT32.dll_VariantClear]
sub rbp, 1
jne 0x14040e9d0
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x14040ea53
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x140508a1f]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x140508a20]
mov r8d, 1
call qword [rbx + reloc.OLEAUT32.dll_VariantClear]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x14040ea20
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 0x140164e85
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1403795d0
cmp byte [rcx + 5], 0
je 0x1403795f3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax + 0x7e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 4
jb 0x1403795e0
mov byte [rcx + 5], 0
mov rax, rcx
ret

Function at 0x140165105
Capabilities:
Terminate process

Disassembly:
jmp 0x14040fe9c
push rbx
sub rsp, 0x20
mov rbx, rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
Function at 0x140165515
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14036da50
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r10, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x28], rcx
xor ebx, ebx
cmp byte [r8 + 0xb], bl
je 0x14036da84
mov ecx, ebx
lea eax, [rcx + 0x7e]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 0xa
jb 0x14036da70
mov byte [r8 + 0xb], bl
add r8, 0xa
lea r9, [rsp + 0x20]
mov rdx, r10
lea rcx, [rsp + 0x50]
call fcn.140164485
nop
cmp byte [rdi + 0xb], 0
je 0x14036dab4
lea eax, [rbx + 0x7e]
xor byte [rbx + rdi], al
inc rbx
cmp rbx, 0xa
jb 0x14036daa1
mov byte [rdi + 0xb], 0
lea r8, [rdi + 0xa]
lea r9, [rsp + 0x20]
mov rdx, rdi
lea rcx, [rsp + 0x30]
call fcn.140164485
nop
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
movzx edx, byte [rsp + 0x20]
mov rcx, rsi
call fcn.1401613d4
nop
mov rdx, qword [rsp + 0x48]
cmp rdx, 0xf
jbe 0x14036db24
inc rdx
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14036db1e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14036db1e
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167054
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x14036db64
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14036db5f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14036db5f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140167054
mov rax, rsi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140165579
Capabilities:
Enumerate processes

Disassembly:
jmp 0x140317180
push rbp
push rsi
push rdi
sub rsp, 0xc50
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x21c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14054a080]
xor rax, rbp
mov qword [rbp + 0xc28], rax
lea rcx, [0x14057d422]
call fcn.140168477
nop
lea rdx, [rbp + 0x758]
lea rcx, [rbp + 0x734]
call fcn.1402f9ff0
mov rcx, rax
call fcn.140167905
mov qword [rbp + 8], rax
lea rdx, [rbp + 0x7c8]
lea rcx, [rbp + 0x7a4]
call fcn.1402fbe90
mov rcx, rax
call fcn.140167103
mov qword [rbp + 0x10], rax
lea rdx, [rbp + 0x818]
lea rcx, [rbp + 0x7f4]
call fcn.1402fd140
mov rcx, rax
call fcn.140162086
mov qword [rbp + 0x18], rax
lea rdx, [rbp + 0x868]
lea rcx, [rbp + 0x844]
call fcn.1402fe080
mov rcx, rax
call fcn.140162fc7
mov qword [rbp + 0x20], rax
lea rdx, [rbp + 0x8b8]
lea rcx, [rbp + 0x894]
call fcn.1402fee60
mov rcx, rax
call fcn.140167103
mov qword [rbp + 0x28], rax
lea rdx, [rbp + 0x908]
lea rcx, [rbp + 0x8e4]
call fcn.1402ffb80
mov rcx, rax
call fcn.140165fe7
mov qword [rbp + 0x30], rax
mov dword [rbp + 0x80], 0x238
lea rax, [rbp + 0x84]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
xor edx, edx
mov ecx, 2
call fcn.140164700
mov qword [rbp + 0x2d8], rax
mov dword [rbp + 0x940], 0x238
lea rax, [rbp + 0x944]
mov rdi, rax
xor eax, eax
mov ecx, 0x234
rep stosb byte [rdi], al
lea rax, [rbp + 0x80]
lea rcx, [rbp + 0x940]
mov rdi, rax
mov rsi, rcx
mov ecx, 0x238
rep movsb byte [rdi], byte [rsi]
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x2d8]
call fcn.1401656d2
test eax, eax
je 0x1403173fb
lea rax, [rbp + 8]
mov qword [rbp + 0x2f8], rax
mov rax, qword [rbp + 0x2f8]
mov qword [rbp + 0x318], rax
mov rax, qword [rbp + 0x2f8]
add rax, 0x30
mov qword [rbp + 0x338], rax
jmp 0x14031733b
mov rax, qword [rbp + 0x318]
add rax, 8
mov qword [rbp + 0x318], rax
mov rax, qword [rbp + 0x338]
cmp qword [rbp + 0x318], rax
je 0x1403173e0
mov rax, qword [rbp + 0x318]
mov rax, qword [rax]
mov qword [rbp + 0x358], rax
lea rax, [rbp + 0xac]
mov qword [rbp + 0x58], rax
mov rdx, qword [rbp + 0x58]
mov rcx, qword [rbp + 0x358]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x1403173db
mov byte [0x140553728], 1
mov dword [rbp + 0xbb4], 0
lea rdx, [rbp + 0xbb4]
lea rcx, [rbp + 0xb94]
call fcn.140166816
nop
mov dword [rbp + 0xbf4], 0
lea rdx, [rbp + 0xbf4]
lea rcx, [rbp + 0xbd4]
call fcn.140162536
nop
lea rcx, [rbp + 0xc14]
call fcn.140166ff0
nop
mov dword [0], 0xdead
jmp 0x140317329
lea rdx, [rbp + 0x80]
mov rcx, qword [rbp + 0x2d8]
call fcn.1401673e7
test eax, eax
jne 0x1403172fc
mov rcx, qword [rbp + 0x2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x20]
lea rdx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.14016710d
mov rcx, qword [rbp + 0xc28]
xor rcx, rbp
call fcn.140164822
lea rsp, [rbp + 0xc30]
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401655e7
Capabilities:
Connect socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
jmp 0x1403cfd10
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x14054a080]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov edx, 1
mov dword [rsp + 0x34], reloc.WS2_32.dll_recv
mov ebp, 2
mov dword [rsp + 0x30], 1
mov ecx, ebp
mov rsi, r9
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x1403cfd65
jmp 0x1403cff14
mov qword [rsp + 0x80], rbx
mov ecx, 0x7f000001
xor ebx, ebx
mov word [rsp + 0x38], bp
mov qword [rsp + 0x40], rbx
call qword [sym.imp.WS2_32.dll_htonl]
lea r9, [rsp + 0x30]
mov word [rsp + 0x3a], bx
mov edx, 0xffff
mov dword [rsp + 0x3c], eax
lea r8d, [rbx + 4]
mov qword [rsi + 8], 0xffffffffffffffff
mov rcx, rdi
mov qword [rsi], 0xffffffffffffffff
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x1403cfeeb
lea r8d, [rbx + 0x10]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x1403cfeeb
lea r8, [rsp + 0x34]
mov rcx, rdi
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x1403cfeeb
lea edx, [rbx + 1]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x1403cfeeb
xor r8d, r8d
lea edx, [rbx + 1]
mov ecx, ebp
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rsi], rax
cmp rax, 0xffffffffffffffff
je 0x1403cfeeb
lea r8d, [rbx + 0x10]
mov rcx, rax
lea rdx, [rsp + 0x38]
call qword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x1403cfeeb
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_accept]
mov qword [rsi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x1403cfeeb
mov r9, rsi
lea r8, [0x1404ff8cc]
lea edx, [rbx + 0xc]
lea rcx, [rsp + 0x48]
call fcn.140162f40
lea rax, [rsp + 0x48]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x1403cfe85
mov rcx, qword [rsi]
lea rdx, [rsp + 0x48]
xor r9d, r9d
mov r8d, ebx
call qword [sym.imp.WS2_32.dll_send]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1403cfeeb
mov rcx, qword [rsi + 8]
lea rdx, [rsp + 0x54]
xor r9d, r9d
lea r8d, [r9 + 0xc]
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
cmp rcx, rbx
jne 0x1403cfeeb
mov r8, rbx
lea rdx, [rsp + 0x54]
lea rcx, [rsp + 0x48]
call fcn.140163b75
test eax, eax
jne 0x1403cfeeb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
jmp 0x1403cff0c
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rsi + 8]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
mov rbx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140164822
lea r11, [rsp + 0x70]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1401656f5
Capabilities:
Resolve dns

Disassembly:
jmp 0x1403d4e00
push rbx
push r12
push r13
push r14
push r15
sub rsp, 0x20
xor r13d, r13d
mov r12, r9
mov qword [r9], r13
mov ebx, r13d
lea r9, [rsp + 0x68]
mov r15d, r13d
call qword [sym.imp.WS2_32.dll_getaddrinfo]
mov r14d, eax
test eax, eax
jne 0x1403d4fc4
mov qword [rsp + 0x58], rsi
mov rsi, qword [rsp + 0x68]
mov qword [rsp + 0x60], rdi
test rsi, rsi
je 0x1403d4fa4
mov qword [rsp + 0x50], rbp
mov eax, dword [rsi + 4]
cmp eax, 2
jne 0x1403d4e5d
lea ebp, [rax + 0xe]
jmp 0x1403d4e69
cmp eax, 0x17
jne 0x1403d4f11
lea ebp, [rax + 5]
cmp qword [rsi + 0x20], r13
je 0x1403d4f11
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x1403d4f11
cmp rax, rbp
jb 0x1403d4f11
mov ecx, Ordinal_50
call qword [fcn.1401655ba]
mov rdi, rax
test rax, rax
je 0x1403d4f4c
mov ecx, dword [rsi]
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
mov rcx, rbp
mov dword [rax + 0x10], ebp
mov qword [rax + 0x20], r13
mov qword [rax + 0x18], r13
mov qword [rax + 0x28], r13
call qword [fcn.1401655ba]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x1403d4f3b
mov rdx, qword [rsi + 0x20]
mov r8, rbp
mov rcx, rax
call fcn.140164886
mov rcx, qword [rsi + 0x18]
test rcx, rcx
je 0x1403d4efe
call qword [case.0x1403aaa29.0]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x1403d4f20
test rbx, rbx
cmove rbx, rdi
test r15, r15
je 0x1403d4f0e
mov qword [r15 + 0x28], rdi
mov r15, rdi
mov rsi, qword [rsi + 0x28]
test rsi, rsi
jne 0x1403d4e50
jmp 0x1403d4f52
mov rcx, qword [rdi + 0x20]
mov r14d, 8
call qword [fcn.1401638cd]
mov rcx, rdi
call qword [fcn.1401638cd]
jmp 0x1403d4f52
mov rcx, rdi
mov r14d, 8
call qword [fcn.1401638cd]
jmp 0x1403d4f52
mov r14d, 8
mov rcx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x50]
test rcx, rcx
je 0x1403d4f67
call qword [sym.imp.WS2_32.dll_freeaddrinfo]
test r14d, r14d
je 0x1403d4f9f
test rbx, rbx
je 0x1403d4f9a
mov rcx, qword [rbx + 0x20]
call qword [fcn.1401638cd]
mov rcx, qword [rbx + 0x18]
call qword [fcn.1401638cd]
mov rdi, qword [rbx + 0x28]
mov rcx, rbx
call qword [fcn.1401638cd]
mov rbx, rdi
test rdi, rdi
jne 0x1403d4f71
mov rbx, r13
jmp 0x1403d4fb3
test rbx, rbx
jne 0x1403d4fb3
mov r14d, 0x2af9
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_WSASetLastError]
mov rdi, qword [rsp + 0x60]
mov eax, r14d
mov rsi, qword [rsp + 0x58]
mov qword [r12], rbx
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbx
ret
Function at 0x140165709
Capabilities:
Check for process debug object

Disassembly:
jmp 0x140304800
push rbp
push rdi
sub rsp, 0x118
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14054a080]
xor rax, rbp
mov qword [rbp + 0xd8], rax
lea rcx, [0x14057d425]
call fcn.140168477
nop
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rsp + 0x20], 0
mov r9d, 8
lea r8, [rbp + 8]
mov edx, reloc.WLDAP32.dll_Ordinal_30
mov rcx, rax
call fcn.140166f1e
nop
cmp qword [rbp + 8], 0
je 0x140304878
mov dword [rbp + 0xd4], 1
jmp 0x140304882
mov dword [rbp + 0xd4], 0
mov eax, dword [rbp + 0xd4]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, reloc.WS2_32.dll_accept
call fcn.14016710d
mov eax, edi
mov rcx, qword [rbp + 0xd8]
xor rcx, rbp
call fcn.140164822
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x1401659fc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140376df0
push rbx
sub rsp, 0x30
xor eax, eax
mov rbx, rdx
cmp byte [rcx + 0x10], al
je 0x140376e13
lea edx, [rax + 0x7e]
xor byte [rax + rcx], dl
inc rax
cmp rax, 0xf
jb 0x140376e00
mov byte [rcx + 0x10], 0
lea r8, [rcx + 0xf]
mov rdx, rcx
mov rcx, rbx
lea r9, [rsp + 0x48]
call fcn.140164485
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x140165a38
Capabilities:
Write file on windows

Disassembly:
jmp 0x1401b7970
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, reloc.WS2_32.dll_accept
call fcn.140168477
nop
mov r9, qword [rbp + 0xf8]
mov r8, qword [rbp + 0xf0]
mov rdx, qword [rbp + 0xe8]
mov rcx, qword [rbp + 0xe0]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret

Function at 0x140165ab5
Capabilities:
Get geographical location

Disassembly:
jmp 0x1404127c0
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 0x1404127fa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1404127ff
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 0x140412848
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 0x140412848
dec r8
sub rdx, 1
jne 0x14041282e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret