joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000a707
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140018280]
jne 0x14000717a
rol rcx, 0x10
test cx, 0xffff
jne 0x140007176
repz ret
ror rcx, 0x10
jmp 0x14000a660
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14001c840]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x14001c938]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14000a6e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14001c840]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14000a707
mov rax, qword [rsp + 0x88]
mov qword [0x14001c938], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14001c8d8], rax
mov rax, qword [0x14001c938]
mov qword [0x14001c7b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14001c8c0], rax
mov dword [0x14001c7a0], 0xc0000409
mov dword [0x14001c7a4], 1
mov rax, qword [0x140018280]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140018288]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14001c838], eax
mov ecx, 1
call fcn.14000f89c
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140014a70]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14001c838], 0
jne 0x14000a78e
mov ecx, 1
call fcn.14000f89c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14000f024
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14000b068
xor ebx, ebx
mov rdi, rax
cmp qword [0x14001d168], rbx
jne 0x14000f12a
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14000f1ff
lea rdx, [0x140015560]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000f1ff
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14001d168], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14001d170], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x14001d178], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x14001d188], rax
test rax, rax
je 0x14000f121
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x14001d180], rax
jmp 0x14000f131
mov rax, qword [0x14001d180]
jmp 0x14000f138
mov rax, qword [0x14001d180]
mov r11, qword [0x14001d188]
cmp rax, rdi
je 0x14000f1a0
cmp r11, rdi
je 0x14000f1a0
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x14001d188]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14000f1a0
test rax, rax
je 0x14000f1a0
call rsi
test rax, rax
je 0x14000f19a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14000f19a
test byte [rsp + 0x38], 1
jne 0x14000f1a0
bts ebp, 0x15
jmp 0x14000f1de
mov rcx, qword [0x14001d170]
cmp rcx, rdi
je 0x14000f1de
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f1de
call rax
mov rbx, rax
test rax, rax
je 0x14000f1de
mov rcx, qword [0x14001d178]
cmp rcx, rdi
je 0x14000f1de
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f1de
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14001d168]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14000f1ff
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14000f201
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
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 0x1800035dc
Capabilities:
Create thread

Disassembly:
sub rsp, 0x248
cmp edx, 1
jne 0x180003663
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x18000365f
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.180003c38
test eax, eax
jne 0x18000365f
call fcn.180003b80
test eax, eax
je 0x18000365f
cmp dword [0x180022d08], 0
jne 0x18000366c
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 0x18000366c
xor eax, eax
jmp 0x180003671
test edx, edx
jne 0x18000366c
call fcn.180003ac8
mov eax, 1
add rsp, 0x248
ret
Function at 0x1800039d4
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 0x180003a33
cmp si, word [r8 + 0x48]
jae 0x180003a33
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 0x180003a15
cmp r9d, ebx
je 0x180003a52
mov r8, qword [r8]
cmp r8, r11
jne 0x1800039fd
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 0x180003a40
mov r10d, dword [rdx]
mov r11d, esi
add r10, r9
jmp 0x180003a93
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x180003a86
cmp r11d, edi
je 0x180003ab1
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r8 + 0x18]
jb 0x180003a7b
jmp 0x180003a40
movzx edx, word [rcx]
mov ecx, dword [r8 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180003a42

Function at 0x180003b80
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 0x180003c28
movzx eax, word [rax + 0x40]
mov ecx, 0x7268
sub ax, cx
cmp ax, 0xf
ja 0x180003bbc
mov ecx, 0x8801
bt ecx, eax
jb 0x180003c28
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 0x180003c28
mov eax, 0x7277
mov word [rbx + 0x40], ax
lea rax, [0x180003b78]
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 0x180003dd0
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.180004020
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003eea
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003e34
mov rax, qword [0x180021008]
cmp qword [rsp + 0x20], rax
ja 0x180003e34
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003df6
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009060
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003e65
jmp 0x180003eea
cmp dword [rsp + 0x50], 0x10000
jne 0x180003ecd
cmp qword [rsp + 0x48], 0x10000
jb 0x180003ecd
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 0x180003eab
mov rax, qword [rsp + 0x28]
jmp 0x180003eec
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003ebb
xor eax, eax
jmp 0x180003eec
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003ee5
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004020
mov qword [rsp + 0x20], rax
jmp 0x180003df6
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003f00
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.180004060
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004016
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003f5b
mov rax, qword [0x180021008]
cmp qword [rsp + 0x20], rax
ja 0x180003f5b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003f1d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009060
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003f8c
jmp 0x180004016
cmp dword [rsp + 0x50], 0x10000
jne 0x180003ff4
cmp qword [rsp + 0x48], 0x10000
jb 0x180003ff4
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 0x180003fd2
mov rax, qword [rsp + 0x28]
jmp 0x180004018
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003fe2
xor eax, eax
jmp 0x180004018
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004011
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.180004060
mov qword [rsp + 0x20], rax
jmp 0x180003f1d
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800040b0
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.180004640
mov qword [rsp + 0x28], 0
cmp qword [0x180021ac8], 0
jne 0x1800040f8
cmp qword [0x180021ac0], 0
je 0x1800040f8
mov rax, qword [0x180021ac0]
mov qword [0x180021ac8], rax
cmp qword [0x180021ac8], 0
je 0x18000419e
mov rax, qword [0x180021ac8]
cmp qword [rax + 0x10], 0
je 0x18000419e
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000419e
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000419e
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 0x180004164
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x28], rax
jbe 0x18000416b
xor eax, eax
jmp 0x180004319
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.180009060
mov rax, qword [rsp + 0x28]
jmp 0x180004319
mov rax, qword [0x180021ac0]
mov qword [0x180021ac8], rax
jmp 0x1800041c0
mov rax, qword [0x180021ac8]
mov rax, qword [rax + 8]
mov qword [0x180021ac8], rax
cmp qword [0x180021ac8], 0
je 0x18000420d
cmp qword [0x180021ac8], 0
je 0x18000420b
mov rax, qword [0x180021ac8]
cmp qword [rax + 0x10], 0
je 0x18000420b
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x38]
cmp qword [rax + 0x10], rcx
jb 0x18000420b
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x30]
cmp qword [rax + 0x10], rcx
ja 0x18000420b
jmp 0x18000413c
jmp 0x1800041ae
mov rcx, qword [rsp + 0x60]
call fcn.1800064b0
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.180004320
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
je 0x180004317
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 0x1800042c8
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jle 0x180004302
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 0x1800042be
mov rax, qword [0x180021ac8]
mov rcx, qword [rsp + 0x40]
mov qword [rax + 0x10], rcx
jmp 0x18000413c
xor eax, eax
add rsp, 0x58
ret
Function at 0x180005030
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 0x180005077
xor al, al
jmp 0x180005119
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 0x1800050a1
xor al, al
jmp 0x180005119
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 0x180005111
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 0x180005111
mov al, 1
jmp 0x180005119
jmp 0x180005117
xor al, al
add rsp, 0x78
ret

Function at 0x180005420
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180021ac0]
mov qword [rsp + 0x28], rax
jmp 0x180005440
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x18000546f
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x18000546d
call sub.KERNEL32.dll_GetLastError
jmp 0x180005471
jmp 0x180005432
xor eax, eax
add rsp, 0x38
ret
Function at 0x180005b00
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 0x180005b2d
mov eax, 0x10dd
jmp 0x180005d46
cmp dword [0x180021adc], 0
je 0x180005b41
mov eax, dword [0x180021adc]
jmp 0x180005d46
cmp qword [rsp + 0x78], 0
jne 0x180005b53
mov eax, 0x57
jmp 0x180005d46
cmp qword [rsp + 0x70], 0
jne 0x180005b65
mov eax, 6
jmp 0x180005d46
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180005b97
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 0x180005d46
mov ecx, 0x30
call fcn.180007c60
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180005c09
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
cmp qword [rsp + 0x30], 0
je 0x180005bf4
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180007c9c
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180021ae0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005d46
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180005ad0
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180005ad0
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 0x180005c66
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180005c83
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x180005c7e
jmp 0x180005bca
jmp 0x180005bc0
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180005cb0
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x180005cab
jmp 0x180005bca
jmp 0x180005bc0
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 0x180005ce7
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180005bc0
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 0x180005d50
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180021ad8], eax
je 0x180005d6b
mov eax, 0x10dd
jmp 0x180005e90
mov rax, qword [0x180021af0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005e15
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 0x180005de0
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005de0
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.180004780
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.180007c9c
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005d77
mov qword [0x180021af0], 0
call fcn.1800051e0
mov rax, qword [0x180021ae8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005e79
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.180007c9c
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005e31
mov qword [0x180021ae8], 0
mov dword [0x180021ad8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x1800063c0
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180021adc], 0
je 0x1800063dd
mov eax, dword [0x180021adc]
jmp 0x1800064a3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x1800063f0
xor eax, eax
jmp 0x1800064a3
mov ecx, 0x10
call fcn.180007c60
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000645e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180006443
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180007c9c
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
mov qword [0x180021ae0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800064a3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x180006478
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006419
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x50]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [0x180021ae8]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov qword [0x180021ae8], rax
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000f578
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 0x18000f5a8
xor eax, eax
jmp 0x18000f66b
mov rbp, rbx
cmp word [rax], si
je 0x18000f5cd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000f5b4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000f5b0
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.18000f4c8
movsxd r14, eax
test eax, eax
jne 0x18000f60b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000f5a1
mov rcx, r14
call fcn.18000ce1c
mov rdi, rax
test rax, rax
jne 0x18000f624
xor ecx, ecx
call fcn.18000db30
jmp 0x18000f600
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.18000f4c8
test eax, eax
jne 0x18000f655
mov rcx, rdi
call fcn.18000db30
jmp 0x18000f65f
xor ecx, ecx
call fcn.18000db30
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 0x14006f750
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14006f778
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14006f778
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret