joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400245a0
Capabilities:
Hash data using murmur3

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
cmp byte [0x140de0c15], 0
jne 0x140024687
sub rbx, qword [rax + 0x18]
mov rdx, qword [rax + 0x50]
test byte [rdx], al
mov esi, dword [rax + 0x64]
imul rbx, rsi
mov rsi, rbx
shr rbx, 0x20
shr rsi, 0x23
and ebx, 7
mov rdi, rcx
mov rcx, rbx
mov r8d, 1
shl r8d, cl
add rdx, rsi
nop
nop
nop
nop
lock or byte [rdx], r8b
mov rcx, qword [rax + 0x18]
movabs rdx, 0x800000000000
lea rax, [rdx + rcx]
mov rdx, rax
shr rdx, 0x2a
nop
nop
nop
cmp rdx, 0x40
jae 0x14002467a
lea rbx, [0x140db2ff8]
mov rdx, qword [rbx + rdx*8]
test byte [rdx], al
mov rbx, rcx
shr rbx, 0x10
and ebx, 0x3f
shr rcx, 0xd
and ecx, 7
mov esi, 1
shl esi, cl
shr rax, 0x16
and eax, 0xfffff
mov rax, qword [rdx + rax*8]
test byte [rax], al
movzx edx, byte [rax + rbx + 0x11440]
lea rax, [rax + rbx]
lea rax, [rax + 0x11440]
test sil, dl
jne 0x140024660
lock or byte [rax], sil
mov rax, qword [r14 + 0x30]
mov rax, qword [rax + 0xa0]
test byte [rax], al
add qword [rax + 0x1250], rdi
add rsp, 0x10
pop rbp
ret
mov rax, rdx
mov ecx, 0x40
call fcn.14006bbc0
lea rax, [0x14081eb8e]
mov ebx, 0x2c
call fcn.14003b760
nop
int3

Function at 0x140026960
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x140026a66
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rsp + 0x70], rcx
mov byte [rsp + 0x17], dil
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x18], 0
jmp 0x1400269a3
mov rax, qword [rsp + 0x60]
mov rcx, rdx
mov rbx, qword [rsp + 0x68]
movzx edi, byte [rsp + 0x17]
cmp qword [rsp + 0x18], rbx
jae 0x140026a5b
test byte [rax], al
lea rcx, [rax + 0x100b8]
mov ebx, edi
mov rax, rcx
nop dword [rax]
call fcn.140027740
test rax, rax
je 0x140026a5b
movups xmmword [rsp + 0x20], xmm15
movups xmmword [rsp + 0x30], xmm15
movups xmmword [rsp + 0x40], xmm15
lea rcx, [0x140026aa0]
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x18]
mov qword [rsp + 0x28], rdx
mov rdx, qword [rsp + 0x60]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rbx, [rsp + 0x20]
mov qword [rsp], rbx
nop dword [rax]
call fcn.140069780
xorps xmm15, xmm15
mov r14, qword [0x140de1000]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rdx, qword [rsp + 0x70]
nop dword [rax]
test rdx, rdx
jne 0x140026a49
xor eax, eax
jmp 0x140026a53
mov rax, qword [rdx]
call rax
mov rdx, qword [rsp + 0x70]
test al, al
je 0x140026991
mov rax, qword [rsp + 0x18]
add rsp, 0x50
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov byte [rsp + 0x20], dil
call fcn.1400698c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
movzx edi, byte [rsp + 0x20]
jmp fcn.140026960
Function at 0x140034de0
Capabilities:
Hash data using murmur3

Disassembly:
cmp rsp, qword [r14 + 0x18]
jbe 0x140035066
push rbp
mov rbp, rsp
sub rsp, 0x38
test byte [rax], al
mov rcx, qword [rax + 0x1268]
lea rsi, [rax + 0x1278]
sub rcx, rsi
shr rcx, 3
cmp rcx, 0x200
ja 0x14003505a
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x30], rcx
mov qword [rax + 0x1268], 0
cmp byte [0x140de0c15], 0
jne 0x140034e3a
xor edx, edx
xor ebx, ebx
jmp 0x140034e80
xor edx, edx
jmp 0x140034e65
mov qword [rsp + 0x28], rdx
mov rcx, qword [rax + rdx*8 + 0x1278]
mov rax, rcx
call fcn.140023e00
mov rdx, qword [rsp + 0x28]
inc rdx
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jl 0x140034e3e
add rax, 0x1268
call fcn.140034d60
add rsp, 0x38
pop rbp
ret
inc rdx
nop
cmp rdx, rcx
jge 0x140034ff4
mov rsi, qword [rax + rdx*8 + 0x1278]
cmp rsi, 0x1000
jb 0x140034e7b
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], rbx
mov rax, rsi
xor ebx, ebx
mov rcx, rbx
call fcn.140017e00
test rax, rax
jne 0x140034ecc
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x140034e7b
mov rsi, qword [rbx + 0x50]
test byte [rsi], al
mov r8, rcx
shr r8, 3
movzx r9d, byte [rsi + r8]
and ecx, 7
mov r10d, 1
shl r10d, cl
nop
add rsi, r8
test r10b, r9b
je 0x140034f0c
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x140034e7b
nop
lock or byte [rsi], r10b
mov rcx, qword [rbx + 0x18]
movabs rsi, 0x800000000000
lea r8, [rsi + rcx]
mov r9, r8
shr r8, 0x2a
nop
nop
nop
cmp r8, 0x40
jae 0x14003504d
lea r10, [0x140db2ff8]
mov r8, qword [r10 + r8*8]
test byte [r8], al
mov r10, rcx
shr r10, 0x10
and r10d, 0x3f
shr rcx, 0xd
and ecx, 7
mov r11d, 1
shl r11d, cl
shr r9, 0x16
and r9d, 0xfffff
mov r8, qword [r8 + r9*8]
test byte [r8], al
movzx r9d, byte [r8 + r10 + 0x11440]
lea r8, [r8 + r10]
lea r8, [r8 + 0x11440]
test r11b, r9b
jne 0x140034f8f
lock or byte [r8], r11b
movzx r8d, byte [rbx + 0x6a]
test r8b, 1
je 0x140034fc5
mov rax, qword [rsp + 0x48]
mov r8, qword [rax + 0x1250]
add r8, qword [rbx + 0x70]
mov qword [rax + 0x1250], r8
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
jmp 0x140034e7b
mov r8, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
cmp r8, rcx
jae 0x140035045
mov rbx, qword [rsp + 0x48]
mov qword [rbx + r8*8 + 0x1278], rax
inc r8
mov rax, rbx
mov rdx, qword [rsp + 0x28]
mov rbx, r8
jmp 0x140034e7b
cmp rbx, 0x200
ja 0x140035034
lea rdx, [rax + 0x1278]
lea rsi, [rax + 0x1240]
mov rcx, rbx
mov edi, 0x200
mov rbx, rdx
mov rax, rsi
call fcn.14002a620
mov rax, qword [rsp + 0x48]
add rax, 0x1268
call fcn.140034d60
add rsp, 0x38
pop rbp
ret
mov rcx, rbx
mov edx, 0x200
nop dword [rax]
call fcn.14006bc20
mov rax, r8
call fcn.14006bba0
mov rax, r8
mov ecx, 0x40
call fcn.14006bbc0
mov edx, 0x200
nop
call fcn.14006bc00
nop
mov qword [rsp + 8], rax
call fcn.1400705c0
mov rax, qword [rsp + 8]
jmp fcn.140034de0
Function at 0x14004a260
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14004a3c7
push rbp
mov rbp, rsp
sub rsp, 0x18
mov ecx, dword [rax + 0x190]
mov edx, dword [rax + 0x194]
mov rsi, qword [rax + 0x998]
mov edi, dword [rax + 0x194]
cmp edi, edx
jne 0x14004a272
cmp edx, ecx
jne 0x14004a3b5
nop word [rax + rax]
test rsi, rsi
jne 0x14004a3b5
mov qword [rsp + 0x28], rax
test rbx, rbx
jne 0x14004a2d4
nop
call fcn.14006d420
xorps xmm15, xmm15
mov r14, qword [0x140de1000]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rbx, qword [rsp]
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x10], rbx
call fcn.14004a180
mov rcx, qword [rsp + 0x28]
mov edx, dword [rcx]
mov ebx, edx
sar edx, 0x1f
shr edx, 0x1b
add edx, ebx
mov esi, edx
and edx, 0xffffffe0
sub ebx, edx
test ebx, ebx
jl 0x14004a3b0
mov rdx, qword [0x140d8ae68]
sar esi, 5
mov rax, rcx
mov ecx, ebx
mov edi, 1
shl edi, cl
movsxd rsi, esi
cmp ecx, 0x20
sbb r8d, r8d
and edi, r8d
cmp rdx, rsi
jbe 0x14004a3a5
mov rcx, qword [0x140d8ae60]
lea rcx, [rcx + rsi*4]
lock or dword [rcx], edi
mov rcx, qword [0x140d8d630]
mov qword [rax + 8], rcx
mov rcx, rax
nop
mov qword [0x140d8d630], rax
nop
mov edx, 1
lea rsi, [0x140d8d638]
lock xadd dword [rsi], edx
mov rdx, qword [rcx + 0x1228]
shr rdx, 0x3d
test dl, dl
jne 0x14004a393
mov rax, qword [rsp + 0x10]
movabs rdx, 0x1fffffffffffffff
and rdx, rax
bts rdx, 0x3f
nop
nop
xchg qword [rcx + 0x1228], rdx
add rsp, 0x18
pop rbp
ret
lea rax, [0x14081be28]
mov ebx, 0x28
nop
call fcn.14003b760
mov rax, rsi
mov rcx, rdx
call fcn.14006bba0
call fcn.140039c60
lea rax, [0x140818181]
mov ebx, 0x23
call fcn.14003b760
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.1400698c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.14004a260
Function at 0x1400574e0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
test rbx, rbx
jbe 0x140057657
movzx edx, byte [rax]
test edx, edx
jne 0x140057514
nop dword [rax]
test r8b, r8b
jne 0x140057514
xor eax, eax
xor ebx, ebx
mov rcx, rbx
xor edi, edi
add rsp, 0x10
pop rbp
ret
bt edx, 7
jae 0x140057527
xor edx, edx
xor r8d, r8d
xor r9d, r9d
jmp 0x140057617
mov r8d, 1
mov r9d, edx
and edx, 1
neg edx
shr r9d, 1
xor edx, r9d
add dword [rsi], edx
nop dword [rax]
cmp rbx, r8
jb 0x140057605
sub rbx, r8
sub rcx, r8
mov rdx, rcx
neg rdx
sar rdx, 0x3f
and r8, rdx
lea rdx, [rax + r8]
test rbx, rbx
jbe 0x1400575f7
movzx esi, byte [rax + r8]
bt esi, 7
jae 0x14005757d
xor eax, eax
xor esi, esi
xor r8d, r8d
jmp 0x1400575c0
mov eax, 1
cmp rax, rbx
ja 0x1400575ab
add qword [rdi], rsi
sub rcx, rax
sub rbx, rax
mov rsi, rcx
neg rsi
sar rsi, 0x3f
and rax, rsi
add rax, rdx
mov edi, 1
add rsp, 0x10
pop rbp
ret
mov rcx, rbx
call fcn.14006bc60
lea r8d, [rcx + 7]
mov rcx, r11
mov eax, r12d
nop dword [rax]
cmp rax, rbx
jae 0x1400575ef
movzx r9d, byte [rax + rdx]
mov r10d, r9d
and r9d, 0x7f
mov r11, rcx
mov ecx, r8d
shl r9d, cl
lea r12d, [rax + 1]
or esi, r9d
test r10b, 0x80
jne 0x1400575b3
mov rcx, r11
mov eax, r12d
jmp 0x140057582
mov rcx, rbx
call fcn.14006bba0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.14006bba0
mov eax, r8d
mov rcx, rbx
call fcn.14006bc60
lea r9d, [rcx + 7]
mov rcx, r12
cmp rbx, rdx
jbe 0x14005764d
movzx r10d, byte [rdx + rax]
mov r11d, r10d
and r10d, 0x7f
mov r12, rcx
mov ecx, r9d
shl r10d, cl
inc edx
or r8d, r10d
test r11b, 0x80
jne 0x140057610
mov rcx, r12
mov r9d, edx
mov edx, r8d
mov r8d, r9d
jmp 0x14005752d
mov eax, edx
mov rcx, rbx
call fcn.14006bba0
xor eax, eax
mov rcx, rax
nop dword [rax]
call fcn.14006bba0
nop
int3
Function at 0x14005ee60
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x14005ef0f
push rbp
mov rbp, rsp
sub rsp, 0x58
mov qword [rsp + 0x70], rbx
lea rdx, [rsp + 0x68]
mov qword [rsp + 8], 0
movups xmmword [rsp + 0x10], xmm15
movups xmmword [rsp + 0x18], xmm15
movups xmmword [rsp + 0x28], xmm15
movups xmmword [rsp + 0x38], xmm15
movups xmmword [rsp + 0x48], xmm15
lea rsi, [0x14005ef60]
mov qword [rsp + 0x10], rsi
mov rsi, qword [rsp + 0x60]
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdx
mov rdx, r14
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 8]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x40], rbx
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.140069780
xorps xmm15, xmm15
mov r14, qword [0x140de1000]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rax, qword [rsp + 8]
add rsp, 0x58
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.1400698c0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
nop dword [rax]
jmp fcn.14005ee60
Function at 0x14006b700
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x140de1600]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x140de0c0f], 0
je 0x14006b736
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x140de1980]
aesenc xmm0, xmmword [0x140de1990]
aesenc xmm0, xmmword [0x140de19a0]
movq rax, xmm0
ret
jmp 0x14000dae0

Function at 0x140619720
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140d5bce0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140619740
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140619748
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140619740
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140619795
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14061978c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140619740
add rax, 0x28
cmp rax, r9
jne 0x140619778
xor eax, eax
ret

Function at 0x1406197a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140d5bce0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1406197c0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1406197c8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1406197c0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140619850
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140d5bce0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140619870
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140619878
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret
Function at 0x180dd6058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180dd61df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180dd6089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180dd606f
add dl, dl
jne 0x180dd6096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180dd60f6
xor eax, eax
add dl, dl
jne 0x180dd60a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180dd61ad
add dl, dl
jne 0x180dd60b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180dd60c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180dd60d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180dd60dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180dd60ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180dd607e
mov eax, 1
add dl, dl
jne 0x180dd6106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180dd6113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180dd60fb
sub eax, ebx
mov ebx, 1
jne 0x180dd614c
mov ecx, 1
add dl, dl
jne 0x180dd612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180dd613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180dd6123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180dd607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180dd6168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180dd6175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180dd615d
cmp eax, 0x7d00
jae 0x180dd619b
cmp eax, 0x500
jb 0x180dd6196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180dd607e
cmp eax, 0x7f
ja 0x180dd619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180dd607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180dd61d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x180dd607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180001470
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov qword [rsp + 0x68], r13
mov rcx, qword [rcx + 8]
mov r13d, r9d
mov esi, r8d
lea rbx, [rdi + 0x10]
test rcx, rcx
jne 0x18000149b
xor eax, eax
jmp 0x18000149f
mov eax, dword [rbx]
sub eax, ecx
lea ecx, [rax + rsi]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x28], r14
cmp ecx, dword [rdi + 0x18]
jb 0x180001550
xorps xmm0, xmm0
mov eax, ecx
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x20], r15
cvtsi2sd xmm0, rax
mulsd xmm0, qword [0x18002ab60]
call fcn.18001e464
cvttsd2si r15, xmm0
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 4]
shl r15d, 0xa
mov edx, r15d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdx, qword [rdi + 8]
mov rbp, rax
test rdx, rdx
jne 0x180001507
xor ecx, ecx
mov r14, rbx
jmp 0x180001510
mov ecx, dword [rdi + 0x10]
lea r14, [rdi + 0x10]
sub ecx, edx
mov r12d, ecx
mov r8d, ecx
mov rcx, rbp
call fcn.18000d580
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x180001535
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
lea rcx, [r12 + rbp]
mov dword [rdi + 0x18], r15d
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x60]
mov qword [r14], rcx
mov qword [rdi + 8], rbp
jmp 0x180001554
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rsp + 0x58]
mov r8, rsi
call fcn.18000d580
test r13d, r13d
mov r13, qword [rsp + 0x68]
je 0x1800015d6
xor r10d, r10d
test esi, esi
jle 0x1800015d6
mov r14, qword [rsp + 0x70]
xor ebp, ebp
xor r11d, r11d
nop dword [rax]
movzx ecx, byte [r14 + rbp]
lea r11, [r11 + 1]
mov r8, qword [rbx]
mov eax, 0xa6810a7
mul ecx
mov eax, ecx
mov r9d, r10d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 9
imul eax, eax, 0x3d8
sub ecx, eax
mov eax, 0xcccccccd
mul r10d
add cl, 0xf
lea rax, [rbp + 1]
xor byte [r11 + r8 - 1], cl
xor ebp, ebp
shr edx, 3
inc r10d
lea ecx, [rdx + rdx*4]
add ecx, ecx
cmp r9d, ecx
cmovne rbp, rax
cmp r10d, esi
jl 0x180001580
add qword [rbx], rsi
mov eax, esi
mov r14, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
pop rsi
pop rbx
ret
Function at 0x1800036e0
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x20], 0
mov rdi, rcx
je 0x18000375a
mov rcx, qword [rcx + 0x108]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x48], rbx
mov edx, 0xffff
mov r8d, 0x80
mov dword [rsp + 0x40], 1
xor ebx, ebx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.KERNEL32.dll_CancelIo]
xchg dword [rdi + 0x20], ebx
mov rcx, qword [rdi + 0x108]
call qword [sym.imp.WS2_32.dll_closesocket]
mov rcx, qword [rdi + 8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rsp + 0x48]
mov qword [rdi + 0x108], 0xffffffffffffffff
add rsp, 0x30
pop rdi
ret
Function at 0x180004380
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1800043e1
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x1800043a0
mov ecx, dword [r10]
jmp 0x1800044ca
cmp ecx, 0x4e0
jb 0x1800044ca
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180004400
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180004450
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180004510
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push rbx
push rbp
push rsi
push r12
push r14
push r15
sub rsp, 0x78
mov rax, qword [0x18002f010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov r12d, 2
movzx r14d, r8w
mov r15, rdx
mov rbp, rcx
xor esi, esi
mov edx, r12d
mov ecx, r12d
lea r8d, [rsi + 0x11]
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rbp + 0xb0], rax
cmp rax, 0xffffffffffffffff
je 0x1800046ef
mov qword [rsp + 0x40], rsi
lea rcx, [rsp + 0x54]
mov qword [rsp + 0x38], rsi
lea r9d, [rsi + 4]
mov qword [rsp + 0x30], rcx
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], esi
mov rcx, rax
mov edx, 0x9800000c
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x70], rdi
mov dword [rsp + 0x50], esi
call qword [sym.imp.WS2_32.dll_WSAIoctl]
mov rcx, qword [rbp + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rbp + 0xb0]
lea r9, [rsp + 0x50]
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
call qword [sym.imp.WS2_32.dll_WSACreateEvent]
mov rcx, r15
mov qword [rbp + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], esi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
lea eax, [rbx + 1]
movsxd rcx, eax
call fcn.18000bff8
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov qword [rsp + 0x38], rsi
mov r8, r15
mov qword [rsp + 0x30], rsi
mov r9d, eax
mov dword [rsp + 0x28], ebx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, rdi
mov byte [rbx + rdi], sil
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rcx, rdi
mov rbx, rax
call fcn.18000bf88
mov rdi, qword [rsp + 0x70]
test rbx, rbx
je 0x1800046ef
movzx ecx, r14w
mov word [rsp + 0x58], r12w
call qword [sym.imp.WS2_32.dll_htons]
mov rdx, qword [rbp + 0xb8]
lea r8d, [rsi + 0x30]
mov word [rsp + 0x5a], ax
mov rax, qword [rbx + 0x18]
mov rcx, qword [rax]
mov eax, dword [rcx]
mov rcx, qword [rbp + 0xb0]
mov dword [rsp + 0x5c], eax
call qword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
je 0x1800046eb
mov rcx, qword [rbp + 0xb0]
lea r8d, [rsi + 0x10]
lea rdx, [rsp + 0x58]
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x1800046e6
cmp eax, 0xffffffff
jne 0x1800046eb
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
jne 0x1800046eb
mov esi, 1
mov eax, esi
jmp 0x1800046f1
xor eax, eax
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.18000b980
add rsp, 0x78
pop r15
pop r14
pop r12
pop rsi
pop rbp
pop rbx
ret
Function at 0x180004bf0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
nop dword [rax]
mov rdx, qword [rbx + 0xf8]
xor r9d, r9d
mov rcx, qword [rbx + 0xb0]
mov r8d, 0x598
call qword [sym.imp.WS2_32.dll_recv]
mov edi, eax
test eax, eax
jle 0x180004c76
cmp eax, 0x10
je 0x180004ca4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rbx + 0x29c]
lea rcx, [rbx + 0x2c0]
mov rdx, qword [rbx + 0xf8]
cmp edi, 0x18
jl 0x180004c5e
mov r9, qword [rbx + 0x2a8]
mov r8d, edi
mov dword [rsp + 0x20], eax
call fcn.180006200
jmp 0x180004c6c
cmp edi, 0xc
jne 0x180004cf4
call fcn.180006490
cmp eax, 2
jne 0x180004c00
jmp 0x180004cff
cmp edi, 0xffffffff
jne 0x180004c00
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x180004d40
cmp eax, 0x2744
je 0x180004c00
cmp eax, 0x2746
je 0x180004c00
jmp 0x180004d0f
mov rcx, qword [rbx + 0xf8]
mov rax, qword [rcx]
cmp rax, qword [0x18002a0d8]
jne 0x180004cec
mov rax, qword [rcx + 8]
cmp rax, qword [0x18002a0e0]
jne 0x180004cec
xor eax, eax
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xac], eax
mov qword [rbx + 0xa4], 5
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, recv
call qword [sym.imp.WS2_32.dll_WSASetLastError]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov ecx, 0x4c7
cmove eax, ecx
mov dword [rbx + 0xa0], 1
mov dword [rbx + 0xa4], 4
mov dword [rbx + 0xa8], eax
xor eax, eax
mov dword [rbx + 0xac], 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
mov eax, 1
add rsp, 0x30
pop rdi
ret