joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009130
Capabilities:
Enumerate process modules

Disassembly:
push rbx
push rbp
push r12
mov eax, 0x4050
call fcn.14000c910
sub rsp, rax
mov rax, qword [0x140039030]
xor rax, rsp
mov qword [rsp + 0x4030], rax
xor ebp, ebp
mov rbx, rcx
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
xor r8d, r8d
mov rcx, rax
xor edx, edx
mov r12, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1400092fe
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x1400092fe
lea edx, [rbp + 1]
mov qword [rsp + 0x4040], r15
call fcn.140011bcc
mov r15, rax
test rax, rax
je 0x1400092f6
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rax
mov rcx, r12
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
je 0x1400092ee
lea rcx, [rbx + 0x2022]
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
call fcn.1400095f0
test rax, rax
je 0x1400092ee
mov qword [rsp + 0x4078], rsi
lea rax, [rsp + 0x30]
mov qword [rsp + 0x4080], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x4048], r14
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], bp
jne 0x140009210
mov r14d, dword [rsp + 0x20]
shr r14, 3
test r14, r14
je 0x14000927c
mov rbx, rbp
mov rsi, r15
nop dword [rax]
mov rdx, qword [r15 + rbx*8]
lea r8, [rsp + 0x2030]
mov r9d, 0x1000
mov rcx, r12
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x140009274
mov r8, rdi
lea rdx, [rsp + 0x2030]
lea rcx, [rsp + 0x30]
call fcn.14001425c
test eax, eax
jne 0x140009274
mov rax, qword [r15 + rbx*8]
inc ebp
mov qword [rsi], rax
add rsi, 8
inc rbx
cmp rbx, r14
jl 0x140009230
mov r14, qword [rsp + 0x4048]
movsxd rsi, ebp
test ebp, ebp
jle 0x1400092de
mov rdi, r15
nop
mov rdx, qword [rdi]
lea r8, [rsp + 0x2030]
mov r9d, 0x1000
mov rcx, r12
call sub.KERNEL32.dll_K32GetModuleFileNameExW
test eax, eax
je 0x1400092d4
mov rcx, qword [rdi]
mov ebx, 1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
je 0x1400092d4
nop
cmp ebx, 0x20
jge 0x1400092d4
mov rcx, qword [rdi]
inc ebx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
test eax, eax
jne 0x1400092c0
add rdi, 8
sub rsi, 1
jne 0x140009290
mov rdi, qword [rsp + 0x4080]
mov rsi, qword [rsp + 0x4078]
mov rcx, r15
call fcn.140011bd4
mov r15, qword [rsp + 0x4040]
mov rcx, qword [rsp + 0x4030]
xor rcx, rsp
call fcn.14000c730
add rsp, 0x4050
pop r12
pop rbp
pop rbx
ret
Function at 0x140016304
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140016130
Function at 0x1400110dc
Capabilities:
Write file on windows

Disassembly:
jmp 0x14001a430
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140032035]
call fcn.14001182f
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14001a487
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x14001a593
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14001a52c
cmp qword [rbp + 0x28], 0
jle 0x14001a52c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14001a4cc
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400117ad
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x14001a582
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14001a582
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x14001148d
Capabilities:
Terminate process

Disassembly:
jmp 0x14001d4f0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400115be
Capabilities:
Parse pe header

Disassembly:
jmp 0x14001e020
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14001e040
xor al, al
jmp 0x14001e0c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x14001e053
xor al, al
jmp 0x14001e0c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001e07d
xor al, al
jmp 0x14001e0c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x14001e091
xor al, al
jmp 0x14001e0c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x14001e0a3
xor al, al
jmp 0x14001e0c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001e0bf
xor al, al
jmp 0x14001e0c1
mov al, 1
add rsp, 0x38
ret
Function at 0x140011811
Capabilities:
Write file on windows

