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

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140006e58
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140006e7e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140006e80
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140006ed9
test ecx, ecx
jle 0x140006eb9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140006ed9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140006ed9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140013680
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x48], rax
movzx ecx, dx
mov rdi, r9
call qword [sym.imp.WS2_32.dll_htons]
mov esi, 2
xor r8d, r8d
mov edx, esi
mov word [rsp + 0x3a], ax
mov ecx, esi
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400137d5
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 2]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x40000
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1002
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0x4000
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
lea r8, [rsp + 0x34]
mov dword [rsp + 0x34], 1
mov edx, 0x8004667e
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
lea r8d, [rsi + 0x1e]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
mov word [rsp + 0x38], si
test rdi, rdi
je 0x1400137a7
cmp byte [rdi], 0
je 0x1400137a7
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_inet_addr]
mov dword [rsp + 0x3c], eax
jmp 0x1400137af
mov dword [rsp + 0x3c], 0
mov r8d, sendto
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_bind]
mov rcx, 0xffffffffffffffff
cmp eax, ecx
cmovle rbx, rcx
mov rax, rbx
jmp 0x1400137dc
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032dc0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x140013800
Capabilities:
Resolve dns

Disassembly:
sub rsp, 0x28
mov rcx, rdx
call qword [sym.imp.WS2_32.dll_gethostbyname]
test rax, rax
je 0x14001382b
mov rax, qword [rax + 0x18]
mov rcx, qword [rax]
test rcx, rcx
je 0x14001382b
mov ecx, dword [rcx]
add rsp, 0x28
jmp qword [sym.imp.WS2_32.dll_inet_ntoa]
xor eax, eax
add rsp, 0x28
ret

Function at 0x140013840
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rcx, rdx
mov dword [rsp + 0x20], sendto
lea rdx, [rsp + 0x28]
lea r8, [rsp + 0x20]
call qword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x140013886
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x48
ret
movzx ecx, word [rsp + 0x2a]
call qword [sym.imp.WS2_32.dll_ntohs]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x48
ret
Function at 0x1400138b0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push rbp
sub rsp, 0x80
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbp, rdx
lea rcx, [rsp + 0x20]
mov edx, 0x50
call qword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
je 0x140013977
lea rcx, [rsp + 0x20]
mov qword [rsp + 0xa0], rsi
call qword [sym.imp.WS2_32.dll_gethostbyname]
mov rsi, rax
test rax, rax
je 0x14001396f
mov rcx, qword [rax + 0x18]
mov qword [rsp + 0x90], rbx
xor ebx, ebx
cmp qword [rcx], rbx
je 0x140013967
mov qword [rsp + 0xa8], rdi
mov edi, ebx
nop dword [rax]
cmp ebx, 0xa
jge 0x14001395f
mov rax, qword [rdi + rcx]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_inet_ntoa]
movsxd rdx, ebx
shl rdx, 4
sub rdx, rax
add rdx, rbp
nop
movzx ecx, byte [rax]
mov byte [rdx + rax], cl
lea rax, [rax + 1]
test cl, cl
jne 0x140013940
mov rcx, qword [rsi + 0x18]
add rdi, 8
inc ebx
cmp qword [rdi + rcx], 0
jne 0x140013920
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0x90]
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x80
pop rbp
ret

Function at 0x140013990
Capabilities:
Receive data
Receive data on socket

Disassembly:
push rbx
push rsi
sub rsp, 0x648
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x630], rax
mov dword [rsp + 0x30], sendto
mov ecx, 2
mov word [rsp + 0x38], cx
mov rbx, r9
mov rsi, r8
mov rax, rdx
cmp rdx, 0xffffffffffffffff
jne 0x1400139d7
mov dword [r9], edx
mov eax, edx
jmp 0x140013a5a
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x640], rdi
mov qword [rsp + 0x28], rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov r8d, 0x5d4
mov rcx, rax
call qword [sym.imp.WS2_32.dll_recvfrom]
mov edi, eax
test eax, eax
je 0x140013a50
test eax, eax
jle 0x140013a4a
movzx ecx, word [rsp + 0x3a]
call qword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [rsp + 0x680]
lea r8, [rsp + 0x50]
mov dword [rsp + 0x28], ecx
mov r9d, edi
mov ecx, dword [rsp + 0x3c]
movzx edx, ax
mov qword [rsp + 0x20], rsi
call fcn.14001d7f0
mov eax, 1
jmp 0x140013a52
mov dword [rbx], 0
xor eax, eax
mov rdi, qword [rsp + 0x640]
mov rcx, qword [rsp + 0x630]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x648
pop rsi
pop rbx
ret

Function at 0x140013a80
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, r9d
mov rdi, r8
mov rbx, rdx
cmp rdx, 0xffffffffffffffff
jne 0x140013aaa
mov eax, edx
jmp 0x140013b17
movzx ecx, word [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x34], eax
mov eax, 2
mov word [rsp + 0x30], ax
nop dword [rax]
nop word [rax + rax]
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x140013ae0
cmp eax, 0xffffffff
je 0x140013b11
xor eax, eax
jmp 0x140013b17
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013b30
Capabilities:
Send data
Send data on socket

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x90]
mov esi, r9d
mov rdi, r8
mov rbx, rdx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebp, eax
cmp rbx, 0xffffffffffffffff
jne 0x140013b6e
mov eax, ebx
jmp 0x140013bc7
movzx ecx, word [rsp + 0x98]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x32], ax
mov eax, 2
mov word [rsp + 0x30], ax
mov dword [rsp + 0x34], ebp
nop
lea rax, [rsp + 0x30]
mov dword [rsp + 0x28], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, esi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x140013b90
cmp eax, 0xffffffff
je 0x140013bc1
xor eax, eax
jmp 0x140013bc7
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032dc0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x140013bf0
Capabilities:
Send data
Send data on socket
Set socket configuration

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, qword [rsp + 0xa0]
lea rax, [rsp + 0x30]
mov rdi, rdx
mov dword [rsp + 0x30], 4
xor edx, edx
mov qword [rsp + 0x20], rax
mov ebp, r9d
mov rsi, r8
lea r9, [rsp + 0x38]
mov rcx, rdi
lea r8d, [rdx + 4]
call qword [sym.imp.WS2_32.dll_getsockopt]
mov eax, dword [rsp + 0xb0]
lea r9, [rsp + 0x34]
xor edx, edx
mov dword [rsp + 0x34], eax
mov rcx, rdi
mov dword [rsp + 0x20], 4
lea r8d, [rdx + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_inet_addr]
mov ebx, eax
cmp rdi, 0xffffffffffffffff
jne 0x140013c7e
mov ebx, edi
jmp 0x140013cd9
movzx ecx, word [rsp + 0xa8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsp + 0x42], ax
mov eax, 2
mov word [rsp + 0x40], ax
mov dword [rsp + 0x44], ebx
nop
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], sendto
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_sendto]
test eax, eax
je 0x140013ca0
cmp eax, 0xffffffff
je 0x140013cd1
xor ebx, ebx
jmp 0x140013cd9
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov edx, dword [rsp + 0x30]
lea r9, [rsp + 0x38]
mov dword [rsp + 0x20], edx
mov rcx, rdi
xor edx, edx
lea r8d, [rdx + 4]
call qword [sym.imp.WS2_32.dll_setsockopt]
mov eax, ebx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140032dc0
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
Function at 0x140013d80
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
cmp byte [0x140048a04], 0
jne 0x140013dd1
mov byte [0x140048a04], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [0x1400489f4]
lea rdx, [0x1400489f0]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [0x140048a08]
mov qword [0x1400489f8], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword gs:[0x58]
mov ecx, dword [0x1400497c0]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140048a1c], eax
jg 0x140013ee3
mov rcx, qword [0x1400489f8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [0x1400489f0]
mov rcx, qword [0x1400489f8]
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, qword [0x140048a08]
movabs rdi, 0x624dd2f1a9fbe77
mov rax, qword [rsp + 0x30]
cqo
idiv rcx
imul rax, rdx, 0xf4240
xor edx, edx
div rcx
mov rbx, rax
mov rax, qword [rsp + 0x30]
cqo
idiv rcx
imul rcx, rax, 0xf4240
add rbx, rcx
cmp qword [0x140048a10], 0
je 0x140013ebd
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11, qword [0x140048a10]
mov r8, rbx
sub r8, r11
mov r9d, eax
sub r9d, dword [0x140048a18]
mov r10d, eax
mov rax, rdi
mul r8
lea ecx, [r9 + 0x64]
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 9
cmp r8, rcx
jbe 0x140013eb6
imul ebx, r9d, 0x3e8
add rbx, r11
mov dword [0x140048a18], r10d
mov qword [0x140048a10], rbx
mov rax, rdi
mul rbx
sub rbx, rdx
shr rbx, 1
lea rax, [rdx + rbx]
mov rbx, qword [rsp + 0x38]
shr rax, 9
add rsp, 0x20
pop rdi
ret
lea rcx, [0x140048a1c]
call fcn.140033430
cmp dword [0x140048a1c], 0xffffffff
jne 0x140013df8
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140048a1c]
mov dword [0x140048a18], eax
call fcn.1400333d0
jmp 0x140013df8
Function at 0x140013f20
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x140048a04], 0
jne 0x140013f6d
mov byte [0x140048a04], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [0x1400489f4]
lea rdx, [0x1400489f0]
call qword [sym.imp.KERNEL32.dll_GetProcessAffinityMask]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea rcx, [0x140048a08]
mov qword [0x1400489f8], rax
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov rax, qword gs:[0x58]
mov ecx, dword [0x1400497c0]
mov edx, 4
mov rcx, qword [rax + rcx*8]
mov eax, dword [rdx + rcx]
cmp dword [0x140048a1c], eax
jg 0x140014066
mov rcx, qword [0x1400489f8]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov edx, dword [0x1400489f0]
mov rcx, qword [0x1400489f8]
call qword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
mov rcx, qword [0x140048a08]
mov rax, qword [rsp + 0x30]
cqo
idiv rcx
imul rax, rdx, 0xf4240
xor edx, edx
div rcx
mov rbx, rax
mov rax, qword [rsp + 0x30]
cqo
idiv rcx
imul rcx, rax, 0xf4240
add rbx, rcx
cmp qword [0x140048a10], 0
je 0x140014056
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r11, qword [0x140048a10]
mov r8, rbx
sub r8, r11
mov r9d, eax
sub r9d, dword [0x140048a18]
mov r10d, eax
movabs rax, 0x624dd2f1a9fbe77
mul r8
lea ecx, [r9 + 0x64]
sub r8, rdx
shr r8, 1
add r8, rdx
shr r8, 9
cmp r8, rcx
jbe 0x14001404f
imul ebx, r9d, 0x3e8
add rbx, r11
mov dword [0x140048a18], r10d
mov rax, rbx
mov qword [0x140048a10], rbx
add rsp, 0x20
pop rbx
ret
lea rcx, [0x140048a1c]
call fcn.140033430
cmp dword [0x140048a1c], 0xffffffff
jne 0x140013f94
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rcx, [0x140048a1c]
mov dword [0x140048a18], eax
call fcn.1400333d0
jmp 0x140013f94
Function at 0x140023b20
Capabilities:
Hash data using sha1

Disassembly:
lea rax, vtable.CSHA1.0
mov dword [rcx + 8], 0x67452301
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 0x1c], rax
mov rax, rcx
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
ret

Function at 0x140023b60
Capabilities:
Hash data using sha1

Disassembly:
lea rax, vtable.CSHA1.0
mov dword [rcx + 8], 0x67452301
mov qword [rcx], rax
xor eax, eax
mov qword [rcx + 0x1c], rax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
ret

