joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180046b90
Capabilities:
Connect socket
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x160
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rsi, rcx
mov r14d, edx
mov rcx, qword [0x1800608a0]
test rcx, rcx
jne 0x180046be3
movzx edx, word [0x180060766]
test dx, dx
je 0x180046be3
lea rcx, [0x180060780]
call fcn.180048120
test al, al
je 0x180046c59
mov rcx, qword [0x1800608a0]
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x180060890]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x180060884], eax
cmp eax, 0xffffffff
jne 0x180046c73
cmp qword [0x1800608a0], 0
jne 0x180046c73
movzx edx, word [0x180060766]
test dx, dx
je 0x180046c73
lea rcx, [0x180060780]
call fcn.180048120
mov rcx, qword [0x1800608a0]
test al, al
je 0x180046c53
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x180060890]
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x180060884], eax
cmp eax, 0xffffffff
jne 0x180046c73
mov rcx, qword [0x1800608a0]
call qword [sym.imp.WS2_32.dll_closesocket]
xor ebx, ebx
mov dword [0x180060884], 0xffffffff
mov qword [0x1800608a0], rbx
xor al, al
jmp 0x180046dd0
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 0x180046d2b
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 [0x180060524]
lea r8, [rsp + 0x40]
lea rdx, [0x180060540]
lea rcx, [0x180060420]
call fcn.18004ae30
movsxd rax, dword [0x180060524]
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.18004a630
mov rbp, qword [rsp + 0x30]
add rbp, 0x20
mov qword [rdi + 0x10], rbx
jmp 0x180046d6c
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 0x180046d68
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 0x180046d50
lea rbp, [rax + 0x20]
mov qword [rdi + 0x18], rbp
lea rcx, [0x1800608c0]
mov rbx, qword [0x1800608a0]
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 fcn.18004d634
mov rdi, qword [rsp + 0x190]
lea eax, [r14 - 3]
mov rbp, qword [rsp + 0x188]
cmp eax, 1
ja 0x180046dce
cmp byte [0x18005a014], 5
jne 0x180046dce
shl byte [0x18005a015], 4
mov byte [0x18005a014], 6
mov al, 1
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.18004c400
add rsp, 0x160
pop r14
pop rsi
pop rbx
ret
Function at 0x180047ee0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x48
mov rax, qword [0x18005a080]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov rsi, r9
xor ecx, ecx
mov r14, r8
movzx edi, dx
call sub.api_ms_win_crt_time_l1_1_0.dll__time64
mov rcx, rax
call sub.api_ms_win_crt_utility_l1_1_0.dll_srand
movzx edx, di
mov rcx, rbx
call fcn.180048120
test al, al
je 0x180048101
cmp byte [0x18005a798], 0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r15
jne 0x180047f53
lea rcx, [0x1800608c0]
mov byte [0x18005a798], 1
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
cmp byte [reloc.WS2_32.dll_closesocket], 3
jne 0x180047f6a
sar byte [0x18005a010], 2
mov byte [reloc.WS2_32.dll_closesocket], 0x30
lea rcx, [0x180060780]
sub rcx, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbx]
mov byte [rcx + rbx], al
lea rbx, [rbx + 1]
test al, al
jne 0x180047f80
mov word [0x180060766], di
mov rbp, 0xffffffffffffffff
nop dword [rax]
inc rbp
cmp byte [r14 + rbp], 0
jne 0x180047fa0
movzx eax, word [r14]
lea rcx, [rsp + 0x20]
xor edx, edx
mov byte [rsp + 0x22], 0
mov word [rsp + 0x20], ax
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx ecx, word [r14 + 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov edi, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
movzx ecx, word [r14 + rbp - 2]
xor edx, edx
mov word [rsp + 0x20], cx
mov ebx, eax
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
xor eax, ebx
mov r8, rbp
movzx ecx, al
mov rdx, r14
movzx eax, dil
xor ecx, eax
mov dword [0x180060524], ecx
lea ebx, [rcx + rcx]
mov r12d, ebx
lea rcx, [0x180060420]
add r12, 2
sub r8, r12
call sub.VCRUNTIME140.dll_memcpy
xor edi, edi
mov r15d, ebx
mov ebx, edi
test r15, r15
je 0x180048080
sub r14, r12
lea r12, [0x180060540]
nop word [rax + rax]
lea rax, [r14 + rbx]
xor edx, edx
movzx ecx, word [rax + rbp]
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.api_ms_win_crt_convert_l1_1_0.dll_strtol
xor al, dil
add rbx, 2
mov byte [rdi + r12], al
inc rdi
cmp rbx, r15
jb 0x180048050
mov r15, qword [rsp + 0x30]
lea rcx, [0x180060300]
mov r12, qword [rsp + 0x38]
sub rcx, rsi
mov rbp, qword [rsp + 0x40]
nop dword [rax]
movzx eax, byte [rsi]
mov byte [rcx + rsi], al
lea rsi, [rsi + 1]
test al, al
jne 0x1800480a0
mov rax, qword [rsp + 0x90]
test rax, rax
je 0x1800480e0
lea rdx, [0x180060660]
sub rdx, rax
nop word [rax + rax]
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x1800480d0
mov al, 1
mov byte [0x180060764], al
mov edx, 8
movzx eax, byte [0x1800611cc]
test al, al
mov ecx, eax
mov al, 1
cmove ecx, edx
mov byte [0x1800611cc], cl
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004c400
add rsp, 0x48
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x180048120
Capabilities:
Convert ip address from string
Initialize winsock library

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x18005a080]
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 0x1800481b6
mov qword [rsp + 0x1f0], rsi
movzx ecx, di
mov esi, 2
mov word [0x180060890], si
call qword [sym.imp.WS2_32.dll_htons]
lea r8, [0x180060894]
mov rdx, rbx
mov ecx, esi
mov word [0x180060892], 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 [0x1800608a0], rax
cmp rax, 0xffffffffffffffff
je 0x1800481b6
mov al, 1
jmp 0x1800481c3
mov qword [0x1800608a0], 0
xor al, al
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.18004c400
mov rbx, qword [rsp + 0x1f8]
add rsp, 0x1d0
pop rdi
ret

Function at 0x1800482a0
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 [0x18005a080]
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 0x180048357
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 0x180048310
movsxd rax, edi
mov rcx, rbx
test edi, edi
jle 0x1800483e8
mov qword [rsp + 0x48], rbp
mov byte [rax + rsi - 1], 0
call fcn.18004d634
lea rcx, str.iphlpapi.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
test rax, rax
je 0x1800483de
lea rdx, [0x18004f7e0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
je 0x1800483d5
lea rdx, [rsp + 0x24]
mov dword [rsp + 0x24], 0
xor ecx, ecx
call rsi
cmp eax, 0x6f
jne 0x1800483d5
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 fcn.18004d634
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbp, qword [rsp + 0x48]
lea eax, [rdi - 1]
jmp 0x1800483f2
call fcn.18004d634
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004c400
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18004add0
Capabilities:
Encode data using xor

Disassembly:
push rdi
xor eax, eax
mov rdi, r9
mov r11, rcx
test r8, r8
je 0x18004ae21
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 0x18004adf2
mov byte [r11 + r8], bl
mov rbx, qword [rsp + 0x10]
pop rdi
ret
mov byte [rcx + r8], al
pop rdi
ret

Function at 0x18004ae30
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x260
mov rax, qword [0x18005a080]
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 0x18004ae93
test r8, r8
je 0x18004aec8
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 0x18004aeb0
mov rax, 0xffffffffffffffff
nop
inc rax
cmp byte [rbx + rax], dil
jne 0x18004aed0
test rax, rax
je 0x18004af2e
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 0x18004af20
cmp rdi, rax
jb 0x18004aef0
xor eax, eax
test r14d, r14d
je 0x18004af70
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 0x18004af43
mov byte [r14 + rbp], r8b
jmp 0x18004af74
mov byte [r14 + rbp], al
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18004c400
add rsp, 0x260
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x18004afa0
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 [0x18005a080]
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 0x18004b18c
mov edi, dword [rsp + 0x270]
lea eax, [rdi - 1]
cmp eax, 0xff
ja 0x18004b18c
xor edx, edx
lea rcx, [rsp + 0x120]
mov r8d, 0x100
call sub.VCRUNTIME140.dll_memset
xor r10d, r10d
cmp edi, 0x100
jne 0x18004b085
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 0x18004b030
jmp 0x18004b0ba
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 0x18004b090
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 0x18004b0e6
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 0x18004b0c0
mov eax, r10d
test rbp, rbp
je 0x18004b188
test rsi, rsi
je 0x18004b188
test r14, r14
jle 0x18004b188
sub rbp, rsi
nop dword [rax]
inc eax
and eax, 0x800000ff
jge 0x18004b132
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 0x18004b157
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 0x18004b120
mov al, 1
jmp 0x18004b18e
xor al, al
mov rcx, qword [rsp + 0x220]
xor rcx, rsp
call fcn.18004c400
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 0x18004ba00
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
mov ebp, r9d
mov rbx, rdx
mov r14, rcx
test r9d, r9d
je 0x18004bafb
test bpl, 0xf
jne 0x18004bafb
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
mov r15, rdx
mov edx, ebp
test r9d, r9d
je 0x18004ba51
mov rcx, rbx
sub r8, rbx
nop
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004ba40
lea ecx, [rbp - 0x10]
mov edi, ebp
add rbx, rcx
shr edi, 4
test edi, edi
je 0x18004bad5
mov qword [rsp + 0x40], rsi
mov esi, reloc.WS2_32.dll_recv
nop word [rax + rax]
mov rdx, rbx
mov rcx, r14
call fcn.18004c010
cmp dword [r14 + 8], 1
jne 0x18004baa0
cmp edi, 1
je 0x18004baaa
mov rax, rbx
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rax - 0x10]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x18004ba90
sub rbx, rsi
add edi, 0xffffffff
jne 0x18004ba70
jmp 0x18004bad0
mov rcx, qword [r14 + 0x18]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne 0x18004bac0
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
lea eax, [rbp - 1]
movzx edx, byte [rax + r15]
mov ecx, ebp
mov r15, qword [rsp + 0x50]
sub ecx, edx
xor eax, eax
cmp edx, ebp
cmovbe eax, ecx
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x18004bb10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push r14
sub rsp, 0x20
mov r14d, r9d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
jne 0x18004bb41
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x38], rdi
mov rdx, r14
test r9d, r9d
je 0x18004bb71
mov rcx, rbx
sub r8, rbx
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
mov byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004bb60
lea ecx, [r14 - 0x10]
mov edi, r14d
add rbx, rcx
shr edi, 4
test edi, edi
je 0x18004bbf5
mov qword [rsp + 0x30], rsi
mov esi, reloc.WS2_32.dll_recv
nop dword [rax]
mov rdx, rbx
mov rcx, rbp
call fcn.18004c010
cmp dword [rbp + 8], 1
jne 0x18004bbc0
cmp edi, 1
je 0x18004bbca
mov rax, rbx
mov rdx, rsi
nop dword [rax]
movzx ecx, byte [rax - 0x10]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x18004bbb0
sub rbx, rsi
add edi, 0xffffffff
jne 0x18004bb90
jmp 0x18004bbf0
mov rcx, qword [rbp + 0x18]
sub rcx, rbx
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rsi, 1
jne 0x18004bbe0
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov eax, r14d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x18004bc10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbx
push r13
push r14
sub rsp, 0x30
mov r11d, r9d
mov rbx, r8
mov r14, rcx
test r9d, r9d
je 0x18004bc42
mov r10, rbx
sub rdx, rbx
nop
movzx eax, byte [rdx + r10]
mov byte [r10], al
lea r10, [r10 + 1]
sub r11, 1
jne 0x18004bc30
mov edx, r9d
mov rcx, rbx
call fcn.18004b9a0
mov r13d, eax
test eax, eax
jne 0x18004bc5e
add rsp, 0x30
pop r14
pop r13
pop rbx
ret
mov r8, qword [r14 + 0x18]
mov qword [rsp + 0x28], r12
mov r12d, r13d
shr r12d, 4
test r12d, r12d
je 0x18004be08
mov qword [rsp + 0x50], rbp
lea r9, [0x18004f9b0]
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x20], r15
mov r15, r14
sub r15, rbx
add r15, 0x20
nop dword [rax]
cmp dword [r14 + 8], 1
jne 0x18004bcd1
mov rcx, rbx
sub r8, rbx
mov edx, reloc.WS2_32.dll_recv
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004bcc0
mov rsi, rbx
mov ecx, reloc.WS2_32.dll_recv
nop dword [rax]
movzx eax, byte [rsi + r15]
xor byte [rsi], al
inc rsi
sub rcx, 1
jne 0x18004bce0
cmp dword [r14], 1
mov bpl, 1
jl 0x18004bde0
lea edi, [rcx + 1]
mov rcx, rbx
mov edx, reloc.WS2_32.dll_recv
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx eax, byte [rax + r9]
mov byte [rcx - 1], al
sub rdx, 1
jne 0x18004bd10
mov r10b, 1
lea r11, [rbx + 1]
nop dword [rax]
lea rdx, [rsp + 0x68]
mov rax, r11
mov r8d, 4
nop
movzx ecx, byte [rax]
lea rax, [rax + 4]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18004bd40
movzx r9d, r10b
nop word [rax + rax]
movzx eax, r8b
inc r8b
lea edx, [r9 + rax]
and edx, 3
lea ecx, [r9 + rax*4]
movzx eax, byte [rsp + rdx + 0x68]
mov byte [rcx + rbx], al
cmp r8b, 4
jb 0x18004bd60
inc r10b
inc r11
cmp r10b, 4
jb 0x18004bd30
cmp edi, dword [r14]
je 0x18004bd9b
xor edx, edx
mov rcx, rbx
call fcn.18004c190
shl edi, 4
mov rcx, rbx
mov r8d, edi
mov edx, reloc.WS2_32.dll_recv
sub r8, rbx
add r8, r14
nop
movzx eax, byte [r8 + rcx + 0x20]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004bdb0
inc bpl
lea r9, [0x18004f9b0]
movzx edi, bpl
cmp edi, dword [r14]
jle 0x18004bd00
lea r9, [0x18004f9b0]
sub r15, 0x10
mov r8, rbx
mov rbx, rsi
add r12d, 0xffffffff
jne 0x18004bca0
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x28]
mov eax, r13d
add rsp, 0x30
pop r14
pop r13
pop rbx
ret
Function at 0x18004be20
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 [0x18005a080]
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 0x18004be84
sub edx, 0x40
je 0x18004be73
cmp edx, 0x40
jne 0x18004be84
mov dword [rcx], recv
lea edi, [rdx - 0x20]
lea r14d, [rdx - 0x38]
jmp 0x18004be93
mov edi, 0x18
mov dword [rcx], recv
lea r14d, [rdi - 0x12]
jmp 0x18004be93
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 0x18004bfec
mov eax, r14d
lea r9, [rsp + 0x20]
neg rax
lea rdi, [0x18004f9b0]
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 0x18004bf85
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 0x18004bf30
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 0x18004bf50
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 0x18004bfb4
cmp r14d, 6
jbe 0x18004bfb4
cmp edx, 4
jne 0x18004bfb4
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 0x18004bfa0
mov edx, 4
nop dword [rax]
movzx eax, byte [r10 + rcx]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x18004bfc0
mov eax, dword [rsi]
inc r11b
sub r9, 4
movzx ebx, r11b
lea eax, [rax*4 + 4]
cmp ebx, eax
jl 0x18004bef0
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18004c400
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x18004c010
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
push rdi
sub rsp, 0x28
mov eax, dword [rcx]
mov rdi, rdx
shl eax, 4
lea rdx, [rcx + 0x20]
cdqe
mov r8, rdi
add rdx, rax
mov r9d, reloc.WS2_32.dll_recv
sub rdx, rdi
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdx + r8]
xor byte [r8], al
lea r8, [r8 + 1]
sub r9, 1
jne 0x18004c040
movzx ebp, byte [rcx]
test bpl, bpl
je 0x18004c182
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x50], rsi
lea rsi, [rbp + 1]
shl rsi, 4
sub rsi, rdi
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x20], r15
add rsi, rcx
lea r15, [0x18004f8b0]
nop word [rax + rax]
mov r9b, 1
lea rbx, [rdi + 1]
nop word [rax + rax]
lea rdx, [rsp + 0x40]
mov rax, rbx
mov r8d, 4
nop
movzx ecx, byte [rax]
lea rax, [rax + 4]
mov byte [rdx], cl
lea rdx, [rdx + 1]
sub r8, 1
jne 0x18004c0b0
mov eax, 4
movzx r11d, r9b
sub al, r9b
movzx r10d, al
nop dword [rax]
nop word [rax + rax]
movzx eax, r8b
inc r8b
lea edx, [r10 + rax]
and edx, 3
lea ecx, [r11 + rax*4]
movzx eax, byte [rsp + rdx + 0x40]
mov byte [rcx + rdi], al
cmp r8b, 4
jb 0x18004c0e0
inc r9b
inc rbx
cmp r9b, 4
jb 0x18004c0a0
mov rcx, rdi
mov edx, reloc.WS2_32.dll_recv
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
movzx eax, byte [rax + r15]
mov byte [rcx - 1], al
sub rdx, 1
jne 0x18004c120
mov rcx, rdi
mov edx, reloc.WS2_32.dll_recv
nop dword [rax]
movzx eax, byte [rcx + rsi]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x18004c140
cmp bpl, 1
je 0x18004c160
mov dl, 1
mov rcx, rdi
call fcn.18004c190
sub rsi, 0x10
add bpl, 0xff
jne 0x18004c090
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x48]
add rsp, 0x28
pop rdi
pop rbp
ret