joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800ec9a0
Capabilities:
Reference google public dns server

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push r14
sub rsp, 0x20
mov esi, ecx
mov r14, r8
mov rcx, rdx
mov rbx, rdx
call fcn.18000d870
mov byte [r14], 0
cmp byte [0x1802e3d69], 0
jne 0x1800eca78
call fcn.1800ebd60
mov rcx, qword [0x1802e3d70]
test rcx, rcx
je 0x1800eca78
cmp qword [0x1802e3d98], 0
je 0x1800eca78
mov qword [rsp + 0x30], rdi
call fcn.18004bef0
mov rcx, qword [0x1802e3d98]
mov edx, esi
xor dil, dil
call fcn.18004cc10
mov rsi, rax
test rax, rax
je 0x1800eca52
lea rdx, [rax + 0x10]
mov rcx, rbx
call fcn.18000b040
lea rdx, str.0.0.0.0
mov rcx, rbx
call fcn.18000ff40
test al, al
je 0x1800eca45
lea rdx, str.8.8.8.8
mov rcx, rbx
call fcn.1800146c0
movzx eax, byte [rsi + 0xa0]
mov dil, 1
mov byte [r14], al
mov rcx, qword [0x1802e3d70]
call fcn.18004bf30
movzx eax, dil
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov rbx, qword [rsp + 0x38]
xor al, al
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x1800ecea0
Capabilities:
Reference google public dns server

Disassembly:
test rcx, rcx
je 0x1800ed036
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx r14d, dl
mov rbp, rcx
cmp byte [0x1802e3d69], 0
jne 0x1800ed024
call fcn.1800ebd60
cmp byte [0x1802e3d68], 0
je 0x1800ed024
mov rcx, qword [0x1802e3d70]
test rcx, rcx
je 0x1800ed024
cmp qword [0x1802e3d98], 0
je 0x1800ed024
call fcn.18004bef0
mov ecx, 0xb8
call fcn.1800098d0
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x1800ecf57
xor edx, edx
mov r8d, 0xb8
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call fcn.18003c900
nop
lea rax, vtable._ckNameserver.0
mov qword [rdi], rax
lea rcx, [rdi + 0x10]
call fcn.18000aea0
xor ebx, ebx
mov dword [rdi + 0xa4], ebx
mov dword [rdi + 0xb4], ebx
jmp 0x1800ecf5b
xor ebx, ebx
mov edi, ebx
test rdi, rdi
je 0x1800ed018
mov rdx, rbp
lea rcx, [rdi + 0x10]
call fcn.18000b3e0
lea rcx, [rdi + 0x10]
call fcn.180017540
lea rdx, str.0.0.0.0
lea rcx, [rdi + 0x10]
call fcn.18000ff40
test al, al
je 0x1800ecf9d
lea rdx, str.8.8.8.8
lea rcx, [rdi + 0x10]
call fcn.1800146c0
lea rcx, [rdi + 0x10]
call fcn.180010a00
test eax, eax
je 0x1800ed00b
mov byte [rdi + 0xa0], r14b
mov rcx, qword [0x1802e3d98]
call fcn.18004cdd0
mov ebp, eax
test eax, eax
jle 0x1800ecffa
nop dword [rax]
nop word [rax + rax]
mov edx, ebx
mov rcx, qword [0x1802e3d98]
call fcn.18004cc10
test rax, rax
je 0x1800ecff4
lea rcx, [rax + 0x10]
lea rdx, [rdi + 0x10]
call fcn.18000ff00
test al, al
jne 0x1800ed00b
inc ebx
cmp ebx, ebp
jl 0x1800ecfd0
mov rdx, rdi
mov rcx, qword [0x1802e3d98]
call fcn.18004c890
jmp 0x1800ed018
mov rax, qword [rdi]
mov edx, 1
mov rcx, rdi
call qword [rax]
mov rcx, qword [0x1802e3d70]
call fcn.18004bf30
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1800ef150
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, r8
mov esi, ecx
test ecx, ecx
js 0x1800ef1e8
test rbx, rbx
je 0x1800ef1e8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rax
lea r8, str.getEntropy
mov rdx, r9
lea rcx, [rsp + 0x20]
call fcn.180029f30
nop
xor bpl, bpl
call fcn.180057830
mov rdi, rax
test rax, rax
jne 0x1800ef1b1
xor bl, bl
jmp 0x1800ef1d9
mov r8, rbx
mov edx, esi
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
movzx ebx, bpl
mov ecx, 1
test eax, eax
cmovne ebx, ecx
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
nop
lea rcx, [rsp + 0x20]
call fcn.18002a0e0
movzx eax, bl
jmp 0x1800ef1ea
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180009610
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180107060
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, r8
mov rcx, rdx
mov rsi, rdx
call fcn.18000d870
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x1801070b2
add rcx, 0xc8
mov r9b, 1
mov qword [rsp + 0x20], rbx
mov r8, rsi
xor edx, edx
call fcn.1800608a0
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x1801070d2
mov rdx, rsi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.180112220
mov rcx, qword [rdi + 0x20]
test rcx, rcx
je 0x18010710b
add rcx, 0x550
mov qword [rsp + 0x20], rbx
mov r9b, 1
mov r8, rsi
xor edx, edx
call fcn.1800608a0
mov dl, 0x2c
mov rcx, rsi
call fcn.18000b790
mov rcx, qword [rdi + 0x20]
add rcx, 0x570
jmp 0x180107090
mov rcx, qword [rdi + 0x28]
test rcx, rcx
je 0x18010714e
add rcx, 0xa0
call fcn.18001fd80
mov rcx, qword [rdi + 0x28]
mov ebx, eax
add rcx, 0xa0
call fcn.18001f920
mov rcx, rax
mov r8, rsi
mov edx, ebx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp fcn.180055e20
mov rbx, qword [rsp + 0x40]
xor al, al
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18013c990
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xe0
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, r9
mov rbx, r8
mov r15, rdx
mov r12, rcx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], 1
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov edi, eax
xor sil, sil
test eax, eax
jne 0x18013cb2d
mov ecx, dword [rsp + 0x30]
test ecx, ecx
je 0x18013cba3
call fcn.180018e50
mov rdi, rax
test rax, rax
je 0x18013cba7
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x34]
xor r8d, r8d
mov rdx, r15
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov r12d, eax
test eax, eax
jne 0x18013caad
mov r8d, dword [rsp + 0x30]
mov eax, dword [rsp + 0x34]
cmp eax, 4
jne 0x18013ca70
cmp r8d, eax
jne 0x18013ca92
mov edx, dword [rdi]
mov rcx, rbx
call fcn.18000b2d0
mov sil, 1
mov rcx, rdi
call fcn.180009630
jmp 0x18013cba3
dec eax
cmp eax, 1
ja 0x18013ca92
mov rdx, rdi
mov rcx, rbx
call fcn.18000b3e0
mov sil, 1
mov rcx, rdi
call fcn.180009630
jmp 0x18013cba3
mov rdx, rdi
mov rcx, rbx
call fcn.18000b9c0
mov sil, 1
mov rcx, rdi
call fcn.180009630
jmp 0x18013cba3
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x79]
call fcn.18000aea0
nop
mov edx, r12d
lea rcx, [rbp - 0x79]
call fcn.18000c430
mov rbx, qword [r14]
lea rcx, [rbp - 0x79]
call fcn.180010a70
mov r8, rax
lea rdx, str.RegistryQueryError2
mov rcx, r14
call qword [rbx + 0x58]
mov rax, qword [r14]
mov r8, r15
lea rdx, str.ValueName
mov rcx, r14
call qword [rax + 0x58]
nop
lea rcx, [rbp - 0x79]
call fcn.18000aef0
mov rcx, rdi
call fcn.180009630
jmp 0x18013cba3
xorps xmm0, xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
movups xmmword [rbp - 0x59], xmm0
movups xmmword [rbp - 0x49], xmm0
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
movups xmmword [rbp - 9], xmm0
movups xmmword [rbp + 7], xmm0
lea rcx, [rbp - 0x79]
call fcn.18000aea0
nop
mov edx, edi
lea rcx, [rbp - 0x79]
call fcn.18000c430
mov rbx, qword [r14]
lea rcx, [rbp - 0x79]
call fcn.180010a70
mov r8, rax
lea rdx, str.RegistryQueryError
mov rcx, r14
call qword [rbx + 0x58]
mov r9, qword [r14]
mov r8, r15
lea rdx, str.ValueName
mov rcx, r14
call qword [r9 + 0x58]
nop
lea rcx, [rbp - 0x79]
call fcn.18000aef0
movzx eax, sil
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.180009610
add rsp, 0xe0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x18013f590
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbp, r9
mov rbx, r8
mov rdi, qword [rsp + 0x200]
xor edx, edx
mov r8d, 0x178
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.18002a040
nop
lea rcx, [rbp + 0x50]
call fcn.18001fd80
test eax, eax
jne 0x18013f603
xor edx, edx
lea r8d, [rax + 0x10]
lea rcx, [rbp + 0x50]
call fcn.18001bbc0
mov dword [rbp + 0x48], reloc.WS2_32.dll_inet_ntoa
cmp dword [rbx + 0x554], 0
je 0x18013f618
lea rdx, str.Not_in_IV_mode.
jmp 0x18013f7df
mov ecx, dword [rbx + 0x558]
cmp ecx, 0xf
ja 0x18013f7d8
mov edx, dword [rbp + 0x48]
add edx, ecx
cmp edx, 0xc
jbe 0x18013f638
or dword [rbx + 0x550], 1
lea rcx, [rbp + 0x50]
call fcn.18001f920
mov rsi, rax
xor r15d, r15d
mov edi, r15d
cmp dword [rbx + 0x558], r15d
jne 0x18013f6a9
test dword [rbp + 0x48], 0xfffffff0
jbe 0x18013f6a4
nop dword [rax]
mov eax, edi
mov rcx, qword [rax + rsi]
xor qword [rbx + 0x510], rcx
lea eax, [rdi + 8]
mov rax, qword [rax + rsi]
xor qword [rbx + 0x518], rax
lea r8, [rsp + 0x20]
lea rdx, [rbx + 0x510]
mov rcx, rbx
call fcn.180140ee0
sub qword [rbx + 0x560], 0xffffffffffffff80
add edi, 0x10
mov eax, dword [rbp + 0x48]
and eax, 0xfffffff0
cmp edi, eax
jb 0x18013f660
mov eax, edi
add rsi, rax
cmp edi, dword [rbp + 0x48]
jae 0x18013f7d4
movsxd rcx, dword [rbx + 0x558]
movzx eax, byte [rsi]
mov byte [rcx + rbx + 0x540], al
inc dword [rbx + 0x558]
lea rsi, [rsi + 1]
cmp dword [rbx + 0x558], 0x10
jne 0x18013f7c9
lea rdx, [rbx + 0x510]
movzx eax, byte [rbx + 0x540]
xor byte [rdx], al
movzx eax, byte [rbx + 0x541]
xor byte [rbx + 0x511], al
movzx eax, byte [rbx + 0x542]
xor byte [rbx + 0x512], al
movzx eax, byte [rbx + 0x543]
xor byte [rbx + 0x513], al
movzx eax, byte [rbx + 0x544]
xor byte [rbx + 0x514], al
movzx eax, byte [rbx + 0x545]
xor byte [rbx + 0x515], al
movzx eax, byte [rbx + 0x546]
xor byte [rbx + 0x516], al
movzx eax, byte [rbx + 0x547]
xor byte [rbx + 0x517], al
movzx eax, byte [rbx + 0x548]
xor byte [rbx + 0x518], al
movzx eax, byte [rbx + 0x549]
xor byte [rbx + 0x519], al
movzx eax, byte [rbx + 0x54a]
xor byte [rbx + 0x51a], al
movzx eax, byte [rbx + 0x54b]
xor byte [rbx + 0x51b], al
movzx eax, byte [rbx + 0x54c]
xor byte [rbx + 0x51c], al
movzx eax, byte [rbx + 0x54d]
xor byte [rbx + 0x51d], al
movzx eax, byte [rbx + 0x54e]
xor byte [rbx + 0x51e], al
movzx eax, byte [rbx + 0x54f]
xor byte [rbx + 0x51f], al
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.180140ee0
mov dword [rbx + 0x558], r15d
sub qword [rbx + 0x560], 0xffffffffffffff80
inc edi
cmp edi, dword [rbp + 0x48]
jb 0x18013f6b2
mov bl, 1
jmp 0x18013f7ea
lea rdx, str.buflen_error.
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x28]
xor bl, bl
lea rcx, [rsp + 0x20]
call fcn.18002a130
movzx eax, bl
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.180009610
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1b0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x180140c90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rax, qword [rcx]
lea rdx, [rsp + 0x20]
mov rbx, r8
xorps xmm0, xmm0
add r8, 0x500
movups xmmword [rsp + 0x20], xmm0
call qword [rax + 0x20]
xor edi, edi
xorps xmm0, xmm0
movups xmmword [rbx + 0x540], xmm0
mov esi, edi
xorps xmm1, xmm1
movups xmmword [rbx + 0x510], xmm1
mov qword [rbx + 0x550], rdi
mov dword [rbx + 0x558], edi
mov qword [rbx + 0x560], rdi
mov qword [rbx + 0x568], rdi
movups xmmword [rsp + 0x20], xmm0
mov r8, qword [rbx + 0x570]
lea rdx, [rsp + 0x20]
add r8, 8
mov byte [rsp + 0x20], dil
add r8, rsi
lea rcx, [rbx + 0x500]
call fcn.18013ff10
inc edi
add rsi, 0x10
cmp edi, 0x100
jl 0x180140d00
mov eax, 0x1000
lea r11, [0x1802502c0]
nop
mov r10d, 0x100
nop word [rax + rax]
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xfea]
movzx r9d, byte [rdx + rax - 0xfe9]
mov byte [rdx + rax + 0x17], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xfeb]
mov byte [rdx + rax + 0x16], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xfec]
mov byte [rdx + rax + 0x15], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xfed]
mov byte [rdx + rax + 0x14], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xfee]
mov byte [rdx + rax + 0x13], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xfef]
mov byte [rdx + rax + 0x12], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff0]
mov byte [rdx + rax + 0x11], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff1]
mov byte [rdx + rax + 0x10], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff2]
mov byte [rdx + rax + 0xf], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff3]
mov byte [rdx + rax + 0xe], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff4]
mov byte [rdx + rax + 0xd], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff5]
mov byte [rdx + rax + 0xc], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff6]
mov byte [rdx + rax + 0xb], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff7]
mov byte [rdx + rax + 0xa], cl
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rdx + rax - 0xff8]
mov byte [rdx + rax + 9], cl
lea ecx, [r9 + r9]
mov rdx, qword [rbx + 0x570]
movzx ecx, byte [rcx + r11]
mov byte [rdx + rax + 8], cl
lea ecx, [r9 + r9]
mov r8, qword [rbx + 0x570]
movzx ecx, byte [rcx + r11 + 1]
xor byte [r8 + rax + 9], cl
add rax, 0x10
sub r10, 1
jne 0x180140d50
cmp rax, 0x10000
jl 0x180140d40
mov al, 1
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180009610
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1801462e0
Capabilities:
Encrypt data using blowfish

