joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800011c0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x160
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r15d, r15d
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], r15
mov r14, rdx
mov qword [rsp + 0x50], r15
mov rbx, rcx
mov qword [rsp + 0x48], r15
xor r9d, r9d
mov qword [rsp + 0x40], r15
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov qword [rsp + 0x30], r15
mov rcx, r14
mov qword [rsp + 0x28], r15
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1800013c7
mov qword [rsp + 0x190], rbp
mov ecx, 0x20a
mov qword [rsp + 0x198], rsi
call fcn.180008424
mov rsi, rax
mov ebp, r15d
cmp dword [rsp + 0x60], r15d
jbe 0x1800013af
mov qword [rsp + 0x158], rdi
mov qword [rsp + 0x150], r12
lea r12, [r15 - 1]
nop dword [rax]
lea rax, [rsp + 0x64]
mov dword [rsp + 0x68], 0x64
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x68]
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x70]
mov edx, ebp
mov qword [rsp + 0x20], r15
mov rcx, r14
mov dword [rsp + 0x64], 0x104
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180001393
cmp dword [rsp + 0x6c], 1
jne 0x180001393
mov eax, dword [rbx]
mov edi, r15d
test eax, eax
je 0x180001309
nop
mov rdx, rsi
mov rcx, qword [rbx + 0x10]
mov eax, edi
mov rcx, qword [rcx + rax*8]
cmp dword [rbx + 8], r15d
je 0x1800012eb
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x1800012f1
call qword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
mov ecx, r15d
sete cl
test ecx, ecx
jne 0x180001393
mov eax, dword [rbx]
inc edi
cmp edi, eax
jb 0x1800012d0
mov ecx, dword [rbx + 4]
cmp eax, ecx
jne 0x18000134f
lea eax, [rcx + 0x10]
mov ecx, eax
mov dword [rbx + 4], eax
mov eax, 8
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180008424
mov r8d, dword [rbx]
mov rcx, rax
mov rdx, qword [rbx + 0x10]
mov rdi, rax
shl r8, 3
call fcn.180009450
mov rcx, qword [rbx + 0x10]
mov qword [rbx + 0x10], rdi
call fcn.1800083e0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
movsxd rcx, eax
mov eax, 2
mul rcx
cmovo rax, r12
mov rcx, rax
call fcn.180008424
mov edx, dword [rbx]
mov rcx, qword [rbx + 0x10]
mov qword [rcx + rdx*8], rax
mov edx, dword [rbx]
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + rdx*8]
lea eax, [rdx + 1]
mov rdx, rsi
mov dword [rbx], eax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
inc ebp
cmp ebp, dword [rsp + 0x60]
jb 0x180001270
mov r12, qword [rsp + 0x150]
mov rdi, qword [rsp + 0x158]
mov rcx, rsi
call fcn.1800083e0
mov rsi, qword [rsp + 0x198]
mov rbp, qword [rsp + 0x190]
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800083c0
add rsp, 0x160
pop r15
pop r14
pop rbx
ret
Function at 0x180003f00
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x260
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rdi, rcx
cmp edx, 1
jne 0x180004060
mov r8d, 0x104
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x18000405c
lea rcx, [rsp + 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
test rax, rax
je 0x180003f73
mov r8d, 3
lea rdx, [0x18001bcc8]
mov rcx, rax
call fcn.18000a880
test eax, eax
je 0x18000405c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x18000400e
movzx ecx, word [rbx + 0x40]
mov eax, 0x7268
sub cx, ax
cmp cx, 0xf
ja 0x180003fa7
mov eax, 0x8801
bt eax, ecx
jb 0x18000405c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x18000400e
mov eax, 0x7277
mov word [rbx + 0x40], ax
lea rax, [0x180004730]
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
cmp byte [0x180020cb9], 0
jne 0x180004069
cmp qword [0x180020c90], 0
mov byte [0x180020cb9], 1
mov qword [0x180020cf0], rdi
jne 0x180004055
xor eax, eax
lea r8, [0x180001eb0]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180020c90], rax
call fcn.180001f00
jmp 0x180004069
xor eax, eax
jmp 0x18000406e
test edx, edx
jne 0x180004069
call fcn.1800044d0
mov eax, 1
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1800083c0
mov rbx, qword [rsp + 0x270]
add rsp, 0x260
pop rdi
ret
Function at 0x180004090
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov rax, qword gs:[0x60]
mov esi, edx
mov edi, ecx
xor ebp, ebp
mov r8, qword [rax + 0x18]
mov rbx, qword [r8 + 0x20]
mov r10, rbx
nop
mov r9, qword [r10 + 0x50]
test r9, r9
je 0x180004100
movzx ecx, word [r10 + 0x48]
mov eax, ebp
cmp bp, cx
jae 0x1800040fc
mov r11d, ecx
nop dword [rax + rax]
movsx edx, byte [r9]
lea r9, [r9 + 1]
ror eax, 0xd
cmp dl, 0x61
lea ecx, [rdx - 0x20]
cmovl ecx, edx
add eax, ecx
sub r11, 1
jne 0x1800040e0
cmp eax, edi
je 0x18000411f
mov r10, qword [r10]
cmp r10, rbx
jne 0x1800040c0
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov r11, qword [r10 + 0x20]
mov r9d, ebp
movsxd rax, dword [r11 + 0x3c]
mov edi, dword [rax + r11 + 0x88]
add rdi, r11
mov r8d, dword [rdi + 0x20]
mov r10d, dword [rdi + 0x24]
add r8, r11
mov ebx, dword [rdi + 0x18]
add r10, r11
test ebx, ebx
je 0x180004108
nop word [rax + rax]
mov edx, dword [r8]
mov ecx, ebp
add rdx, r11
movzx eax, byte [rdx]
test al, al
je 0x180004173
nop
ror ecx, 0xd
lea rdx, [rdx + 1]
movsx eax, al
add ecx, eax
movzx eax, byte [rdx]
test al, al
jne 0x180004160
cmp ecx, esi
je 0x18000418c
inc r9d
add r8, 4
add r10, 2
cmp r9d, ebx
jb 0x180004150
jmp 0x180004108
mov ecx, dword [rdi + 0x1c]
movzx edx, word [r10]
add rcx, r11
mov eax, dword [rcx + rdx*4]
add rax, r11
jmp 0x18000410a
Function at 0x1800044d0
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x48
mov rax, qword [0x18001f018]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp byte [0x180020cb9], 0
je 0x18000471a
xor ecx, ecx
mov qword [rsp + 0x40], rbx
mov byte [0x180020cb9], 0
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x180004576
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, 4
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180004576
mov eax, 0x1f0e
mov word [rbx + 0x40], ax
movabs rax, 0xb821cd09b4000eba
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x30]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rcx, qword [0x180020c90]
mov rbx, qword [rsp + 0x40]
test rcx, rcx
je 0x18000459a
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [0x180020c90], 0
cmp byte [0x180020cb8], 0
je 0x18000471a
mov byte [0x180020cb8], 0
call fcn.1800069a0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180006ec0
mov rax, qword [0x180020cb0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800045e3
lea rdx, [0x180002240]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020c98]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004605
lea rdx, [0x1800024d0]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020ce8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004627
lea rdx, [0x180002610]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020ca8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004649
lea rdx, [0x1800029f0]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020ca0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000466b
lea rdx, [0x180003010]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020cc0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x18000468d
lea rdx, [0x180003100]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020cc8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800046af
lea rdx, [0x1800031f0]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020cd0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800046d1
lea rdx, [0x180003280]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020cd8]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800046f3
lea rdx, [0x180003310]
lea rcx, [rsp + 0x30]
call fcn.180006600
mov rax, qword [0x180020ce0]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x180004715
lea rdx, [0x1800033a0]
lea rcx, [rsp + 0x30]
call fcn.180006600
call fcn.180006a10
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1800083c0
add rsp, 0x48
ret
Function at 0x1800048d0
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.180004b20
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x1800049ea
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004934
mov rax, qword [0x18001f008]
cmp qword [rsp + 0x20], rax
ja 0x180004934
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x1800048f6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009b00
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180004965
jmp 0x1800049ea
cmp dword [rsp + 0x50], 0x10000
jne 0x1800049cd
cmp qword [rsp + 0x48], 0x10000
jb 0x1800049cd
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 0x1800049ab
mov rax, qword [rsp + 0x28]
jmp 0x1800049ec
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x1800049bb
xor eax, eax
jmp 0x1800049ec
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x1800049e5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004b20
mov qword [rsp + 0x20], rax
jmp 0x1800048f6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180004a00
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.180004b60
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004b16
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180004a5b
mov rax, qword [0x18001f008]
cmp qword [rsp + 0x20], rax
ja 0x180004a5b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180004a1d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009b00
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180004a8c
jmp 0x180004b16
cmp dword [rsp + 0x50], 0x10000
jne 0x180004af4
cmp qword [rsp + 0x48], 0x10000
jb 0x180004af4
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 0x180004ad2
mov rax, qword [rsp + 0x28]
jmp 0x180004b18
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180004ae2
xor eax, eax
jmp 0x180004b18
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004b11
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004b60
mov qword [rsp + 0x20], rax
jmp 0x180004a1d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180004bb0
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.180005140
mov qword [rsp + 0x28], 0
cmp qword [0x18001fa98], 0
jne 0x180004bf8
cmp qword [0x18001fa90], 0
je 0x180004bf8
mov rax, qword [0x18001fa90]
mov qword [0x18001fa98], rax
cmp qword [0x18001fa98], 0
je 0x180004c9e
mov rax, qword [0x18001fa98]
cmp qword [rax + 0x10], 0
je 0x180004c9e
mov rax, qword [0x18001fa98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004c9e
mov rax, qword [0x18001fa98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004c9e
mov rax, qword [0x18001fa98]
mov rax, qword [rax + 0x10]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x38]
cmp qword [rsp + 0x28], rax
jb 0x180004c64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x180004c6b
xor eax, eax
jmp 0x180004e19
mov rax, qword [0x18001fa98]
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.180009b00
mov rax, qword [rsp + 0x28]
jmp 0x180004e19
mov rax, qword [0x18001fa90]
mov qword [0x18001fa98], rax
jmp 0x180004cc0
mov rax, qword [0x18001fa98]
mov rax, qword [rax + 8]
mov qword [0x18001fa98], rax
cmp qword [0x18001fa98], 0
je 0x180004d0d
cmp qword [0x18001fa98], 0
je 0x180004d0b
mov rax, qword [0x18001fa98]
cmp qword [rax + 0x10], 0
je 0x180004d0b
mov rax, qword [0x18001fa98]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x180004d0b
mov rax, qword [0x18001fa98]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x180004d0b
jmp 0x180004c3c
jmp 0x180004cae
mov rcx, qword [rsp + 0x60]
call fcn.180006fb0
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.180004e20
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004e17
mov rax, qword [rsp + 0x48]
mov qword [0x18001fa98], rax
mov rax, qword [0x18001fa98]
mov dword [rax], 0x52727464
mov rax, qword [0x18001fa98]
mov qword [rax + 0x10], 0
mov rax, qword [0x18001fa98]
mov rcx, qword [0x18001fa90]
mov qword [rax + 8], rcx
mov rax, qword [0x18001fa98]
mov qword [0x18001fa90], rax
mov qword [rsp + 0x40], 0
mov rax, qword [0x18001fa98]
add rax, 0x60
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x2a8
jmp 0x180004dc8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004e02
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 0x180004dbe
mov rax, qword [0x18001fa98]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x180004c3c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180005b30
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 0x180005b77
xor al, al
jmp 0x180005c19
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 0x180005ba1
xor al, al
jmp 0x180005c19
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 0x180005c11
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 0x180005c11
mov al, 1
jmp 0x180005c19
jmp 0x180005c17
xor al, al
add rsp, 0x78
ret

Function at 0x180005f20
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x18001fa90]
mov qword [rsp + 0x28], rax
jmp 0x180005f40
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005f6f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x180005f6d
call sub.KERNEL32.dll_GetLastError
jmp 0x180005f71
jmp 0x180005f32
xor eax, eax
add rsp, 0x38
ret
Function at 0x180006600
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 [0x18001faa8], eax
je 0x18000662d
mov eax, 0x10dd
jmp 0x180006846
cmp dword [0x18001faac], 0
je 0x180006641
mov eax, dword [0x18001faac]
jmp 0x180006846
cmp qword [rsp + 0x78], 0
jne 0x180006653
mov eax, 0x57
jmp 0x180006846
cmp qword [rsp + 0x70], 0
jne 0x180006665
mov eax, 6
jmp 0x180006846
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180006697
mov dword [rsp + 0x20], 6
mov eax, dword [rsp + 0x20]
mov dword [0x18001faac], eax
mov rax, qword [rsp + 0x70]
mov qword [0x18001fab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180006846
mov ecx, 0x30
call fcn.1800083e8
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180006709
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x18001faac], eax
cmp qword [rsp + 0x30], 0
je 0x1800066f4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.1800083e0
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x18001fab0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180006846
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.1800065d0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.1800065d0
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 0x180006766
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180006783
mov dword [rsp + 0x20], 9
cmp dword [0x18001faa0], 0
je 0x18000677e
jmp 0x1800066ca
jmp 0x1800066c0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x1800067b0
mov dword [rsp + 0x20], 9
cmp dword [0x18001faa0], 0
je 0x1800067ab
jmp 0x1800066ca
jmp 0x1800066c0
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 0x1800067e7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x1800066c0
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 [0x18001fac0]
mov qword [rax], rcx
mov rax, qword [rsp + 0x30]
mov qword [0x18001fac0], rax
xor eax, eax
add rsp, 0x68
ret
Function at 0x180006850
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x18001faa8], eax
je 0x18000686b
mov eax, 0x10dd
jmp 0x180006990
mov rax, qword [0x18001fac0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180006915
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 0x1800068e0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x1800068e0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180005280
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.1800083e0
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180006877
mov qword [0x18001fac0], 0
call fcn.180005ce0
mov rax, qword [0x18001fab8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180006979
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.1800083e0
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180006931
mov qword [0x18001fab8], 0
mov dword [0x18001faa8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180006ec0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x18001faac], 0
je 0x180006edd
mov eax, dword [0x18001faac]
jmp 0x180006fa3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180006ef0
xor eax, eax
jmp 0x180006fa3
mov ecx, 0x10
call fcn.1800083e8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x180006f5e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180006f43
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.1800083e0
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x18001faac], eax
mov qword [0x18001fab0], 0
mov eax, dword [rsp + 0x20]
jmp 0x180006fa3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180006f78
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006f19
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x18001fab8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x18001fab8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c43a0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c43b0]
mov dword [rax], 1
mov rax, qword [0x1400c43c0]
mov dword [rax], 1
mov rax, qword [0x1400c4320]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400c4390]
mov dword [0x1400d700c], 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 [0x1400c4470]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400c4450]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400c4300]
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 [sym._matherr]
call sym.__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