Function at 0x140023ba0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
lea rax, vtable.CSHA1.0
mov dword [rcx + 8], 0x67452301
mov qword [rcx], rax
mov rbx, rcx
xor eax, eax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
mov qword [rcx + 0x1c], rax
test dl, 1
je 0x140023beb
mov edx, 0xb8
call fcn.140032ca4
mov rax, rbx
add rsp, 0x20
pop rbx
ret

Function at 0x140023db0
Capabilities:
Hash data using sha1

Disassembly:
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov qword [rcx + 0x1c], rax
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
ret
Function at 0x14002c720
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov eax, dword [0x140043600]
sub eax, 1
mov dword [0x140043600], eax
jns 0x14002c896
mov qword [rsp], rbx
lea r11, [0x140048ce0]
lea r9, [0x140048ce8]
mov r10, r11
cmp eax, 0xffffffff
jge 0x14002c782
mov eax, 0x1105
lea rcx, [0x140048ce4]
mov dword [0x140048ce0], eax
mov edx, 0x26f
nop word [rax + rax]
imul eax, eax, 0x10dcd
lea rcx, [rcx + 4]
mov dword [rcx - 4], eax
sub edx, 1
jne 0x14002c770
mov r8d, dword [0x140048ce4]
lea rax, [0x140048ce4]
mov qword [0x1400496a8], rax
mov ebx, 0xe3
mov eax, dword [0x140048ce0]
mov dword [0x140043600], 0x26f
nop dword [rax]
mov edx, r8d
xor edx, eax
and edx, 0x7ffffffe
xor edx, eax
mov eax, r8d
shr edx, 1
and al, 1
neg al
mov eax, r8d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [r9 + 0x62c]
mov dword [r10], edx
add r10, 4
mov r8d, dword [r9]
add r9, 4
sub ebx, 1
jne 0x14002c7b0
mov ebx, 0x18c
mov edx, r8d
lea r9, [r9 + 4]
xor edx, eax
lea r11, [r11 + 4]
and edx, 0x7ffffffe
lea r10, [r10 + 4]
xor edx, eax
mov eax, r8d
shr edx, 1
and al, 1
neg al
mov eax, r8d
sbb ecx, ecx
and ecx, 0x9908b0df
xor edx, ecx
xor edx, dword [r11 - 4]
mov dword [r10 - 4], edx
mov r8d, dword [r9 - 4]
sub ebx, 1
jne 0x14002c7f2
mov r8d, dword [0x140048ce0]
mov edx, r8d
mov rbx, qword [rsp]
xor edx, eax
and edx, 0x7ffffffe
xor edx, eax
mov eax, r8d
and al, 1
shr edx, 1
neg al
mov eax, r8d
sbb ecx, ecx
shr eax, 0xb
xor r8d, eax
and ecx, 0x9908b0df
mov eax, r8d
xor edx, ecx
xor edx, dword [r11]
and eax, 0xff3a58ad
shl eax, 7
xor r8d, eax
mov dword [r10], edx
mov eax, r8d
and eax, 0xffffdf8c
shl eax, 0xf
xor r8d, eax
mov eax, r8d
shr eax, 0x12
xor eax, r8d
add rsp, 8
ret
mov rax, qword [0x1400496a8]
mov ecx, dword [rax]
add rax, 4
mov qword [0x1400496a8], rax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
add rsp, 8
ret

