joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140b6a058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b6a1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140b6a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b6a06f
add dl, dl
jne 0x140b6a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b6a0f6
xor eax, eax
add dl, dl
jne 0x140b6a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b6a1ad
add dl, dl
jne 0x140b6a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b6a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b6a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b6a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b6a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b6a07e
mov eax, 1
add dl, dl
jne 0x140b6a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b6a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b6a0fb
sub eax, ebx
mov ebx, 1
jne 0x140b6a14c
mov ecx, 1
add dl, dl
jne 0x140b6a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b6a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b6a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b6a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b6a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b6a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b6a15d
cmp eax, 0x7d00
jae 0x140b6a19b
cmp eax, 0x500
jb 0x140b6a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b6a07e
cmp eax, 0x7f
ja 0x140b6a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b6a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b6a1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x140b6a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140008040
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r13d, r13d
cmp r8, 0x201
jae 0x1400080d0
jmp 0x1400080bf
jae 0x140008190
cmp r8, 0x201
jae 0x1400080d0
lea r12, [rbp - 0x58]
mov esi, 0x200
mov r15, r8
jmp 0x140008128
sub r8, r13
sub rbx, r13
cmp rbx, r8
jae 0x1400080ff
lea rcx, [rbp + 0x3c8]
mov rdx, r13
call fcn.140021530
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r13d, 0xffffffff
cmovb r13, rdi
mov qword [rbp + 0x3d8], r13
mov rbx, rdi
mov r12, qword [rbp + 0x3e8]
mov rsi, r13
mov r15, r13
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r12
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x140008151
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400081f8
mov r8d, r14d
cmp r15, r8
jne 0x1400080b0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14000821b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x1400080bf
jmp 0x1400080d0
cmp rsi, r8
jb 0x140008235
lea rcx, [rbp + 0x3a8]
mov rdx, r12
call fcn.140009d70
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x1400081e1
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140005720
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x1400081c9
jmp 0x1400081e1
lea rcx, str.internal_error:_entered_unreachable_code_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140022130
jmp 0x14000824a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.140022580
ud2
Function at 0x1400083a0
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x4a8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x420], 0xfffffffffffffffe
mov rsi, rcx
lea rcx, [rbp - 0x60]
call fcn.140012740
mov rax, qword [rbp - 0x60]
mov qword [rbp + 0x410], rax
test rax, rax
je 0x140008516
mov qword [rbp + 0x408], rsi
mov rax, qword [rbp - 0x58]
mov qword [rbp + 0x400], rax
mov qword [rbp + 0x3e8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3f0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x418], rax
xor edi, edi
xor ebx, ebx
xor esi, esi
cmp r8, 0x201
jae 0x140008450
jmp 0x14000843f
jae 0x140008528
cmp r8, 0x201
jae 0x140008450
lea r13, [rbp - 0x60]
mov r15d, 0x200
mov r12, r8
jmp 0x1400084a7
sub r8, rsi
sub rbx, rsi
cmp rbx, r8
jae 0x14000847f
lea rcx, [rbp + 0x3e8]
mov rdx, rsi
call fcn.140021530
mov rax, qword [rbp + 0x3e8]
mov qword [rbp + 0x418], rax
mov rdi, qword [rbp + 0x3f0]
mov eax, 0xffffffff
cmp rdi, rax
mov esi, 0xffffffff
cmovb rsi, rdi
mov qword [rbp + 0x3f8], rsi
mov rbx, rdi
mov r13, qword [rbp + 0x418]
mov r15, rsi
mov r12, rsi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rbp + 0x410]
mov rdx, r13
mov r8d, r12d
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov r14d, eax
test eax, eax
jne 0x1400084d7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1400085fb
mov r8d, r14d
cmp r12, r8
jne 0x140008430
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x140008625
add r12, r12
mov eax, 0xffffffff
cmp r12, rax
cmovae r12, rax
mov r8, r12
cmp r8, 0x201
jb 0x14000843f
jmp 0x140008450
lea rcx, [rbp - 0x58]
call fcn.140005ea0
mov byte [rsi + 0x18], 2
jmp 0x1400085ba
cmp r15, r8
jb 0x14000863f
lea rcx, [rbp + 0x3a0]
mov rdx, r13
call fcn.140009d70
movups xmm0, xmmword [rbp + 0x3a0]
movups xmm1, xmmword [rbp + 0x3b0]
movaps xmmword [rbp + 0x3d0], xmm1
movaps xmmword [rbp + 0x3c0], xmm0
test rdi, rdi
je 0x140008579
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x418]
mov rdx, rdi
call fcn.140005720
cmp byte [rbp + 0x3d8], 2
jne 0x1400085d1
mov rsi, qword [rbp + 0x408]
mov byte [rsi + 0x18], 2
lea rcx, [rbp + 0x3c0]
call fcn.140005ea0
mov rdx, qword [rbp + 0x400]
test rdx, rdx
je 0x1400085ba
add rdx, rdx
mov r8d, 2
mov rcx, qword [rbp + 0x410]
call fcn.140005720
mov rax, rsi
add rsp, 0x4a8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
movaps xmm0, xmmword [rbp + 0x3c0]
movaps xmm1, xmmword [rbp + 0x3d0]
mov rsi, qword [rbp + 0x408]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
mov rdx, qword [rbp + 0x400]
test rdx, rdx
jne 0x1400085a5
jmp 0x1400085ba
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp + 0x3c0], rax
mov byte [rbp + 0x3d8], 2
test rdi, rdi
jne 0x140008561
jmp 0x140008579
lea rcx, str.internal_error:_entered_unreachable_code_rustc_8ede3aae28fe6e4d52b38157d7bfe0d3bceef225library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.140022130
jmp 0x140008654
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.140022580
ud2
Function at 0x14000a770
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x14000a7a0
test ecx, ecx
jne 0x14000a7f0
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x14000a7ac
test ecx, ecx
jne 0x14000a7f0
mov rcx, rdi
call fcn.14000a650
movzx eax, al
test bpl, bpl
jne 0x14000a7f7
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x14000a7e3.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x14000a968]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x14000a7e3.2
xor eax, eax
test bpl, bpl
je 0x14000a7bc
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x14000a949
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x14000a82a
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x14000a8a9
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x14000a870
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x14000a88b
inc rax
dec rdi
cmp rax, 1
jne 0x14000a850
jmp 0x14000a8a9
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x14000a88b
cmp ebx, 0x5c
je 0x14000a88b
inc rax
dec rdi
cmp rax, 1
jne 0x14000a870
jmp 0x14000a8a9
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x14000a957
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x14000a8d3
mov al, 9
cmp rdx, 2
je 0x14000a8d7
cmp rdx, 1
jne 0x14000a8e7
cmp byte [r8], 0x2e
jne 0x14000a8e7
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x14000a8e7
mov al, 0xa
jmp 0x14000a8e7
cmp byte [r8], 0x2e
jne 0x14000a8e7
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x14000a7e3.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x14000a7e3.2
mov ecx, 2
jmp case.0x14000a7e3.2
lea r8, str.library_std_srcpath.rs
call fcn.140022500
ud2
lea r8, str.library_std_srcpath.rs
call fcn.140022500
ud2
Function at 0x140010280
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x140026618]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x1400102c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14001032a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x140010361
test eax, eax
js 0x14001033b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140010354
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140009be0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.1400061b0
mov ecx, 7
int 0x29
ud2