Disassembly:
jmp 0x140016c20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x3e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x14002a3d8]
xor rax, rbp
mov qword [rbp + 0x1a0], rax
lea rcx, [0x140032035]
call fcn.14001182f
mov rax, qword [rbp + 0x1d0]
cmp qword [rax + 0x68], 0
je 0x140016c86
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016c8d
mov al, 1
jmp 0x140016de7
call fcn.140011244
mov rcx, qword [rbp + 0x1d0]
mov rcx, qword [rcx]
mov qword [rbp + 0x198], rcx
mov edx, eax
mov rcx, qword [rbp + 0x1d0]
mov rax, qword [rbp + 0x198]
call qword [rax + 0x18]
mov dword [rbp + 0x164], eax
call fcn.140011244
mov dword [rbp + 0x184], eax
lea rdx, [rbp + 0x164]
lea rcx, [rbp + 0x184]
call fcn.1400116e0
movzx eax, al
test eax, eax
je 0x140016ce8
xor al, al
jmp 0x140016de7
mov qword [rbp + 8], 0x20
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1d0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rax, qword [rbp + 0x1d0]
mov rcx, qword [rax + 0x68]
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 + 0x194], eax
cmp dword [rbp + 0x194], 0
je 0x140016d4d
cmp dword [rbp + 0x194], 1
je 0x140016d58
cmp dword [rbp + 0x194], 3
je 0x140016dd6
jmp 0x140016de5
mov rax, qword [rbp + 0x1d0]
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 0x140016da8
mov rax, qword [rbp + 0x1d0]
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 0x140016da8
xor al, al
jmp 0x140016de7
mov rax, qword [rbp + 0x1d0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140016dc3
mov dword [rbp + 0x194], 1
jmp 0x140016dcd
mov dword [rbp + 0x194], 0
movzx eax, byte [rbp + 0x194]
jmp 0x140016de7
mov rax, qword [rbp + 0x1d0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x140016de7
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x140025730]
call fcn.1400116c7
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rbp
call fcn.1400113de
lea rsp, [rbp + 0x1b8]
pop rdi
pop rbp
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004044b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004044c0]
mov dword [rax], 1
mov rax, qword [0x004044d0]
mov dword [rax], 1
mov rax, qword [0x004044a0]
mov dword [rax], 1
mov rax, qword [0x00404390]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404490]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404450]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404340]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401b00
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401b70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00407614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401d18
mov rax, qword [0x00407618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401bbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401c47
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401ba0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401d52
mov rax, qword [0x00407618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401d61
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401c40
sub eax, 4
and eax, 0xfffffffb
jne 0x401cd0
add dword [0x00407614], 1
cmp ebx, 8
jae 0x401c78
test bl, 4
jne 0x401d20
test ebx, ebx
je 0x401c69
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401d40
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401c69
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401caa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00407618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401c40
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 edi, edi
jmp 0x401bc7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401c69
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401c69
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00407618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402540
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004078e0]
test rbx, rbx
je 0x402594
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40258b
test r12, r12
je 0x40258b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402570
lea rcx, [0x00407900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4027c0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x4027d0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x4027e0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402825
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x40281c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402827
add rax, 0x28
cmp rax, r9
jne 0x402808
xor eax, eax
ret

Function at 0x4028d0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404390]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402949
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402949
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402946
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x40293d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402949
add r8, 0x28
cmp r8, r9
jne 0x402928
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402a30
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404390]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402a9f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a9f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402a9d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402a94
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402aa8
add rax, 0x28
cmp rax, r9
jne 0x402a80
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402ac0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404390]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402b38
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b38
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402b38
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402b38
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402b2c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402b40
add rdx, 0x28
cmp rdx, r10
jne 0x402b18
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402b50
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402b5e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402b35
test r8d, r8d
jg 0x402b48
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400053fc
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rax, qword gs:[0x60]
mov ebp, ecx
mov r14, qword [rax + 0x18]
add r14, 0x10
mov rsi, qword [r14]
jmp 0x1400054aa
test rsi, rsi
je 0x1400054a7
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
mov rdi, qword [rsi + 0x60]
xor edx, edx
and qword [rsp + 0x30], 0
mov r8, rdi
and dword [rsp + 0x28], 0
mov ecx, 0xfde9
and qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
movsxd rbx, eax
mov rcx, rbx
call fcn.1400055b0
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rdi
mov dword [rsp + 0x28], ebx
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], rax
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
je 0x1400054b3
mov rcx, r15
call fcn.1400013f8
cmp eax, ebp
je 0x1400054ce
mov rsi, qword [rsi]
cmp rsi, r14
jne 0x14000542c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret
mov rax, qword [rsi + 0x30]
jmp 0x1400054b5

Function at 0x1400054d4
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov eax, 0x5a4d
mov r15d, edx
mov r11, rcx
cmp word [rcx], ax
jne 0x14000554b
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000554b
mov ecx, dword [rax + rcx + 0x88]
add rcx, r11
je 0x14000554b
mov ebp, dword [rcx + 0x20]
xor ebx, ebx
mov edi, dword [rcx + 0x24]
add rbp, r11
mov esi, dword [rcx + 0x1c]
add rdi, r11
mov r14d, dword [rcx + 0x18]
add rsi, r11
test r14, r14
je 0x14000554b
mov ecx, dword [rbp + rbx*4]
add rcx, r11
call fcn.1400013f8
cmp eax, r15d
je 0x140005566
inc rbx
cmp rbx, r14
jb 0x140005532
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
movzx eax, word [rdi + rbx*2]
mov eax, dword [rsi + rax*4]
add rax, r11
jmp 0x14000554d

Function at 0x140006110
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000615a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000615a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000615a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000615a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000615a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000615c
xor al, al
add rsp, 0x28
ret
Function at 0x140da2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140da21df
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 0x140da2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140da206f
add dl, dl
jne 0x140da2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140da20f6
xor eax, eax
add dl, dl
jne 0x140da20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140da21ad
add dl, dl
jne 0x140da20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140da20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140da20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140da20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140da20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140da207e
mov eax, 1
add dl, dl
jne 0x140da2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140da2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140da20fb
sub eax, ebx
mov ebx, 1
jne 0x140da214c
mov ecx, 1
add dl, dl
jne 0x140da212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140da213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140da2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140da207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140da2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140da2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140da215d
cmp eax, 0x7d00
jae 0x140da219b
cmp eax, 0x500
jb 0x140da2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140da207e
cmp eax, 0x7f
ja 0x140da219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140da207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140da21d2
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 0x140da207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001ac0
Capabilities:
Access peb ldr_data
Allocate or change rwx memory
Get ntdll base address
Get process filename
Parse pe header

Disassembly:
push rbx
push r13
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov r13, rcx
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov rdx, qword [rax + 0x18]
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r8, qword [rdx + 0x10]
cmp qword [r8 + 0x60], 0
je 0x140001b5d
lea r9, str.win32u.dll
nop dword [rax + rax]
mov rbp, qword [r8 + 0x30]
mov rdx, qword [r8 + 0x60]
mov r8, qword [r8]
test rbp, rbp
je 0x140001b56
mov rax, 0xffffffffffffffff
nop word [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [r9 + rax*2 + 2]
jne 0x140001b56
add rax, 2
cmp rax, 0xb
je 0x140001bd2
movzx ecx, word [rdx + rax*2]
cmp cx, word [r9 + rax*2]
je 0x140001b30
cmp qword [r8 + 0x60], 0
jne 0x140001b10
xor ebx, ebx
mov edx, 0xb
mov dword [r13], ebx
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
test rax, rax
je 0x140001bc3
movsd xmm0, qword [0x14000a0b8]
movsd qword [rax], xmm0
movzx ecx, word [0x14000a0c0]
mov word [rax + 8], cx
movzx ecx, byte [0x14000a0c2]
mov byte [rax + 0xa], cl
mov dword [rax + 4], ebx
mov qword [r13 + 8], rax
mov rax, r13
add rsp, 0x38
pop r13
pop rbx
ret
mov eax, 0x5a4d
cmp word [rbp], ax
jne 0x140001b5d
movsxd rax, dword [rbp + 0x3c]
cmp dword [rax + rbp], 0x4550
jne 0x140001b5d
mov r14d, dword [rax + rbp + 0x88]
xor ebx, ebx
test r14, r14
je 0x140001b5f
mov r15d, dword [r14 + rbp + 0x1c]
mov edi, ebx
mov esi, dword [r14 + rbp + 0x20]
add r15, rbp
mov r12d, dword [r14 + rbp + 0x24]
add rsi, rbp
mov r14d, dword [r14 + rbp + 0x18]
add r12, rbp
test r14d, r14d
je 0x140001b5f
nop dword [rax]
mov ecx, dword [rsi]
lea rdx, str.NtUserSendInput
add rcx, rbp
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
je 0x140001c55
inc edi
add rsi, 4
cmp edi, r14d
jb 0x140001c30
jmp 0x140001b5f
movsxd rax, edi
movzx ecx, word [r12 + rax*2]
mov eax, dword [r15 + rcx*4]
mov ebx, dword [rax + rbp + 4]
jmp 0x140001b5f