joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400afba4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rdi
sub rsp, 0x50
mov rbx, rdx
lea rbp, [0x1400f30d0]
xor edx, edx
mov rcx, rbp
lea r8d, [rdx + 0x68]
call fcn.1400261b0
xor edx, edx
lea rdi, [0x1400f3138]
mov rcx, rdi
lea r8d, [rdx + 0x18]
call fcn.1400261b0
mov qword [rsp + 0x48], rdi
mov eax, 1
mov qword [rsp + 0x40], rbp
xor edi, edi
mov qword [rsp + 0x38], rdi
xor r9d, r9d
mov qword [rsp + 0x30], rdi
xor r8d, r8d
mov dword [rsp + 0x28], 0x20
mov rdx, rbx
xor ecx, ecx
mov dword [rsp + 0x20], edi
mov dword [0x1400f30d0], 0x68
mov dword [0x1400f310c], eax
mov word [0x1400f3110], ax
call qword [0x1400b5608]
test eax, eax
je 0x1400afc40
mov rcx, qword [0x1400f3138]
call qword [0x1400b57e8]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x1400b00d0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x20], rsi
mov qword [r11 + 8], rcx
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xor r12d, r12d
mov r14, r9
mov rax, r8
mov rsi, rdx
cmp word [r8], r12w
je 0x1400b025b
mov qword [r11 - 0x68], r12
xor r9d, r9d
mov dword [r11 - 0x70], r12d
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
mov rcx, rax
call qword [0x1400b5398]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400b015c
xor edx, edx
mov rcx, rax
call qword [0x1400b55b0]
mov edx, eax
lea ecx, [r12 + 2]
mov ebx, eax
call qword [0x1400b55a8]
mov r15, rax
test rax, rax
jne 0x1400b0163
mov rcx, rdi
call qword [0x1400b57e8]
xor eax, eax
jmp 0x1400b0296
mov rcx, r15
call qword [0x1400b5598]
lea r9, [rbp + 0x30]
mov qword [rsp + 0x20], r12
mov rdx, rax
mov r8d, ebx
mov rcx, rdi
call qword [0x1400b53b0]
mov rcx, r15
mov ebx, eax
call qword [0x1400b55a0]
mov rcx, rdi
call qword [0x1400b57e8]
test ebx, ebx
je 0x1400b015c
lea r8, [rbp - 0x28]
mov edx, 1
mov rcx, r15
call qword [0x1400b60d8]
mov rcx, qword [rbp - 0x28]
lea rax, [rbp - 0x30]
lea r9, [0x1400b9978]
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov qword [rbp - 0x30], r12
xor edx, edx
call qword [0x1400b5900]
mov rcx, qword [rbp - 0x28]
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, r15
call qword [0x1400b55b8]
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x1400b015c
mov rax, qword [rcx]
lea rdx, [rbp + 0x40]
call qword [rax + 0x18]
mov rcx, qword [rbp + 0x40]
lea r8, [rbp - 0x20]
mov edx, 0x20
call qword [0x1400b5210]
mov r8d, dword [r14]
mov rcx, qword [rbp + 0x50]
test r8d, r8d
jne 0x1400b0230
mov r8d, r12d
cmp dword [rcx], r12d
jne 0x1400b0230
mov eax, dword [rbp - 0x1c]
mov dword [r14], eax
mov eax, dword [rbp - 0x18]
mov dword [rcx], eax
mov r8d, dword [r14]
mov r9d, dword [rcx]
xor edx, edx
mov rcx, qword [rbp + 0x40]
mov dword [rsp + 0x20], 0x2000
call qword [0x1400b5d98]
mov rcx, qword [rbp - 0x30]
mov qword [rbp + 0x40], rax
mov rax, qword [rcx]
call qword [rax + 0x10]
mov r9, qword [rbp + 0x40]
jmp 0x1400b0262
mov r9, r12
mov qword [rbp + 0x40], r12
mov rcx, qword [rsi + 0xc0]
test rcx, rcx
je 0x1400b0278
call qword [0x1400b5190]
mov r9, qword [rbp + 0x40]
mov rbx, qword [rsi]
xor r8d, r8d
mov rcx, rbx
mov qword [rsi + 0xc0], r9
mov edx, 0x172
call qword [0x1400b5d38]
mov rax, rbx
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x1400b0d8c
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 8], rcx
push rsi
push rdi
push r14
sub rsp, 0x30
lea rcx, [0x1400f0d20]
mov r14d, r9d
mov rsi, r8
mov rdi, rdx
call fcn.14001def4
movsxd rcx, eax
mov rax, qword [0x1400f0dc0]
mov rcx, qword [rax + rcx*8]
mov rbx, qword [rcx]
cmp rsi, rdi
jne 0x1400b0e10
cmp qword [rbx + 0x2d0], 0
je 0x1400b0e74
lea rcx, [rsp + 0x50]
call qword [0x1400b5ba0]
and qword [rsp + 0x28], 0
mov rcx, qword [rbx + 0x2d0]
mov qword [rsp + 0x20], rdi
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov r9d, dword [rsp + 0x54]
call qword [0x1400b5b98]
jmp 0x1400b0e96
mov rdx, rsi
call fcn.14001dbf0
cmp eax, 0xffffffff
je 0x1400b0e74
movsxd rbp, eax
mov rax, qword [0x1400f0de8]
mov rcx, qword [rax + rbp*8]
mov rdx, qword [rcx]
mov cl, byte [rdx + 0xfc]
lea eax, [rcx - 0xe]
cmp al, 2
jbe 0x1400b0e74
cmp cl, 0x13
je 0x1400b0e74
cmp qword [rdx + 0x18], 0
je 0x1400b0e74
lea rcx, [rsp + 0x50]
call qword [0x1400b5ba0]
mov rax, qword [0x1400f0de8]
and qword [rsp + 0x28], 0
mov rcx, qword [rax + rbp*8]
mov rax, qword [rbx]
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx]
mov rcx, qword [rcx + 0x18]
jmp 0x1400b0df9
movzx r9d, word [rsp + 0x70]
mov r8, rsi
shl r9, 0x10
mov edx, 0x7b
movzx eax, r14w
mov rcx, rdi
or r9, rax
call qword [0x1400b5ad8]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x140003ac0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
je 0x140003ae3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 9]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x46
jb 0x140003ad0
mov byte [rcx + 0x47], 0
mov rax, rcx
ret

Function at 0x140003af0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140003b24
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140003b10
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140003b59
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006d60
nop
cmp byte [rbx + 0xa], 0
je 0x140003b83
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 9]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 9
jb 0x140003b70
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140003bb8
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140009230
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003c0c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c06
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c06
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140003c4c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003c47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003c47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140003c60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 7], sil
je 0x140003c94
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 6
jb 0x140003c80
mov byte [r8 + 7], sil
lea rax, [r8 + 6]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003cc9
mov r8d, 6
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003cd7
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.14000a150
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003d4c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003d47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003d47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003d60
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 0xa], sil
je 0x140003d94
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 9
jb 0x140003d80
mov byte [r8 + 0xa], sil
lea rax, [r8 + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003dc9
mov r8d, 9
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003dd7
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.14000a150
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003e4c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003e47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003e47
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140003e60
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x140003e88
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 9]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x135
jb 0x140003e70
mov byte [rcx + 0x136], 0
mov rax, rcx
ret
Function at 0x140003ec0
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x48], rcx
xor esi, esi
cmp byte [r8 + 0xc], sil
je 0x140003ef4
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 0xb
jb 0x140003ee0
mov byte [r8 + 0xc], sil
lea rax, [r8 + 0xb]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], sil
cmp r9, rax
je 0x140003f29
mov r8d, recv
mov rdx, r9
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
mov r9, qword [rbx + 0x10]
cmp qword [rbx + 0x18], 0x10
jb 0x140003f37
mov rbx, qword [rbx]
mov r8, rbx
lea rcx, [rsp + 0x28]
call fcn.14000a150
mov qword [rdi], rsi
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], rsi
movups xmm0, xmmword [rax]
movups xmmword [rdi], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + 0x10], xmm1
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rax], 0
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140003fac
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003fa7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140003fa7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004410
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 6], sil
je 0x140004444
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 5
jb 0x140004430
mov byte [r8 + 6], sil
lea rax, [r8 + 5]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x140004479
mov r8d, 5
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006d60
nop
cmp byte [rbx + 0xd], 0
je 0x1400044a3
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 9]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 0xc
jb 0x140004490
mov byte [rbx + 0xd], 0
lea rax, [rbx + 0xc]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x1400044d8
mov r8d, recv
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140009230
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000452c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004526
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004526
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000456c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004567
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004567
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140004960
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140004994
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x140004980
mov byte [r8 + 9], sil
lea rax, [r8 + 8]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x1400049c9
mov r8d, 8
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006d60
nop
cmp byte [rbx + 9], 0
je 0x1400049f3
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 9]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 8
jb 0x1400049e0
mov byte [rbx + 9], 0
lea rax, [rbx + 8]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140004a28
mov r8d, 8
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140009230
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x140004a7c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004a76
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004a76
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140004abc
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004ab7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140004ab7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140005040
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov r9, r8
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x68], rcx
xor esi, esi
cmp byte [r8 + 9], sil
je 0x140005074
mov ecx, esi
lea eax, [rcx - 9]
xor byte [r8 + rcx], al
inc rcx
cmp rcx, 8
jb 0x140005060
mov byte [r8 + 9], sil
lea rax, [r8 + 8]
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x48], sil
cmp r9, rax
je 0x1400050a9
mov r8d, 8
mov rdx, r9
lea rcx, [rsp + 0x48]
call fcn.140006d60
nop
cmp byte [rbx + 0xa], 0
je 0x1400050d3
mov rcx, rsi
nop dword [rax]
nop word [rax + rax]
lea eax, [rcx - 9]
xor byte [rbx + rcx], al
inc rcx
cmp rcx, 9
jb 0x1400050c0
mov byte [rbx + 0xa], 0
lea rax, [rbx + 9]
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], reloc.WS2_32.dll_ntohs
mov byte [rsp + 0x28], 0
cmp rbx, rax
je 0x140005108
mov r8d, 9
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006d60
nop
lea r9, [rsp + 0x48]
lea r8, [rsp + 0x28]
mov rcx, rdi
call fcn.140009230
nop
mov rdx, qword [rsp + 0x40]
cmp rdx, 0x10
jb 0x14000515c
inc rdx
mov rcx, qword [rsp + 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005156
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005156
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
nop
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14000519c
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005197
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005197
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14006a250
mov rax, rdi
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140016600
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov r9d, 0x6c078965
mov r8d, 0xffffffff
mov edx, dword [rsp + 0x38]
mov rcx, qword [rsp + 0x30]
call fcn.1400165b0
mov rax, qword [rsp + 0x30]
add rsp, 0x28
ret

Function at 0x140017cc0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x140017ce2
mov rcx, qword [rsp + 0x40]
call fcn.140019e30
jmp 0x140017cf9
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x140017cf9
mov rcx, qword [rsp + 0x40]
call fcn.140019c30
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400181e0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, [0x14006dd3c]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
add rsp, 0x28
ret
Function at 0x1400184a0
Capabilities:
Execute command

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x38
cmp dword [rsp + 0x40], 0
je 0x1400184fe
call fcn.1400181e0
lea rcx, [0x14006dfc0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.__n_________________________________________________________________________________________________n______________________________________________________________________________________________n_____________________________________________________________________________________________n_________________________________________________________________________________________n_____________________________________________________________________________________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140014490
mov qword [rsp + 0x20], rax
lea rdx, [0x140015a40]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, 5
lea rcx, [0x14006e1d0]
call fcn.140018230
jmp 0x140018546
lea rcx, str.Color_0D
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rdx, str.__n_________________________________________________________________________________________________n______________________________________________________________________________________________n_____________________________________________________________________________________________n_________________________________________________________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140014490
mov qword [rsp + 0x28], rax
lea rdx, [0x140015a40]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edx, 5
lea rcx, str.__________________________________________MW3_v1.5
call fcn.140018230
add rsp, 0x38
ret
Function at 0x140018de0
Capabilities:
Set console window title

Disassembly:
sub rsp, 0x68
mov edx, recv
lea rcx, [rsp + 0x40]
call fcn.140018990
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x38]
call fcn.140006140
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
lea rcx, [rsp + 0x40]
call fcn.140006250
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [rsp + 0x30], rax
mov edx, 1
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_ShowWindow]
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1400897d0], eax
mov ecx, 1
call qword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [0x1400897d4], eax
cvtsi2sd xmm0, dword [0x1400897d4]
divsd xmm0, qword [0x14006e868]
cvttsd2si eax, xmm0
cvtsi2sd xmm0, dword [0x1400897d0]
divsd xmm0, qword [0x14006e868]
cvttsd2si ecx, xmm0
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0x1f4
mov r9d, 0x384
mov r8d, eax
mov edx, ecx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.USER32.dll_MoveWindow]
add rsp, 0x68
ret