Disassembly:
lea rax, [0x1802d9180]
ret

Function at 0x1801462f0
Capabilities:
Encrypt data using blowfish

Disassembly:
lea rax, [0x1802d91d0]
ret
Function at 0x180147ed0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp byte [rcx + 0x3b0], 0
mov r9, r8
mov r8, rdx
lea rdx, [rcx + 0xb0]
jne 0x180149370
jmp 0x1801485d0
Function at 0x18014b990
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov ebx, 0x80
mov qword [rsp + 0x40], r12
mov r14d, r9d
mov esi, r8d
mov r12, rdx
mov rdi, rcx
cmp r8d, ebx
jbe 0x18014b9c1
mov esi, ebx
jmp 0x18014b9cb
mov eax, 1
cmp esi, eax
cmovb esi, eax
mov qword [rsp + 0x48], r15
mov r15d, 0x400
test r14d, r14d
jne 0x18014b9e0
mov r14d, r15d
jmp 0x18014b9e7
cmp r14d, r15d
cmova r14d, r15d
mov edx, esi
mov rcx, r12
call fcn.18001f440
mov rcx, r12
mov ebp, esi
call fcn.18001f920
mov r12, qword [rsp + 0x40]
cmp esi, ebx
jbe 0x18014ba0b
xor al, al
jmp 0x18014bb35
test r14d, r14d
mov r8d, esi
lea rcx, [rdi + 0xb0]
mov rdx, rax
cmove r14d, r15d
mov r15d, esi
call sub.VCRUNTIME140.dll_memcpy
lea r11, [0x180254860]
cmp esi, ebx
jae 0x18014ba79
lea eax, [rsi - 1]
movzx r8d, byte [rax + rdi + 0xb0]
lea rdx, [rdi + 0xb0]
add rdx, r15
nop dword [rax + rax]
mov eax, ebp
lea rdx, [rdx + 1]
sub eax, esi
inc ebp
movzx ecx, byte [rax + rdi + 0xb0]
movzx eax, r8b
add rcx, rax
movzx eax, cl
movzx r8d, byte [rax + r11]
mov byte [rdx - 1], r8b
cmp ebp, ebx
jb 0x18014ba50
lea eax, [r14 + 7]
mov r8d, ebx
shr eax, 3
lea r9, [rdi + 0xb0]
sub r8d, eax
neg r14d
mov eax, r8d
movzx ecx, r14b
add r9, rax
and cl, 7
mov edx, 0xff
sar rdx, cl
movzx eax, byte [r9]
and rdx, rax
movzx r10d, byte [rdx + r11]
mov byte [r9], r10b
test r8d, r8d
je 0x18014bae4
nop dword [rax]
movzx eax, r10b
lea ebx, [rbx - 1]
movzx ecx, byte [rbx + rdi + 0xb0]
lea r9, [r9 - 1]
xor rcx, rax
movzx r10d, byte [rcx + r11]
mov byte [r9], r10b
add r8d, 0xffffffff
jne 0x18014bac0
mov r9d, 0x3f
lea r10, [rdi + 0x12e]
mov r11d, 0x100
nop word [rax + rax]
lea r8d, [r9 + r9]
movzx ecx, byte [r8 + rdi + 0xb0]
lea eax, [r8 + 1]
movzx edx, byte [rax + rdi + 0xb0]
lea r10, [r10 - 2]
imul edx, r11d
mov eax, r9d
dec r9d
add dx, cx
mov word [r10 + 2], dx
test eax, eax
jne 0x18014bb00
mov al, 1
mov r15, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x18014bda0
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
mov r10d, dword [rdx + 0x458]
mov rbx, r8
mov r11d, dword [rdx + 0x45c]
movsxd rdi, r9d
test r9d, r9d
jle 0x18014be0f
nop dword [rax]
nop word [rax + rax]
inc r10b
lea rbx, [rbx + 1]
movzx r10d, r10b
mov r9d, dword [rdx + r10*4 + 0x58]
lea r8, [rdx + r10*4]
lea eax, [r11 + r9]
movzx r11d, al
mov ecx, dword [rdx + r11*4 + 0x58]
mov dword [r8 + 0x58], ecx
mov dword [rdx + r11*4 + 0x58], r9d
add r9b, cl
movzx eax, r9b
movzx ecx, byte [rdx + rax*4 + 0x58]
xor byte [rbx - 1], cl
sub rdi, 1
jne 0x18014bdd0
mov rbx, qword [rsp + 8]
mov rdi, qword [rsp + 0x10]
mov dword [rdx + 0x45c], r11d
mov dword [rdx + 0x458], r10d
ret
Function at 0x18015d020
Capabilities:
Encode data using xor

