joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004b370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14004b394
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov rax, qword [rcx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x14004b3d7
mov rdx, qword [rbx + 0x58]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x14004b3d7
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rbx + 0x40]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
mov eax, edi
mov byte [rdx], dil
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0x80], rsi
je 0x14004b508
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14004b41a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14004b445
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14004b50d
lea rax, [rsp + 0x90]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004b4ba
sub eax, 1
je 0x14004b4ba
cmp eax, 2
jne 0x14004b508
movsx ecx, byte [rsp + 0x40]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmove edi, ecx
mov eax, edi
jmp 0x14004b50d
mov rsi, qword [rsp + 0x90]
lea rax, [rsp + 0x48]
sub rsi, rax
je 0x14004b4eb
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x48]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14004b508
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x98], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14004b50d
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
Function at 0x14004b910
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x50
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004b9d9
cmp byte [rcx + 0x71], 0
je 0x14004b9d9
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14004b9cc
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x60]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x50]
lea r8, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004b988
sub eax, 1
je 0x14004b98c
cmp eax, 2
jne 0x14004b9cc
mov rdi, qword [rsp + 0x68]
mov al, 1
mov byte [rbx + 0x71], 0
add rsp, 0x50
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x60]
lea rax, [rsp + 0x30]
sub rdi, rax
je 0x14004b9ba
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x30]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004b9cc
cmp byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x68]
sete al
add rsp, 0x50
pop rbx
ret
mov rdi, qword [rsp + 0x68]
xor al, al
add rsp, 0x50
pop rbx
ret
mov al, 1
add rsp, 0x50
pop rbx
ret

Function at 0x14004cae0
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.14017d170
sub rsp, rax
mov rax, qword [0x1403a3648]
xor rax, rsp
mov qword [rsp + 0x1090], rax
lea r14, [rsp + 0x30]
mov qword [rsp + 0x20], r14
lea rcx, [0x1403a6dec]
lea rdx, [0x1403b74f8]
lea r8, [0x1403b7509]
lea r9, [rsp + 0x38]
call fcn.140154aa0
test eax, eax
je 0x140154238
xor esi, esi
jmp 0x14015426d
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 1]
call fcn.1402d2418
mov rsi, rax
mov rbx, qword [rsp + 0x38]
test rax, rax
je 0x140154265
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1402beb20
mov byte [rsi + rdi], 0
mov rcx, rbx
call fcn.1402d1344
mov rcx, rsi
call fcn.1402d1344
mov qword [rsp + 0x20], r14
lea rcx, [0x1403a70f8]
lea rdx, [0x1403b74f8]
lea r8, [0x1403b7509]
lea r9, [rsp + 0x38]
call fcn.140154aa0
test eax, eax
je 0x1401542a1
xor esi, esi
jmp 0x1401542d6
mov rdi, qword [rsp + 0x30]
lea rcx, [rdi + 1]
call fcn.1402d2418
mov rsi, rax
mov rbx, qword [rsp + 0x38]
test rax, rax
je 0x1401542ce
mov rcx, rsi
mov rdx, rbx
mov r8, rdi
call fcn.1402beb20
mov byte [rsi + rdi], 0
mov rcx, rbx
call fcn.1402d1344
call fcn.140155530
call fcn.140155670
call fcn.140155530
mov rcx, rsi
call fcn.140156390
test eax, eax
je 0x1401542fd
call fcn.140155670
call fcn.140155530
jmp 0x140154317
lea rcx, str.C:Windowscomsetup.log
call fcn.140156390
call fcn.140155670
call fcn.1401560f0
test eax, eax
jne 0x140154339
mov rcx, qword [rsp + 0x1090]
xor rcx, rsp
call fcn.14017d1d0
xor eax, eax
add rsp, 0x1098
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140155530
lea rcx, [0x1403a6ef0]
call fcn.140154000
mov rdi, rax
lea rcx, [0x1403a6ff4]
call fcn.140154000
mov rbx, rax
mov rcx, rdi
mov rdx, rax
call fcn.140155e60
test eax, eax
je 0x140154479
call fcn.140155530
call fcn.140156340
test eax, eax
jne 0x140154479
call fcn.140155670
call fcn.140156230
mov ebp, eax
call fcn.140155530
test ebp, ebp
je 0x1401543b7
call fcn.140156340
call fcn.140155670
call fcn.140156230
call fcn.140155530
call fcn.140155670
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
lea rcx, [0x1403a6ce8]
call fcn.140154000
mov r14, rax
lea rcx, [rsp + 0x38]
mov rdx, rax
call fcn.140155720
mov rcx, r14
call fcn.1402d1344
call fcn.140155670
call fcn.140155530
lea r14, [rsp + 0x14e]
lea r15, [0x140363f74]
mov edx, 0x65
mov rcx, r14
mov r8, r15
call fcn.140156170
call fcn.140155670
lea rcx, [rsp + 0x252]
mov edx, 0x66
mov r8, r15
call fcn.140156170
call fcn.140155530
lea rcx, [rsp + 0x45a]
mov edx, 0x68
mov r8, r15
call fcn.140156170
call fcn.140155670
lea rcx, [rsp + 0x356]
mov edx, 0x69
mov r8, r15
call fcn.140156170
call fcn.140155530
mov rcx, r14
call fcn.140155d50
call fcn.140155530
call fcn.140155670
mov rcx, rsi
call fcn.1401563f0
mov rcx, rsi
call fcn.1402d1344
mov rcx, rdi
call fcn.1402d1344
mov rcx, rbx
call fcn.1402d1344
call fcn.140155530
int3
Function at 0x1401546e0
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rbx
mov rsi, r8
mov r8, rcx
mov r9d, dword [rdx]
mov eax, dword [rdx + 4]
bswap r9d
bswap eax
mov r11d, dword [rdx + 8]
bswap r11d
mov edx, dword [rdx + 0xc]
bswap edx
xor r10d, r10d
nop word cs:[rax + rax]
mov ebx, eax
xor r9d, eax
mov ecx, ebx
rol r9d, cl
mov eax, r11d
mov ecx, edx
xor eax, edx
mov r11d, edx
rol eax, cl
mov edx, r9d
add edx, dword [r8 + r10*8]
add eax, dword [r8 + r10*8 + 4]
inc r10
mov r9d, ebx
cmp r10, 0x14
jne 0x140154710
add ebx, dword [r8 + 0xa0]
add r11d, dword [r8 + 0xa4]
mov ecx, ebx
shr ecx, 0x18
mov byte [rsi], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [rsi + 1], cl
mov byte [rsi + 2], bh
mov byte [rsi + 3], bl
mov ecx, eax
shr ecx, 0x18
mov byte [rsi + 4], cl
mov ecx, eax
shr ecx, 0x10
mov byte [rsi + 5], cl
mov byte [rsi + 6], ah
mov byte [rsi + 7], al
mov ecx, r11d
mov eax, r11d
shr eax, 0x18
mov byte [rsi + 8], al
mov eax, ecx
shr eax, 0x10
mov byte [rsi + 9], al
mov byte [rsi + 0xa], ch
mov byte [rsi + 0xb], cl
mov eax, edx
shr eax, 0x18
mov byte [rsi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [rsi + 0xd], al
mov byte [rsi + 0xe], dh
mov byte [rsi + 0xf], dl
pop rbx
pop rsi
ret

Function at 0x140155720
Capabilities:
Set current directory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x140
mov rdi, rdx
mov rsi, rcx
mov rax, qword [0x1403a3648]
xor rax, rsp
mov qword [rsp + 0x138], rax
xor ecx, ecx
call fcn.1402cf620
mov ecx, eax
call fcn.1402d30c4
call fcn.140155670
mov edx, 0x104
mov rcx, rsi
mov r8, rdi
call fcn.140155be0
lea r13, [rsi + 0x104]
call fcn.1402d30dc
fst dword [rdi]
add byte [rax + 0x63], cl
enter 0xffffffffffff8948, 0xffffffffffffffc8
enter 0xffffffffffffd148, 0xffffffffffffffe8
movabs rdi, 0x8421084210842109
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
lea rbx, str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x104], al
call fcn.1402d30dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
mov rax, rdx
shl rax, 6
add rdx, rdx
sub rdx, rax
add rdx, rcx
movzx eax, byte [rbx + rdx]
mov byte [rsi + 0x105], al
call fcn.1402d30dc
movsxd rcx, eax
mov rax, rcx
shr rax, 1
mul rdi
shr rdx, 4
invalid
add al, 0x48
mov eax, edx
Function at 0x140155c70
Capabilities:
Enumerate processes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x160
mov rdi, rcx
mov rax, qword [0x1403a3648]
xor rax, rsp
mov qword [rsp + 0x158], rax
call fcn.140155670
call fcn.140155530
xor ebx, ebx
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp rax, 0xffffffffffffffff
je 0x140155d2b
mov rsi, rax
mov dword [rsp + 0x28], 0x130
lea rdx, [rsp + 0x28]
mov rcx, rax
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x140155d10
call fcn.140155670
call fcn.140155530
lea rbx, [rsp + 0x54]
mov r15, qword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea r14, [rsp + 0x28]
nop dword [rax + rax]
mov rcx, rdi
mov rdx, rbx
call r15
test eax, eax
je 0x140155d14
mov rcx, rsi
mov rdx, r14
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x140155cf0
xor ebx, ebx
jmp 0x140155d18
xor ebx, ebx
jmp 0x140155d22
mov ebx, dword [rsp + 0x30]
call fcn.140155670
call fcn.140155530
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x158]
xor rcx, rsp
call fcn.14017d1d0
mov eax, ebx
add rsp, 0x160
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140155d50
Capabilities:
Create process on windows

