joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000f3b8
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
and qword [rcx], 0
lea rdi, [rbp - 0x20]
and dword [rbp + 0x20], 0
mov r15, rcx
and qword [rdx], 0
xor eax, eax
mov word [rbp + 0x24], 0x500
mov ebx, 8
mov r14, rdx
mov edx, ebx
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
mov rax, qword gs:[0x30]
lea r8d, [rbx + 0x20]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
test rax, rax
jne 0x14000f42a
mov edi, 0xc000009a
jmp 0x14000f57d
mov ecx, 1
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
mov ecx, 2
mov edi, eax
call qword [sym.imp.ntdll.dll_RtlLengthRequiredSid]
add eax, 0x18
mov edx, ebx
add edi, eax
mov rax, qword gs:[0x30]
mov r8d, edi
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
jne 0x14000f475
mov edi, 0xc000009a
jmp 0x14000f561
mov r8d, 2
mov edx, edi
mov rcx, rbx
call qword [sym.imp.ntdll.dll_RtlCreateAcl]
mov edi, eax
test eax, eax
js 0x14000f545
mov r8b, 1
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edi, 0x10000000
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x12
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov r8b, 2
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlInitializeSid]
xor edx, edx
lea rcx, [rbp - 0x20]
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
mov edx, 1
lea rcx, [rbp - 0x20]
mov dword [rax], 0x20
call qword [sym.imp.ntdll.dll_RtlSubAuthoritySid]
lea r9, [rbp - 0x20]
mov r8d, edi
mov edx, 2
mov rcx, rbx
mov dword [rax], 0x220
call qword [sym.imp.ntdll.dll_RtlAddAccessAllowedAce]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlCreateSecurityDescriptor]
mov edi, eax
test eax, eax
js 0x14000f545
xor r9d, r9d
mov r8, rbx
mov dl, 1
mov rcx, rsi
call qword [sym.imp.ntdll.dll_RtlSetDaclSecurityDescriptor]
mov edi, eax
test eax, eax
jns 0x14000f581
mov rax, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword gs:[0x30]
mov r8, rsi
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor ebx, ebx
xor esi, esi
mov qword [r15], rsi
mov eax, edi
mov qword [r14], rbx
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
ret
Function at 0x14000f924
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
xor edi, edi
mov rsi, r8
mov rbp, rcx
mov r15d, edi
mov r9, qword [rax + 0x60]
mov r14, qword [r9 + 0x20]
mov r9, qword [r8 + 0x28]
mov rax, r9
test r9, r9
jne 0x14000f96d
mov r9d, edi
jmp 0x14000f979
add r9, 2
cmp word [r9], di
jne 0x14000f969
sub r9, rax
sar r9, 1
mov rax, qword [r8 + 0x30]
mov rcx, rax
test rax, rax
jne 0x14000f98e
mov rax, rdi
jmp 0x14000f999
add rax, 2
cmp word [rax], di
jne 0x14000f98a
sub rax, rcx
sar rax, 1
lea rcx, [rax + r9]
movzx eax, word [r14 + 0x38]
lea rbx, [rax + rcx*2]
test dl, dl
je 0x14000fab5
mov rcx, rbp
call fcn.14000bacc
test eax, eax
jne 0x14000f9cc
mov ecx, 0x54f
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000fb5d
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x14000fb52
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.140001498
lea rdx, [0x14003558c]
call fcn.1400013f4
mov rdx, qword [rsi + 0x28]
mov rcx, rbx
mov r14, rax
call fcn.1400013f4
mov r8d, dword [rsi + 0x38]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.14000fc98
test eax, eax
je 0x14000fa94
mov word [r14], di
mov rcx, rbx
mov rdx, qword [rsi + 0x30]
call fcn.1400013f4
mov r8d, dword [rsi + 0x3c]
mov rdx, rbx
mov rcx, qword [rbp + 0x10]
call fcn.14000fc98
test eax, eax
je 0x14000fa94
mov eax, dword [rsi + 0x4c]
lea rcx, [rsi + 8]
mov r8d, dword [rsi + 0x48]
mov r9, rsi
mov rdx, qword [rsi + 0x40]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call fcn.14000f7e4
mov r15d, eax
test eax, eax
jne 0x14000fa94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword gs:[0x30]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x14000fb52
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x40]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbp, rax
test rax, rax
je 0x14000fb52
movzx edx, word [r14 + 0x38]
mov rcx, rax
mov r8, qword [r14 + 0x40]
shr rdx, 1
mov r9, rdx
call fcn.140001498
lea rdx, [0x14003558c]
call fcn.1400013f4
mov rdx, qword [rsi + 0x28]
mov rcx, rbp
mov rbx, rax
call fcn.1400013f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov word [rbx], di
mov rcx, rbp
mov rdx, qword [rsi + 0x30]
call fcn.1400013f4
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rax, qword gs:[0x30]
mov r8, rbp
xor edx, edx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r15d, 1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r15d
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x14000fb78
Capabilities:
Access pe header

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, 0x30
mov edi, r9d
mov r12, r8
mov r15d, edx
mov r14, rcx
xor ebx, ebx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rsi, rax
test rax, rax
je 0x14000fc77
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ebx
mov rcx, r14
call section..text
mov rbp, rax
test rax, rax
je 0x14000fc77
mov rdx, r12
mov rcx, rax
call fcn.140001198
test rax, rax
je 0x14000fc66
sub eax, ebp
mov dword [rsi + 0x28], eax
test edi, edi
je 0x14000fbf8
mov eax, 0xdfff
and word [rsi + 0x16], ax
lea r8d, [r15 + 1]
mov r9, r14
shr r8d, 1
mov edx, ebx
je 0x14000fc20
movzx eax, word [r9]
lea r9, [r9 + 2]
add edx, eax
mov ecx, edx
movzx edx, dx
shr ecx, 0x10
add edx, ecx
add r8d, 0xffffffff
jne 0x14000fc06
mov edi, edx
mov rcx, r14
shr edi, 0x10
add di, dx
call qword [sym.imp.ntdll.dll_RtlImageNtHeader]
mov rcx, rax
test rax, rax
je 0x14000fc55
movzx eax, word [rax + 0x58]
cmp di, ax
adc ax, bx
sub di, ax
movzx eax, word [rcx + 0x5a]
cmp di, ax
adc ax, bx
sub di, ax
jmp 0x14000fc58
movzx edi, bx
movzx eax, di
mov ebx, 1
add eax, r15d
mov dword [rsi + 0x58], eax
xor edx, edx
mov r8d, 0x8000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rbp, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x14000fd4c
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x440
mov rbx, rcx
mov qword [rsp + 0x20], r9
xor eax, eax
lea rdi, [rsp + 0x30]
mov esi, edx
mov r9, r8
mov ecx, 0x410
lea r8, [0x140035b80]
rep stosb byte [rdi], al
lea rcx, [rsp + 0x30]
mov edx, 0x208
call fcn.140002530
cmp dword [rsp + 0x470], 0
je 0x14000fda6
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14000fdbb
test rbx, rbx
je 0x14000fdbb
mov r8d, esi
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.14000fc98
lea r11, [rsp + 0x440]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x14000fdd0
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x40
xor ebx, ebx
xor r9d, r9d
mov qword [rax - 0x18], rbx
xor r8d, r8d
mov dword [rax - 0x20], 0x80
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14000fe5f
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
mov r8d, 0x1000002
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov rsi, rax
test rax, rax
je 0x14000fe56
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
lea edx, [rbx + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x58]
mov rax, rbx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140010244
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
mov rbp, rsp
sub rsp, 0x30
and dword [rbp + 0x10], 0
lea rax, [rbp + 0x20]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rbp + 0x18], 8
lea rdx, str.HARDWARERESOURCEMAPSystem_ResourcesPhysical_Memory
mov rcx, 0xffffffff80000002
xor ebx, ebx
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140010312
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
and qword [rsp + 0x20], rbx
lea rdx, str..Translated
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140010308
cmp dword [rbp + 0x18], 8
jne 0x140010308
mov rax, qword gs:[0x30]
lea edx, [rbx + 8]
mov r8d, dword [rbp + 0x10]
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x140010308
mov rcx, qword [rbp + 0x20]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x18]
xor r8d, r8d
mov qword [rsp + 0x20], rbx
lea rdx, str..Translated
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rbp
ret

Function at 0x140010488
Capabilities:
Get windows directory from kuser_shared_data
Load ntoskrnl

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x470
xor esi, esi
lea r8, str._ws_system32_ws
and qword [rax + 8], rsi
lea rcx, [rsp + 0x60]
lea rax, str.ntoskrnl.exe
mov r9d, 0x7ffe0030
mov edx, 0x208
mov qword [rsp + 0x20], rax
xor r12d, r12d
call fcn.140002530
xor edx, edx
lea r8d, [rsi + 1]
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
xor r13d, r13d
mov rbx, rax
test rax, rax
setne r13b
test rax, rax
je 0x140010598
call fcn.14000f158
mov rbp, rax
test rax, rax
je 0x140010598
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.140011ae4
test eax, eax
je 0x140010598
lea rdx, [rsp + 0x4a0]
lea rcx, str.MiFillPteHierarchy
call fcn.140011b68
test eax, eax
je 0x140010598
mov r14, qword [rsp + 0x4a0]
lea rdi, [rsp + 0x30]
xor eax, eax
lea ecx, [rsi + 0x25]
rep stosb byte [rdi], al
lea r15, [rsi + r14]
mov edi, esi
mov rcx, r15
lea rdx, [rsp + 0x30]
call fcn.140004078
test dword [rsp + 0x51], 0x1000
jne 0x140010598
movzx eax, byte [rsp + 0x30]
cmp al, 0xa
jne 0x140010582
mov ecx, 0xb849
cmp word [r15], cx
je 0x14001058b
add esi, eax
cmp esi, 0x40
jae 0x140010598
jmp 0x140010551
sub rdi, rbx
lea r12, [rbp + 2]
add r12, rdi
add r12, r14
test r13d, r13d
je 0x1400105a6
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea r11, [rsp + 0x470]
mov rax, r12
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140011f98
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
xor esi, esi
mov rbx, rcx
mov r8, rcx
test rcx, rcx
jne 0x140011fb9
mov r8d, esi
jmp 0x140011fce
cmp word [rcx], si
je 0x140011fc8
add r8, 2
cmp word [r8], si
jne 0x140011fbe
sub r8, rbx
sar r8, 1
mov rax, qword gs:[0x30]
lea r8, [r8*2 + 0x208]
mov edx, 8
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
jne 0x140012005
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x140012024
mov r9d, 0x7ffe0030
mov qword [rsp + 0x20], rbx
lea r8, str._ws_system32drivers_ws.sys
mov edx, 0x208
mov rcx, rdi
call fcn.140002530
mov rbx, qword [rsp + 0x40]
mov rax, rdi
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140012ef0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140012f3a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140012f3a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140012f3a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140012f3a
cmp dword [rcx + 0x84], 0xe
jbe 0x140012f3a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140012f3c
xor al, al
add rsp, 0x28
ret

Function at 0x14001d480
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001d270
Function at 0x140022908
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 0x140022938
xor eax, eax
jmp 0x1400229fb
mov rbp, rbx
cmp word [rax], si
je 0x14002295d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140022944
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140022940
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.140022858
movsxd r14, eax
test eax, eax
jne 0x14002299b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140022931
mov rcx, r14
call fcn.14001ef7c
mov rdi, rax
test rax, rax
jne 0x1400229b4
xor ecx, ecx
call fcn.14001e308
jmp 0x140022990
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.140022858
test eax, eax
jne 0x1400229e5
mov rcx, rdi
call fcn.14001e308
jmp 0x1400229ef
xor ecx, ecx
call fcn.14001e308
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 0x140027ebc
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.14002195c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140027f46
cmp byte [rbp - 0x21], r15b
je 0x140027f41
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140027f7c
call fcn.14001e55c
test eax, eax
jne 0x140027f68
cmp byte [rbp - 0x21], r15b
je 0x140027f60
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140027f7c
cmp byte [rbp - 0x21], r15b
je 0x140027f79
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.140020f38
test eax, eax
jne 0x14002801c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14002195c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140027fbb
cmp byte [rbp - 0x21], r15b
je 0x140027ff0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140027ff0
call fcn.14001e55c
test eax, eax
jne 0x140027fdc
cmp byte [rbp - 0x21], r15b
je 0x140027fd5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140027ff0
cmp byte [rbp - 0x21], r15b
je 0x140027fed
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.140020f38
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002801c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002801f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002802d
mov rcx, rdi
call fcn.14001e308
cmp byte [rbp + 0x3f], r15b
je 0x14002803c
mov rcx, qword [rbp + 0x27]
call fcn.14001e308
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 0x14002a5e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002a608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002a608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800014f4
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
dec edx
jne 0x18000151a
and qword [rsp + 0x28], 0
and dword [rsp + 0x20], edx
lea r8, [0x18000104c]
xor edx, edx
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret

Function at 0x180007d4c
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800125e0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180004668
xor ebx, ebx
cmp qword [0x180014030], rbx
mov rdi, rax
jne 0x180007e5f
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x180007f36
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180007f36
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x180014030], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x180014038], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x180014040], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x180014050], rax
test rax, rax
je 0x180007e56
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x180014048], rax
jmp 0x180007e66
mov rax, qword [0x180014048]
jmp 0x180007e6d
mov rax, qword [0x180014048]
mov r11, qword [0x180014050]
cmp rax, rdi
je 0x180007ed4
cmp r11, rdi
je 0x180007ed4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x180014050]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x180007ed4
test rax, rax
je 0x180007ed4
call rsi
test rax, rax
je 0x180007ece
lea rcx, [rsp + 0x30]
mov r9d, recv
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180007ece
test byte [rsp + 0x40], 1
jne 0x180007ed4
bts ebp, 0x15
jmp 0x180007f14
mov rcx, qword [0x180014038]
cmp rcx, rdi
je 0x180007f14
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007f14
call rax
mov rbx, rax
test rax, rax
je 0x180007f14
mov rcx, qword [0x180014040]
cmp rcx, rdi
je 0x180007f14
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007f14
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x180014030]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x180007f36
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x180007f38
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1800075b0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180009a47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800125e0]
jne 0x1800075ca
rol rcx, 0x10
test cx, 0xffff
jne 0x1800075c6
repz ret
ror rcx, 0x10
jmp 0x1800099a0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180014100]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800141f8]
mov qword [rsp + 0x58], rax
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 0x180009a25
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, [0x180014100]
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 0x180009a47
mov rax, qword [rsp + 0x88]
mov qword [0x1800141f8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180014198], rax
mov rax, qword [0x1800141f8]
mov qword [0x180014070], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180014180], rax
mov dword [0x180014060], 0xc0000409
mov dword [0x180014064], 1
mov rax, qword [0x1800125e0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800125e8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800140f8], eax
mov ecx, 1
call fcn.1800075d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18000f6f0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800140f8], 0
jne 0x180009ace
mov ecx, 1
call fcn.1800075d0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret