joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002db40
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140023f3c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140023f3c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14002dc90
cmp rax, 0xffffffffffffffff
je 0x14002dc90
xor edi, edi
test rbp, rbp
jle 0x14002dc3b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140020914
mov rbx, rax
test rax, rax
jne 0x14002dbc8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14002dc31
mov edx, 0x8000
mov ecx, r14d
call fcn.14001d8e0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14002268c
cmp eax, 0xffffffff
je 0x14002dc11
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14002dbd8
mov edx, r15d
mov ecx, r14d
call fcn.14001d8e0
jmp 0x14002dc31
cmp byte [rsi + 0x38], dil
je 0x14002dc28
cmp dword [rsi + 0x34], 5
jne 0x14002dc28
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14002dc31
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002098c
jmp 0x14002dca4
jns 0x14002dca4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140023f3c
cmp rax, 0xffffffffffffffff
jne 0x14002dc5c
cmp byte [rsi + 0x30], dil
je 0x14002dca4
mov edi, dword [rsi + 0x2c]
jmp 0x14002dca4
mov ecx, r14d
call fcn.1400287b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14002dca4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14002dca4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14002dc9d
mov eax, dword [rsi + 0x2c]
jmp 0x14002dca2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140023f3c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002eb60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002eb88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002eb88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140004c80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140009810]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140004cef
mov rcx, r9
call fcn.140004b50
test eax, eax
je 0x140004cef
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140004ced
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140004ce4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140004cef
add rdx, 0x28
cmp rdx, r9
jne 0x140004cd0
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x140001000
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
sub rsp, 0x48
mov r9d, 0x40
mov r8d, 0x1000
mov edx, 0x37c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x30], rax
mov r8d, 0x37c
lea rdx, section..data
mov rcx, qword [rsp + 0x30]
call sub.VCRUNTIME140.dll_memmove
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x38], rax
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
add rsp, 0x48
ret
Function at 0x180002758
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
not r8d
mov r10, rcx
mov r9d, r8d
test rdx, rdx
je 0x1800027b2
mov r11b, 0x23
lea rbx, [0x180047a70]
movzx edi, byte [r10]
dec rdx
inc r10
cmp dil, r11b
jne 0x18000279c
cmp rdx, 2
jb 0x18000279c
cmp byte [r10], r11b
jne 0x18000279c
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
xor rcx, rdi
shr r9d, 8
xor r9d, dword [rbx + rcx*4]
test rdx, rdx
jne 0x18000277a
jmp 0x1800027f3
mov dl, byte [rcx]
inc r10
test dl, dl
je 0x1800027f3
mov r11b, 0x23
lea rbx, [0x180047a70]
cmp dl, r11b
jne 0x1800027d7
cmp byte [r10], r11b
jne 0x1800027d7
cmp byte [r10 + 1], r11b
cmove r9d, r8d
movzx ecx, r9b
movzx eax, dl
mov dl, byte [r10]
xor rcx, rax
shr r9d, 8
inc r10
xor r9d, dword [rbx + rcx*4]
test dl, dl
jne 0x1800027c5
mov rbx, qword [rsp + 8]
not r9d
mov rdi, qword [rsp + 0x10]
mov eax, r9d
ret