Function at 0x14001f2d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14001f34a
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14001f340
cmp r10, r11
jb 0x14001f3e3
cmp r10, rdx
ja 0x14001f3f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14001f342
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14001f320
jmp 0x14001f3b7
ja 0x14001f34a
mov r11, r10
cmp rax, r8
jne 0x14001f2f2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14001f3bb
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14001f390
mov r8, r10
sub ecx, r9d
jns 0x14001f3ae
jmp 0x14001f3bd
cmp r10, rdx
je 0x14001f3c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14001f3bd
xor al, 1
cmp r8, rdx
jne 0x14001f370
jmp 0x14001f3bd
xor eax, eax
jmp 0x14001f3bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140022130
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140022600
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140022580
ud2
Function at 0x140020f7c
Capabilities:
Parse pe header

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

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x18000176d
xor al, al
jmp 0x1800017bc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x18000177e
xor al, al
jmp 0x1800017bc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x1800017a5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x1800017a5
mov al, 1
jmp 0x1800017bc
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054170
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054170
add rsp, 0x60
pop rbx
ret

Function at 0x180001a30
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x180001a61
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180001b1a
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001a8b
add rbx, 0x8000000
jmp 0x180001b11
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001b1a
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001af6
cmp rcx, 0x10000
jb 0x180001af6
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001b1c
add rbx, 0x10000
jmp 0x180001b11
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180001b11
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001a70
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054170
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180001b40
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x50], rax
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x180001c28
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001b9b
sub rbx, 0x8000000
jmp 0x180001c1f
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180001c28
cmp dword [rsp + 0x40], 0x10000
jne 0x180001c03
cmp qword [rsp + 0x38], 0x10000
jb 0x180001c03
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001c2a
sub rbx, 0x10000
jmp 0x180001c1f
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x180001b80
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180054170
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180001d30
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x180001d4e
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x180001d6a
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x180001d81
cmp byte [rcx + 1], 0x25
jne 0x180001dc5
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x180001d8d
cmp al, 0xe9
jne 0x180001dc5
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x180001db0
cmp rcx, 0xffffffff80000000
jae 0x180001da7
lea rdi, [rcx + 0x7ff80000]
jmp 0x180001dc5
mov rdi, 0xfffffffffff80000
jmp 0x180001dc5
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180001dc5
mov ebx, 0x80000
mov rax, qword [0x18006d408]
mov rcx, qword [0x18006d418]
test rax, rax
jne 0x180001de7
test rcx, rcx
je 0x180001dfe
mov rax, rcx
mov qword [0x18006d408], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x180001dfe
cmp rdx, rbx
jb 0x180001dfe
cmp rdx, rdi
jbe 0x180001eb8
mov qword [0x18006d408], rcx
mov rax, rcx
test rcx, rcx
je 0x180001e42
mov rdx, rcx
test rcx, rcx
je 0x180001e2c
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180001e2c
cmp rcx, rbx
jb 0x180001e2c
cmp rcx, rdi
jbe 0x180001eb8
mov rax, qword [rax + 8]
mov qword [0x18006d408], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x180001e10
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.180001c50
test rax, rax
je 0x180001efb
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x18006d408], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x18006d418]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x18006d418], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x180001ea0
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x180001efb
cmp rdx, rdi
ja 0x180001efb
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x180061f80]
mov qword [rax + 0x10], rcx
mov rax, rdx
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm0
movups xmmword [rdx + 0x20], xmm0
movups xmmword [rdx + 0x30], xmm0
movups xmmword [rdx + 0x40], xmm0
movups xmmword [rdx + 0x50], xmm0
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
mov rdi, qword [rsp + 0x30]
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180001fc0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x18006d400], 0
jne 0x180002084
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006d400], ecx
jne 0x180002084
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x18006d418]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x18006d428], rdi
mov qword [0x18006d420], rdi
mov qword [0x18006d410], rdi
test rbx, rbx
je 0x180002060
nop word [rax + rax]
lea r9, [rsp + 0x20]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180002058
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180002030
jmp 0x180002060
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x18006d3bc], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054170
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054170
add rsp, 0x38
ret
Function at 0x180002630
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18006d3bc]
mov rbx, rcx
test eax, eax
jne 0x1800026c9
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
jne 0x18000265a
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x30], rdi
call fcn.180054190
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800026ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.1800541cc
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov dword [0x18006d3bc], ebx
mov qword [0x18006d410], 0
add rsp, 0x20
pop rbx
ret
mov rax, qword [0x18006d420]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], rbx
mov qword [0x18006d420], rdi
mov rdi, qword [rsp + 0x30]
add rsp, 0x20
pop rbx
ret
Function at 0x180002a80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
sub rsp, 0x38
mov rax, qword [0x18006c3c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbp, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x18006d400], eax
je 0x180002ab4
mov eax, 0x10dd
jmp 0x180002bc9
mov eax, dword [0x18006d3bc]
test eax, eax
jne 0x180002bc9
test rbp, rbp
jne 0x180002ad1
mov eax, 0x57
jmp 0x180002bc9
test rsi, rsi
je 0x180002aed
cmp qword [rsi], 0
jne 0x180002af7
mov dword [0x18006d3bc], 6
mov qword [0x18006d410], rsi
mov eax, 6
jmp 0x180002bc9
mov qword [rsp + 0x60], rbx
mov ecx, 0x30
mov qword [rsp + 0x30], rdi
call fcn.180054190
mov rcx, qword [rsi]
mov rbx, rax
call fcn.180001f10
mov rcx, rbp
mov rdi, rax
call fcn.180001f10
movzx edx, byte [rdi + 0x3e]
mov rbp, qword [rdi + 0x48]
sub rbp, rdx
test dl, dl
je 0x180002b95
cmp rdx, 0x1e
ja 0x180002b95
cmp qword [rdi + 0x50], rax
jne 0x180002b95
lea r9, [rsp + 0x20]
mov dword [rsp + 0x20], 0
mov r8d, 0x40
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002b66
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x180002ba3
mov dword [rbx + 8], 1
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x20], rdi
mov qword [rbx + 0x18], rbp
mov eax, dword [rsp + 0x20]
mov dword [rbx + 0x28], eax
mov rax, qword [0x18006d428]
mov qword [rbx], rax
xor eax, eax
mov qword [0x18006d428], rbx
jmp 0x180002bbf
cmp dword [0x18006ce10], 0
mov edi, 9
jne 0x180002ba9
mov dword [0x18006d3bc], edi
mov edx, 0x30
mov rcx, rbx
call fcn.1800541cc
mov eax, edi
mov qword [0x18006d410], rsi
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180054170
add rsp, 0x38
pop rsi
pop rbp
ret