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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call fcn.100155000
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.10000c1e0
add rsp, 0x28
jmp 0x10000bae0
Function at 0x1800010a0
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x50]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001124
lea r8, [rsp + 0x58]
lea rdx, [0x18000f1f0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov rcx, qword [rsp + 0x50]
test eax, eax
je 0x18000111e
mov rax, qword [rsp + 0x58]
lea r8, [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x34], rax
xor eax, eax
mov dword [rsp + 0x30], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x18000112b
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov eax, 1
add rsp, 0x48
ret
Function at 0x180001b70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x180001ba3
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180001be7
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x180001be2
cmp rbx, r11
jae 0x180001be7
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x180001bd0
cmp rbx, r11
jb 0x180001beb
xor eax, eax
jmp 0x180001bf7
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x180001c30
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x48
xor eax, eax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x3c], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov edx, 0x38
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001cd7
lea r8, [rsp + 0x34]
lea rdx, [0x18000f1f0]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x180001ccc
mov rcx, qword [rsp + 0x58]
xor eax, eax
lea r8, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x180001ccc
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x48
ret
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
add rsp, 0x48
ret

Function at 0x180001cf0
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x58
xor eax, eax
lea rcx, [r11 - 0x38]
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
test rcx, rcx
je 0x180001d50
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x180012d20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rsp + 0x20]
test rax, rax
je 0x180001d45
call rax
jmp 0x180001d4b
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov rax, qword [rsp + 0x20]
cmp ax, 9
je 0x180001d61
cmp ax, 6
mov eax, 0x20
jne 0x180001d66
mov eax, 0x40
add rsp, 0x58
ret
Function at 0x180001d70
Capabilities:
Acquire debug privileges
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
test rdx, rdx
je 0x180001d97
test r8, r8
je 0x180001d97
test rcx, rcx
jne 0x180001da9
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, [0x18000f1f0]
call fcn.180001c30
call fcn.180001cf0
cmp eax, 0x20
jne 0x180001df4
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001ee0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x180012d48]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001d97
mov qword [rsp + 0x40], rbp
lea rdx, [rsp + 0x48]
xor ebp, ebp
mov rcx, rsi
mov dword [rsp + 0x48], ebp
call rax
test eax, eax
je 0x180001ebb
cmp rdi, 0x1000
jb 0x180001ebb
mov eax, 0x5a4d
cmp ax, word [rbx]
jne 0x180001ebb
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x180001ebb
mov ecx, 0x14c
cmp word [rax + rbx + 4], cx
mov eax, dword [rsp + 0x48]
sete bpl
cmp eax, ebp
jne 0x180001ebb
test eax, eax
jne 0x180001e94
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180001ee0
jmp 0x180001ebd
mov rax, qword [rsp + 0x68]
xor r9d, r9d
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x60]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180002620
jmp 0x180001ebd
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180001ee0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x50
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rbx
mov r14, rbx
mov r12, rbx
test rcx, rcx
jne 0x180001f12
xor eax, eax
jmp 0x180002156
mov r9d, 0x3000
xor edx, edx
mov qword [rsp + 0x88], r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r13, rax
test rax, rax
je 0x18000214c
lea rax, [rsp + 0x40]
mov r9, rdi
mov r8, rbp
mov rdx, r13
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000214c
mov rbp, qword [rsp + 0xa0]
test rbp, rbp
je 0x180001fcc
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
mov r9d, 0x3000
xor edx, edx
not rcx
mov dword [rsp + 0x20], 0x40
lea rdi, [rcx - 1]
mov r8, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r14, rax
test rax, rax
je 0x18000214c
lea rax, [rsp + 0x40]
lea r9, [rdi + 1]
mov r8, rbp
mov rdx, r14
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000214c
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x180002038
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
mov r9d, 0x3000
xor edx, edx
not rcx
mov dword [rsp + 0x20], 0x40
lea rdi, [rcx + rcx]
mov rcx, rsi
mov r8, rdi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r12, rax
test rax, rax
je 0x18000214c
lea rax, [rsp + 0x40]
mov r9, rdi
mov r8, rbp
mov rdx, r12
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000214c
xor edx, edx
mov r9d, 0x3000
mov rcx, rsi
lea r8d, [rdx + 0x40]
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x18000214c
mov ecx, 0x20
call fcn.180003400
mov rdi, rax
test rax, rax
je 0x18000214c
mov qword [rax], r13
mov qword [rax + 8], rbx
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], r12
lea rax, [rsp + 0x40]
mov r9d, 0x20
mov r8, rdi
mov rdx, rbp
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x1800020b6
mov rcx, rdi
call fcn.180004080
jmp 0x18000214c
mov rcx, rdi
call fcn.180004080
xor edx, edx
mov r9d, 0x3000
mov r8d, 0x22f3
mov rcx, rsi
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rdi, rax
test rax, rax
je 0x18000214c
lea rax, [rsp + 0x40]
lea r8, [0x180018460]
mov r9d, 0x22f3
mov rdx, rdi
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x18000214c
lea rax, [rsp + 0x80]
mov r9, rdi
xor r8d, r8d
mov qword [rsp + 0x30], rax
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x80], ebx
call fcn.180002c70
test rax, rax
je 0x18000214c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 1
mov r13, qword [rsp + 0x88]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002930
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
mov eax, 0x1f80
call fcn.18000c520
sub rsp, rax
mov rax, qword [0x180015080]
xor rax, rsp
mov qword [rsp + 0x1f70], rax
xor ebx, ebx
mov rsi, rcx
test rcx, rcx
je 0x180002b70
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x180002b70
movsxd rbp, dword [rcx + 0x3c]
add rbp, rcx
cmp dword [rbp], 0x4550
jne 0x180002b70
mov edi, dword [rbp + 0x50]
lea r9d, [rbx + 0x40]
mov r8d, 0x1000
mov rdx, rdi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r13, rax
test rax, rax
je 0x180002b8e
mov r8, rdi
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x1fa8], r12
call fcn.180003df0
movzx r12d, word [rbp + 0x14]
mov r8d, dword [r12 + rbp + 0x24]
movzx edi, word [rbp + 6]
mov rdx, rsi
mov rcx, r13
call fcn.180004e00
mov r11, rdi
test edi, edi
jle 0x180002a0e
lea rdi, [r12 + rbp + 0x2c]
mov r12, r11
nop
mov edx, dword [rdi]
mov ecx, dword [rdi - 8]
mov r8d, dword [rdi - 4]
add rdx, rsi
add rcx, r13
call fcn.180004e00
add rdi, 0x28
sub r12, 1
jne 0x1800029f0
movzx r8d, word [rbp + 6]
mov r12, qword [rsp + 0x1fa8]
mov edx, ebx
test r8d, r8d
jle 0x180002b78
nop word [rax + rax]
movsxd rax, edx
lea rdi, [0x180012d58]
lea rcx, [rax + rax*4]
lea rax, [rbp + rcx*8 + 0xf8]
mov ecx, 6
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x180002a5e
inc edx
cmp edx, r8d
jl 0x180002a30
jmp 0x180002b78
mov edi, dword [rax + 0xc]
mov ecx, dword [rax + 8]
add rdi, r13
je 0x180002b78
test ecx, ecx
je 0x180002b78
mov r9, rcx
mov byte [rsp + 0x1f68], 0xcc
mov byte [rsp + 0x1f69], 0xcc
sub r9, 0x12
mov byte [rsp + 0x1f6a], 0xcc
mov byte [rsp + 0x1f6b], 0x8b
mov byte [rsp + 0x1f6c], 0xff
mov byte [rsp + 0x1f6d], 0x55
mov byte [rsp + 0x1f6e], 0x8b
mov byte [rsp + 0x1f6f], 0xec
mov byte [rsp + 0x1f60], 0x90
mov byte [rsp + 0x1f61], 0x90
mov byte [rsp + 0x1f62], 0x90
mov byte [rsp + 0x1f63], 0x8b
mov byte [rsp + 0x1f64], 0xff
mov byte [rsp + 0x1f65], 0x55
mov byte [rsp + 0x1f66], 0x8b
mov byte [rsp + 0x1f67], 0xec
mov esi, ebx
je 0x180002b44
mov rcx, qword [rsp + 0x1f68]
mov rax, qword [rsp + 0x1f60]
mov rdx, rbx
lea r8, [rsp + 0x20]
cmp qword [rdx + rdi], rcx
je 0x180002b24
cmp qword [rdx + rdi], rax
jne 0x180002b3b
cmp ebx, 0x3e7
jae 0x180002b3b
lea rdx, [rdx + rdi + 3]
inc ebx
add r8, 8
mov qword [r8 - 8], rdx
inc esi
mov edx, esi
cmp rdx, r9
jb 0x180002b18
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
call fcn.1800036cc
lea ecx, [rax + rdi]
call fcn.1800036b4
call fcn.1800036cc
lea ecx, [rbx - 2]
cdq
idiv ecx
movsxd rax, edx
mov ebx, dword [rsp + rax*8 + 0x20]
sub ebx, r13d
jmp 0x180002b78
mov r13, qword [rsp + 0x1f60]
test r13, r13
je 0x180002b8e
xor edx, edx
mov r8d, 0x8000
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, ebx
mov rcx, qword [rsp + 0x1f70]
xor rcx, rsp
call fcn.180003420
lea r11, [rsp + 0x1f80]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop rdi
pop rsi
ret
Function at 0x180002bc0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
lea rcx, str.C:WindowsSyswow64_ntdll.dll
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea r8d, [rbx + 7]
mov edx, 0x80000000
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x180002c63
lea rdx, [rsp + 0x60]
mov rcx, rax
mov qword [rsp + 0x50], rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rcx, qword [rsp + 0x60]
call fcn.18000390c
mov rsi, rax
test rax, rax
je 0x180002c55
mov r8d, dword [rsp + 0x60]
lea r9, [rsp + 0x58]
mov rdx, rax
mov rcx, rdi
mov dword [rsp + 0x58], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rsi
call fcn.180002930
mov rcx, rsi
mov ebx, eax
call fcn.180003408
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180004d4b
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x180015080]
jne 0x18000343a
rol rcx, 0x10
test cx, 0xffff
jne 0x180003436
repz ret
ror rcx, 0x10
jmp 0x180004ca4
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x18001b270]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x18001b368]
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 0x180004d29
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, [0x18001b270]
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 0x180004d4b
mov rax, qword [rsp + 0x88]
mov qword [0x18001b368], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x18001b308], rax
mov rax, qword [0x18001b368]
mov qword [0x18001b1e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x18001b2f0], rax
mov dword [0x18001b1d0], 0xc0000409
mov dword [0x18001b1d4], 1
mov rax, qword [0x180015080]
mov qword [rsp + 0x68], rax
mov rax, qword [0x180015088]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x18001b268], eax
mov ecx, 1
call fcn.180005810
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000d5f8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x18001b268], 0
jne 0x180004dd2
mov ecx, 1
call fcn.180005810
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 0x180005d14
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x180005b88
Function at 0x18000c208
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.180005338
xor ebx, ebx
mov rdi, rax
cmp qword [0x18001bf60], rbx
jne 0x18000c30e
lea rcx, [0x18000f188]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x18000c3e3
lea rdx, [0x18000f178]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000c3e3
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18000f168]
mov rcx, rsi
mov qword [0x18001bf60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18000f150]
mov rcx, rsi
mov qword [0x18001bf68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x18000f130]
mov rcx, rsi
mov qword [0x18001bf70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x18001bf80], rax
test rax, rax
je 0x18000c305
lea rdx, [0x18000f118]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x18001bf78], rax
jmp 0x18000c315
mov rax, qword [0x18001bf78]
jmp 0x18000c31c
mov rax, qword [0x18001bf78]
mov r11, qword [0x18001bf80]
cmp rax, rdi
je 0x18000c384
cmp r11, rdi
je 0x18000c384
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x18001bf80]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x18000c384
test rax, rax
je 0x18000c384
call rsi
test rax, rax
je 0x18000c37e
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 0x18000c37e
test byte [rsp + 0x38], 1
jne 0x18000c384
bts ebp, 0x15
jmp 0x18000c3c2
mov rcx, qword [0x18001bf68]
cmp rcx, rdi
je 0x18000c3c2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18000c3c2
call rax
mov rbx, rax
test rax, rax
je 0x18000c3c2
mov rcx, qword [0x18001bf70]
cmp rcx, rdi
je 0x18000c3c2
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18000c3c2
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x18001bf60]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x18000c3e3
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x18000c3e5
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 0x1400496f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400496fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14004970d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400496f5
lea eax, [rcx + 1]
jmp 0x14004971b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14004972e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140049714
sub eax, 3
jb 0x14004974e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14004979d
sar eax, 1
movsxd rbp, eax
jb 0x140049784
jmp 0x14004975c
add ebx, ebx
jne 0x14004975a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140049784
inc ecx
add ebx, ebx
jne 0x14004976a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140049784
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14004977d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14004976c
add ecx, 2
jmp 0x140049789
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400496b2
jmp 0x1400496fd
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x27800
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400497ed
cmp rsi, rcx
jae 0x1400497f5
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400497d4
cmp al, 0x8f
ja 0x1400497d4
cmp byte [rsi - 2], 0xf
je 0x1400497da
sub al, 0xe8
cmp al, 1
ja 0x1400497be
cmp rsi, rcx
jae 0x1400497f5
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400497c4
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400497f5
lodsb al, byte [rsi]
jmp 0x1400497d4
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x47000]
mov eax, dword [rdi]
or eax, eax
je 0x140049852
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x49b3c]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140049802
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14004984c
mov qword [rbx], rax
add rbx, 8
jmp 0x140049822
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14004988c
cmp al, 0xef
ja 0x14004987e
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14004985e
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14004986d
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x20f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400498e0
sub rsp, 0xffffffffffffff80
jmp 0x140013ad0