Function at 0x1800056dc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
mov r9, rcx
mov rax, qword [rcx + 0xf8]
mov r10d, 8
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180047a70]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x180005709
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1228], ebx
jne 0x180005744
mov r8, rdx
mov ecx, ebx
lea edx, [r10 + 0xc]
call fcn.1800160d0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x18000574c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xf0]
mov r11d, 4
mov rax, qword [rcx + 0xf8]
mov r9, rcx
mov r10d, r11d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x180047a70]
xor ebx, dword [rax + rcx*4]
sub r10, 1
jne 0x18000577b
mov rcx, qword [r9]
not ebx
cmp dword [rcx + 0x1228], ebx
jne 0x1800057b5
movsxd r8, edx
mov ecx, ebx
mov edx, r11d
call fcn.1800160d0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x1800057c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm2, dword [rcx + 0x110]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x114]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0xf8]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0xf0]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x180047a70]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x18000582e
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x1800252c8
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, qword [0x180053720]
mov ecx, 0x11
add rbx, 8
movaps xmmword [rsp + 0x20], xmm6
call qword [sym.imp.USER32.dll_GetKeyState]
movss xmm6, dword [0x18004e124]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x18002531b
test al, al
je 0x180025308
movaps xmm3, xmm6
jmp 0x18002530b
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x1000
mov rcx, rbx
call fcn.1800021cc
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x180025350
test al, al
je 0x18002533d
movaps xmm3, xmm6
jmp 0x180025340
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x2000
mov rcx, rbx
call fcn.1800021cc
mov ecx, 0x12
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x180025385
test al, al
je 0x180025372
movaps xmm3, xmm6
jmp 0x180025375
xorps xmm3, xmm3
mov r8b, al
mov edx, 0x4000
mov rcx, rbx
call fcn.1800021cc
mov ecx, 0x5d
call qword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
cmp byte [rbx + 0xab1], 0
je 0x1800253b8
test al, al
jne 0x1800253a5
xorps xmm6, xmm6
movaps xmm3, xmm6
mov r8b, al
mov edx, 0x8000
mov rcx, rbx
call fcn.1800021cc
movaps xmm6, xmmword [rsp + 0x20]
add rsp, 0x30
pop rbx
ret
Function at 0x18003d1f8
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
lea rcx, [0x1800537a0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18003d21e
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp dword [0x1800537ec], 0x7fffffff
jne 0x18003d240
mov dword [0x1800537ec], 0x7ffffffe
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
cmp qword [0x180053300], 0xffffffffffffffff
jne 0x18003d2a1
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
lea rcx, str.debuglog.txt
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x180053300], rax
cmp rax, 0xffffffffffffffff
jne 0x18003d2a1
xor r9d, r9d
lea r8, str.ASSERTION_FAILURE
lea rdx, str.Could_not_write_to_debuglog.txt
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x18003d2d8
mov edx, 0x1000
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
mov r8, rax
and qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rbx
mov rcx, qword [0x180053300]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x180053300]
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
lea rcx, [0x1800537a0]
add rsp, 0x40
pop rbx
jmp qword [sym.imp.MSVCP140.dll__Mtx_unlock]
add eax, 0x53bf5ebe
stc
invalid
pop rax
mov edi, 0x327d5fc0
add byte [rax], al
add byte [rdi], bh
popfq
popfq
invalid
add al, 0x4f
or al, 0xb0
add byte [rax], al
add byte [rdi], bh
invalid
jmp 0x180098b08
invalid
push 0x7bf39
xor dword [rdx], 0x3f000000
sbb dh, dh
xchg ebp, eax
mov esi, 0xbf3504f3
jp 0x180098af1
mov r10b, 0
add byte [rax - 0x72d082c1], al
mov esi, 0xbf3085bb
xor ch, byte [0x18009bdcc]
cmp byte [rdi], 0xe
movabs byte [0x3136bf2beb4abe84], al
mov bh, 0x32
add byte [rax], al
cmp byte [rdi], 0x3f
sahf
js 0x180098af2
push rsi
invalid
Function at 0x18003ee38
Capabilities:
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rdi, qword [0x180053738]
mov rsi, rcx
mov al, byte [rcx]
mov rdx, rcx
mov r8, rdi
movabs r9, 0xcbf29ce484222325
movabs rcx, 0x100000001b3
jmp 0x18003ee82
inc rdx
movzx eax, al
xor r9, rax
imul r9, rcx
mov al, byte [rdx]
test al, al
jne 0x18003ee73
test rdi, rdi
je 0x18003eea7
mov al, byte [rdi]
xor r9, 0x3a
jmp 0x18003ee9f
inc r8
movzx eax, al
xor r9, rax
mov al, byte [r8]
imul r9, rcx
test al, al
jne 0x18003ee93
mov r8, qword [0x180053828]
mov rbx, qword [0x180053820]
sub r8, rbx
sar r8, 5
test r8, r8
jle 0x18003eef4
or rbp, 0xffffffffffffffff
mov rdx, r8
shr rdx, 1
mov r11, rdx
shl r11, 5
cmp qword [r11 + rbx], r9
jae 0x18003eeea
add rbx, 0x20
mov rax, rbp
add rbx, r11
sub rax, rdx
add r8, rax
jmp 0x18003eeef
jbe 0x18003ef0b
mov r8, rdx
test r8, r8
jg 0x18003eec5
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, rbx
test rdx, rdx
je 0x18003ef40
mov r10, rdx
shr r10, 1
mov rcx, r10
shl rcx, 5
cmp qword [rcx + rax], r9
jae 0x18003ef38
add rcx, 0x20
add rax, rcx
mov rcx, rbp
sub rcx, r10
add rdx, rcx
jmp 0x18003ef3b
mov rdx, r10
test rdx, rdx
jg 0x18003ef13
shl r8, 5
lea rcx, [rbx + 0x20]
add rcx, r11
sub r8, rcx
add r8, rbx
sar r8, 5
jmp 0x18003ef7f
mov r10, r8
shr r10, 1
mov rdx, r10
shl rdx, 5
cmp r9, qword [rdx + rcx]
jae 0x18003ef6f
mov r8, r10
jmp 0x18003ef7f
add rdx, 0x20
add rcx, rdx
mov rdx, rbp
sub rdx, r10
add r8, rdx
test r8, r8
jg 0x18003ef57
jmp 0x18003efdd
cmp byte [rsi], 0
mov r10, rsi
mov r8, qword [rax + 8]
je 0x18003efab
mov r9b, byte [rsi]
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003efd9
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003ef95
mov dl, byte [r8]
inc r8
cmp dl, 0x3a
jne 0x18003efd9
mov r9b, byte [rdi]
mov r10, rdi
jmp 0x18003efcf
mov dl, byte [r8]
inc r8
cmp r9b, dl
jne 0x18003efd9
inc r10
mov r9b, byte [r10]
test r9b, r9b
jne 0x18003efbe
cmp byte [r8], r9b
je 0x18003efe7
add rax, 0x20
cmp rax, rcx
jne 0x18003ef86
jmp 0x18003eef4
mov rax, qword [rax + 0x10]
jmp 0x18003eef6
Function at 0x180041a44
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov eax, ecx
mov esi, edx
imul rbx, rax, 0x38
add rbx, qword [0x180094c20]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x180041a7a
mov rbp, rdi
movzx eax, cl
lea r9, [rsp + 0x40]
test cl, cl
mov r8d, 0x40
cmove rdi, rdx
lea r14, [rax*2 + 5]
mov rcx, rdi
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180041ab0
mov eax, 0xa
jmp 0x180041b3c
test esi, esi
je 0x180041ad2
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, ebp
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180041af3
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180041af3
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180041aed
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180041af3
mov al, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x40]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, r14
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
and byte [rbx + 0x20], 0xfd
and sil, 1
mov al, sil
shl sil, 2
add al, al
or al, byte [rbx + 0x20]
and al, 0xfb
or al, sil
mov byte [rbx + 0x20], al
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x180042060
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx], 0
mov rbx, rcx
je 0x1800420c4
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x1800420b2
mov rax, qword [rbx]
xor edx, edx
mov r8d, dword [rax + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x1800420ab
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [rbx + 0xc]
jb 0x18004207f
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x180053678]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180042160
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rdi, rcx
lea rcx, [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r14, qword [rbp - 0x58]
cmp rdi, 0x40000000
jbe 0x1800421aa
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x180094c18]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
test rbx, rbx
je 0x1800421e8
cmp rbx, r14
jb 0x1800421e3
cmp rbx, r12
jae 0x1800421e3
cmp qword [rbx + 8], rsi
jne 0x18004233f
mov rbx, qword [rbx]
jmp 0x1800421ca
mov r15, rdi
cmp rdi, r14
jb 0x18004226c
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
sub r15, r13
cmp r15, r14
jb 0x180042263
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180042263
cmp dword [rbp - 0x10], 0x10000
je 0x180042233
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x180042263
jmp 0x1800421ff
test r15, r15
je 0x180042263
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jne 0x180042304
cmp r15, r14
jae 0x1800421f0
test rbx, rbx
jne 0x180042304
cmp rdi, r12
ja 0x18004233f
mov r15d, dword [rbp - 0x38]
xor edx, edx
mov rax, rdi
mov r14d, r15d
div r15
mov eax, r15d
sub rax, rdx
add rax, rdi
mov rdi, rax
cmp rax, r12
ja 0x18004233f
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18004233f
cmp dword [rbp - 0x10], 0x10000
je 0x1800422da
xor edx, edx
lea edi, [r15 - 1]
add rdi, qword [rbp - 0x18]
add rdi, qword [rbp - 0x30]
mov rax, rdi
div r14
sub rdi, rdx
cmp rdi, r12
jmp 0x180042293
test rdi, rdi
je 0x18004233f
mov edx, 0x1000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
jmp 0x180042266
lea rcx, [rbx + 0x40]
mov dword [rbx + 0x10], esi
mov edx, 0x40
mov qword [rcx], rsi
mov rax, rcx
mov qword [rbx + 8], rcx
add rdx, 0x40
add rcx, 0x40
mov rsi, rax
cmp rdx, 0xfc0
jbe 0x180042310
mov rax, qword [0x180094c18]
mov qword [rbx], rax
mov qword [0x180094c18], rbx
lea r11, [rsp + 0x80]
mov rax, rbx
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1800426d8
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x1800426ef
cmp r8b, 0x90
je 0x1800426ef
cmp r8b, 0xcc
jne 0x180042711
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x18004270d
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x180042711
add edx, r10d
cmp edx, r9d
jb 0x1800426fd
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x180001790
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 0x1800017cd
xor al, al
jmp 0x18000181c
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x1800017de
xor al, al
jmp 0x18000181c
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180001805
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180001805
mov al, 1
jmp 0x18000181c
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180055630
add rsp, 0x60
pop rbx
ret
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180055630
add rsp, 0x60
pop rbx
ret

Function at 0x180001aa0
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 0x180001ad1
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x180001b8a
nop word [rax + rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001afb
add rbx, 0x8000000
jmp 0x180001b81
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 0x180001b8a
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180001b66
cmp rcx, 0x10000
jb 0x180001b66
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001b8c
add rbx, 0x10000
jmp 0x180001b81
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180001b81
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x180001ae0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180055630
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x180001bb0
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 0x180001c98
nop dword [rax]
lea rax, [rbx - 0x70000000]
cmp rax, 0x10000000
ja 0x180001c0b
sub rbx, 0x8000000
jmp 0x180001c8f
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 0x180001c98
cmp dword [rsp + 0x40], 0x10000
jne 0x180001c73
cmp qword [rsp + 0x38], 0x10000
jb 0x180001c73
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x180001c9a
sub rbx, 0x10000
jmp 0x180001c8f
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 0x180001bf0
xor eax, eax
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180055630
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x180002030
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 0x1800020f4
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x18006d400], ecx
jne 0x1800020f4
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 0x1800020d0
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 0x1800020c8
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x1800020a0
jmp 0x1800020d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov dword [0x18006d31c], edi
mov rdi, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180055630
add rsp, 0x38
ret
mov eax, 0x10dd
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.180055630
add rsp, 0x38
ret
Function at 0x1800026a0
Capabilities:
Suspend thread

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [0x18006d31c]
mov rbx, rcx
test eax, eax
jne 0x180002739
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rbx, rax
jne 0x1800026ca
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rdi
call fcn.180055650
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x18000271d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov edx, 0x10
mov rcx, rdi
call fcn.18005568c
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov dword [0x18006d31c], 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