Function at 0x14002cf60
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor r8d, r8d
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov r9, rdx
mov dword [rsp + 0x20], r8d
mov edx, 0x200000
mov dword [rsp + 0x50], r8d
mov r8, rcx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
test rax, rax
jne 0x14002cf9d
mov eax, 1
add rsp, 0x38
ret
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x38
ret
Function at 0x14002e440
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x40], rax
lea esi, [r8*8]
movzx ebp, dl
mov rdi, rcx
test rcx, rcx
jne 0x14002e472
lea eax, [rcx - 3]
jmp 0x14002e66e
cmp bpl, 2
jb 0x14002e482
mov eax, 0xffffffff
jmp 0x14002e66e
lea eax, [rsi - 0x80]
mov byte [rcx], bpl
test eax, 0xffffff3f
jne 0x14002e669
cmp esi, 0x140
je 0x14002e669
mov dword [rcx + 4], esi
test r9, r9
je 0x14002e669
mov qword [rsp + 0x78], rbx
mov rdx, r9
lea rbx, [rcx + 8]
movsxd r8, r8d
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncpy]
mov r11d, dword [rdi + 4]
mov eax, esi
cdq
xor ecx, ecx
and edx, 0x1f
lea esi, [rdx + rax]
mov eax, r11d
cdq
sar esi, 5
and edx, 7
add esi, 6
add eax, edx
mov dword [0x1400496bc], esi
sar eax, 3
test eax, eax
jle 0x14002e518
nop
mov r8d, ecx
lea r9, [rsp + 0x20]
and r8d, 3
mov r10d, ecx
add r9, r8
shr r10, 2
movzx r8d, byte [rbx]
lea rbx, [rbx + 1]
inc ecx
mov byte [r9 + r10*4], r8b
cmp ecx, eax
jl 0x14002e4f0
lea r8, [rdi + 0x30]
mov edx, r11d
lea rcx, [rsp + 0x20]
call fcn.14002eee0
mov rbx, qword [rsp + 0x78]
cmp bpl, 1
jne 0x14002e662
cmp esi, 1
jle 0x14002e662
mov r8d, sendto
lea r9d, [rsi - 1]
lea r10, [0x140000000]
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rdi + r8 + 0x33]
movzx eax, byte [rdi + r8 + 0x32]
lea r8, [r8 + 0x10]
mov edx, dword [r10 + rcx*4 + 0x46710]
xor edx, dword [r10 + rax*4 + 0x46310]
movzx eax, byte [rdi + r8 + 0x21]
xor edx, dword [r10 + rax*4 + 0x45f10]
movzx eax, byte [rdi + r8 + 0x20]
xor edx, dword [r10 + rax*4 + 0x45b10]
mov dword [rdi + r8 + 0x20], edx
movzx ecx, byte [rdi + r8 + 0x27]
movzx eax, byte [rdi + r8 + 0x26]
mov edx, dword [r10 + rcx*4 + 0x46710]
xor edx, dword [r10 + rax*4 + 0x46310]
movzx eax, byte [rdi + r8 + 0x25]
xor edx, dword [r10 + rax*4 + 0x45f10]
movzx eax, byte [rdi + r8 + 0x24]
xor edx, dword [r10 + rax*4 + 0x45b10]
mov dword [rdi + r8 + 0x24], edx
movzx ecx, byte [rdi + r8 + 0x2b]
movzx eax, byte [rdi + r8 + 0x2a]
mov edx, dword [r10 + rcx*4 + 0x46710]
xor edx, dword [r10 + rax*4 + 0x46310]
movzx eax, byte [rdi + r8 + 0x29]
xor edx, dword [r10 + rax*4 + 0x45f10]
movzx eax, byte [rdi + r8 + 0x28]
xor edx, dword [r10 + rax*4 + 0x45b10]
mov dword [rdi + r8 + 0x28], edx
movzx eax, byte [rdi + r8 + 0x2e]
movzx ecx, byte [rdi + r8 + 0x2f]
mov edx, dword [r10 + rcx*4 + 0x46710]
xor edx, dword [r10 + rax*4 + 0x46310]
movzx eax, byte [rdi + r8 + 0x2d]
xor edx, dword [r10 + rax*4 + 0x45f10]
movzx eax, byte [rdi + r8 + 0x2c]
xor edx, dword [r10 + rax*4 + 0x45b10]
mov dword [rdi + r8 + 0x2c], edx
sub r9, 1
jne 0x14002e560
mov eax, 1
jmp 0x14002e66e
mov eax, 0xfffffffe
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002f1a0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
sub rsp, 8
mov r10, rdx
test r8d, r8d
je 0x14002f217
mov r11d, dword [rcx + 8]
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
movzx esi, word [rcx + 4]
mov qword [rsp], rdi
movzx edi, word [rcx + 2]
mov ebx, r8d
nop dword [rax]
movzx r9d, word [rcx]
lea r10, [r10 + 1]
shr r9w, 8
xor r9b, byte [r10 - 1]
movzx eax, r9b
add ax, word [rcx]
movzx r8d, ax
imul r8d, edi
movzx eax, r9b
add r11d, eax
mov dword [rcx + 8], r11d
add r8w, si
mov word [rcx], r8w
sub rbx, 1
jne 0x14002f1d0
mov rdi, qword [rsp]
mov rsi, qword [rsp + 0x18]
mov rbx, qword [rsp + 0x10]
add rsp, 8
ret

Function at 0x14002f220
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov r9d, 0x40
lea r8, [rsp + 0x20]
mov rbx, rdx
call fcn.14002f620
test eax, eax
jne 0x14002f266
mov rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x70
pop rbx
ret
mov rcx, 0xffffffffffffffff
mov rax, rcx
inc rax
cmp byte [rbx + rax], 0
jne 0x14002f270
lea rdx, [rsp + 0x20]
nop
inc rcx
cmp byte [rdx + rcx], 0
jne 0x14002f280
cmp eax, ecx
je 0x14002f298
mov r9d, 1
jmp 0x14002f39c
xor r9d, r9d
mov r8d, r9d
test eax, eax
jle 0x14002f35f
cmp eax, 8
jb 0x14002f35f
mov edx, eax
xorps xmm4, xmm4
xorps xmm3, xmm3
and edx, 0x80000007
jge 0x14002f2c6
dec edx
or edx, 0xfffffff8
inc edx
mov ecx, eax
sub ecx, edx
mov rdx, rbx
movsxd r10, ecx
lea rcx, [rsp + 0x20]
sub rdx, rcx
nop dword [rax + rax]
xorps xmm0, xmm0
lea rcx, [rsp + 0x20]
add rcx, r9
add r8d, 8
add r9, 8
movd xmm2, dword [rdx + rcx]
movd xmm1, dword [rcx]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rcx + 4]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rdx + 4]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp r9, r10
jl 0x14002f2e0
por xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd r9d, xmm3
movsxd r8, r8d
movsxd r10, eax
cmp r8, r10
jge 0x14002f39c
lea rax, [rsp + 0x20]
sub rbx, rax
nop dword [rax]
nop word [rax + rax]
lea rcx, [rsp + 0x20]
add rcx, r8
inc r8
movzx edx, byte [rbx + rcx]
movzx ecx, byte [rcx]
xor edx, ecx
or r9d, edx
cmp r8, r10
jl 0x14002f380
mov eax, r9d
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140032dc0
add rsp, 0x70
pop rbx
ret
Function at 0x14002f3c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140047d18]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rdx
mov dword [rsp + 0x20], 0xf0000000
mov ebx, ecx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x14002f407
mov eax, 1
jmp 0x14002f47f
mov rcx, qword [rsp + 0x30]
lea r8, [rsp + 0x38]
mov edx, sendto
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x14002f427
mov eax, 2
jmp 0x14002f47f
mov rcx, qword [rsp + 0x30]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test eax, eax
jne 0x14002f43f
mov eax, 3
jmp 0x14002f47f
lea eax, [rbx - 4]
mov dword [rsp + 0x28], 0x40
mov ecx, reloc.WS2_32.dll_inet_ntoa
mov qword [rsp + 0x20], rdi
cmp eax, 0x1b
lea r8, [rsp + 0x38]
cmova ebx, ecx
lea r9d, [rcx + 4]
mov edx, ebx
lea rcx, str._2a_
call fcn.14002f4c0
xor ecx, ecx
mov edx, 5
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140032dc0
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret