joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f8a0
Capabilities:
Create thread

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rax, qword [rbp + 0x10]
mov qword [rax], 0
mov ecx, 0x28
call fcn.14000b1aa
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000f8de
mov eax, 7
jmp 0x14000f9cd
movzx eax, byte [0x1401ad044]
test al, al
je 0x14000f8f7
mov ecx, 0xc8
call fcn.14001076a
test eax, eax
je 0x14000f910
mov rax, qword [rbp - 8]
mov r8d, 0x28
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
jmp 0x14000f98b
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x18]
mov qword [rax + 0x10], rdx
mov rax, qword [rbp - 8]
mov rdx, qword [rbp + 0x20]
mov qword [rax + 0x18], rdx
mov rax, qword [rbp - 8]
add rax, 8
mov rdx, qword [rbp - 8]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0
mov r9, rdx
lea r8, [0x14000f860]
mov edx, 0
mov ecx, 0
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
call rax
mov rdx, rax
mov rax, qword [rbp - 8]
mov qword [rax], rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax]
test rax, rax
jne 0x14000f98b
mov rax, qword [rbp - 8]
mov r8d, 0x28
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
test rax, rax
jne 0x14000f9bd
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call rax
mov rdx, qword [rbp - 8]
mov dword [rdx + 8], eax
mov rax, qword [rbp + 0x20]
mov rdx, qword [rbp + 0x18]
mov rcx, rax
call rdx
mov rdx, qword [rbp - 8]
mov qword [rdx + 0x20], rax
mov rax, qword [rbp + 0x10]
mov rdx, qword [rbp - 8]
mov qword [rax], rdx
mov eax, 0
add rsp, 0x40
pop rbp
ret

Function at 0x1400135de
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rbp + 0x10], rcx
mov word [rbp - 2], 0x28
cmp qword [rbp + 0x10], 7
ja 0x14001361d
cmp qword [rbp + 0x10], 1
ja 0x140013614
mov eax, 0
jmp 0x140013676
movzx eax, word [rbp - 2]
sub eax, 0xa
mov word [rbp - 2], ax
shl qword [rbp + 0x10], 1
cmp qword [rbp + 0x10], 7
jbe 0x140013605
jmp 0x140013655
bsr rax, qword [rbp + 0x10]
xor rax, 0x3f
mov edx, eax
mov eax, 0x3c
sub eax, edx
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
mov edx, eax
mov eax, edx
shl eax, 2
add eax, edx
add eax, eax
mov edx, eax
movzx eax, word [rbp - 2]
add eax, edx
mov word [rbp - 2], ax
mov eax, dword [rbp - 8]
mov ecx, eax
shr qword [rbp + 0x10], cl
mov rax, qword [rbp + 0x10]
and eax, 7
lea rdx, [rax + rax]
lea rax, [0x1401ae2b0]
movzx eax, word [rdx + rax]
mov edx, eax
movzx eax, word [rbp - 2]
add eax, edx
sub eax, 0xa
add rsp, 0x10
pop rbp
ret
Function at 0x14006b476
Capabilities:
Reference sql statements

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov qword [rbp + 0x28], r9
mov rax, qword [rbp + 0x10]
mov byte [rax + 0x1c], 1
mov r8, qword [rbp + 0x18]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x30]
mov dword [rsp + 0x30], edx
mov rdx, qword [rbp + 0x28]
mov qword [rsp + 0x28], rdx
mov edx, dword [rbp + 0x20]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, [0x140c77748]
mov rcx, rax
call fcn.140073a26
cmp dword [rbp + 0x20], 0
jne 0x14006b4fc
mov r8, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x18]
mov rax, qword [rbp + 0x10]
mov edx, dword [rbp + 0x30]
mov dword [rsp + 0x20], edx
mov r9, r8
mov r8, rcx
lea rdx, [0x140c777f8]
mov rcx, rax
call fcn.140073a26
nop
add rsp, 0x40
pop rbp
ret
Function at 0x1400ef3f0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x140c88660]
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.1400f9ad0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]

Function at 0x1400ef460
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140cc4544]
test esi, esi
mov rbx, rcx
jle 0x1400ef590
mov rax, qword [0x140cc4548]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x1400ef4ab
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x1400ef535
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1400ef490
mov rcx, rbx
call fcn.1400efed0
test rax, rax
mov rdi, rax
je 0x1400ef5b2
mov rax, qword [0x140cc4548]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400f0010
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140cc4548]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400ef597
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400ef52e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400ef540
add dword [0x140cc4544], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x140cc4548]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400ef52e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140c886d8]
mov edx, eax
call fcn.1400ef3f0
nop dword [rax]
xor esi, esi
jmp 0x1400ef4b8
mov rax, qword [0x140cc4548]
lea rcx, [0x140c886a0]
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.1400ef3f0
lea rcx, [0x140c88680]
mov rdx, rbx
call fcn.1400ef3f0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400efb20
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140cc45a0]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140cc4580]
test rbx, rbx
je 0x1400efb7c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400efb73
test rsi, rsi
je 0x1400efb73
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400efb58
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1400efd90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400efdc8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400efdd0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400efda0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400efdc8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400efdd0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400efdb0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
call qword [rax]
nop
nop
sub rsp, 0x28
mov rax, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__exit]
call qword [rax]
nop
nop
nop
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400efdc8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x1400efdd0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400efed0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140c89b70]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400efef0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400efef8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400efef0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400eff4d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400eff44
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400efef0
add rax, 0x28
cmp rax, r9
jne 0x1400eff30
xor eax, eax
ret

Function at 0x1400eff50
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140c89b70]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400eff6f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400eff78
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400eff6f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400f0010
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140c89b70]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400f002f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400f0038
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1400f0460
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400f0490
mov rdx, rbx
mov ecx, eax
mov dword [rsi], eax
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.1400fa440
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400f04d0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov ebx, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, ebx
mov esi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, esi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
ret

Function at 0x1400f0500
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x1400f0518
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]

Function at 0x1400f0c80
Capabilities:
Allocate thread local storage
Create thread
Resume thread

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rax, qword [0x140c88f00]
mov rsi, r8
mov r8d, dword [rax]
mov rdi, rcx
mov rbp, rdx
test r8d, r8d
je 0x1400f0cb0
mov ecx, dword [0x1401b0ce0]
test ecx, ecx
je 0x1400f0d30
mov ecx, 0x18
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
lea r8, [0x1400f0c40]
xor ecx, ecx
xor edx, edx
mov qword [rax], rbp
mov rbx, rax
mov r9, rax
mov qword [rax + 8], rsi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rcx, rax
mov qword [rbx + 0x10], rax
je 0x1400f0d10
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rax, qword [rbx + 0x10]
mov qword [rdi], rax
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, rbx
call fcn.1400fa070
nop
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
lock add dword [0x1401b0ce4], 1
jne 0x1400f0d70
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x1400f0da0
mov rdx, qword [fcn.1400fa070]
mov ecx, eax
mov dword [0x1401b0ce8], eax
call fcn.1400fa440
test eax, eax
jne 0x1400f0da8
mov dword [0x1401b0ce0], 1
jmp 0x1400f0cb0
mov edx, dword [0x1401b0ce0]
lea rbx, [0x1401b0ce0]
mov r12, qword [sym.imp.KERNEL32.dll_Sleep]
test edx, edx
jne 0x1400f0cb0
nop dword [rax]
xor ecx, ecx
call r12
mov eax, dword [rbx]
test eax, eax
je 0x1400f0d90
jmp 0x1400f0cb0
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x1400f0d59
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop
Function at 0x14015ea20
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.api_ms_win_crt_stdio_l1_1_0.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
cmp eax, 0xffffffff
movsxd rbp, eax
je 0x14015ea68
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14015ea3a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x140184e40
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rdx
mov rax, qword [0x140c88f00]
mov eax, dword [rax]
test eax, eax
je 0x140184dde
mov r8, qword [rdx]
lea rdx, [0x1401abed0]
call fcn.1400f0c80
test eax, eax
jne 0x140184dd7
mov qword [rbx], 0
add rsp, 0x38
pop rbx
pop rsi
ret
mov ecx, eax
call fcn.1401ac8e0
mov ecx, 0x20
call fcn.1401ab380
mov rbx, rax
call fcn.1401809c0
lea rdx, [rsp + 0x20]
mov rcx, rbx
mov qword [rsp + 0x20], 1
lea r8, [0x140c85c28]
mov qword [rsp + 0x28], rax
call fcn.14015ffe0
lea r8, [fcn.140160860]
mov rcx, rbx
lea rdx, [0x140c8c260]
call fcn.1401abbe0
mov rsi, rax
mov rcx, rbx
call fcn.1401ab670
mov rcx, rsi
call fcn.1400f09b0
nop
nop
nop
nop
nop
sub rsp, 0x58
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
xor edx, edx
test eax, eax
cmovs eax, edx
add rsp, 0x58
ret

Function at 0x1401ab6c0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1401b3e20]
jmp fcn.1400f1090

Function at 0x1401ab6d0
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1401b3e20]
jmp fcn.1400f1090
Function at 0x14000b810
Capabilities:
Encode data using xor

Disassembly:
mov cl, 0xc2
or dl, al
imul eax, ecx, 0xe55fac1
shr byte [rsi], 1
imul eax, ecx, 0xe55fac1
xor dword [rsi - 0x65], esi
and eax, 0x4e5ea3f8
enter 0xffffffffffff9245, 0xffffffffffffffdc
js 0x14000b814
invalid

Function at 0x140d650b0
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140d65237
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 0x140d650e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d650c7
add dl, dl
jne 0x140d650ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6514e
xor eax, eax
add dl, dl
jne 0x140d650fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d65205
add dl, dl
jne 0x140d6510e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6511b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d65128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d65135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d65142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d650d6
mov eax, 1
add dl, dl
jne 0x140d6515e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d6516b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d65153
sub eax, ebx
mov ebx, 1
jne 0x140d651a4
mov ecx, 1
add dl, dl
jne 0x140d65186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d65193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6517b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d650d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d651c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d651cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d651b5
cmp eax, 0x7d00
jae 0x140d651f3
cmp eax, 0x500
jb 0x140d651ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d650d6
cmp eax, 0x7f
ja 0x140d651f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d650d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d6522a
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 0x140d650d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180002080
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [rsp + 0x78]
sub rax, 0x10000
mov rcx, rax
call fcn.1800022a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180002187
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800020e4
mov rax, qword [0x18000a008]
cmp qword [rsp + 0x20], rax
ja 0x1800020e4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800020a6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x180002113
jmp 0x180002187
cmp dword [rsp + 0x50], 0x10000
jne 0x18000216a
cmp qword [rsp + 0x48], 0x10000
jb 0x18000216a
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180002158
mov rax, qword [rsp + 0x28]
jmp 0x180002189
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180002182
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.1800022a0
mov qword [rsp + 0x20], rax
jmp 0x1800020a6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180002190
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call fcn.1800022e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180002293
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x1800021eb
mov rax, qword [0x18000a008]
cmp qword [rsp + 0x20], rax
ja 0x1800021eb
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800021ad
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x18000221a
jmp 0x180002293
cmp dword [rsp + 0x50], 0x10000
jne 0x180002271
cmp qword [rsp + 0x48], 0x10000
jb 0x180002271
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000225f
mov rax, qword [rsp + 0x28]
jmp 0x180002295
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18000228e
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800022e0
mov qword [rsp + 0x20], rax
jmp 0x1800021ad
xor eax, eax
add rsp, 0x68
ret
Function at 0x180002330
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800028c0
mov qword [rsp + 0x28], 0
cmp qword [0x18000a168], 0
jne 0x180002378
cmp qword [0x18000a160], 0
je 0x180002378
mov rax, qword [0x18000a160]
mov qword [0x18000a168], rax
cmp qword [0x18000a168], 0
je 0x18000241e
mov rax, qword [0x18000a168]
cmp qword [rax + 0x10], 0
je 0x18000241e
mov rax, qword [0x18000a168]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000241e
mov rax, qword [0x18000a168]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000241e
mov rax, qword [0x18000a168]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x1800023e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x1800023eb
xor eax, eax
jmp 0x180002599
mov rax, qword [0x18000a168]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x48]
mov qword [rax + 0x10], rcx
mov r8d, 0x60
mov edx, 0xcc
mov rcx, qword [rsp + 0x28]
call sub.VCRUNTIME140.dll_memset
mov rax, qword [rsp + 0x28]
jmp 0x180002599
mov rax, qword [0x18000a160]
mov qword [0x18000a168], rax
jmp 0x180002440
mov rax, qword [0x18000a168]
mov rax, qword [rax + 8]
mov qword [0x18000a168], rax
cmp qword [0x18000a168], 0
je 0x18000248d
cmp qword [0x18000a168], 0
je 0x18000248b
mov rax, qword [0x18000a168]
cmp qword [rax + 0x10], 0
je 0x18000248b
mov rax, qword [0x18000a168]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000248b
mov rax, qword [0x18000a168]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000248b
jmp 0x1800023bc
jmp 0x18000242e
mov rcx, qword [rsp + 0x60]
call fcn.180004820
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.1800025a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180002597
mov rax, qword [rsp + 0x48]
mov qword [0x18000a168], rax
mov rax, qword [0x18000a168]
mov dword [rax], 0x52727464
mov rax, qword [0x18000a168]
mov qword [rax + 0x10], 0
mov rax, qword [0x18000a168]
mov rcx, qword [0x18000a160]
mov qword [rax + 8], rcx
mov rax, qword [0x18000a168]
mov qword [0x18000a160], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18000a168]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180002548
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180002582
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x40]
mov qword [rcx + rax + 0x48], rdx
movsxd rax, dword [rsp + 0x20]
imul rax, rax, 0x60
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
jmp 0x18000253e
mov rax, qword [0x18000a168]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x1800023bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x180004a10
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rax, qword [rsp + 0x90]
add rax, 0x10000
mov qword [rsp + 0x30], rax
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x48]
call sub.VCRUNTIME140.dll_memset
jmp 0x180004a58
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov r8d, 0x30
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
ja 0x180004a78
jmp 0x180004b15
cmp dword [rsp + 0x68], 0x1000
jne 0x180004a9d
mov eax, dword [rsp + 0x6c]
and eax, 0xff
cmp eax, 1
je 0x180004a9d
mov eax, dword [rsp + 0x6c]
and eax, 0x100
test eax, eax
je 0x180004a9f
jmp 0x180004a43
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
jne 0x180004ad5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, qword [rsp + 0x60]
ja 0x180004ad5
mov rax, qword [rsp + 0x20]
mov eax, dword [rax + 0x3c]
cmp rax, 0x40
jae 0x180004ada
jmp 0x180004a43
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp dword [rax], 0x4550
jne 0x180004a43
mov rax, qword [rsp + 0x20]
jmp 0x180004b17
xor eax, eax
add rsp, 0x88
ret