joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001c10
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 0x140001c80
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140008094]
mov rbx, rcx
test esi, esi
jle 0x140001db0
mov rax, qword [0x140008098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001ccb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001d55
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001cb0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140001dd2
mov rax, qword [0x140008098]
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 [0x140008098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001db7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001d4e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001d60
add dword [0x140008094], 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 [0x140008098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001d4e
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 0x140001cd8
mov rax, qword [0x140008098]
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 0x140002360
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140008100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400080e0]
test rbx, rbx
je 0x1400023bc
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 0x1400023b3
test eax, eax
jne 0x1400023b3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002398
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 0x1400025d0
Capabilities:
Parse pe header

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

Function at 0x140002600
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 0x14000264d
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 0x140002644
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000264f
add rax, 0x28
cmp rax, r9
jne 0x140002630
xor eax, eax
ret

Function at 0x140002650
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x1400026e0
mov rdx, qword [0x140005570]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x1400026ce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x1400026ce
cmp word [rax + 0x18], 0x20b
jne 0x1400026ce
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x1400026e0
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1400026b9
add rbx, 0x28
cmp rbx, rdi
je 0x1400026e0
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1400026b0
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 0x1400026f0
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x140002770
Capabilities:
Parse pe header

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

Disassembly:
mov r8, qword [0x140005570]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400027d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400027d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400027d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002820
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002817
test rcx, rcx
je 0x1400027d0
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140002808
xor eax, eax
ret

Function at 0x140002830
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x140005570]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002890
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002898
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002890
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x140002890
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 0x1400028e4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x1400028f0
add rdx, 0x28
cmp rdx, r9
jne 0x1400028d0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x140005570]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002922
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002930
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002922
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002922
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002922
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 0x140002985
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002998
add rdx, 0x28
cmp r10, rdx
jne 0x140002970
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400029a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400029b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000298e
test ecx, ecx
jg 0x1400029a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x180002340
Capabilities:
Create process on windows
Enumerate processes
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x510
mov rax, qword [0x18006f040]
xor rax, rsp
mov qword [rsp + 0x500], rax
xor r14d, r14d
mov rbx, rcx
lea rcx, [rsp + 0x2f2]
mov word [rsp + 0x2f0], r14w
xor edx, edx
mov r8d, 0x206
mov ebp, r14d
call fcn.180058370
lea r15, str.open
lea r12, str.cmd.exe
xor edx, edx
mov ecx, 2
mov esi, r14d
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002504
lea rdx, [rsp + 0xb0]
mov dword [rsp + 0xb0], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1800024fb
cmp qword [rbx + 0x18], 7
mov rdx, rbx
jbe 0x1800023ee
mov rdx, qword [rbx]
lea rcx, [rsp + 0xdc]
call fcn.180037d6c
test eax, eax
je 0x180002416
lea rdx, [rsp + 0xb0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1800023e1
jmp 0x18000241d
mov esi, dword [rsp + 0xb8]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x180002504
mov ebp, 1
mov r8d, esi
mov ecx, ebp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
je 0x18000245c
mov edx, ebp
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rbx + 0x18], 7
mov r8, rbx
jbe 0x180002469
mov r8, qword [rbx]
lea rdx, str._C_taskkill__IM__s__F
lea rcx, [rsp + 0x2f0]
call fcn.180001080
lea rax, [rsp + 0x2f0]
mov dword [rsp + 0x30], 0x70
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x34], 0x40
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x58], r14
mov dword [rsp + 0x60], r14d
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1800024eb
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rsp + 0x98]
lea rdx, [rsp + 0xa0]
mov dword [rsp + 0xa0], r14d
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1800023a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebp
mov rcx, qword [rsp + 0x500]
xor rcx, rsp
call fcn.18002e200
lea r11, [rsp + 0x510]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x180003040
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r13
push r14
push r15
mov rsi, qword [rsp + 0x48]
xor r14d, r14d
mov rbx, qword [rsp + 0x60]
mov r12, r9
mov rcx, qword [rsp + 0x50]
mov r13, r8
mov rbp, qword [rsp + 0x58]
mov r15, rdx
mov qword [rsi], r8
mov qword [rbx], rcx
mov rax, qword [rsi]
cmp rax, r9
je 0x1800031d5
cmp rcx, rbp
je 0x1800031d5
mov r9d, 1
movzx edx, word [r15]
xor dil, dil
movzx ecx, word [rax]
mov r11d, 0x2800
mov r8d, 0x3ff
mov r10d, 0x2400
cmp r9w, dx
jae 0x1800030dc
lea eax, [r10 + rcx]
cmp ax, r8w
ja 0x1800031fc
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x1800030f3
mov eax, ecx
add cx, r11w
cmp cx, r8w
ja 0x1800030f3
shl eax, 0xa
mov dil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x180003106
movzx r8d, al
mov r10d, r14d
mov r11d, r14d
jmp 0x180003153
mov r8d, eax
cmp eax, 0x800
jae 0x180003120
shr r8d, 6
mov r10d, r9d
or r8b, 0xc0
mov r11d, r9d
jmp 0x180003153
cmp eax, 0x10000
jae 0x18000313a
shr r8d, 0xc
mov r10d, 2
or r8b, 0xe0
mov r11d, r10d
jmp 0x180003153
shr r8d, 0x12
mov r10d, 3
movzx r11d, dil
or r8b, 0xf0
xor r11d, 1
add r11d, r11d
lea r9d, [r11 + 1]
mov rdx, rbp
sub rdx, qword [rbx]
mov ecx, r9d
cmp rdx, rcx
jl 0x1800031d5
add qword [rsi], 2
test dil, dil
jne 0x180003174
cmp r10d, 3
jae 0x180003180
mov rcx, qword [rbx]
mov r9d, r11d
mov byte [rcx], r8b
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jle 0x1800031ae
lea ecx, [r10 + r10*2]
add ecx, ecx
nop
sub ecx, 6
mov edx, eax
shr edx, cl
dec r9d
and dl, 0x3f
or dl, 0x80
mov byte [r8], dl
inc qword [rbx]
mov r8, qword [rbx]
test r9d, r9d
jg 0x180003190
shr eax, 0xa
mov r9d, 1
test dil, dil
mov ecx, r9d
cmovne ecx, eax
mov word [r15], cx
mov rax, qword [rsi]
cmp rax, r12
je 0x1800031d5
cmp qword [rbx], rbp
jne 0x18000309d
cmp r13, qword [rsi]
sete r14b
mov eax, r14d
mov rbx, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
pop r15
pop r14
pop r13
pop r12
ret
mov eax, 2
jmp 0x1800031df
Function at 0x180006690
Capabilities:
Check if file exists
Enumerate files on windows
Get file attributes

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x6b0
mov rax, qword [0x18006f040]
xor rax, rsp
mov qword [rsp + 0x6a0], rax
mov r14, rdx
mov rbp, rcx
xor edx, edx
lea rcx, [rsp + 0x490]
mov r8d, 0x208
xor esi, esi
call fcn.180058370
mov r8d, 0x104
lea rdx, [rsp + 0x490]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edx, 0x5c
lea rcx, [rsp + 0x490]
call fcn.180033fd8
xor edx, edx
lea rcx, [rsp + 0x280]
mov r8d, 0x208
mov word [rax], si
call fcn.180058370
lea r9, [rsp + 0x490]
mov qword [rsp + 0x20], rbp
lea r8, str._s_s
mov edx, 0x104
lea rcx, [rsp + 0x280]
call fcn.180005500
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180006763
lea r8, [rsp + 0x280]
mov edx, 0x104
mov rcx, r14
call fcn.18003dadc
mov eax, 1
jmp 0x18000685b
xor edx, edx
mov qword [rsp + 0x6e8], rdi
mov r8d, 0x208
lea rcx, [rsp + 0x280]
call fcn.180058370
lea r9, [rsp + 0x490]
mov edx, 0x104
lea r8, str._s
lea rcx, [rsp + 0x280]
call fcn.180005500
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180006851
mov qword [rsp + 0x6e0], rbx
nop dword [rax]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test byte [rsp + 0x30], 0x10
mov ebx, eax
je 0x180006820
lea r9, [rsp + 0x5c]
mov qword [rsp + 0x20], rbp
lea r8, [rsp + 0x490]
lea rdx, str._s_s_s
lea rcx, [rsp + 0x280]
call fcn.180007070
lea rcx, [rsp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x180006826
test ebx, ebx
jne 0x1800067d0
jmp 0x180006840
lea r8, [rsp + 0x280]
mov edx, 0x104
mov rcx, r14
call fcn.18003dadc
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x6e0]
mov rdi, qword [rsp + 0x6e8]
mov eax, esi
mov rcx, qword [rsp + 0x6a0]
xor rcx, rsp
call fcn.18002e200
add rsp, 0x6b0
pop r14
pop rsi
pop rbp
ret
Function at 0x180023660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x18000feb6
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x18000fe99
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x18000fe84

Function at 0x18002d88c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.1800422a8
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x18002d8de
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x18002d8de
sub ecx, 1
je 0x18002d8d7
cmp ecx, 1
je 0x18002d8d0
xor eax, eax
jmp 0x18002d8e3
mov eax, 3
jmp 0x18002d8e3
mov eax, 1
jmp 0x18002d8e3
mov eax, 2
add rsp, 0x28
ret

Function at 0x18002f450
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.18002f6a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x18002f56a
mov rax, qword [0x18006f0b0]
cmp qword [rsp + 0x20], rax
jb 0x18002f4b4
mov rax, qword [0x18006f0b8]
cmp qword [rsp + 0x20], rax
ja 0x18002f4b4
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18002f476
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180058370
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18002f4e5
jmp 0x18002f56a
cmp dword [rsp + 0x50], 0x10000
jne 0x18002f54d
cmp qword [rsp + 0x48], 0x10000
jb 0x18002f54d
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002f52b
mov rax, qword [rsp + 0x28]
jmp 0x18002f56c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18002f53b
xor eax, eax
jmp 0x18002f56c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002f565
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.18002f6a0
mov qword [rsp + 0x20], rax
jmp 0x18002f476
xor eax, eax
add rsp, 0x68
ret
Function at 0x18002f580
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.18002f6e0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x18002f696
mov rax, qword [0x18006f0b0]
cmp qword [rsp + 0x20], rax
jb 0x18002f5db
mov rax, qword [0x18006f0b8]
cmp qword [rsp + 0x20], rax
ja 0x18002f5db
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x18002f59d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180058370
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x18002f60c
jmp 0x18002f696
cmp dword [rsp + 0x50], 0x10000
jne 0x18002f674
cmp qword [rsp + 0x48], 0x10000
jb 0x18002f674
mov r9d, 0x40
mov r8d, 0x3000
mov edx, 0x10000
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualAlloc
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18002f652
mov rax, qword [rsp + 0x28]
jmp 0x18002f698
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x18002f662
xor eax, eax
jmp 0x18002f698
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x18002f691
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.18002f6e0
mov qword [rsp + 0x20], rax
jmp 0x18002f59d
xor eax, eax
add rsp, 0x68
ret
Function at 0x18002f730
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.18002fcc0
mov qword [rsp + 0x28], 0
cmp qword [0x180071748], 0
jne 0x18002f778
cmp qword [0x180071740], 0
je 0x18002f778
mov rax, qword [0x180071740]
mov qword [0x180071748], rax
cmp qword [0x180071748], 0
je 0x18002f81e
mov rax, qword [0x180071748]
cmp qword [rax + 0x10], 0
je 0x18002f81e
mov rax, qword [0x180071748]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002f81e
mov rax, qword [0x180071748]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002f81e
mov rax, qword [0x180071748]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x18002f7e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18002f7eb
xor eax, eax
jmp 0x18002f995
mov rax, qword [0x180071748]
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 fcn.180058370
mov rax, qword [rsp + 0x28]
jmp 0x18002f995
mov rax, qword [0x180071740]
mov qword [0x180071748], rax
jmp 0x18002f840
mov rax, qword [0x180071748]
mov rax, qword [rax + 8]
mov qword [0x180071748], rax
cmp qword [0x180071748], 0
je 0x18002f88d
cmp qword [0x180071748], 0
je 0x18002f88b
mov rax, qword [0x180071748]
cmp qword [rax + 0x10], 0
je 0x18002f88b
mov rax, qword [0x180071748]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18002f88b
mov rax, qword [0x180071748]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18002f88b
jmp 0x18002f7bc
jmp 0x18002f82e
mov rax, qword [rsp + 0x60]
and rax, 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.18002f9a0
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x18002f993
mov rax, qword [rsp + 0x48]
mov qword [0x180071748], rax
mov rax, qword [0x180071748]
mov dword [rax], 0x52727464
mov rax, qword [0x180071748]
mov qword [rax + 0x10], 0
mov rax, qword [0x180071748]
mov rcx, qword [0x180071740]
mov qword [rax + 8], rcx
mov rax, qword [0x180071748]
mov qword [0x180071740], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180071748]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x18002f944
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x18002f97e
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 0x18002f93a
mov rax, qword [0x180071748]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18002f7bc
xor eax, eax
add rsp, 0x58
ret
Function at 0x1800306b0
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov r8d, 0x30
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x80]
call sub.KERNEL32.dll_VirtualQuery
nop
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1800306f7
xor al, al
jmp 0x180030799
mov rax, qword [rsp + 0x28]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp dword [rax], 0x4550
je 0x180030721
xor al, al
jmp 0x180030799
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
cmp qword [rsp + 0x88], rax
jb 0x180030791
mov eax, 8
imul rax, rax, 0xc
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov ecx, 8
imul rcx, rcx, 0xc
mov rdx, qword [rsp + 0x30]
mov ecx, dword [rdx + rcx + 0x8c]
add rax, rcx
cmp qword [rsp + 0x88], rax
jae 0x180030791
mov al, 1
jmp 0x180030799
jmp 0x180030797
xor al, al
add rsp, 0x78
ret

Function at 0x180030aa0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180071740]
mov qword [rsp + 0x28], rax
jmp 0x180030ac0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180030aef
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180030aed
call sub.KERNEL32.dll_GetLastError
jmp 0x180030af1
jmp 0x180030ab2
xor eax, eax
add rsp, 0x38
ret