Disassembly:
mov r9, rdx
movzx r10d, r8b
neg r10d
lea rdx, [rcx + 0x7c]
lea rax, [r9 + 0x7c]
movd xmm2, r10d
pshufd xmm2, xmm2, 0
cmp rcx, rax
ja 0x18015d067
cmp rdx, r9
jb 0x18015d067
sub r9, rcx
mov r8d, 0x20
nop
mov edx, dword [rcx]
xor edx, dword [rcx + r9]
lea rcx, [rcx + 4]
and edx, r10d
xor dword [rcx - 4], edx
sub r8, 1
jne 0x18015d050
ret
lea rax, [rcx + 0x10]
sub r9, rcx
mov ecx, 4
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [r9 + rax - 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [r9 + rax - 0x20]
pxor xmm1, xmm0
pand xmm1, xmm2
pxor xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
sub rcx, 1
jne 0x18015d080
ret
Function at 0x18015fac0
Capabilities:
Encrypt data using curve25519

Disassembly:
push rbx
sub rsp, 0x2f0
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
mov rbx, rdx
test rcx, rcx
je 0x18015fc1e
test rdx, rdx
je 0x18015fc1e
test r8, r8
je 0x18015fc1e
movups xmm0, xmmword [rcx]
mov edx, 0x20
movups xmmword [r8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
lea r8, [rsp + 0x2a0]
call fcn.1800932e0
movzx eax, byte [rsp + 0x2bf]
and byte [rsp + 0x2a0], 0xf8
and al, 0x3f
or al, 0x40
mov byte [rsp + 0x2bf], al
xor ecx, ecx
lea rax, [rsp + 0x40]
nop dword [rax]
movd xmm1, dword [rsp + rcx + 0x2a0]
lea rax, [rax + 0x40]
movd xmm2, dword [rsp + rcx + 0x2a4]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movd xmm1, dword [rsp + rcx + 0x2a8]
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x50], xmm2
movd xmm2, dword [rsp + rcx + 0x2ac]
add rcx, 0x10
punpcklbw xmm1, xmm0
punpcklbw xmm2, xmm0
punpcklwd xmm1, xmm0
punpcklwd xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm1
movdqu xmmword [rax - 0x30], xmm2
cmp rcx, 0x20
jl 0x18015fb40
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x220]
movups xmmword [rsp + 0xa0], xmm0
movups xmmword [rsp + 0xb0], xmm0
movups xmmword [rsp + 0xc0], xmm0
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
call fcn.18015bf70
lea rdx, [rsp + 0x220]
lea rcx, [rsp + 0x20]
call fcn.18015f390
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.18015f150
mov al, 1
jmp 0x18015fc20
xor al, al
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.180009610
add rsp, 0x2f0
pop rbx
ret
Function at 0x180161680
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x1b0
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov rbx, rcx
call sub.KERNEL32.dll_GetTickCount
mov ecx, dword [rbx + 0x18]
cmp eax, ecx
jb 0x1801616fc
cmp eax, dword [rbx + 0x28]
jb 0x1801616fc
sub eax, ecx
mov ecx, eax
je 0x18016177e
mov r8, qword [rbx + 8]
mov eax, 1
add r8, rcx
cmove r8, rax
mov r9, qword [rbx + 0x20]
add r9, qword [rbx + 0x10]
imul rax, r9, 0x3e8
cqo
idiv r8
mov ecx, 0xffffffff
cmp rax, rcx
jg 0x18016177e
mov qword [rbx + 0x30], r9
mov qword [rbx + 0x38], rax
jmp 0x18016177e
xor edx, edx
mov r8d, 0x178
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call fcn.18002a040
nop
cmp byte [0x1802e1fc5], 0
je 0x180161753
mov eax, dword [rbx + 0x44]
cmp eax, 1
jne 0x180161733
lea rdx, str.resetSendPerfMon
jmp 0x180161746
cmp eax, 2
lea rdx, str.resetReceivePerfMon
je 0x180161746
lea rdx, str.resetPerformanceMon
mov rax, qword [rsp + 0x20]
lea rcx, [rsp + 0x20]
call qword [rax + 0x30]
xor edi, edi
mov dword [rbx + 0x28], edi
mov qword [rbx + 0x20], rdi
call sub.KERNEL32.dll_GetTickCount
mov dword [rbx + 0x18], eax
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x30], rdi
mov qword [rbx + 0x38], rdi
lea rcx, [rsp + 0x20]
call fcn.18002a130
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.180009610
mov rbx, qword [rsp + 0x1c8]
add rsp, 0x1b0
pop rdi
ret

Function at 0x1801629c0
Capabilities:
Resolve dns

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [0x1802cd010]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rdi, r9
mov rsi, r8
mov r14, rdx
mov rbx, rcx
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], rax
lea r8, str.dns_gethostbyname
mov rdx, r9
lea rcx, [rsp + 0x40]
call fcn.180029f30
nop
xor ebp, ebp
mov dword [r14], ebp
mov rcx, rsi
call fcn.18000d870
mov rax, qword [rdi]
mov r8, rbx
lea rdx, str.hostname
mov rcx, rdi
call qword [rax + 0x58]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x180162ab3
mov rcx, qword [rax + 0x18]
mov rdx, qword [rcx]
test rdx, rdx
je 0x180162a4c
mov ebp, dword [rdx]
mov dword [r14], ebp
mov rax, qword [rax + 0x18]
mov r9, qword [rax]
lea rax, [r9 + 3]
lea rcx, [r9 + 2]
lea rdx, [r9 + 1]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rdx
lea r8, str._b._b._b._b
mov edx, 0x28
lea rcx, [rsp + 0x58]
call fcn.180057050
lea rdx, [rsp + 0x58]
mov rcx, rsi
call fcn.1800146c0
cmp byte [rdi + 0x169], 0
je 0x180162aaf
mov r8, rsi
lea rdx, [0x1802400f0]
mov rcx, rdi
call fcn.18002abd0
mov bl, 1
jmp 0x180162ab5
xor bl, bl
lea rcx, [rsp + 0x40]
call fcn.18002a0e0
movzx eax, bl
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.180009610
add rsp, 0x90
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret