joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400facb2
Capabilities:
Write file on windows

Disassembly:
jmp 0x140169af0
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x1403c0300]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1403e77fa]
call fcn.1400fadde
nop
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x140169b57
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140169b5e
mov al, 1
jmp 0x140169cce
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.1400f69ff
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.1400f69ff
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1400f9a4c
movzx eax, al
test eax, eax
je 0x140169bc1
xor al, al
jmp 0x140169cce
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x140169c34
cmp dword [rbp + 0x160], 1
je 0x140169c3f
cmp dword [rbp + 0x160], 3
je 0x140169cbd
jmp 0x140169ccc
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x140169c8f
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x140169c8f
xor al, al
jmp 0x140169cce
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140169caa
mov dword [rbp + 0x154], 1
jmp 0x140169cb4
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x140169cce
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140169cce
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x1402fe690]
call fcn.1400f9e0c
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.1400f7d9b
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1402e2a50
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400fb1a3
movzx eax, al
test eax, eax
jne 0x1402e2a70
mov ecx, 7
call fcn.1400f9e8e
nop
mov byte [rsp + 0x20], 0
call fcn.1400fa019
mov byte [rsp + 0x21], al
cmp dword [0x1403c9798], 1
jne 0x1402e2a94
mov ecx, 7
call fcn.1400f9e8e
nop
jmp 0x1402e2aec
cmp dword [0x1403c9798], 0
jne 0x1402e2ae7
mov dword [0x1403c9798], 1
lea rdx, [0x1402f5f98]
lea rcx, [0x1402f5c68]
call fcn.1400f7cba
test eax, eax
je 0x1402e2ac8
mov eax, 0xff
jmp 0x1402e2bf1
lea rdx, [0x1402f5b58]
lea rcx, [section..rdata]
call fcn.1400f9fce
mov dword [0x1403c9798], 2
jmp 0x1402e2aec
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400f9d85
call fcn.1400f93ee
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1402e2b49
mov rcx, qword [rsp + 0x30]
call fcn.1400f74b8
movzx eax, al
test eax, eax
je 0x1402e2b49
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1403ea020]
nop
call fcn.1400f97fe
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1402e2b7d
mov rcx, qword [rsp + 0x38]
call fcn.1400f74b8
movzx eax, al
test eax, eax
je 0x1402e2b7d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400fab13
nop
call fcn.1402e2c60
mov dword [rsp + 0x28], eax
call fcn.1400f917d
movzx eax, al
test eax, eax
jne 0x1402e2b9c
mov ecx, dword [rsp + 0x28]
call fcn.1400f571c
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1402e2bab
call fcn.1400fac17
nop
xor edx, edx
mov cl, 1
call fcn.1400f72bf
mov eax, dword [rsp + 0x28]
jmp 0x1402e2bf1
add rsp, 0x68
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1403b42b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1403b42c0]
mov dword [rax], 1
mov rax, qword [0x1403b42d0]
mov dword [rax], 1
mov rax, qword [0x1403b4240]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1403b42a0]
mov dword [0x1403b700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x1403b4380]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1403b4360]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1403b41f0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [str._p__]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [str.hp__]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x1403b7008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x1403b4270]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call dbg._pei386_runtime_relocator
mov rcx, qword [dbg._gnu_exception_handler]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1403b42f0]
lea rcx, [dbg.__mingw_invalidParameterHandler]
mov qword [rdx], rax
call sym._set_invalid_parameter_handler
call dbg._fpreset
mov ebx, dword [0x1403b7028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sym.malloc
mov r12, qword [0x1403b7020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sym.strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sym.malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sym.memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x1403b7020], rbp
call dbg.__main
mov rax, qword [0x1403b4280]
mov r8, qword [0x1403b7018]
mov ecx, dword [0x1403b7028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x1403b7020]
call sym.main
mov ecx, dword [0x1403b700c]
mov dword [0x1403b7010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x1403b7008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [str.hp__]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call dbg._amsg_exit
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1403b4330]
mov rcx, qword [0x1403b4320]
call sym._initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sym._cexit
mov eax, dword [0x1403b7010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x1403b4350]
mov rcx, qword [0x1403b4340]
mov dword [rsi], 1
call sym._initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sym.exit
nop
Function at 0x140001450
Capabilities:
Encrypt data using rc6

Disassembly:
push rbp
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp + 0x20], rcx
mov edx, 0x1a
lea rax, [0x1403b7030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.resize_unsigned_long_long_
mov qword [rbp - 8], 0
jmp 0x1400014cb
mov rdx, qword [rbp - 8]
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.operator___unsigned_long_long__const
movzx eax, byte [rax]
movzx eax, al
mov rdx, qword [rbp - 8]
and edx, 3
shl rdx, 3
mov ecx, edx
shl eax, cl
mov ebx, eax
mov rax, qword [rbp - 8]
shr rax, 2
mov rdx, rax
lea rax, [0x1403b7030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov edx, dword [rax]
mov ecx, ebx
or edx, ecx
mov dword [rax], edx
add qword [rbp - 8], 1
mov rax, qword [rbp + 0x20]
mov rcx, rax
call method.std::vector_unsigned_char__std::allocator_unsigned_char___.size___const
cmp qword [rbp - 8], rax
setb al
test al, al
jne 0x14000147d
mov dword [rbp - 0x14], 0xb7e15163
mov dword [rbp - 0x18], 0x9e3779b9
mov edx, 0
lea rax, [0x1403b7030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov dword [rax], 0xb7e15163
mov qword [rbp - 0x10], 1
jmp 0x140001553
mov rax, qword [rbp - 0x10]
sub rax, 1
mov rdx, rax
lea rax, [0x1403b7030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov eax, dword [rax]
lea ebx, [rax - 0x61c88647]
mov rax, qword [rbp - 0x10]
mov rdx, rax
lea rax, [0x1403b7030]
mov rcx, rax
call method.std::vector_unsigned_int__std::allocator_unsigned_int___.operator___unsigned_long_long_
mov dword [rax], ebx
add qword [rbp - 0x10], 1
cmp qword [rbp - 0x10], 0x19
jbe 0x140001514
nop
nop
add rsp, 0x48
pop rbx
pop rbp
ret
Function at 0x1400030c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x140003130
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1403b70b4]
mov rbx, rcx
test esi, esi
jle 0x140003260
mov rax, qword [0x1403b70b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000317b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140003205
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140003160
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140003282
mov rax, qword [0x1403b70b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1403b70b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003267
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400031fe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140003210
add dword [0x1403b70b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1403b70b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400031fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor esi, esi
jmp 0x140003188
mov rax, qword [0x1403b70b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140003810
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1403b7120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1403b7100]
test rbx, rbx
je 0x14000386c
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 rsi, rsi
je 0x140003863
test eax, eax
jne 0x140003863
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140003848
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 0x140003a80
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140003a98
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140003aa0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140003ab0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x140003afd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140003af4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140003aff
add rax, 0x28
cmp rax, r9
jne 0x140003ae0
xor eax, eax
ret

Function at 0x140003b00
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140003b90
mov rdx, qword [0x1403b4240]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x140003b7e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140003b7e
cmp word [rax + 0x18], 0x20b
jne 0x140003b7e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140003b90
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140003b69
add rbx, 0x28
cmp rbx, rdi
je 0x140003b90
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140003b60
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1403b4240]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003bc0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003bc8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003bc0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x140003c1d
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]
mov rdx, r8
cmp rcx, r8
jb 0x140003c14
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140003bc0
add rax, 0x28
cmp rax, r9
jne 0x140003c00
xor eax, eax
ret

Function at 0x140003c20
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1403b4240]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x140003c3f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140003c48
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x140003c3f
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140003c60
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1403b4240]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140003c80
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140003c88
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140003c80
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140003cd0
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140003cc7
test rcx, rcx
je 0x140003c80
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140003cb8
xor eax, eax
ret

Function at 0x140003ce0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1403b4240]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140003d40
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140003d48
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003d40
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140003d40
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140003d94
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140003da0
add rdx, 0x28
cmp rdx, r9
jne 0x140003d80
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1403b4240]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140003dd2
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140003de0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140003dd2
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140003dd2
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140003dd2
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x140003e35
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140003e48
add rdx, 0x28
cmp r10, rdx
jne 0x140003e20
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140003e57
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140003e67
mov edx, dword [rax + 0xc]
test edx, edx
je 0x140003e3e
test ecx, ecx
jg 0x140003e50
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140003a94
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 0x140003af8
xor edi, edi
cmp dword [rcx + 0xc], edi
jbe 0x140003ae6
mov r8, qword [rbx]
xor edx, edx
mov r8d, dword [r8 + rdi*4]
lea ecx, [rdx + 0x5a]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x140003adf
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 0x140003ab3
mov r8, qword [rbx]
xor edx, edx
mov rcx, qword [0x140035e18]
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 0x140003b08
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 [0x140035e50]
mov rdx, qword [rbx]
mov cl, byte [rbx + 0x20]
mov rbp, rdx
lea rdi, [rdx - 5]
and cl, 1
je 0x140003b3e
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 0x140003b74
mov eax, 0xa
jmp 0x140003c03
test esi, esi
je 0x140003b96
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 0x140003bb7
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x140003bb7
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x140003bb1
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
mov al, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x140003bb7
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]
mov al, sil
shl sil, 2
add al, al
xor al, byte [rbx + 0x20]
and al, 2
xor al, byte [rbx + 0x20]
xor sil, al
and sil, 4
xor sil, al
mov byte [rbx + 0x20], sil
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 0x140003cdc
Capabilities:
Check for software breakpoints

Disassembly:
mov r8b, byte [rcx]
mov r9d, edx
test r8b, r8b
je 0x140003cf3
cmp r8b, 0x90
je 0x140003cf3
cmp r8b, 0xcc
jne 0x140003d15
mov r10d, 1
mov edx, r10d
cmp r9d, r10d
jbe 0x140003d11
mov eax, edx
cmp byte [rax + rcx], r8b
jne 0x140003d15
add edx, r10d
cmp edx, r9d
jb 0x140003d01
mov eax, r10d
ret
xor eax, eax
ret
Function at 0x14000407c
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 0x1400040c6
lea rax, [rdi - 0x40000000]
cmp r14, rax
cmovb r14, rax
mov rbx, qword [0x140035e40]
lea r12, [rdi + 0x40000000]
cmp qword [rbp - 0x50], r12
cmovbe r12, qword [rbp - 0x50]
sub r12, 0xfff
xor esi, esi
jmp 0x1400040ff
cmp rbx, r14
jb 0x1400040fc
cmp rbx, r12
jae 0x1400040fc
cmp qword [rbx + 8], rsi
jne 0x140004261
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400040e8
mov r15, rdi
cmp rdi, r14
jb 0x14000421b
mov r13d, dword [rbp - 0x38]
xor edx, edx
mov rax, r15
div r13
sub r15, rdx
jmp 0x14000414b
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004185
cmp dword [rbp - 0x10], 0x10000
je 0x140004155
mov r15, qword [rbp - 0x28]
cmp r15, r13
jb 0x140004185
sub r15, r13
cmp r15, r14
jae 0x140004121
jmp 0x140004185
test r15, r15
je 0x140004185
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 0x140004226
cmp r15, r14
jae 0x140004110
test rbx, rbx
jmp 0x140004219
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 0x140004261
mov r8d, 0x30
lea rdx, [rbp - 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140004261
cmp dword [rbp - 0x10], 0x10000
je 0x1400041f4
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
jbe 0x1400041b1
jmp 0x140004261
test rdi, rdi
je 0x140004261
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
jne 0x140004226
cmp rdi, r12
jbe 0x14000418d
jmp 0x140004261
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 0x140004232
mov rax, qword [0x140035e40]
mov qword [rbx], rax
mov qword [0x140035e40], 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