joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18008bf6c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008bf82
mov al, 1
jmp 0x18008bfe2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008bf93
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008bfe0
mov ecx, dword [rcx + 0x18]
nop
call fcn.180095358
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008bfe0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008bfe0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008bfe0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008bfe2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x180090608
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x180090638
xor eax, eax
jmp 0x1800906fb
mov rbp, rbx
cmp word [rax], si
je 0x18009065d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180090644
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180090640
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18008ed54
movsxd r14, eax
test eax, eax
jne 0x18009069b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180090631
mov rcx, r14
call fcn.1800851b0
mov rdi, rax
test rax, rax
jne 0x1800906b4
xor ecx, ecx
call fcn.180085174
jmp 0x180090690
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18008ed54
test eax, eax
jne 0x1800906e5
mov rcx, rdi
call fcn.180085174
jmp 0x1800906ef
xor ecx, ecx
call fcn.180085174
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x180094af8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.180086a00
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x180094b99
cmp ebx, dword [rsp + 0x30]
je 0x180094b92
test esi, esi
je 0x180094b92
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180094b6d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180094b7a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180094b57
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180094b7e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180094b9b
mov eax, 1
jmp 0x180094b9b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18009780c
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.18007cc44
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x180097896
cmp byte [rbp - 0x21], r15b
je 0x180097891
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800978cc
call fcn.18008a380
test eax, eax
jne 0x1800978b8
cmp byte [rbp - 0x21], r15b
je 0x1800978b0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800978cc
cmp byte [rbp - 0x21], r15b
je 0x1800978c9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.180083014
test eax, eax
jne 0x18009796c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.18007cc44
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x18009790b
cmp byte [rbp - 0x21], r15b
je 0x180097940
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x180097940
call fcn.18008a380
test eax, eax
jne 0x18009792c
cmp byte [rbp - 0x21], r15b
je 0x180097925
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x180097940
cmp byte [rbp - 0x21], r15b
je 0x18009793d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.180083014
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x18009796c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x18009796f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x18009797d
mov rcx, rdi
call fcn.180085174
cmp byte [rbp + 0x3f], r15b
je 0x18009798c
mov rcx, qword [rbp + 0x27]
call fcn.180085174
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180098810
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.1800895c4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800895c4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180098960
cmp rax, 0xffffffffffffffff
je 0x180098960
xor edi, edi
test rbp, rbp
jle 0x18009890b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800850fc
mov rbx, rax
test rax, rax
jne 0x180098898
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x180098901
mov edx, 0x8000
mov ecx, r14d
call fcn.180098694
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.18008b768
cmp eax, 0xffffffff
je 0x1800988e1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800988a8
mov edx, r15d
mov ecx, r14d
call fcn.180098694
jmp 0x180098901
cmp byte [rsi + 0x38], dil
je 0x1800988f8
cmp dword [rsi + 0x34], 5
jne 0x1800988f8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x180098901
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180085174
jmp 0x180098974
jns 0x180098974
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800895c4
cmp rax, 0xffffffffffffffff
jne 0x18009892c
cmp byte [rsi + 0x30], dil
je 0x180098974
mov edi, dword [rsi + 0x2c]
jmp 0x180098974
mov ecx, r14d
call fcn.180095358
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180098974
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 0x180098974
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009896d
mov eax, dword [rsi + 0x2c]
jmp 0x180098972
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800895c4
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 0x180099860
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180099888
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180099888
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001a54
Capabilities:
Inspect section memory permissions

Disassembly:
mov edx, 0xe0000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001a67
mov eax, 0x40
ret
mov edx, 0x60000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001a7a
mov eax, 0x20
ret
mov edx, 0xa0000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001a8d
mov eax, 0x80
ret
mov edx, 0xc0000000
mov eax, ecx
and eax, edx
cmp eax, edx
jne 0x180001aa0
mov eax, 4
ret
bt ecx, 0x1d
jae 0x180001aac
mov eax, 0x10
ret
bt ecx, 0x1e
jae 0x180001ab8
mov eax, 2
ret
mov eax, 1
test ecx, ecx
lea edx, [rax + 7]
cmovs eax, edx
ret

Function at 0x1800035d8
Capabilities:
Create thread

Disassembly:
sub rsp, 0x248
cmp edx, 1
jne 0x18000365f
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x18000365b
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.180003c2c
test eax, eax
jne 0x18000365b
call fcn.180003b78
test eax, eax
je 0x18000365b
cmp dword [0x180022d08], 0
jne 0x180003668
and qword [rsp + 0x28], 0
lea r8, [0x180001ac8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [0x180022d08], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180022ca0], rax
call fcn.180001d40
jmp 0x180003668
xor eax, eax
jmp 0x18000366d
test edx, edx
jne 0x180003668
call fcn.180003ac4
mov eax, 1
add rsp, 0x248
ret
Function at 0x1800039d0
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov rax, qword gs:[0x60]
mov edi, edx
mov ebx, ecx
xor esi, esi
mov r8, qword [rax + 0x18]
mov r11, qword [r8 + 0x20]
mov r8, r11
mov r10, qword [r8 + 0x50]
mov r9d, esi
test r10, r10
je 0x180003a2f
cmp si, word [r8 + 0x48]
jae 0x180003a2f
movzx edx, word [r8 + 0x48]
movsx ecx, byte [r10]
ror r9d, 0xd
cmp byte [r10], 0x61
lea eax, [rcx - 0x20]
cmovge ecx, eax
inc r10
add r9d, ecx
sub rdx, 1
jne 0x180003a11
cmp r9d, ebx
je 0x180003a4e
mov r8, qword [r8]
cmp r8, r11
jne 0x1800039f9
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov r9, qword [r8 + 0x20]
mov ebx, esi
movsxd rax, dword [r9 + 0x3c]
mov r8d, dword [rax + r9 + 0x88]
add r8, r9
mov edx, dword [r8 + 0x20]
mov ecx, dword [r8 + 0x24]
add rdx, r9
add rcx, r9
cmp dword [r8 + 0x18], esi
jbe 0x180003a3c
mov r10d, dword [rdx]
mov r11d, esi
add r10, r9
jmp 0x180003a8f
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x180003a82
cmp r11d, edi
je 0x180003aad
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r8 + 0x18]
jb 0x180003a77
jmp 0x180003a3c
movzx edx, word [rcx]
mov ecx, dword [r8 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180003a3e

Function at 0x180003b78
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor ecx, ecx
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180003c1d
movzx eax, word [rax + 0x40]
mov ecx, 0x7268
sub ax, cx
cmp ax, 0xf
ja 0x180003bb4
mov ecx, 0x8801
bt ecx, eax
jb 0x180003c1d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180003c1d
lea rax, [0x180003b70]
mov word [rbx + 0x40], 0x7277
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180003dc0
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.180004010
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003eda
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003e24
mov rax, qword [0x180021008]
cmp qword [rsp + 0x20], rax
ja 0x180003e24
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003de6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009040
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003e55
jmp 0x180003eda
cmp dword [rsp + 0x50], 0x10000
jne 0x180003ebd
cmp qword [rsp + 0x48], 0x10000
jb 0x180003ebd
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 0x180003e9b
mov rax, qword [rsp + 0x28]
jmp 0x180003edc
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003eab
xor eax, eax
jmp 0x180003edc
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003ed5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004010
mov qword [rsp + 0x20], rax
jmp 0x180003de6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003ef0
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.180004050
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004006
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003f4b
mov rax, qword [0x180021008]
cmp qword [rsp + 0x20], rax
ja 0x180003f4b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003f0d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009040
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003f7c
jmp 0x180004006
cmp dword [rsp + 0x50], 0x10000
jne 0x180003fe4
cmp qword [rsp + 0x48], 0x10000
jb 0x180003fe4
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 0x180003fc2
mov rax, qword [rsp + 0x28]
jmp 0x180004008
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003fd2
xor eax, eax
jmp 0x180004008
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004001
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004050
mov qword [rsp + 0x20], rax
jmp 0x180003f0d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800040a0
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.180004630
mov qword [rsp + 0x28], 0
cmp qword [0x180021ac8], 0
jne 0x1800040e8
cmp qword [0x180021ac0], 0
je 0x1800040e8
mov rax, qword [0x180021ac0]
mov qword [0x180021ac8], rax
cmp qword [0x180021ac8], 0
je 0x18000418e
mov rax, qword [0x180021ac8]
cmp qword [rax + 0x10], 0
je 0x18000418e
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000418e
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000418e
mov rax, qword [0x180021ac8]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004154
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000415b
xor eax, eax
jmp 0x180004309
mov rax, qword [0x180021ac8]
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.180009040
mov rax, qword [rsp + 0x28]
jmp 0x180004309
mov rax, qword [0x180021ac0]
mov qword [0x180021ac8], rax
jmp 0x1800041b0
mov rax, qword [0x180021ac8]
mov rax, qword [rax + 8]
mov qword [0x180021ac8], rax
cmp qword [0x180021ac8], 0
je 0x1800041fd
cmp qword [0x180021ac8], 0
je 0x1800041fb
mov rax, qword [0x180021ac8]
cmp qword [rax + 0x10], 0
je 0x1800041fb
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x1800041fb
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x1800041fb
jmp 0x18000412c
jmp 0x18000419e
mov rcx, qword [rsp + 0x60]
call fcn.1800064a0
and eax, 0xffff
mov eax, eax
mov rcx, qword [rsp + 0x60]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.180004310
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004307
mov rax, qword [rsp + 0x48]
mov qword [0x180021ac8], rax
mov rax, qword [0x180021ac8]
mov dword [rax], 0x52727464
mov rax, qword [0x180021ac8]
mov qword [rax + 0x10], 0
mov rax, qword [0x180021ac8]
mov rcx, qword [0x180021ac0]
mov qword [rax + 8], rcx
mov rax, qword [0x180021ac8]
mov qword [0x180021ac0], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x180021ac8]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x1800042b8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x1800042f2
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 0x1800042ae
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000412c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180005020
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 0x180005067
xor al, al
jmp 0x180005109
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 0x180005091
xor al, al
jmp 0x180005109
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 0x180005101
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 0x180005101
mov al, 1
jmp 0x180005109
jmp 0x180005107
xor al, al
add rsp, 0x78
ret

Function at 0x180005410
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180021ac0]
mov qword [rsp + 0x28], rax
jmp 0x180005430
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000545f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000545d
call sub.KERNEL32.dll_GetLastError
jmp 0x180005461
jmp 0x180005422
xor eax, eax
add rsp, 0x38
ret
Function at 0x180005af0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov dword [rsp + 0x20], 0
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180021ad8], eax
je 0x180005b1d
mov eax, 0x10dd
jmp 0x180005d36
cmp dword [0x180021adc], 0
je 0x180005b31
mov eax, dword [0x180021adc]
jmp 0x180005d36
cmp qword [rsp + 0x78], 0
jne 0x180005b43
mov eax, 0x57
jmp 0x180005d36
cmp qword [rsp + 0x70], 0
jne 0x180005b55
mov eax, 6
jmp 0x180005d36
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180005b87
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
mov rax, qword [rsp + 0x70]
mov qword [0x180021ae0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005d36
mov ecx, 0x30
call fcn.180007c50
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180005bf9
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
cmp qword [rsp + 0x30], 0
je 0x180005be4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180007c8c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180021ae0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005d36
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180005ac0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180005ac0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + 0x3e]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x38]
mov rcx, qword [rcx + 0x48]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp dword [rsp + 0x24], 0
je 0x180005c56
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180005c73
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x180005c6e
jmp 0x180005bba
jmp 0x180005bb0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180005ca0
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x180005c9b
jmp 0x180005bba
jmp 0x180005bb0
mov dword [rsp + 0x28], 0
movsxd rax, dword [rsp + 0x24]
lea r9, [rsp + 0x28]
mov r8d, 0x40
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180005cd7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180005bb0
mov rax, qword [rsp + 0x30]
mov dword [rax + 8], 1
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x70]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x18], rcx
mov rax, qword [rsp + 0x30]
mov ecx, dword [rsp + 0x28]
mov dword [rax + 0x28], ecx
mov rax, qword [rsp + 0x30]
mov rcx, qword [0x180021af0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x180021af0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005d40
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180021ad8], eax
je 0x180005d5b
mov eax, 0x10dd
jmp 0x180005e80
mov rax, qword [0x180021af0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005e05
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x20]
movzx eax, byte [rax + 0x3e]
lea r9, [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov r8d, dword [rcx + 0x28]
mov edx, eax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x18]
call sub.KERNEL32.dll_VirtualProtect
mov rax, qword [rsp + 0x28]
cmp dword [rax + 8], 0
jne 0x180005dd0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005dd0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180004770
mov rax, qword [rsp + 0x28]
mov qword [rax + 0x20], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x38]
call fcn.180007c8c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005d67
mov qword [0x180021af0], 0
call fcn.1800051d0
mov rax, qword [0x180021ae8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005e69
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax + 8]
call sub.KERNEL32.dll_ResumeThread
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x48]
call fcn.180007c8c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005e21
mov qword [0x180021ae8], 0
mov dword [0x180021ad8], 0
xor eax, eax
add rsp, 0x68
ret