Disassembly:
push rsi
sub rsp, 0xf0
movaps xmmword [rsp + 0xe0], xmm6
mov rsi, rcx
mov rax, qword [0x1403a3648]
xor rax, rsp
mov qword [rsp + 0xd8], rax
call fcn.140155530
xorps xmm6, xmm6
movaps xmmword [rsp + 0xc0], xmm6
movaps xmmword [rsp + 0xb0], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
movaps xmmword [rsp + 0x70], xmm6
mov qword [rsp + 0xd0], 0
movaps xmmword [rsp + 0x50], xmm6
mov qword [rsp + 0x60], 0
mov word [rsp + 0xb0], 0
call fcn.140155670
call fcn.140155530
lea rax, [rsp + 0x50]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rax
movups xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x28], 0x8000000
mov dword [rsp + 0x20], 0
mov rcx, rsi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140155e30
call fcn.140155670
mov rcx, qword [rsp + 0x50]
mov rsi, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rsi
mov rcx, qword [rsp + 0x58]
call rsi
call fcn.140155530
mov rcx, qword [rsp + 0xd8]
xor rcx, rsp
call fcn.14017d1d0
movaps xmm6, xmmword [rsp + 0xe0]
add rsp, 0xf0
pop rsi
ret
Function at 0x140155f60
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, r8
mov r14, rdx
mov rbx, rcx
mov rax, qword [0x1403a3648]
xor rax, rsp
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov edx, 8
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140155fc4
mov rdi, rax
mov rcx, rax
mov rdx, r14
mov r8, rsi
call fcn.1402beb20
test rsi, rsi
je 0x14015605b
cmp rsi, 8
jae 0x140155fcb
xor eax, eax
jmp 0x140156050
xor esi, esi
jmp 0x1401560d5
cmp rsi, 0x20
jae 0x140155fd5
xor eax, eax
jmp 0x140156022
mov rax, rsi
and rax, 0xffffffffffffffe0
xor ecx, ecx
pcmpeqd xmm0, xmm0
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdi + rcx]
movdqu xmm2, xmmword [rdi + rcx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rdi + rcx], xmm1
movdqu xmmword [rdi + rcx + 0x10], xmm2
add rcx, 0x20
cmp rax, rcx
jne 0x140155ff0
cmp rax, rsi
je 0x14015605b
test sil, 0x18
je 0x140156050
mov rcx, rax
mov rax, rsi
and rax, 0xfffffffffffffff8
pcmpeqd xmm0, xmm0
movq xmm1, qword [rdi + rcx]
pxor xmm1, xmm0
movq qword [rdi + rcx], xmm1
add rcx, 8
cmp rax, rcx
jne 0x140156030
cmp rax, rsi
je 0x14015605b
nop dword [rax]
not byte [rdi + rax]
inc rax
cmp rsi, rax
jne 0x140156050
mov dword [rsp + 0x3c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov rcx, rbx
mov edx, 0xc0000000
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rbx, rax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x3c]
mov rcx, rax
mov rdx, rdi
mov r8d, esi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, 1
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14017d1d0
mov eax, esi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret

Function at 0x1401560f0
Capabilities:
Check mutex on windows
Get hostname

Disassembly:
push rsi
sub rsp, 0x240
mov rax, qword [0x1403a3648]
xor rax, rsp
mov qword [rsp + 0x238], rax
mov dword [rsp + 0x2c], 0x104
lea rsi, [rsp + 0x30]
mov r8d, 0x208
mov rcx, rsi
xor edx, edx
call fcn.1402bf1c0
lea rdx, [rsp + 0x2c]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetComputerNameW]
xor ecx, ecx
xor edx, edx
mov r8, rsi
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor esi, esi
cmp eax, 0xb7
setne sil
mov rcx, qword [rsp + 0x238]
xor rcx, rsp
call fcn.14017d1d0
mov eax, esi
add rsp, 0x240
pop rsi
ret
Function at 0x140156170
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rdi, rcx
xor r15d, r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140156219
mov rsi, rax
call fcn.140155670
xor r15d, r15d
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r14d, eax
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
call fcn.140155530
test rbx, rbx
je 0x140156219
call fcn.140155530
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1401561fc
mov r15, rax
call fcn.140155670
add r14d, 0xfffffc00
mov rcx, rdi
mov rdx, r15
mov r8, r14
call fcn.140155f60
test eax, eax
je 0x1401561fc
call fcn.140155530
call fcn.140155670
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15d, 1
mov eax, r15d
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x1401620c0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.14017d170
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret
Function at 0x14016b6e0
Capabilities:
Encode data using xor

Disassembly:
xor r9b, r9b
mov r10, rdx
test r8, r8
je 0x14016b707
sub r10, rcx
nop
movzx edx, byte [r10 + rcx]
movzx eax, byte [rcx]
lea rcx, [rcx + 1]
xor dl, al
or r9b, dl
sub r8, 1
jne 0x14016b6f0
movzx eax, r9b
ret
Function at 0x14016c650
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov eax, 0x20
call fcn.14017d170
sub rsp, rax
mov rbx, r8
call fcn.14016b710
test eax, eax
js 0x14016c8a4
mov eax, dword [rbx + 0xf0]
shl eax, 2
movsxd r9, eax
test eax, eax
jle 0x14016c6dd
lea r8, [rbx + 8]
xor r10d, r10d
lea r8, [r8 + r9*4]
lea rax, [rbx + 8]
nop
mov edx, dword [rax - 8]
add r10, 4
mov ecx, dword [r8 - 8]
lea r8, [r8 - 0x10]
mov dword [rax - 8], ecx
lea rax, [rax + 0x10]
mov ecx, dword [r8 + 0xc]
sub r9, 4
mov dword [r8 + 8], edx
mov edx, dword [rax - 0x14]
mov dword [rax - 0x14], ecx
mov ecx, dword [r8 + 0x10]
mov dword [r8 + 0xc], edx
mov edx, dword [rax - 0x10]
mov dword [rax - 0x10], ecx
mov ecx, dword [r8 + 0x14]
mov dword [r8 + 0x10], edx
mov edx, dword [rax - 0xc]
mov dword [rax - 0xc], ecx
mov dword [r8 + 0x14], edx
cmp r10, r9
jl 0x14016c690
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x14016c8a2
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 4]
lea rdi, [0x140153000]
mov r9d, dword [r10 + 0x10]
lea r10, [r10 + 0x10]
mov edx, dword [r10 - 4]
inc r11d
movzx eax, byte [r10 - 3]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, edx
shr rax, 0x18
mov r8d, dword [rdi + rcx*4 + 0x1aae00]
movzx eax, byte [rdi + rax*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aa600]
movzx eax, dl
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, byte [r10 - 2]
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1aaa00]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 - 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x1a9a00]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1aaa00]
movzx eax, byte [rdi + rcx*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aae00]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, r9b
mov r9d, dword [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0x1aa600]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10], r8d
movzx edx, byte [rdi + rcx*4 + 0x1a9a00]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1aaa00]
movzx eax, byte [rdi + rcx*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aae00]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, r9b
mov r9d, dword [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0x1aa600]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
mov eax, r9d
shr eax, 0x10
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
movzx ecx, al
mov eax, r9d
shr eax, 8
mov dword [r10 + 4], r8d
movzx edx, byte [rdi + rcx*4 + 0x1a9a00]
movzx ecx, al
mov r8d, dword [rdi + rdx*4 + 0x1aaa00]
movzx eax, byte [rdi + rcx*4 + 0x1a9a00]
xor r8d, dword [rdi + rax*4 + 0x1aae00]
mov eax, r9d
shr rax, 0x18
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0x1aa600]
movzx ecx, byte [rdi + rax*4 + 0x1a9a00]
xor r8d, dword [rdi + rcx*4 + 0x1ab200]
mov dword [r10 + 8], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x14016c700
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14016dae0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], r9
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, gethostbyname
call fcn.14017d170
sub rsp, rax
mov r10, r9
mov rbx, r8
mov r9, qword [rsp + 0xa0]
mov r14, rdx
mov rbp, rcx
mov edi, dword [r9]
mov dword [rsp + 0x80], edi
test edi, edi
je 0x14016db58
mov rdx, qword [rsp + 0x98]
nop dword [rax]
test rbx, rbx
je 0x14016db51
mov eax, edi
dec rbx
movzx ecx, byte [rax + rdx]
xor cl, byte [rbp]
inc rbp
mov byte [r14], cl
inc r14
inc edi
and edi, 0xf
jne 0x14016db30
mov dword [rsp + 0x80], edi
mov r8, qword [rsp + 0x90]
mov esi, 1
movzx r12d, byte [r8 + 0xc]
lea r15, [r8 + 0xc]
mov r11, qword [rsp + 0xa8]
shl r12d, 8
movzx eax, byte [r8 + 0xd]
lea r13d, [rsi + 0xb]
or r12d, eax
movzx eax, byte [r8 + 0xe]
shl r12d, 8
or r12d, eax
movzx eax, byte [r8 + 0xf]
shl r12d, 8
or r12d, eax
cmp rbx, 0x10
jb 0x14016dc8e
mov eax, 0x10000000
mov edi, r13d
mov qword [rsp + 0x20], r8
mov rdx, rbx
shr rdx, 4
mov r9, r10
cmp rdx, rax
cmova rdx, rax
add r12d, edx
mov r13, rdx
mov eax, r12d
mov ecx, r12d
sub r13, rax
cmp rax, rdx
cmovae r13, rdx
xor r12d, r12d
cmp rax, rdx
mov r8, r13
mov rdx, r14
cmovae r12d, ecx
mov rcx, rbp
call r11
mov r8, qword [rsp + 0x90]
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [r8 + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [r8 + 0xe], al
mov byte [r8 + 0xf], r12b
test r12d, r12d
jne 0x14016dc4d
mov r8d, edi
mov eax, esi
mov rdx, r15
nop dword [rax + rax]
movzx ecx, byte [rdx - 1]
lea rdx, [rdx - 1]
add eax, ecx
mov byte [rdx], al
shr eax, 8
add r8d, 0xffffffff
jne 0x14016dc30
mov r8, qword [rsp + 0x90]
mov r10, qword [rsp + 0x88]
mov eax, 0x10000000
mov r11, qword [rsp + 0xa8]
shl r13, 4
sub rbx, r13
add r14, r13
add rbp, r13
cmp rbx, 0x10
jae 0x14016dbb0
mov edi, dword [rsp + 0x80]
mov r13d, reloc.WS2_32.dll_inet_ntoa
mov r9, qword [rsp + 0xa0]
test rbx, rbx
je 0x14016dd31
mov rax, qword [rsp + 0x98]
xorps xmm0, xmm0
mov qword [rsp + 0x20], r8
mov r9, r10
mov r8, rsi
mov rdx, rax
mov rcx, rax
movups xmmword [rax], xmm0
call r11
mov rcx, qword [rsp + 0x90]
inc r12d
mov eax, r12d
shr eax, 0x18
mov byte [r15], al
mov eax, r12d
shr eax, 0x10
mov byte [rcx + 0xd], al
mov eax, r12d
shr eax, 8
mov byte [rcx + 0xe], al
mov byte [rcx + 0xf], r12b
test r12d, r12d
jne 0x14016dd07
nop dword [rax + rax]
movzx eax, byte [r15 - 1]
lea r15, [r15 - 1]
add esi, eax
mov byte [r15], sil
shr esi, 8
add r13d, 0xffffffff
jne 0x14016dcf0
mov rdx, qword [rsp + 0x98]
nop
mov ecx, edi
inc edi
movzx eax, byte [rcx + rbp]
xor al, byte [rcx + rdx]
mov byte [rcx + r14], al
sub rbx, 1
jne 0x14016dd10
mov rax, qword [rsp + 0xa0]
mov dword [rax], edi
jmp 0x14016dd34
mov dword [r9], edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14016de10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r15
mov eax, gethostbyname
call fcn.14017d170
sub rsp, rax
mov rsi, qword [rsp + 0x88]
mov r10, r9
mov rdi, r8
mov r15, rdx
mov r12, rcx
mov ebx, dword [rsi]
test ebx, ebx
jns 0x14016de55
mov dword [rsi], 0xffffffff
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x60], rbp
mov rbp, qword [rsp + 0x80]
test ebx, ebx
je 0x14016de88
test rdi, rdi
je 0x14016de88
mov eax, ebx
dec rdi
movzx ecx, byte [rax + rbp]
xor cl, byte [r12]
inc r12
mov byte [r15], cl
inc r15
inc ebx
and ebx, 0xf
jne 0x14016de66
mov r9, qword [rsp + 0x90]
cmp rdi, 0x10
jb 0x14016df59
mov qword [rsp + 0x28], r13
mov rsi, r15
mov r13, rdi
mov qword [rsp + 0x20], r14
shr r13, 4
mov r14, r12
imul rax, r13, 0xfffffffffffffff0
sub rsi, rbp
sub r14, rbp
add rdi, rax
mov rax, r13
shl rax, 4
add r15, rax
mov qword [rsp + 0x68], r15
add r12, rax
mov r15, qword [rsp + 0x78]
nop word [rax + rax]
mov r8, r15
mov rdx, rbp
mov rcx, rbp
call r9
cmp ebx, 0x10
jae 0x14016df25
mov edx, reloc.WS2_32.dll_ntohs
mov eax, ebx
sub edx, ebx
add rax, rbp
shr edx, 3
inc edx
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [r14 + rax]
xor rcx, qword [rax]
mov qword [rsi + rax], rcx
lea rax, [rax + 8]
sub rdx, 1
jne 0x14016df10
mov r9, qword [rsp + 0x90]
add rsi, 0x10
add r14, 0x10
xor ebx, ebx
sub r13, 1
jne 0x14016dee0
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r15, qword [rsp + 0x68]
mov r10, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
test rdi, rdi
je 0x14016df86
mov r8, r10
mov rdx, rbp
mov rcx, rbp
call r9
nop word [rax + rax]
mov ecx, ebx
inc ebx
movzx eax, byte [rcx + r12]
xor al, byte [rcx + rbp]
mov byte [rcx + r15], al
sub rdi, 1
jne 0x14016df70
mov dword [rsi], ebx
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r12
pop rdi
pop rsi
pop rbx
ret