joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000436c
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rsi, rdx
lea r8, [rax + 0x18]
lea rcx, str.SeSecurityPrivilege
mov edx, 1
call fcn.180003c08
test eax, eax
jne 0x180004419
and dword [rsp + 0x40], eax
xor eax, eax
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
call fcn.180003a5c
lea rax, [rsp + 0x40]
xor r8d, r8d
mov r9d, 0xff
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea edx, [r8 + 3]
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [rsp + 0x80], 0
jne 0x180004413
lea r8, [rsp + 0x80]
lea rcx, str.SeSecurityPrivilege
xor edx, edx
call fcn.180003c08
cmp rbx, 0xffffffffffffffff
jne 0x18000445f
and qword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
xor r8d, r8d
lea edx, [r8 + 3]
mov r9d, 0xff
mov rcx, rdi
mov dword [rsp + 0x28], 0x10000
mov dword [rsp + 0x20], 0x10000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp rbx, 0xffffffffffffffff
jne 0x18000445f
or rax, 0xffffffffffffffff
jmp 0x1800044a6
call fcn.180009f84
mov edi, eax
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x1800044a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1800044a3
mov ecx, 1
call fcn.180009f28
call fcn.180009f84
sub eax, edi
cmp eax, dword [rsi + 4]
jb 0x180004466
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180004459
mov rax, rbx
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x18000491c
Capabilities:
Connect socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov esi, r9d
mov r14d, r8d
mov r15, rdx
mov rdi, rcx
call fcn.180009f84
mov ebp, eax
call fcn.180009f84
mov r8d, r14d
mov rdx, r15
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18000497f
mov ecx, dword [rsp + 0x60]
call fcn.180009f28
call fcn.180009f84
sub eax, ebp
cmp eax, esi
jb 0x180004947
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
Function at 0x1800049a0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1e0
mov rbx, qword [rsp + 0x230]
mov r15, rcx
mov ebp, r8d
movzx r14d, dx
xor r13d, r13d
lea rcx, [rsp + 0x42]
mov r8d, 0x196
xor edx, edx
mov esi, r9d
mov qword [rbx], r13
mov word [rsp + 0x40], r13w
call fcn.180014830
lea rdx, [rsp + 0x40]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180004a0e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180004a8a
mov edx, 1
lea r12d, [rdx + 1]
lea r8d, [rdx + 5]
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_socket]
mov rcx, r15
mov rdi, rax
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
mov ecx, dword [rdx]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
mov rcx, rax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
call qword [sym.imp.WS2_32.dll_inet_addr]
movzx ecx, r14w
mov dword [rsp + 0x34], eax
mov word [rsp + 0x30], r12w
call qword [sym.imp.WS2_32.dll_htons]
lea r8d, [r12 + 0xe]
lea rdx, [rsp + 0x30]
mov r9d, ebp
mov rcx, rdi
mov word [rsp + 0x32], ax
mov dword [rsp + 0x20], esi
call fcn.18000491c
test eax, eax
jne 0x180004a8a
mov qword [rbx], rdi
lea r11, [rsp + 0x1e0]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180004ab4
Capabilities:
Connect socket
Initialize winsock library

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x118]
sub rsp, 0x1f0
mov r15, qword [rbp + 0x148]
mov rdi, rcx
mov r13d, r8d
mov rbx, rdx
xor esi, esi
lea rcx, [rsp + 0x52]
mov r8d, 0x196
xor edx, edx
mov r12d, r9d
mov qword [r15], rsi
mov word [rsp + 0x50], si
call fcn.180014830
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180004b28
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180004c39
xor edx, edx
lea rcx, [rsp + 0x24]
mov dword [rsp + 0x20], esi
lea r8d, [rdx + 0x2c]
call fcn.180014830
mov rax, qword [0x180031758]
mov r14d, reloc.WS2_32.dll_socket
mov dword [rsp + 0x24], r14d
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x2c], 6
test rax, rax
jne 0x180004b71
xor ecx, ecx
call fcn.180005dc8
mov qword [0x180031758], rax
lea r9, [rbp + 0x148]
lea r8, [rsp + 0x20]
mov rdx, rbx
mov rcx, rdi
call rax
mov ecx, eax
mov ebx, eax
call qword [sym.imp.WS2_32.dll_WSASetLastError]
test ebx, ebx
jne 0x180004b1d
lea edx, [rbx + 1]
lea r8d, [rbx + 6]
mov ecx, r14d
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180004b1d
call fcn.180009f84
mov r14d, eax
call fcn.180009f84
mov rbx, qword [rbp + 0x148]
jmp 0x180004bea
mov rcx, qword [rbx + 0x20]
mov dword [rcx + 0x18], r13d
mov r8d, dword [rbx + 0x10]
mov rdx, qword [rbx + 0x20]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_connect]
mov esi, eax
cmp eax, 0xffffffff
jne 0x180004c5a
mov rbx, qword [rbx + 0x28]
test rbx, rbx
jne 0x180004bc6
mov ecx, dword [rbp + 0x140]
call fcn.180009f28
call fcn.180009f84
sub eax, r14d
cmp eax, r12d
jb 0x180004bb8
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov rax, qword [0x180031760]
mov rbx, qword [rbp + 0x148]
test rax, rax
jne 0x180004c32
lea ecx, [rax + 2]
call fcn.180005dc8
mov qword [0x180031760], rax
mov rcx, rbx
call rax
mov eax, esi
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rbx, qword [rbp + 0x148]
mov qword [r15], rdi
mov rax, qword [0x180031760]
test rax, rax
jne 0x180004c7f
lea ecx, [rax + 2]
call fcn.180005dc8
mov qword [0x180031760], rax
mov rcx, rbx
call rax
xor eax, eax
jmp 0x180004c39
Function at 0x180004d08
Capabilities:
Initialize winsock library
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0xf0]
sub rsp, 0x1f0
xor r15d, r15d
movzx esi, cx
mov r14, rdx
mov qword [rdx], r15
lea rcx, [rsp + 0x52]
mov r8d, 0x196
xor edx, edx
mov word [rsp + 0x50], r15w
call fcn.180014830
lea rdx, [rsp + 0x50]
mov ecx, 0x202
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x180004d6c
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
jmp 0x180004e55
mov edx, 1
mov ebx, r15d
lea ecx, [rdx + 0x16]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r13d, 2
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180004dc5
lea r9, [rbp + 0x128]
lea edx, [r13 + 0x27]
lea r8d, [r13 + 0x19]
mov rcx, rax
mov dword [rbp + 0x128], r15d
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180004ddc
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov ebx, 1
mov ecx, r13d
lea r8d, [rbx + 5]
mov edx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
xor eax, eax
mov word [rsp + 0x30], r15w
mov qword [rsp + 0x32], rax
mov qword [rsp + 0x3a], rax
mov qword [rsp + 0x42], rax
mov word [rsp + 0x4a], ax
test ebx, ebx
je 0x180004e13
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x30], r13w
movzx eax, ax
mov dword [rsp + 0x34], eax
jmp 0x180004e2a
movups xmm0, xmmword [0x180023a90]
mov eax, reloc.WS2_32.dll_socket
mov word [rsp + 0x30], ax
movdqu xmmword [rsp + 0x38], xmm0
movzx ecx, si
call qword [sym.imp.WS2_32.dll_htons]
neg ebx
lea rdx, [rsp + 0x30]
sbb r8d, r8d
mov r9, r14
mov rcx, rdi
and r8d, 0xfffffff4
mov word [rsp + 0x32], ax
add r8d, 0x1c
call fcn.180004c90
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret

Function at 0x180004e78
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [rcx + 0x10]
mov rsi, rcx
mov rcx, qword [rcx + 0x30]
mov rbx, qword [rax + 0x60]
mov edi, edx
call fcn.180009590
and dword [rsp + 0x30], 0
mov rax, qword [rbx]
and dword [rsp + 0x250], 0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x254], edi
mov ecx, dword [rbx]
lea rax, [rsp + 0x250]
lea rdx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
inc ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_select]
mov rcx, qword [rsi + 0x30]
mov ebx, eax
call fcn.1800095b0
lea r11, [rsp + 0x240]
mov rsi, qword [r11 + 0x20]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x180005dc8
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x188]
sub rsp, 0x270
lea rax, [0x1800057e8]
lea rsi, str.getaddrinfo
xor ebx, ebx
cmp dword [0x180031750], ebx
mov qword [rsp + 0x28], rax
lea rax, str.getnameinfo
mov qword [rsp + 0x30], rax
lea rax, [0x180005b9c]
movzx r12d, cx
mov qword [rsp + 0x38], rax
lea rax, str.freeaddrinfo
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x40], rax
lea rax, [0x180005798]
mov qword [rsp + 0x48], rax
je 0x180005e50
lea r14, str.getaddrinfo
jmp 0x180005f83
lea rcx, [rbp + 0x60]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea r14, str.getaddrinfo
test eax, eax
je 0x180005f79
mov r15d, 0x10c
lea r8, [rbp + 0x60]
lea rcx, [rsp + 0x50]
mov edx, r15d
call fcn.180015cb8
lea r8, str.ws2_32
lea rcx, [rsp + 0x50]
mov edx, r15d
call fcn.180015d1c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x180005ece
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180005ec9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
jne 0x180005f28
lea r8, [rbp + 0x60]
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.180015cb8
lea r8, str.wship6
lea rcx, [rsp + 0x50]
mov rdx, r15
call fcn.180015d1c
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rdi, rax
test rax, rax
je 0x180005f79
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x180005f23
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
je 0x180005f79
mov r15d, ebx
lea rsi, [rsp + 0x28]
mov rdx, qword [rsi - 8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi], rax
test rax, rax
je 0x180005f54
inc r15d
add rsi, 0x10
cmp r15d, 3
jl 0x180005f30
jmp 0x180005f60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, rbx
test rdi, rdi
je 0x180005f79
mov rax, qword [rsp + rbx + 0x28]
add rbx, 0x10
mov qword [rbx + r14 - 8], rax
cmp rbx, 0x30
jl 0x180005f65
mov dword [0x180031750], 1
lea r11, [rsp + 0x270]
movzx eax, r12w
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
add rax, rax
mov rax, qword [r14 + rax*8 + 8]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800061ec
Capabilities:
Resolve dns

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 r12
push r14
push r15
sub rsp, 0x20
mov rsi, qword [rsp + 0x68]
mov r14, qword [rsp + 0x60]
movzx ebp, r9w
and qword [rsi], 0
mov r15d, r8d
mov r12d, edx
mov byte [r14], 0
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rbx, rax
test rax, rax
je 0x180006291
cmp word [rax + 0x10], 2
jne 0x180006271
cmp word [rax + 0x12], 4
jne 0x180006271
mov rdi, qword [rax + 0x18]
jmp 0x180006269
mov r9d, dword [rax]
movzx r8d, bp
mov edx, r15d
mov ecx, r12d
call fcn.18000614c
mov qword [rsi], rax
test rax, rax
je 0x18000628a
lea rsi, [rax + 0x28]
add rdi, 8
mov rax, qword [rdi]
test rax, rax
jne 0x180006247
mov r8, qword [rbx]
mov r9d, 0x400
mov rcx, r14
lea edx, [r9 + 1]
call fcn.180013f78
xor eax, eax
jmp 0x1800062ac
mov eax, 8
jmp 0x1800062ac
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, 0x2af9
sub eax, ecx
je 0x1800062aa
dec eax
je 0x1800062d2
dec eax
je 0x1800062cb
dec eax
mov eax, ecx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
mov eax, 0x2afb
jmp 0x1800062ac
mov eax, 0x2afa
jmp 0x1800062ac

Function at 0x180007598
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x40
and dword [rax + 0x10], 0
xor ebp, ebp
xor r14d, r14d
mov rdi, r8
mov rsi, rdx
test rdx, rdx
je 0x1800075c7
and qword [rdx], rbp
test r8, r8
je 0x1800075cf
and dword [r8], ebp
and qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x180007608
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000766d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
test eax, eax
jne 0x180007623
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180007664
mov rcx, rbx
call fcn.1800141b8
mov r14, rax
test rax, rax
jne 0x180007638
lea ebx, [rax + 8]
jmp 0x180007664
and qword [rsp + 0x20], 0
mov edx, ebp
lea r9, [rsp + 0x68]
add rdx, r14
mov r8d, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180007662
add ebp, dword [rsp + 0x68]
sub ebx, dword [rsp + 0x68]
jne 0x180007638
xor ebx, ebx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x180007680
test rsi, rsi
je 0x180007679
mov qword [rsi], r14
test rdi, rdi
je 0x180007680
mov dword [rdi], ebp
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
Function at 0x1800076a4
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov edi, r8d
mov r14, rdx
mov qword [rax - 0x28], rbx
mov dword [rax - 0x30], 0x80
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rax - 0x38], 1
mov esi, ebx
mov dword [rax + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbp, rax
cmp rax, 0xffffffffffffffff
jne 0x1800076fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180007730
test edi, edi
je 0x180007727
mov edx, esi
lea r9, [rsp + 0x78]
mov r8d, edi
mov rcx, rbp
add rdx, r14
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x180007727
add esi, dword [rsp + 0x78]
sub edi, dword [rsp + 0x78]
jne 0x1800076fe
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret

Function at 0x1800097d4
Capabilities:
Create thread

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, 0x30
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test rcx, rcx
jne 0x180009805
xor eax, eax
jmp 0x180009885
mov ecx, reloc.WS2_32.dll_getservbyport
call fcn.1800141b8
mov rbx, rax
test rax, rax
je 0x1800097fe
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 0x38]
call fcn.180014830
call fcn.1800095d0
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x18000983d
mov rcx, rbx
call fcn.180014178
jmp 0x1800097fe
lea r8, [0x1800099c8]
mov r9, rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rbx + 0x20], r14
mov qword [rbx + 0x28], rbp
mov qword [rbx + 0x30], rsi
mov qword [rbx + 0x18], rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 8], rax
test rax, rax
jne 0x180009882
mov rcx, qword [rbx + 0x10]
call fcn.18000962c
jmp 0x180009833
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1800098e0
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x28
test rcx, rcx
jne 0x1800098ed
xor eax, eax
jmp 0x1800098fc
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
add rsp, 0x28
ret

Function at 0x180009920
Capabilities:
Terminate thread

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test rcx, rcx
jne 0x180009931
xor eax, eax
jmp 0x180009945
mov rcx, qword [rcx + 8]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180009fe0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
test r8d, r8d
je 0x18000a001
mov r10d, r8d
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + rcx]
xor byte [rdx], al
inc rdx
dec r10
jne 0x180009feb
ret
Function at 0x18000a114
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rdi, r8
mov r13, rdx
mov r15, rcx
lea r8d, [r9 - 4]
lea rdx, [rdi + 4]
xor ebx, ebx
and qword [rbp - 0x10], rbx
mov rcx, rdi
call fcn.180009fe0
lea edx, [rbx + 0x48]
lea ecx, [rbx + 1]
call fcn.180014f5c
mov rsi, rax
test rax, rax
jne 0x18000a165
lea ebx, [rax + 8]
jmp 0x18000a29e
mov ecx, dword [rdi + 0x14]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa8]
test rcx, rcx
je 0x18000a24c
cmp dword [rcx + 0x14], ebx
je 0x18000a24c
test eax, eax
je 0x18000a24c
mov ecx, dword [rdi + 0x18]
call qword [sym.imp.WS2_32.dll_ntohl]
mov rcx, qword [r15 + 0xa8]
lea r9, [rbp - 0x10]
sub eax, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rbp + 0x58], eax
mov rcx, qword [rcx + 8]
lea r12, [rdi + 0x30]
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateKey]
test eax, eax
jne 0x18000a1cd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x18000a292
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rbp + 0x50]
lea edx, [r9 + 4]
mov dword [rbp + 0x50], 1
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x18000a1c0
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea r8, [rdi + 0x20]
lea edx, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
je 0x18000a1c0
mov rcx, qword [rbp - 0x10]
xor r9d, r9d
lea rax, [rbp + 0x58]
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x18000a1c0
mov edx, dword [rbp + 0x58]
lea rcx, [rdi + 0x20]
mov r8, r12
mov r9d, edx
call fcn.1800166b8
mov ecx, dword [rbp + 0x58]
add ecx, 8
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rdi + 0x18], eax
mov ecx, dword [rdi + 0x18]
mov dword [rsi + 0x18], ecx
mov eax, dword [rdi + 0x1c]
mov dword [rsi + 0x1c], eax
call qword [sym.imp.WS2_32.dll_ntohl]
add eax, 0xfffffff8
mov ecx, eax
mov dword [rsi + 0x28], eax
mov r14d, eax
call fcn.1800141b8
mov qword [rsi + 0x20], rax
test rax, rax
jne 0x18000a27c
lea ebx, [rax + 8]
jmp 0x18000a296
lea r8, [rdi + 0x20]
mov r9, r14
mov rdx, r14
mov rcx, rax
call fcn.1800150c8
mov qword [r13], rsi
test ebx, ebx
je 0x18000a29e
mov rcx, rsi
call sym.metsrv.dll_packet_destroy
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18000a2ad
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, ebx
mov rbx, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000be14
Capabilities:
Compute adler32 checksum

Disassembly:
movzx r9d, cx
shr ecx, 0x10
mov r10, rdx
test rdx, rdx
jne 0x18000bf4b
lea eax, [rdx + 1]
ret
mov edx, 0x15b0
cmp r8d, edx
cmovb edx, r8d
sub r8d, edx
cmp edx, 0x10
jl 0x18000bf10
mov r11d, edx
shr r11, 4
mov eax, r11d
neg eax
shl eax, 4
add edx, eax
movzx eax, byte [r10]
add r10, 0x10
add r9d, eax
movzx eax, byte [r10 - 0xf]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xe]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xd]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xc]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xb]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 0xa]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 9]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 8]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 7]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 6]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 5]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 4]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 3]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 2]
add ecx, r9d
add r9d, eax
movzx eax, byte [r10 - 1]
add ecx, r9d
add r9d, eax
add ecx, r9d
dec r11
jne 0x18000be54
test edx, edx
je 0x18000bf25
movzx eax, byte [r10]
inc r10
add r9d, eax
add ecx, r9d
dec edx
jne 0x18000bf14
mov eax, 0x80078071
mul r9d
shr edx, 0xf
imul eax, edx, 0xffff000f
add r9d, eax
mov eax, 0x80078071
mul ecx
shr edx, 0xf
imul eax, edx, 0xffff000f
add ecx, eax
test r8d, r8d
jne 0x18000be2b
shl ecx, 0x10
or ecx, r9d
mov eax, ecx
ret
Function at 0x18000cb30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, dword [rcx + 0x38]
mov rbx, rcx
mov edx, dword [rbx + 0x8c]
mov edi, dword [rbx + 0x50]
mov eax, dword [rbx + 0x94]
sub edi, edx
sub edi, eax
jne 0x18000cb6e
test edx, edx
jne 0x18000cb7d
test eax, eax
jne 0x18000cb7d
mov edi, esi
jmp 0x18000cc02
cmp edi, 0xffffffff
jne 0x18000cb7d
mov edi, 0xfffffffe
jmp 0x18000cc02
mov ecx, dword [rbx + 0x38]
add ecx, 0xfffffefa
add ecx, esi
cmp edx, ecx
jb 0x18000cc02
mov rcx, qword [rbx + 0x48]
mov r8, rsi
lea rdx, [rcx + rsi]
call fcn.1800142b0
mov r9d, dword [rbx + 0x6c]
mov rax, qword [rbx + 0x60]
sub dword [rbx + 0x90], esi
sub dword [rbx + 0x8c], esi
sub dword [rbx + 0x7c], esi
lea r8, [rax + r9*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000cbb7
mov rax, qword [rbx + 0x58]
mov r9d, esi
lea r8, [rax + rsi*2]
xor eax, eax
lea r8, [r8 - 2]
movzx edx, word [r8]
movzx ecx, dx
sub cx, si
cmp edx, esi
cmovae ax, cx
mov word [r8], ax
dec r9d
jne 0x18000cbe1
add edi, esi
mov rcx, qword [rbx]
cmp dword [rcx + 8], 0
je 0x18000cc79
mov edx, dword [rbx + 0x94]
mov eax, dword [rbx + 0x8c]
mov r8d, edi
add rdx, rax
add rdx, qword [rbx + 0x48]
call fcn.18000d5f4
add dword [rbx + 0x94], eax
mov r9d, dword [rbx + 0x94]
cmp r9d, 3
jb 0x18000cc63
mov eax, dword [rbx + 0x8c]
mov rdx, qword [rbx + 0x48]
mov ecx, dword [rbx + 0x78]
movzx r8d, byte [rax + rdx]
mov dword [rbx + 0x68], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbx + 0x74]
mov dword [rbx + 0x68], r8d
cmp r9d, 0x106
jae 0x18000cc79
mov rax, qword [rbx]
cmp dword [rax + 8], 0
jne 0x18000cb4a
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret