joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400046e0
Capabilities:
Access pe header

Disassembly:
push rdi
sub rsp, 0x20
mov rdi, qword [rcx + 0x10]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov ecx, dword [rax + 0xd0]
test ecx, ecx
je 0x14000473d
mov qword [rsp + 0x30], rbx
mov rbx, qword [rcx + rdi + 0x18]
test rbx, rbx
je 0x14000472d
mov rax, qword [rbx]
test rax, rax
je 0x14000472d
xor r8d, r8d
mov rcx, rdi
lea edx, [r8 + 1]
call rax
mov rax, qword [rbx + 8]
lea rbx, [rbx + 8]
test rax, rax
jne 0x140004714
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x140004750
Capabilities:
Access pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov edx, dword [rax + 0x28]
test edx, edx
je 0x1400047dc
mov rcx, qword [rbx + 0x10]
lea rax, [rcx + rdx]
xor r8d, r8d
lea edx, [r8 + 1]
call rax
test al, al
je 0x1400047b6
movzx eax, byte [rbx + 0xc]
or al, 1
mov byte [rbx + 0xc], al
mov rdx, qword [rbx + 0x38]
mov rax, qword [0x14008ac28]
cmp byte [rax + 0x14], 5
ja 0x1400047a5
mov eax, dword [rdx + 0x68]
bts eax, 0x13
mov dword [rdx + 0x68], eax
jmp 0x1400047af
mov ecx, dword [rdx + 0x68]
bts ecx, 0x13
mov dword [rdx + 0x68], ecx
mov eax, 1
jmp 0x1400047e1
mov ecx, 0x45a
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400047d4
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x1400047f0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x30
mov rbx, r8
mov r13, rdx
mov r12, rcx
xor edi, edi
cmp qword [r8], rdi
je 0x140004934
mov r8, qword [r8 + 8]
test r8, r8
je 0x140004934
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000484c
inc rcx
mov qword [rbx + 0x10], rcx
mov rax, qword [rbx + 0x18]
dec rax
mov qword [rbx + 0x18], rax
jmp 0x1400048c8
mov rcx, r12
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r15, rax
mov qword [rsp + 0x28], rdi
test rax, rax
je 0x14000492d
movzx esi, word [rax + 0x14]
add rsi, 0x18
add rsi, rax
mov qword [rsp + 0x28], rsi
movzx r14d, di
mov word [rsp + 0x20], di
nop
cmp r14w, word [r15 + 6]
jae 0x1400048ad
mov r8d, 8
mov rdx, rsi
mov rcx, r13
call fcn.14004fa54
test eax, eax
jne 0x140004906
mov eax, dword [rsi + 0xc]
add rax, r12
mov qword [rbx + 0x10], rax
mov eax, dword [rsi + 8]
mov qword [rbx + 0x18], rax
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14000491e
mov rax, qword [rbx + 0x18]
test rax, rax
je 0x14000491e
mov r8, qword [rbx + 8]
cmp rax, r8
jb 0x14000491e
mov r14, rcx
sub r14, r8
add r14, rax
cmp rcx, r14
ja 0x14000491e
mov rsi, qword [rbx + 8]
mov rdx, rcx
mov rcx, qword [rbx]
call qword [sym.imp.ntdll.dll_RtlCompareMemory]
cmp rax, rsi
je 0x140004945
mov rcx, qword [rbx + 0x10]
inc rcx
mov qword [rbx + 0x10], rcx
mov rax, qword [rbx + 0x18]
dec rax
mov qword [rbx + 0x18], rax
mov r8, rsi
jmp 0x1400048d1
add rsi, 0x28
mov qword [rsp + 0x28], rsi
inc r14w
mov word [rsp + 0x20], r14w
jmp 0x140004880
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov edi, 0xc0000225
jmp 0x140004941
mov edi, 0xc00000ef
jmp 0x140004941
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], rdi
mov edi, 0xc000000d
mov dword [rsp + 0x24], edi
jmp 0x14000494d
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov r12, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x140004a20
Capabilities:
Access pe header
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x40
mov r15, rdx
mov r12, rcx
mov byte [rsp + 0x20], 0
xor edi, edi
test rdx, rdx
je 0x140004a4e
mov qword [rdx], rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rbx, rax
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x70], rdi
test rax, rax
je 0x140004b93
movzx eax, word [rax + 0x18]
mov ecx, 0x10b
cmp ax, cx
je 0x140004ae8
mov ecx, 0x20b
cmp ax, cx
je 0x140004a89
xor al, al
jmp 0x140004b93
movzx esi, word [rbx + 0x14]
add rsi, 0x18
add rsi, rbx
mov qword [rsp + 0x30], rsi
mov r14d, dword [rbx + 0x54]
mov qword [rsp + 0x70], r14
movzx eax, word [rbx + 6]
lea rdx, [rax + rax*4]
shl rdx, 3
mov rcx, rsi
call fcn.140004bb0
mov rax, r14
mov word [rsp + 0x24], di
cmp di, word [rbx + 6]
jae 0x140004ae0
mov ecx, dword [rsi + 0x10]
add rcx, r14
mov r14, rcx
mov qword [rsp + 0x70], rcx
inc di
add rsi, 0x28
mov qword [rsp + 0x30], rsi
jmp 0x140004ab6
mov edi, dword [rbx + 0xac]
jmp 0x140004b45
movzx esi, word [rbx + 0x14]
add rsi, 0x18
add rsi, rbx
mov qword [rsp + 0x30], rsi
mov r14d, dword [rbx + 0x54]
mov qword [rsp + 0x70], r14
movzx eax, word [rbx + 6]
lea rdx, [rax + rax*4]
shl rdx, 3
mov rcx, rsi
call fcn.140004bb0
mov rax, r14
mov word [rsp + 0x28], di
cmp di, word [rbx + 6]
jae 0x140004b3f
mov ecx, dword [rsi + 0x10]
add rcx, r14
mov r14, rcx
mov qword [rsp + 0x70], rcx
inc di
add rsi, 0x28
mov qword [rsp + 0x30], rsi
jmp 0x140004b15
mov edi, dword [rbx + 0x9c]
add rdi, rax
mov qword [rsp + 0x70], rdi
mov ebx, dword [rbx + 0x58]
mov rdx, rdi
mov rcx, r12
call fcn.140004bb0
test r15, r15
je 0x140004b63
mov qword [r15], rdi
test ebx, ebx
jne 0x140004b6b
mov al, 1
jmp 0x140004b93
mov r8d, ebx
mov edx, edi
mov rcx, r12
call fcn.140004970
mov byte [rsp + 0x20], al
jmp 0x140004b93
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret
Function at 0x140005030
Capabilities:
Access pe header
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
mov r14, rdx
mov rsi, rcx
xor ebx, ebx
test rdx, rdx
je 0x140005055
mov qword [rdx], rbx
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
mov rdi, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [rcx + 0x18]
add rax, 0x10
cmp rdi, rax
je 0x140005156
movzx r8d, word [rdi + 0x48]
mov rdx, rsi
mov rcx, qword [rdi + 0x50]
call fcn.14004fb54
test eax, eax
jne 0x14000514e
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400050d0
add rax, rax
movzx ecx, word [rdi + 0x48]
cmp rax, rcx
jne 0x14000514e
mov rsi, qword [rdi + 0x30]
test rsi, rsi
je 0x14000512c
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000512c
movsxd rdx, dword [rsi + 0x3c]
movzx eax, word [rdx + rsi + 6]
lea ecx, [rax + rax*4]
lea eax, [rdx + rcx*8]
cdqe
add rax, 0x108
add rax, rsi
movabs rcx, 0xaabbcc11ffee00
cmp qword [rax], rcx
jne 0x14000512c
cmp qword [rax + 0x10], rsi
je 0x14000512f
mov rax, rbx
test rax, rax
setne bl
mov dword [rsp + 0x40], ebx
test rax, rax
je 0x140005156
test r14, r14
je 0x140005156
mov qword [r14], rdi
jmp 0x140005156
mov rdi, qword [rdi]
jmp 0x140005090
mov rcx, qword gs:[0x30]
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x110]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, ebx
jmp 0x140005176
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140005190
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, rcx
mov rdi, rdx
mov esi, r8d
mov edx, 8
mov rcx, qword [rax + 0x60]
lea r8d, [rdx + 0x20]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov dword [rax + 0x20], esi
mov rcx, qword [0x14008ac28]
mov rcx, qword [rcx + 0x68]
add rcx, 8
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rcx, qword [0x14008ac28]
mov rdx, qword [rcx + 0x68]
mov rcx, qword [rdx + 0x38]
add rdx, 0x30
mov qword [r14 + 8], rcx
mov qword [r14], rdx
mov qword [rcx], r14
mov qword [rdx + 8], r14
mov rax, qword [0x14008ac28]
mov rcx, qword [rax + 0x68]
add rcx, 8
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400056d0
Capabilities:
Access pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x40
mov edi, r9d
mov ebp, r8d
mov r14d, edx
mov rbx, rcx
call fcn.140005240
mov rsi, rax
test rax, rax
je 0x14000579c
mov rcx, qword [rax + 0x18]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov rdi, qword [rcx + 0x30]
test rdi, rdi
je 0x14000578e
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x14000578e
movsxd rdx, dword [rdi + 0x3c]
movzx ecx, word [rdx + rdi + 6]
lea eax, [rcx + rcx*4]
movabs rcx, 0xaabbcc11ffee00
lea eax, [rdx + rax*8]
cdqe
add rax, rdi
cmp qword [rax + 0x108], rcx
jne 0x14000578e
cmp qword [rax + 0x118], rdi
jne 0x14000578e
cmp dword [rsi + 0x20], ebx
je 0x140005793
mov r8d, dword [rax + 0x138]
lea rcx, [rsp + 0x30]
mov rdx, qword [rax + 0x120]
call fcn.1400036d0
mov rbx, qword [rsp + 0x30]
test rbx, rbx
je 0x14000578e
xor r8d, r8d
mov rdx, rbx
mov rcx, rbx
call fcn.140005190
mov rax, rbx
jmp 0x1400057cb
mov rax, qword [rax + 0x120]
jmp 0x1400057cb
mov rax, qword [0x14008ac28]
mov r9d, edi
mov r8d, ebp
mov edx, r14d
mov rcx, rbx
mov r10, qword [rax + 0x68]
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
call qword [r10 + 0x78]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x140005d90
Capabilities:
Access pe header
Access peb ldr_data
Check os version

Disassembly:
push rbx
push rbp
push r12
push r13
sub rsp, 0x78
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor r12d, r12d
lea rcx, [0x140079420]
mov ebx, r12d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rbp, rax
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, qword [0x14008ac28]
lea r13, [0x140079414]
mov r8, rax
mov qword [rsp + 0x20], rax
xor eax, eax
mov qword [rsp + 0x30], 0x18
xorps xmm0, xmm0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x48]
movups xmmword [rsp + 0x48], xmm0
cmp dword [rcx + 8], 6
mov qword [rsp + 0x28], rax
movups xmmword [rsp + 0x38], xmm0
jne 0x140005e23
cmp dword [rcx + 0xc], 2
jne 0x140005e1d
mov rbx, rbp
mov rax, r8
jmp 0x140005f20
cmp dword [rcx + 0xc], 3
je 0x140005e2d
mov eax, r12d
seta al
test eax, eax
je 0x140005e3f
mov rbx, rbp
lea r13, str..mrdata
mov rax, r8
jmp 0x140005f20
mov rax, qword gs:[0x30]
mov qword [rsp + 0xb0], r14
mov qword [rsp + 0x70], r15
mov rcx, qword [rax + 0x60]
mov r15, qword [rcx + 0x18]
add r15, 0x10
mov r14, qword [r15]
cmp r14, r15
je 0x140005f05
mov qword [rsp + 0xa0], rsi
movabs r13, 0xaabbcc11ffee00
mov qword [rsp + 0xa8], rdi
nop word [rax + rax]
mov rdi, qword [r14 + 0x30]
lea rsi, [r14]
mov r14, qword [r14]
test rdi, rdi
je 0x140005ed2
mov rcx, rdi
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
test rax, rax
je 0x140005ed2
movsxd rdx, dword [rdi + 0x3c]
movzx ecx, word [rdx + rdi + 6]
lea eax, [rcx + rcx*4]
lea eax, [rdx + rax*8]
cdqe
cmp qword [rax + rdi + 0x108], r13
jne 0x140005ed2
cmp qword [rax + rdi + 0x118], rdi
je 0x140005ee9
test rbx, rbx
je 0x140005ee5
mov rax, qword [rsi + 0x30]
cmp rbx, rax
jb 0x140005ee9
mov rbx, rax
jmp 0x140005ee9
mov rbx, qword [rsi + 0x30]
cmp r14, r15
jne 0x140005e90
mov rdi, qword [rsp + 0xa8]
lea r13, [0x140079414]
mov rsi, qword [rsp + 0xa0]
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov r8, qword [rsp + 0x20]
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xb0]
test rbx, rbx
je 0x140005fcd
test rax, rax
je 0x140005fcd
test rbp, rbp
je 0x140005fcd
test r8, r8
je 0x140005fcd
mov ecx, dword [rax + 0xa4]
test ecx, ecx
je 0x140005f58
mov r12d, dword [rax + 0xa0]
add r12, rbx
mov eax, dword [rax + 0x50]
lea r8, [rsp + 0x28]
mov dword [rsp + 0x5c], ecx
mov rdx, r13
mov rcx, rbp
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x50], rbx
mov dword [rsp + 0x58], eax
call fcn.1400047f0
test eax, eax
js 0x140005fcd
mov r11, qword [rsp + 0x38]
xor r8d, r8d
lea edx, [r8 + 2]
lea ecx, [rdx + 4]
call fcn.140004c40
test eax, eax
je 0x140005fa9
cmp dword [r11 - 0xc], 0x200
jne 0x140005fb9
cmp dword [r11 - 4], r8d
je 0x140005fe7
cmp dword [r11 - 0xc], 0x200
jne 0x140005fb9
cmp dword [r11 - 8], r8d
je 0x140005fe7
lea r8, [rsp + 0x28]
mov rdx, r13
mov rcx, rbp
call fcn.1400047f0
test eax, eax
jns 0x140005f81
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140042de0
add rsp, 0x78
pop r13
pop r12
pop rbp
pop rbx
ret
lea rax, [r11 - 0x10]
jmp 0x140005fcf
Function at 0x140006070
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0xc0]
sub rsp, 0x1c0
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
xor ebx, ebx
mov qword [rsp + 0x50], rbx
mov dword [rbp - 0x64], ebx
mov qword [rsp + 0x58], rbx
mov qword [rbp - 0x70], rbx
mov r9, qword gs:[0x30]
mov rax, qword gs:[0x30]
mov rcx, qword [rax + 0x60]
mov rax, qword [r9 + 0x60]
cmp dword [rcx + 0x2c0], ebx
lea rcx, [rbp - 0x50]
jne 0x1400060e8
mov r8, qword [r9 + 0x40]
lea rdx, str.BaseNamedObjectsMMPP_p
not r8
xor r8, qword [rax + 0x30]
call fcn.1400069d0
jmp 0x140006113
mov r9, qword [r9 + 0x40]
lea rdx, str.Sessions_dBaseNamedObjectsMMPP_p
not r9
xor r9, qword [rax + 0x30]
mov rax, qword gs:[0x30]
mov r8, qword [rax + 0x60]
mov r8d, dword [r8 + 0x2c0]
call fcn.1400069d0
lea rcx, [rbp - 0x50]
mov rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], bx
jne 0x140006120
add ax, ax
mov qword [rsp + 0x30], rbx
mov word [rbp - 0x68], ax
lea r9, [rbp - 0x58]
add ax, 2
mov dword [rsp + 0x28], 0x8000000
mov word [rbp - 0x66], ax
lea r8, [rsp + 0x60]
lea rax, [rbp - 0x50]
mov dword [rsp + 0x60], 0x30
mov qword [rbp - 0x60], rax
lea rcx, [rsp + 0x50]
lea rax, [rbp - 0x68]
mov qword [rsp + 0x68], rbx
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
mov edx, 0xf001f
mov dword [rsp + 0x78], ebx
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x58], 0x1000
mov dword [rsp + 0x20], 4
call qword [sym.imp.ntdll.dll_NtCreateSection]
test eax, eax
js 0x14000620f
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x48], 4
lea r8, [0x14008ac28]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
jns 0x1400061ef
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.140042de0
mov rbx, qword [rsp + 0x1d0]
add rsp, 0x1c0
pop rbp
ret
cmp eax, 0xc0000035
jne 0x1400061ef
lea r8, [rsp + 0x60]
mov edx, 0xf001f
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_NtOpenSection]
test eax, eax
js 0x1400061ef
mov rcx, qword [rsp + 0x50]
lea rax, [rbp - 0x70]
mov dword [rsp + 0x48], 2
lea r8, [rsp + 0x58]
mov dword [rsp + 0x40], ebx
xor r9d, r9d
mov dword [rsp + 0x38], 2
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
lea rdx, [r9 - 1]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov rcx, qword [rsp + 0x50]
mov ebx, eax
call qword [sym.imp.ntdll.dll_NtClose]
test ebx, ebx
js 0x1400061ed
mov rdx, qword [rsp + 0x58]
mov rcx, 0xffffffffffffffff
mov rax, qword [rdx + 0x70]
mov qword [0x14008ac28], rax
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov eax, 0xc0000510
jmp 0x1400061ef
Function at 0x140006d70
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140088040]
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 0x140006dad
xor al, al
jmp 0x140006dfc
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x140006dbe
xor al, al
jmp 0x140006dfc
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x140006de5
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x140006de5
mov al, 1
jmp 0x140006dfc
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042de0
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042de0
add rsp, 0x60
pop rbx
ret

Function at 0x140007080
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x50], rax
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x1400070b1
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x140007177
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x1400070db
add rbx, 0x8000000
jmp 0x14000716e
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 0x140007177
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x140007153
cmp rcx, 0x10000
jb 0x140007153
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140007179
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x140007177
add rbx, 0x10000
jmp 0x14000716e
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x14000716e
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1400070c0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042de0
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x1400071a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x140088040]
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 0x140007295
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x1400071fb
sub rbx, 0x8000000
jmp 0x14000728c
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 0x140007295
cmp dword [rsp + 0x40], 0x10000
jne 0x140007270
cmp qword [rsp + 0x38], 0x10000
jb 0x140007270
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x140007297
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x677
je 0x140007295
sub rbx, 0x10000
jmp 0x14000728c
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 0x1400071e0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.140042de0
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x140007390
Capabilities:
Hook routines via microsoft detours

Disassembly:
push rbx
sub rsp, 0x20
lea rbx, [rcx - 0x7ff80000]
mov r9, rcx
cmp rcx, 0x7ff80000
ja 0x1400073ae
mov ebx, 0x80000
mov qword [rsp + 0x30], rdi
lea rdi, [rcx + 0x7ff80000]
cmp r9, 0xffffffff80000000
jb 0x1400073ca
mov rdi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1400073e1
cmp byte [rcx + 1], 0x25
jne 0x140007425
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x1400073ed
cmp al, 0xe9
jne 0x140007425
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, r9
cmp rcx, r9
jae 0x140007410
cmp rcx, 0xffffffff80000000
jae 0x140007407
lea rdi, [rcx + 0x7ff80000]
jmp 0x140007425
mov rdi, 0xfffffffffff80000
jmp 0x140007425
lea rbx, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x140007425
mov ebx, 0x80000
mov rax, qword [0x14008ac80]
mov rcx, qword [0x14008ac90]
test rax, rax
jne 0x140007447
test rcx, rcx
je 0x14000745e
mov rax, rcx
mov qword [0x14008ac80], rcx
mov rdx, qword [rax + 0x10]
test rdx, rdx
je 0x14000745e
cmp rdx, rbx
jb 0x14000745e
cmp rdx, rdi
jbe 0x140007518
mov qword [0x14008ac80], rcx
mov rax, rcx
test rcx, rcx
je 0x1400074a2
mov rdx, rcx
test rcx, rcx
je 0x14000748c
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14000748c
cmp rcx, rbx
jb 0x14000748c
cmp rcx, rdi
jbe 0x140007518
mov rax, qword [rax + 8]
mov qword [0x14008ac80], rax
mov rdx, rax
mov rcx, rax
test rax, rax
jne 0x140007470
movzx eax, r9w
mov r8, rdi
sub r9, rax
mov rdx, rbx
mov rcx, r9
call fcn.1400072b0
test rax, rax
je 0x14000755b
mov dword [rax], 0x52727464
lea rdx, [rax + 0xffa8]
xor r8d, r8d
mov qword [0x14008ac80], rax
mov qword [rax + 0x10], r8
mov r9d, 0x2a7
mov rcx, qword [0x14008ac90]
mov qword [rax + 8], rcx
lea rcx, [rax + 0xff60]
mov qword [0x14008ac90], rax
nop word [rax + rax]
mov qword [rdx], r8
lea rdx, [rdx - 0x60]
mov r8, rcx
sub rcx, 0x60
sub r9, 1
jne 0x140007500
mov qword [rax + 0x10], r8
mov rdx, qword [rax + 0x10]
cmp rdx, rbx
jb 0x14000755b
cmp rdx, rdi
ja 0x14000755b
mov rcx, qword [rdx + 0x48]
movdqa xmm0, xmmword [0x14007e520]
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 0x140007620
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140088040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp dword [0x14008ac78], 0
jne 0x1400076e4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x14008ac78], ecx
jne 0x1400076e4
mov qword [rsp + 0x40], rbx
mov rbx, qword [0x14008ac90]
mov qword [rsp + 0x30], rdi
xor edi, edi
mov qword [0x14008aca0], rdi
mov qword [0x14008ac98], rdi
mov qword [0x14008ac88], rdi
test rbx, rbx
je 0x1400076c0
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 0x1400076b8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x140007690
jmp 0x1400076c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x14008ac74], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140042de0
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140042de0
add rsp, 0x38
ret
Function at 0x140007c90
Capabilities:
Suspend thread

Disassembly:
sub rsp, 0x28
mov eax, dword [0x14008ac74]
test eax, eax
jne 0x140007d35
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rax, 0xfffffffffffffffe
jne 0x140007cb5
xor eax, eax
add rsp, 0x28
ret
mov ecx, reloc.WS2_32.dll_recv
mov qword [rsp + 0x20], rdi
call fcn.140042e00
mov rcx, 0xfffffffffffffffe
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x140007d15
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, reloc.WS2_32.dll_recv
mov rcx, rdi
call fcn.140042e44
mov rdi, qword [rsp + 0x20]
mov eax, ebx
mov dword [0x14008ac74], ebx
mov rbx, qword [rsp + 0x30]
mov qword [0x14008ac88], 0
add rsp, 0x28
ret
mov rax, qword [0x14008ac98]
mov qword [rdi], rax
xor eax, eax
mov qword [rdi + 8], 0xfffffffffffffffe
mov qword [0x14008ac98], rdi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret