joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180034d30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
xor esi, esi
movsxd rdi, edx
mov qword [rsp + 0x40], rsi
or r8, 0xffffffffffffffff
mov byte [rsp + 0x30], sil
mov rbx, rcx
mov qword [rsp + 0x48], select
nop
inc r8
cmp byte [rcx + r8], sil
jne 0x180034d60
mov rdx, rcx
lea rcx, [rsp + 0x30]
call fcn.1800012d0
cmp qword [rsp + 0x48], 0x10
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
lea r9, [0x18005b510]
cmovae rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], 8
call fcn.1800018d0
cmp rax, 0xffffffffffffffff
jne 0x180034e0a
cmp qword [rsp + 0x48], 0x10
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
lea r9, [0x18005b520]
cmovae rcx, qword [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], select
call fcn.1800018d0
cmp rax, 0xffffffffffffffff
jne 0x180034e0a
mov ecx, esi
mov rdx, rdi
test edi, edi
jle 0x180034e0a
nop word [rax + rax]
lea eax, [rcx + 0xd]
xor byte [rbx], al
lea rbx, [rbx + 1]
cmp ecx, 3
lea eax, [rcx + 1]
cmovg eax, esi
mov ecx, eax
sub rdx, 1
jne 0x180034df0
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x180034e4a
mov rcx, qword [rsp + 0x30]
inc rax
cmp rax, 0x1000
jb 0x180034e45
test cl, 0x1f
jne 0x180034e5a
mov rax, qword [rcx - 8]
cmp rax, rcx
jae 0x180034e60
sub rcx, rax
cmp rcx, 8
jb 0x180034e66
cmp rcx, 0x27
ja 0x180034e6c
mov rcx, rax
call fcn.1800167a0
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.18001b6cc
int3
call fcn.18001b6cc
int3
call fcn.18001b6cc
int3
call fcn.18001b6cc
int3
Function at 0x1800378f0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp dword [rcx + 0x178], 2
mov rsi, rdx
mov rbx, rcx
je 0x18003791e
mov dword [rcx + 0x178], 2
movzx ecx, word [rcx + 0x1b8]
call qword [sym.imp.WS2_32.dll_htons]
mov word [rsi + 2], ax
mov rcx, qword [rbx + 0x2b0]
call fcn.18001fa0c
mov ecx, 0x80
call fcn.18001fa14
mov ecx, 0x140
mov r14, rax
mov qword [rax], rbx
call fcn.18001fa14
mov r8, qword [0x18006c9d8]
xor edi, edi
mov qword [rbx + 0x2b0], rax
mov qword [rax], rbx
test r8, r8
jne 0x180037989
call fcn.180006c80
test eax, eax
je 0x18003797b
mov r8d, edi
jmp 0x180037989
lea r8, [0x18006c9e0]
mov qword [0x18006c9d8], r8
mov rdx, qword [rbx + 0x2b0]
lea rax, [r8 + 0x10]
mov qword [rdx + 8], r8
lea rcx, [rdx + 0x20]
mov dword [rdx + 0x10], select
mov dword [rdx + 0x58], 0x20
mov qword [rcx], rax
mov rax, qword [r8 + 0x18]
mov qword [rdx + 0x28], rax
mov qword [rax], rcx
mov qword [r8 + 0x18], rcx
mov dword [rdx + 0x30], 0xffffffff
mov qword [rdx + 0x60], rdi
mov qword [rdx + 0x78], rdi
mov qword [rdx + 0x120], rdi
mov qword [rdx + 0x110], 0xffffffffffffffff
mov qword [rdx + 0x138], rdi
mov qword [rdx + 0x130], rdi
mov dword [rdx + 0x128], edi
mov dword [rdx + 0x118], edi
mov rdi, qword [rbx + 0x2b0]
mov rcx, qword [rdi + 0x110]
cmp rcx, 0xffffffffffffffff
je 0x180037a3e
mov edx, 6
mov dword [rsp + 0x40], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 4
lea r8d, [rdx - 5]
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x180037a3e
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jne 0x180037a45
or dword [rdi + 0x58], 0x2000000
mov rdx, qword [rbx + 0x2b0]
cmp dword [rdx + 0x10], 0xc
jne 0x180037a7a
movzx eax, word [rsi]
cmp ax, 2
jne 0x180037a63
mov r9d, select
jmp 0x180037a6f
cmp ax, 0x17
jne 0x180037a7a
mov r9d, 0x1c
mov r8, rsi
mov rcx, r14
call fcn.18000f9f0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x18003df70
Capabilities:
Create thread

Disassembly:
sub rsp, 0x168
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [0x18006c888], rcx
xor r8d, r8d
xor edx, edx
lea rcx, [0x18003dec0]
call fcn.1800210a8
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r8d, r8d
xor edx, edx
lea rcx, [0x18003dd60]
call fcn.1800210a8
lea rcx, [rsp + 0x30]
call fcn.180035450
nop
cmp qword [rsp + 0x48], 0
je 0x18003dfd2
lea rcx, [rsp + 0x30]
call fcn.180035200
nop
lea rax, vtable.App.0
mov qword [rsp + 0x30], rax
mov edx, 0x168
mov rcx, qword [rsp + 0x38]
call fcn.1800167a8
add rsp, 0x168
ret
Function at 0x18003e000
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18003e059
mov qword [0x18006c888], rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x18006c880], rax
mov r9, rbx
xor eax, eax
lea r8, [fcn.18003df70]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x18003e059
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x30
pop rbx
ret

Function at 0x18003e190
Capabilities:
Manipulate user privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x70
xor edi, edi
mov ebx, edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
cmp eax, 1
jne 0x18003e2c9
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x20], edi
lea edx, [rdi + 1]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x18003e1f9
mov edx, r9d
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rbx, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rbx
mov qword [rsp + 0x20], rax
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x18003e2c9
xor eax, eax
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
mov qword [rbp - 0x30], rax
lea rdx, [rbp - 0x30]
mov qword [rbp - 0x28], rax
xor ecx, ecx
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rax
call qword [sym.imp.ADVAPI32.dll_LsaOpenPolicy]
test eax, eax
jne 0x18003e2b6
mov rdx, qword [rbx]
lea rax, str.SeLockMemoryPrivilege
mov rcx, qword [rbp + 0x30]
lea r8, [rbp - 0x40]
mov qword [rbp - 0x38], rax
mov r9d, 1
mov dword [rbp - 0x40], 0x2c002a
movaps xmm0, xmmword [rbp - 0x40]
movdqa xmmword [rbp - 0x40], xmm0
call qword [sym.imp.ADVAPI32.dll_LsaAddAccountRights]
test eax, eax
jne 0x18003e2ac
mov rcx, qword [0x18006c640]
lea r8, str.Huge_pages_support_was_successfully_enabled__but_reboot_required_to_use_it
lea edx, [rax + 2]
call fcn.180036210
mov edi, 1
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.ADVAPI32.dll_LsaClose]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, edi
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
xor eax, eax
add rsp, 0x70
pop rdi
pop rbx
pop rbp
ret
Function at 0x18003f080
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push r14
sub rsp, 0x190
mov qword [rax + 8], rbx
mov r14, r8
mov qword [rax + 0x18], rsi
mov r8d, 0xc8
mov qword [rax - 0x10], rdi
mov rsi, rcx
mov qword [rax - 0x18], r15
lea rcx, [rsp + 0x20]
mov r15d, edx
xor edx, edx
call fcn.18001aa10
xor edi, edi
cmp r15d, 0x88
jl 0x18003f18c
mov eax, 0xf0f0f0f1
mov qword [rsp + 0x1a8], rbp
mul r15d
mov rbx, rsi
shr edx, 7
imul eax, edx, 0xffffff78
mov ebp, edx
add r15d, eax
nop word [rax + rax]
lea rcx, [rbx + 0x80]
mov rax, rdi
lea rdx, [rsp + 0x20]
cmp rdx, rcx
ja 0x18003f111
lea rcx, [rsp + 0xa0]
cmp rcx, rsi
jae 0x18003f150
movdqu xmm0, xmmword [rsp + rax*8 + 0x20]
movdqu xmm1, xmmword [rbx + rax*8]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax*8 + 0x20], xmm1
movdqu xmm0, xmmword [rsp + rax*8 + 0x30]
movdqu xmm1, xmmword [rbx + rax*8 + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rsp + rax*8 + 0x30], xmm1
add rax, 4
cmp rax, 0x10
jl 0x18003f111
cmp rax, 0x11
jge 0x18003f162
nop dword [rax]
mov rcx, qword [rbx + rax*8]
xor qword [rsp + rax*8 + 0x20], rcx
inc rax
cmp rax, 0x11
jl 0x18003f150
lea rcx, [rsp + 0x20]
call fcn.18003ebd0
add rsi, 0x88
add rbx, 0x88
sub rbp, 1
jne 0x18003f0f0
mov rbp, qword [rsp + 0x1a8]
movsxd rbx, r15d
lea rcx, [rsp + 0xf0]
mov r8, rbx
mov rdx, rsi
call fcn.180019d90
mov eax, 0x88
mov byte [rsp + rbx + 0xf0], 1
inc r15d
lea rcx, [rsp + 0xf0]
sub eax, r15d
xor edx, edx
movsxd r8, eax
movsxd rax, r15d
add rcx, rax
call fcn.18001aa10
or byte [rsp + 0x177], 0x80
mov r15, qword [rsp + 0x180]
mov rsi, qword [rsp + 0x1b0]
mov rbx, qword [rsp + 0x1a0]
nop dword [rax]
movdqu xmm0, xmmword [rsp + rdi + 0x20]
movdqu xmm1, xmmword [rsp + rdi + 0xf0]
pxor xmm1, xmm0
movdqu xmmword [rsp + rdi + 0x20], xmm1
movdqu xmm0, xmmword [rsp + rdi + 0x30]
movdqu xmm1, xmmword [rsp + rdi + 0x100]
pxor xmm1, xmm0
movdqu xmmword [rsp + rdi + 0x30], xmm1
add rdi, 0x20
cmp rdi, 0x80
jl 0x18003f1f0
mov rdi, qword [rsp + 0x188]
mov ecx, 0x80
nop dword [rax]
mov rax, qword [rsp + rcx + 0xf0]
xor qword [rsp + rcx + 0x20], rax
add rcx, 8
cmp rcx, 0x88
jl 0x18003f240
lea rcx, [rsp + 0x20]
call fcn.18003ebd0
lea rax, [rsp + 0x20]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r14], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r14 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r14 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r14 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r14 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r14 + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [r14 + 0x60], xmm0
sub r14, 0xffffffffffffff80
movups xmm0, xmmword [rax + 0x80]
movups xmmword [r14 - 0x10], xmm1
movups xmm1, xmmword [rax + 0x90]
movups xmmword [r14], xmm0
movups xmm0, xmmword [rax + 0xa0]
movups xmmword [r14 + 0x10], xmm1
movups xmm1, xmmword [rax + 0xb0]
mov rax, qword [rax + 0xc0]
movups xmmword [r14 + 0x20], xmm0
movups xmmword [r14 + 0x30], xmm1
mov qword [r14 + 0x40], rax
add rsp, 0x190
pop r14
ret
Function at 0x18003f700
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
movups xmm0, xmmword [rcx]
mov rbx, rcx
xor r8d, r8d
movups xmm1, xmmword [rcx + 0x10]
lea rdx, [rbp - 0x69]
movups xmmword [rbp + 0x17], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rbp + 0x27], xmm1
movups xmm1, xmmword [rcx + 0x30]
lea rcx, [rbp + 0x17]
movups xmmword [rbp + 0x37], xmm0
movups xmmword [rbp + 0x47], xmm1
call fcn.180040920
mov r8d, 1
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.180040920
mov edi, 2
lea rdx, [rbp - 0x69]
mov r8d, edi
lea rcx, [rbp - 0x29]
call fcn.180040920
lea r8d, [rdi + 1]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.180040920
lea r8d, [rdi + 2]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.180040920
lea r8d, [rdi + 3]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.180040920
lea r8d, [rdi + 4]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.180040920
lea r8d, [rdi + 5]
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.180040920
lea r8d, [rdi + 6]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x29]
call fcn.180040920
lea r8d, [rdi + 7]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x69]
call fcn.180040920
lea rcx, [rbp + 0x17]
sub rcx, rbx
lea rax, [rbx + 0x10]
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rcx + rax - 0x10]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
sub rdi, 1
jne 0x18003f800
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x180049a20
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x10
movdqu xmm5, xmmword [rcx]
lea rbx, [0x18005f920]
movaps xmmword [rsp], xmm6
mov r11, rdx
movdqu xmm6, xmmword [rdx]
mov r10, rcx
pshufd xmm0, xmm6, 0x55
movd dword [rbp + 0x10], xmm0
movzx eax, byte [rbp + 0x10]
pshufd xmm1, xmm6, 0xff
movd dword [rbp + 0x20], xmm1
pslldq xmm5, 4
movzx eax, byte [rax + rbx]
movdqa xmm4, xmm5
pxor xmm4, xmmword [rcx]
mov byte [rbp + 0x10], al
movzx eax, byte [rbp + 0x11]
movzx r8d, r8b
pslldq xmm5, 4
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x11], al
movzx eax, byte [rbp + 0x12]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x12], al
movzx eax, byte [rbp + 0x13]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x13], al
mov ecx, dword [rbp + 0x10]
movzx eax, byte [rbp + 0x20]
movd xmm3, ecx
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x20], al
movzx eax, byte [rbp + 0x21]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x21], al
movzx eax, byte [rbp + 0x22]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x22], al
movzx eax, byte [rbp + 0x23]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x23], al
mov eax, ecx
mov r9d, dword [rbp + 0x20]
mov edx, r9d
ror eax, 8
ror edx, 8
xor edx, r8d
xor eax, r8d
movd xmm0, r9d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
pxor xmm0, xmm4
pslldq xmm5, 4
movd xmm1, edx
pxor xmm0, xmm5
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pshufd xmm1, xmm3, 0xff
pxor xmm1, xmm0
pshufd xmm0, xmm1, 0x55
movd dword [rbp + 0x10], xmm0
movzx eax, byte [rbp + 0x10]
movdqu xmmword [r10], xmm1
pshufd xmm1, xmm1, 0xff
movd dword [rbp + 0x20], xmm1
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x10], al
movzx eax, byte [rbp + 0x11]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x11], al
movzx eax, byte [rbp + 0x12]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x12], al
movzx eax, byte [rbp + 0x13]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x13], al
movzx eax, byte [rbp + 0x20]
movzx eax, byte [rax + rbx]
mov byte [rbp + 0x20], al
movzx eax, byte [rbp + 0x21]
movzx eax, byte [rax + rbx]
movdqa xmm5, xmm6
mov edx, dword [rbp + 0x10]
mov byte [rbp + 0x21], al
movzx eax, byte [rbp + 0x22]
pslldq xmm5, 4
movdqa xmm4, xmm5
movd xmm3, edx
pslldq xmm5, 4
pxor xmm4, xmm6
movzx eax, byte [rax + rbx]
movaps xmm6, xmmword [rsp]
mov byte [rbp + 0x22], al
movzx eax, byte [rbp + 0x23]
movzx eax, byte [rax + rbx]
mov rbx, qword [rsp + 0x28]
mov byte [rbp + 0x23], al
mov eax, edx
mov r8d, dword [rbp + 0x20]
mov ecx, r8d
ror ecx, 8
ror eax, 8
movd xmm0, r8d
punpckldq xmm3, xmm0
movdqa xmm0, xmm5
movd xmm1, ecx
pxor xmm0, xmm4
movd xmm2, eax
punpckldq xmm2, xmm1
punpckldq xmm3, xmm2
pslldq xmm5, 4
pshufd xmm1, xmm3, 0xaa
pxor xmm0, xmm5
pxor xmm1, xmm0
movdqu xmmword [r11], xmm1
add rsp, 0x10
pop rbp
ret
Function at 0x180049e7c
Capabilities:
Get system information on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x180069028]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x50]
lea r8d, [rdx + 0x40]
call fcn.18001aa10
mov rdx, rbx
mov rcx, rdi
call fcn.180049ff0
mov dword [rbx + 0x50], eax
mov r8d, eax
cmp eax, 0xffffffff
jne 0x180049ed0
lea eax, [r8 - 6]
jmp 0x180049fc9
cmp dword [rdi], 1
jl 0x180049f34
mov ecx, dword [rdi + 0x10]
shr ecx, 8
and ecx, 0xf
mov dword [rbx + 0xd4], ecx
mov eax, dword [rdi + 0x10]
shr eax, 4
and eax, 0xf
mov dword [rbx + 0xd8], eax
mov eax, dword [rdi + 0x10]
and eax, 0xf
mov dword [rbx + 0xdc], eax
mov eax, dword [rdi + 0x10]
mov edx, eax
shr edx, 0x10
shr eax, 0x14
and edx, 0xf
movzx r9d, al
cmp r8d, 1
jne 0x180049f1c
cmp ecx, 0xf
jl 0x180049f1f
add ecx, r9d
shl edx, 4
add edx, dword [rbx + 0xd8]
mov dword [rbx + 0xe4], edx
mov dword [rbx + 0xe0], ecx
mov eax, dword [rdi + 0x200]
sub eax, 0x8000000
cmp eax, 4
jl 0x180049fa7
movups xmm2, xmmword [rdi + 0x220]
xor ecx, ecx
mov byte [rsp + 0x80], 0
movups xmm1, xmmword [rdi + 0x230]
movups xmm0, xmmword [rdi + 0x240]
movd eax, xmm2
movaps xmmword [rsp + 0x50], xmm2
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm0
cmp al, 0x20
jne 0x180049f89
lea rax, [rsp + 0x50]
inc rax
inc ecx
cmp byte [rax], 0x20
je 0x180049f7f
movsxd rax, ecx
lea rdx, [rsp + 0x50]
add rdx, rax
lea rcx, [rbx + 0x10]
mov r8d, 0x40
call fcn.18001fbf0
mov byte [rbx + 0x40], 0
mov rdx, rbx
mov rcx, rdi
call fcn.18004a260
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov dword [rbx + 0xf0], eax
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180016f60
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x18004ab88
Capabilities:
Parse pe header

Disassembly:
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x180069028]
xor rax, rsp
mov qword [rbp], rax
mov r11d, 2
mov dword [rsp], shutdown
mov r8, rcx
mov dword [rsp + 4], 0x3a
xor ecx, ecx
mov dword [rsp + 8], reloc.WS2_32.dll_shutdown
mov r9, rdx
mov dword [rsp + 0xc], 0x37
lea edx, [r11 + 8]
mov dword [rsp + 0x10], 0x19
cmp dword [r8 + 0x200], 0x80000001
lea eax, [rdx + 1]
lea r10d, [r11 + 7]
mov dword [rbp - 0x30], eax
mov dword [rbp - 0x80], eax
mov dword [rsp + 0x14], 0x3b
mov dword [rsp + 0x18], 0x1e
mov dword [rsp + 0x1c], 0x39
mov dword [rsp + 0x20], 0x1f
mov dword [rsp + 0x24], 0x38
mov dword [rbp - 0x70], 1
mov dword [rbp - 0x6c], 0x3f
mov dword [rbp - 0x68], r11d
mov dword [rbp - 0x64], 0x40
mov dword [rbp - 0x60], 5
mov dword [rbp - 0x5c], 0x41
mov dword [rbp - 0x58], 6
mov dword [rbp - 0x54], 0x43
mov dword [rbp - 0x50], 7
mov dword [rbp - 0x4c], 0x42
mov dword [rbp - 0x48], 8
mov dword [rbp - 0x44], 0x44
mov dword [rbp - 0x40], r10d
mov dword [rbp - 0x3c], 0x45
mov dword [rbp - 0x38], edx
mov dword [rbp - 0x34], 0x46
mov dword [rbp - 0x2c], 0x53
mov dword [rbp - 0x28], select
mov dword [rbp - 0x24], 0x48
mov dword [rbp - 0x20], select
mov dword [rbp - 0x1c], 0x49
mov dword [rbp - 0x18], select
mov dword [rbp - 0x14], 0x55
mov dword [rbp - 0x10], reloc.WS2_32.dll_setsockopt
mov dword [rbp - 0xc], 0x56
mov dword [rsp + 0x30], ecx
mov dword [rsp + 0x34], 0x4a
mov dword [rsp + 0x38], 1
mov dword [rsp + 0x3c], 0x4b
mov dword [rsp + 0x40], r11d
mov dword [rsp + 0x44], 0x4c
mov dword [rsp + 0x48], 3
mov dword [rsp + 0x4c], 0x4d
mov dword [rsp + 0x50], 4
mov dword [rsp + 0x54], 0x4e
mov dword [rsp + 0x58], 5
mov dword [rsp + 0x5c], 0x4f
mov dword [rsp + 0x60], 6
mov dword [rsp + 0x64], 0x50
mov dword [rsp + 0x68], 7
mov dword [rsp + 0x6c], 0x51
mov dword [rsp + 0x70], r10d
mov dword [rsp + 0x74], 0x5a
mov dword [rsp + 0x78], edx
mov dword [rsp + 0x7c], 0x5b
mov dword [rbp - 0x7c], 0x5c
mov dword [rbp - 0x78], select
mov dword [rbp - 0x74], 0x5d
jb 0x18004adb9
mov r10d, dword [r8 + 0x21c]
mov edx, ecx
mov eax, dword [rsp + rdx*8]
bt r10d, eax
jae 0x18004ad88
movsxd rax, dword [rsp + rdx*8 + 4]
mov byte [rax + r9 + 0x54], 1
inc rdx
cmp rdx, 5
jl 0x18004ad74
mov r10d, dword [r8 + 0x218]
mov rdx, rcx
mov eax, dword [rbp + rdx*8 - 0x70]
bt r10d, eax
jae 0x18004adb0
movsxd rax, dword [rbp + rdx*8 - 0x6c]
mov byte [rax + r9 + 0x54], 1
inc rdx
cmp rdx, 0xd
jl 0x18004ad9b
cmp dword [r8 + 0x200], 0x80000007
jb 0x18004adea
mov edx, dword [r8 + 0x27c]
mov eax, dword [rsp + rcx*8 + 0x30]
bt edx, eax
jae 0x18004ade1
movsxd rax, dword [rsp + rcx*8 + 0x34]
mov byte [rax + r9 + 0x54], 1
inc rcx
cmp rcx, 0xc
jl 0x18004adcd
cmp dword [r8 + 0x200], 0x8000001a
jb 0x18004ae15
mov byte [r9 + 0x16c], 1
mov eax, dword [r8 + 0x3a0]
and eax, 1
inc eax
shl eax, 6
mov dword [r9 + 0x168], eax
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.180016f60
add rsp, 0x110
pop rbp
ret
Function at 0x18004ea18
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
lea r9d, [r8 - 0x21524111]
mov r10, rdx
add r9d, edx
mov rbx, rcx
mov r11d, r9d
mov edi, r9d
cmp rdx, 0xc
jbe 0x18004eb32
lea r8, [rdx - 0xd]
movabs rax, 0xaaaaaaaaaaaaaaab
mul r8
mov rsi, rdx
shr rsi, 3
inc rsi
imul rax, rsi, 0xfffffffffffffff4
add r10, rax
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
movzx r8d, byte [rbx + 4]
movzx edx, byte [rbx + 8]
add r8d, r11d
shl ecx, 8
add edx, r9d
add ecx, eax
movzx eax, byte [rbx + 5]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 0xa]
shl ecx, 8
add r8d, ecx
movzx ecx, byte [rbx + 0xb]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 9]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx + 2]
shl ecx, 8
add edx, ecx
movzx ecx, byte [rbx + 3]
shl ecx, 8
mov r9d, edx
add ecx, eax
rol r9d, 4
movzx eax, byte [rbx + 1]
shl ecx, 8
add ecx, eax
movzx eax, byte [rbx]
shl ecx, 8
add rbx, 0xc
add ecx, eax
sub ecx, edx
add edx, r8d
add ecx, edi
xor r9d, ecx
sub r8d, r9d
mov eax, r9d
add r9d, edx
rol eax, 6
xor eax, r8d
sub edx, eax
mov ecx, eax
add eax, r9d
rol ecx, 8
xor ecx, edx
sub r9d, ecx
mov edi, ecx
add ecx, eax
rol edi, 0x10
xor edi, r9d
sub eax, edi
mov r11d, edi
ror r11d, 0xd
add edi, ecx
xor r11d, eax
sub ecx, r11d
mov r9d, r11d
rol r9d, 4
add r11d, edi
xor r9d, ecx
sub rsi, 1
jne 0x18004ea69
cmp r10, 6
ja 0x18004eb76
je 0x18004ebd3
test r10, r10
je 0x18004ec58
sub r10, 1
je 0x18004ebff
sub r10, 1
je 0x18004ebf6
sub r10, 1
je 0x18004ebed
sub r10, 1
je 0x18004ebe4
cmp r10, 1
je 0x18004ebdd
jmp 0x18004ec04
sub r10, 7
je 0x18004ebc9
sub r10, 1
je 0x18004ebbf
sub r10, 1
je 0x18004ebb8
sub r10, 1
je 0x18004ebae
sub r10, 1
je 0x18004eba4
cmp r10, 1
jne 0x18004ec04
movzx eax, byte [rbx + 0xb]
shl eax, 0x18
add r9d, eax
movzx eax, byte [rbx + 0xa]
shl eax, 0x10
add r9d, eax
movzx eax, byte [rbx + 9]
shl eax, 8
add r9d, eax
movzx eax, byte [rbx + 8]
add r9d, eax
movzx eax, byte [rbx + 7]
shl eax, 0x18
add r11d, eax
movzx eax, byte [rbx + 6]
shl eax, 0x10
add r11d, eax
movzx eax, byte [rbx + 5]
shl eax, 8
add r11d, eax
movzx eax, byte [rbx + 4]
add r11d, eax
movzx eax, byte [rbx + 3]
shl eax, 0x18
add edi, eax
movzx eax, byte [rbx + 2]
shl eax, 0x10
add edi, eax
movzx eax, byte [rbx + 1]
shl eax, 8
add edi, eax
movzx eax, byte [rbx]
add edi, eax
xor r9d, r11d
mov eax, r11d
rol eax, 0xe
sub r9d, eax
mov eax, r9d
mov edx, r9d
rol eax, 0xb
xor edx, edi
sub edx, eax
xor r11d, edx
mov eax, edx
ror eax, 7
sub r11d, eax
xor r9d, r11d
mov eax, r11d
rol eax, 0x10
sub r9d, eax
mov eax, r9d
mov ecx, r9d
rol eax, 4
xor ecx, edx
sub ecx, eax
xor r11d, ecx
mov eax, ecx
rol eax, 0xe
sub r11d, eax
mov eax, r11d
xor r9d, r11d
ror eax, 8
sub r9d, eax
mov rbx, qword [rsp + 8]
mov eax, r9d
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret