joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140003d64
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140003dae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140003dae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140003dae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140003dae
cmp dword [rcx + 0x84], 0xe
jbe 0x140003dae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140003db0
xor al, al
add rsp, 0x28
ret

Function at 0x140009850
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400098bf
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400098bf
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400098bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400098bf
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400098bf
cmp dword [rcx + 0x84], 0xe
jbe 0x1400098bf
cmp dword [rcx + 0xf8], 0
je 0x1400098bf
mov ecx, ebx
call fcn.140009970
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000974c
nop
cmp dword [rbp + 0x20], 0
je 0x14000990d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140009918
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140009850

Function at 0x140009a54
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009850
Function at 0x14000ee40
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000ee70
xor eax, eax
jmp 0x14000ef33
mov rbp, rbx
cmp word [rax], si
je 0x14000ee95
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ee7c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ee78
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000ed60
movsxd r14, eax
test eax, eax
jne 0x14000eed3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ee69
mov rcx, r14
call fcn.14000b5a0
mov rdi, rax
test rax, rax
jne 0x14000eeec
xor ecx, ecx
call fcn.14000a8b4
jmp 0x14000eec8
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000ed60
test eax, eax
jne 0x14000ef1d
mov rcx, rdi
call fcn.14000a8b4
jmp 0x14000ef27
xor ecx, ecx
call fcn.14000a8b4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400133bc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400133d2
mov al, 1
jmp 0x140013432
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400133e3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140013430
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000f760
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140013430
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140013430
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140013430
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140013432
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140014470
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000de30
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400144fa
cmp byte [rbp - 0x21], r15b
je 0x1400144f5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140014530
call fcn.14000ab04
test eax, eax
jne 0x14001451c
cmp byte [rbp - 0x21], r15b
je 0x140014514
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140014530
cmp byte [rbp - 0x21], r15b
je 0x14001452d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000d410
test eax, eax
jne 0x1400145d0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000de30
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001456f
cmp byte [rbp - 0x21], r15b
je 0x1400145a4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400145a4
call fcn.14000ab04
test eax, eax
jne 0x140014590
cmp byte [rbp - 0x21], r15b
je 0x140014589
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400145a4
cmp byte [rbp - 0x21], r15b
je 0x1400145a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000d410
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400145d0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400145d3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400145e1
mov rcx, rdi
call fcn.14000a8b4
cmp byte [rbp + 0x3f], r15b
je 0x1400145f0
mov rcx, qword [rbp + 0x27]
call fcn.14000a8b4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140014c08
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140025bc0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140014c5f
cmp word [rdx], r13w
jne 0x140014c5f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140014c64
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140014d89
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140014daa
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140014c9d
mov rdx, r9
mov word [rbx], cx
jmp 0x140014cc4
cmp r9, r8
jae 0x140014cd4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140014c7e
jmp 0x140014d89
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140014d7e
cmp dword [rsp + 0x80], esi
je 0x140014d7e
lea r8, [0x140025bc0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140014d56
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140014d26
mov word [rbx], r13w
jmp 0x140014d86
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140014d33
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140014d86
cmp word [rsp + 0x70], r13w
jne 0x140014d63
cmp rbx, r14
je 0x140014d20
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140014b28
cmp word [rsp + 0x70], r13w
je 0x140014d89
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140025bc0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140014d83
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140014d89
Function at 0x140017580
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400175a8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400175a8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14001126c
Capabilities:
Terminate process

Disassembly:
jmp 0x140015de0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011316
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017130
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017150
xor al, al
jmp 0x1400171d1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017163
xor al, al
jmp 0x1400171d1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001718d
xor al, al
jmp 0x1400171d1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400171a1
xor al, al
jmp 0x1400171d1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400171b3
xor al, al
jmp 0x1400171d1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400171cf
xor al, al
jmp 0x1400171d1
mov al, 1
add rsp, 0x38
ret
Function at 0x180080c90
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x160
mov rax, qword [0x1800b78c0]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
mov r14d, edx
mov rcx, qword [0x1800be108]
test rcx, rcx
jne 0x180080ce3
movzx edx, word [0x1800be244]
test dx, dx
je 0x180080ce3
lea rcx, [0x1800be140]
call fcn.180081f40
test al, al
je 0x180080d59
mov rcx, qword [0x1800be108]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1800be110]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1800be120], eax
cmp eax, 0xffffffff
jne 0x180080d73
cmp qword [0x1800be108], 0
jne 0x180080d73
movzx edx, word [0x1800be244]
test dx, dx
je 0x180080d73
lea rcx, [0x1800be140]
call fcn.180081f40
mov rcx, qword [0x1800be108]
test al, al
je 0x180080d53
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x1800be110]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x1800be120], eax
cmp eax, 0xffffffff
jne 0x180080d73
mov rcx, qword [0x1800be108]
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
mov dword [0x1800be120], 0xffffffff
mov qword [0x1800be108], rbx
xor al, al
jmp 0x180080ed0
lea eax, [r14 - 1]
mov qword [rsp + 0x188], rbp
xor ebx, ebx
mov qword [rsp + 0x190], rdi
mov rdi, qword [rsi]
test eax, 0xfffffffd
je 0x180080e2b
movabs rax, 0x6addaf8cef1b7c1
xor edx, edx
mov qword [rdi], rax
mov r8d, 0x104
mov rcx, qword [rsi + 8]
sub rcx, qword [rsi]
mov qword [rdi + 0x10], rcx
add rcx, 0xfffffffffffffff8
mov rax, qword [rsi + 0x10]
mov qword [rax], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], rbx
call sub.VCRUNTIME140.dll_memset
mov r9d, dword [0x1800be484]
lea r8, [rsp + 0x40]
lea rdx, [0x1800be380]
lea rcx, [0x1800be4a0]
call fcn.180084550
movsxd rax, dword [0x1800be484]
lea r8, [rdi + 0x20]
mov rdx, qword [rdi + 0x10]
lea r9, [rsp + 0x30]
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call fcn.180083480
mov rbp, qword [rsp + 0x30]
add rbp, 0x20
mov qword [rdi + 0x10], rbx
jmp 0x180080e6c
movabs rax, 0xc1a6f29ed6b6c38
mov qword [rdi], rax
mov rax, qword [rsi + 8]
sub rax, qword [rsi]
add rax, 0xffffffffffffffe8
mov qword [rdi + 0x10], rax
je 0x180080e68
nop dword [rax]
mov rax, qword [rsi + 0x10]
movzx ecx, byte [rbx + rax]
mov byte [rdi + rbx + 0x20], cl
inc rbx
mov rax, qword [rdi + 0x10]
cmp rbx, rax
jb 0x180080e50
lea rbp, [rax + 0x20]
mov qword [rdi + 0x18], rbp
lea rcx, [0x1800be0e0]
mov rbx, qword [0x1800be108]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_send]
mov rcx, qword [rsi]
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rdi, qword [rsp + 0x190]
lea eax, [r14 - 3]
mov rbp, qword [rsp + 0x188]
cmp eax, 1
ja 0x180080ece
cmp byte [0x1800b7834], 5
jne 0x180080ece
shl byte [0x1800b7835], 4
mov byte [0x1800b7834], 6
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1800855f0
add rsp, 0x160
pop r14
pop rsi
pop rbx
ret
Function at 0x180081ab0
Capabilities:
Get mac address on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1800b78c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rsi, rcx
mov dword [rsp + 0x20], 0
xor ecx, ecx
lea rdx, [rsp + 0x20]
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov ecx, dword [rsp + 0x20]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea rdx, [rsp + 0x20]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
xor r10d, r10d
xor edi, edi
cmp dword [rbx + 0x194], edi
jle 0x180081b67
mov r8, rsi
lea r9, [rbx + 0x198]
lea r11d, [rdi + 0x37]
nop dword [rax + rax]
movzx edx, byte [r9]
lea r8, [r8 + 2]
mov ecx, edx
lea r9, [r9 + 1]
shr ecx, 4
and edx, 0xf
cmp ecx, 0xa
mov eax, 0x30
cmovae eax, r11d
add al, cl
mov byte [r8 - 2], al
cmp edx, 0xa
mov eax, 0x30
cmovae eax, r11d
add edi, 2
add al, dl
inc r10d
mov byte [r8 - 1], al
cmp r10d, dword [rbx + 0x194]
jl 0x180081b20
movsxd rax, edi
mov rcx, rbx
test edi, edi
jle 0x180081bf8
mov qword [rsp + 0x48], rbp
mov byte [rax + rsi - 1], 0
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
lea rcx, str.iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x180081bee
lea rdx, [0x18008b3b8]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x180081be5
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0
xor ecx, ecx
call rsi
cmp eax, 0x6f
jne 0x180081be5
mov ecx, dword [rsp + 0x24]
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea rdx, [rsp + 0x24]
mov rcx, rax
mov rbx, rax
call rsi
mov rcx, rbx
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x48]
lea eax, [rdi - 1]
jmp 0x180081c02
call sub.api_ms_win_crt_heap_l1_1_0.dll_free
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800855f0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180081f40
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x1800b78c0]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
movzx edi, dx
mov rbx, rcx
mov ecx, 0x202
lea rdx, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x180081fd6
mov qword [rsp + 0x1f0], rsi
movzx ecx, di
mov esi, 2
mov word [0x1800be110], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [0x1800be114]
mov rdx, rbx
mov ecx, esi
mov word [0x1800be112], ax
call qword [sym.imp.WS2_32.dll_inet_pton]
xor r8d, r8d
lea edx, [rsi - 1]
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rsi, qword [rsp + 0x1f0]
mov qword [0x1800be108], rax
cmp rax, 0xffffffffffffffff
je 0x180081fd6
mov al, 1
jmp 0x180081fe3
mov qword [0x1800be108], 0
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.1800855f0
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1d0
pop rdi
ret
Function at 0x1800844f0
Capabilities:
Encode data using xor

Disassembly:
push rdi
xor eax, eax
mov rdi, r9
mov r11, rcx
test r8, r8
je 0x180084541
mov r9, qword [rsp + 0x30]
mov r10, rcx
mov qword [rsp + 0x10], rbx
sub rdx, rcx
mov rbx, r8
xor ecx, ecx
lea r10, [r10 + 1]
cmp rax, r9
cmovb rcx, rax
movzx eax, byte [rdx + r10 - 1]
xor al, byte [rcx + rdi]
mov byte [r10 - 1], al
lea rax, [rcx + 1]
sub rbx, 1
jne 0x180084512
mov byte [r11 + r8], bl
mov rbx, qword [rsp + 0x10]
pop rdi
ret
mov byte [rcx + r8], al
pop rdi
ret

Function at 0x180084550
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x1800b78c0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rbp, r8
movsxd r14, r9d
mov rsi, rdx
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x140]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
xor edi, edi
mov byte [rsp + 0x22], 0
xor edx, edx
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rbx + r8], dl
jne 0x1800845b3
test r8, r8
je 0x1800845e8
lea rax, [rsp + 0x30]
sub rsi, rax
nop dword [rax]
movzx eax, dl
lea rcx, [rsp + 0x30]
add rcx, rdx
inc rdx
xor al, byte [rsi + rcx]
mov byte [rcx], al
cmp rdx, r8
jb 0x1800845d0
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], dil
jne 0x1800845f0
test rax, rax
je 0x18008464e
lea rsi, [rsp + 0x140]
nop word [rax + rax]
movzx eax, word [rbx + rdi]
lea rcx, [rsp + 0x20]
xor edx, edx
mov word [rsp + 0x20], ax
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
mov byte [rsi], al
lea rsi, [rsi + 1]
mov rax, 0xffffffffffffffff
add rdi, 2
nop word [rax + rax]
inc rax
cmp byte [rbx + rax], 0
jne 0x180084640
cmp rdi, rax
jb 0x180084610
xor eax, eax
test r14d, r14d
je 0x180084690
lea r9, [rsp + 0x30]
mov rdx, rbp
sub r9, rbp
mov r8, r14
xor ecx, ecx
lea rdx, [rdx + 1]
cmp rax, rdi
cmovb rcx, rax
movzx eax, byte [rsp + rcx + 0x140]
xor al, byte [r9 + rdx - 1]
mov byte [rdx - 1], al
lea rax, [rcx + 1]
sub r8, 1
jne 0x180084663
mov byte [r14 + rbp], r8b
jmp 0x180084694
mov byte [r14 + rbp], al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800855f0
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800846c0
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x230
mov rax, qword [0x1800b78c0]
xor rax, rsp
mov qword [rsp + 0x220], rax
mov r14, r8
mov rsi, rdx
mov rbp, rcx
xor edx, edx
mov r8d, 0x100
lea rcx, [rsp + 0x20]
mov rbx, r9
call sub.VCRUNTIME140.dll_memset
test rbx, rbx
je 0x1800848ac
mov edi, dword [rsp + 0x270]
lea eax, [rdi - 1]
cmp eax, 0xff
ja 0x1800848ac
xor edx, edx
lea rcx, [rsp + 0x120]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
cmp edi, 0x100
jne 0x1800847a5
lea rax, [rsp + 0x120]
lea ecx, [r10 + 2]
nop
lea rax, [rax + 0x80]
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
lea rbx, [rbx + 0x80]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [rbx - 0x60]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [rbx - 0x50]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [rbx - 0x40]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [rbx - 0x30]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [rbx - 0x20]
movups xmmword [rax - 0x30], xmm1
movups xmm1, xmmword [rbx - 0x10]
movups xmmword [rax - 0x20], xmm0
movups xmmword [rax - 0x10], xmm1
sub rcx, 1
jne 0x180084750
jmp 0x1800847da
mov r8d, r10d
mov r9, r10
nop dword [rax + rax]
mov eax, r8d
mov byte [rsp + r9 + 0x20], r8b
cdq
lea r9, [r9 + 1]
idiv edi
inc r8d
movsxd rax, edx
movzx ecx, byte [rax + rbx]
mov byte [rsp + r9 + 0x11f], cl
cmp r8d, 0x100
jl 0x1800847b0
mov edx, r10d
mov r8, r10
movzx eax, byte [rsp + r8 + 0x120]
movzx r9d, byte [rsp + r8 + 0x20]
add edx, eax
add edx, r9d
and edx, 0x800000ff
jge 0x180084806
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea rcx, [rsp + 0x20]
add rcx, rax
movzx eax, byte [rcx]
mov byte [rsp + r8 + 0x20], al
inc r8
mov byte [rcx], r9b
cmp r8, 0x100
jl 0x1800847e0
mov eax, r10d
test rbp, rbp
je 0x1800848a8
test rsi, rsi
je 0x1800848a8
test r14, r14
jle 0x1800848a8
sub rbp, rsi
nop dword [rax]
inc eax
and eax, 0x800000ff
jge 0x180084852
dec eax
or eax, 0xffffff00
inc eax
movsxd rcx, eax
lea r8, [rsp + 0x20]
add r8, rcx
movzx r9d, byte [r8]
lea ecx, [r10 + r9]
and ecx, 0x800000ff
jge 0x180084877
dec ecx
or ecx, 0xffffff00
inc ecx
movsxd r10, ecx
lea rdx, [rsp + 0x20]
movzx ecx, byte [rdx + r10]
mov byte [r8], cl
mov byte [rdx + r10], r9b
movzx edx, byte [r8]
add rdx, r9
movzx ecx, dl
movzx edx, byte [rsp + rcx + 0x20]
xor dl, byte [rsi + rbp]
mov byte [rsi], dl
inc rsi
sub r14, 1
jne 0x180084840
mov al, 1
jmp 0x1800848ae
xor al, al
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.1800855f0
lea r11, [rsp + 0x230]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x1800859c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rax, qword [0x1800b78c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov edx, dword [rcx + 4]
mov rsi, rcx
mov dword [rsp + 0x20], 1
mov bpl, 1
sub edx, 0x80
je 0x180085a24
sub edx, 0x40
je 0x180085a13
cmp edx, 0x40
jne 0x180085a24
mov dword [rcx], recv
lea edi, [rdx - 0x20]
lea r14d, [rdx - 0x38]
jmp 0x180085a33
mov edi, 0x18
mov dword [rcx], recv
lea r14d, [rdi - 0x12]
jmp 0x180085a33
mov edi, reloc.WS2_32.dll_recv
mov dword [rcx], 0xa
lea r14d, [rdi - 0xc]
mov rdx, qword [rsi + 0x10]
movzx eax, dil
add rcx, 0x20
movzx ebx, al
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [rsi]
lea rcx, [rsi + 0x20]
add rcx, rdi
lea eax, [rax*4 + 4]
cmp ebx, eax
jge 0x180085b8c
mov eax, r14d
lea r9, [rsp + 0x20]
neg rax
lea rdi, [0x18008ae60]
sub r9, rcx
movzx r11d, bl
lea r10, [rax*4]
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rcx - 4]
xor edx, edx
mov eax, ebx
mov dword [rcx], r8d
div r14d
test edx, edx
jne 0x180085b25
mov eax, r8d
mov rdx, rcx
shr eax, 8
mov byte [rcx], al
movzx eax, byte [rcx + 2]
mov byte [rcx + 1], al
movzx eax, byte [rcx + 3]
mov byte [rcx + 3], r8b
mov r8d, 4
mov byte [rcx + 2], al
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rdi]
mov byte [rdx - 1], al
sub r8, 1
jne 0x180085ad0
mov rdx, rcx
mov r8d, 4
nop dword [rax]
movzx eax, byte [r9 + rdx]
xor byte [rdx], al
lea rdx, [rdx + 1]
sub r8, 1
jne 0x180085af0
movzx eax, bpl
movzx r8d, bpl
add al, al
movzx edx, al
movzx eax, dl
mov ebp, edx
xor al, 0x1b
test r8b, r8b
movzx eax, al
cmovs ebp, eax
mov byte [rsp + 0x20], bpl
jmp 0x180085b54
cmp r14d, 6
jbe 0x180085b54
cmp edx, 4
jne 0x180085b54
mov rdx, rcx
mov r8d, 4
nop dword [rax]
movzx eax, byte [rdx]
lea rdx, [rdx + 1]
movzx eax, byte [rax + rdi]
mov byte [rdx - 1], al
sub r8, 1
jne 0x180085b40
mov edx, 4
nop dword [rax]
movzx eax, byte [r10 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180085b60
mov eax, dword [rsi]
inc r11b
sub r9, 4
movzx ebx, r11b
lea eax, [rax*4 + 4]
cmp ebx, eax
jl 0x180085a90
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800855f0
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret