joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001127b
Capabilities:
Allocate or change rwx memory
Create thread
Spawn thread to rwx shellcode

Disassembly:
jmp 0x140011af0
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x22
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x14001e0c0]
xor rax, rbp
mov qword [rbp + 0x138], rax
lea rcx, [0x1400230a2]
call fcn.14001138e
nop
mov qword [rbp + 8], 0
mov qword [rbp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
lea rcx, str._i__Injecting_Shellcode_The_Local_Process_Of_Pid:__d__n
call fcn.1400111a4
nop
lea rcx, str.___Press__Enter__To_Decrypt_...
call fcn.1400111a4
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
lea rcx, str._i__Decrypting_...
call fcn.1400111a4
nop
lea r9, [rbp + 0x28]
lea r8, [rbp + 8]
mov edx, 0x11
lea rcx, section..data
call fcn.14001103c
test eax, eax
jne 0x140011b9b
mov eax, 0xffffffff
jmp 0x140011d0a
lea rcx, str.___DONE___n
call fcn.1400111a4
nop
lea rcx, str.___Press__Enter__To_Allocate_...
call fcn.1400111a4
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
mov r9d, 4
mov r8d, 0x3000
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x140011bfe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAlloc_Failed_With_Error_:__d__n
call fcn.1400111a4
nop
mov eax, 0xffffffff
jmp 0x140011d0a
mov rdx, qword [rbp + 0x48]
lea rcx, str._i__Allocated_Memory_At_:_0x_p__n
call fcn.1400111a4
nop
lea rcx, str.___Press__Enter__To_Write_Payload_...
call fcn.1400111a4
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp + 0x48]
call fcn.1400111c2
nop
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, qword [rbp + 8]
call fcn.1400112d0
nop
mov dword [rbp + 0x64], 0
lea r9, [rbp + 0x64]
mov r8d, 0x40
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140011c87
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualProtect_Failed_With_Error_:__d__n
call fcn.1400111a4
nop
mov eax, 0xffffffff
jmp 0x140011d0a
lea rcx, str.___Press__Enter__To_Run_...
call fcn.1400111a4
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [rbp + 0x48]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x140011cde
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____CreateThread_Failed_With_Error_:__d__n
call fcn.1400111a4
nop
mov eax, 0xffffffff
jmp 0x140011d0a
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 8]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rcx, str.___Press__Enter__To_Quit_...
call fcn.1400111a4
nop
call qword [sym.imp.ucrtbased.dll_getchar]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001b060]
call fcn.140011320
mov rax, rdi
mov rcx, qword [rbp + 0x138]
xor rcx, rbp
call fcn.1400111bd
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x140011285
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014680
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400146a0
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400146b3
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400146dd
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x1400146f1
xor al, al
jmp 0x140014721
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014703
xor al, al
jmp 0x140014721
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001471f
xor al, al
jmp 0x140014721
mov al, 1
add rsp, 0x38
ret
Function at 0x140012570
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113b6
movzx eax, al
test eax, eax
jne 0x140012590
mov ecx, 7
call fcn.14001132a
nop
mov byte [rsp + 0x20], 0
call fcn.14001133e
mov byte [rsp + 0x21], al
cmp dword [0x14001e928], 1
jne 0x1400125b4
mov ecx, 7
call fcn.14001132a
nop
jmp 0x14001260c
cmp dword [0x14001e928], 0
jne 0x140012607
mov dword [0x14001e928], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111a9
test eax, eax
je 0x1400125e8
mov eax, 0xff
jmp 0x140012711
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011334
mov dword [0x14001e928], 2
jmp 0x14001260c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011316
call fcn.1400112a8
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012669
mov rcx, qword [rsp + 0x30]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x140012669
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112df
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14001269d
mov rcx, qword [rsp + 0x38]
call fcn.14001115e
movzx eax, al
test eax, eax
je 0x14001269d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011370
nop
call fcn.1400127c0
mov dword [rsp + 0x28], eax
call fcn.140011285
movzx eax, al
test eax, eax
jne 0x1400126bc
mov ecx, dword [rsp + 0x28]
call fcn.14001105a
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400126cb
call fcn.14001137a
nop
xor edx, edx
mov cl, 1
call fcn.14001114f
mov eax, dword [rsp + 0x28]
jmp 0x140012711
add rsp, 0x68
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 0x180003620
Capabilities:
Create thread

Disassembly:
sub rsp, 0x248
cmp edx, 1
jne 0x1800036a7
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x1800036a3
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov rcx, rax
call fcn.180003c74
test eax, eax
jne 0x1800036a3
call fcn.180003bc0
test eax, eax
je 0x1800036a3
cmp dword [0x180022d20], 0
jne 0x1800036b0
and qword [rsp + 0x28], 0
lea r8, [0x180001ac8]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
mov dword [0x180022d20], 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x180022cb0], rax
call fcn.180001d40
jmp 0x1800036b0
xor eax, eax
jmp 0x1800036b5
test edx, edx
jne 0x1800036b0
call fcn.180003b0c
mov eax, 1
add rsp, 0x248
ret
Function at 0x180003a18
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 0x180003a77
cmp si, word [r8 + 0x48]
jae 0x180003a77
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 0x180003a59
cmp r9d, ebx
je 0x180003a96
mov r8, qword [r8]
cmp r8, r11
jne 0x180003a41
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 0x180003a84
mov r10d, dword [rdx]
mov r11d, esi
add r10, r9
jmp 0x180003ad7
ror r11d, 0xd
movsx eax, al
add r11d, eax
inc r10
mov al, byte [r10]
test al, al
jne 0x180003aca
cmp r11d, edi
je 0x180003af5
inc ebx
add rdx, 4
add rcx, 2
cmp ebx, dword [r8 + 0x18]
jb 0x180003abf
jmp 0x180003a84
movzx edx, word [rcx]
mov ecx, dword [r8 + 0x1c]
add rcx, r9
mov eax, dword [rcx + rdx*4]
add rax, r9
jmp 0x180003a86

Function at 0x180003bc0
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 0x180003c65
movzx eax, word [rax + 0x40]
mov ecx, 0x7268
sub ax, cx
cmp ax, 0xf
ja 0x180003bfc
mov ecx, 0x8801
bt ecx, eax
jb 0x180003c65
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 0x180003c65
lea rax, [0x180003bb8]
mov word [rbx + 0x40], 0x7277
mov qword [rbx + 0x42], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov r8d, 0x200
mov rcx, rax
mov rdx, rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov edi, 1
mov rbx, qword [rsp + 0x48]
mov eax, edi
add rsp, 0x30
pop rdi
ret
Function at 0x180003e10
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.180004060
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
cmp qword [rsp + 0x20], rax
jbe 0x180003f2a
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003e74
mov rax, qword [0x180021008]
cmp qword [rsp + 0x20], rax
ja 0x180003e74
mov rax, qword [rsp + 0x20]
sub rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003e36
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009090
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003ea5
jmp 0x180003f2a
cmp dword [rsp + 0x50], 0x10000
jne 0x180003f0d
cmp qword [rsp + 0x48], 0x10000
jb 0x180003f0d
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 0x180003eeb
mov rax, qword [rsp + 0x28]
jmp 0x180003f2c
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180003efb
xor eax, eax
jmp 0x180003f2c
mov rax, qword [rsp + 0x20]
sub rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180003f25
mov rax, qword [rsp + 0x38]
sub rax, 0x10000
mov rcx, rax
call fcn.180004060
mov qword [rsp + 0x20], rax
jmp 0x180003e36
xor eax, eax
add rsp, 0x68
ret

Function at 0x180003f40
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.1800040a0
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x20], rax
jae 0x180004056
mov rax, qword [section..data]
cmp qword [rsp + 0x20], rax
jb 0x180003f9b
mov rax, qword [0x180021008]
cmp qword [rsp + 0x20], rax
ja 0x180003f9b
mov rax, qword [rsp + 0x20]
add rax, 0x8000000
mov qword [rsp + 0x20], rax
jmp 0x180003f5d
mov r8d, 0x30
xor edx, edx
lea rcx, [rsp + 0x30]
call fcn.180009090
mov r8d, 0x30
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call sub.KERNEL32.dll_VirtualQuery
test rax, rax
jne 0x180003fcc
jmp 0x180004056
cmp dword [rsp + 0x50], 0x10000
jne 0x180004034
cmp qword [rsp + 0x48], 0x10000
jb 0x180004034
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 0x180004012
mov rax, qword [rsp + 0x28]
jmp 0x180004058
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x677
jne 0x180004022
xor eax, eax
jmp 0x180004058
mov rax, qword [rsp + 0x20]
add rax, 0x10000
mov qword [rsp + 0x20], rax
jmp 0x180004051
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov rcx, rax
call fcn.1800040a0
mov qword [rsp + 0x20], rax
jmp 0x180003f5d
xor eax, eax
add rsp, 0x68
ret
Function at 0x180005070
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 0x1800050b7
xor al, al
jmp 0x180005159
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 0x1800050e1
xor al, al
jmp 0x180005159
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 0x180005151
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 0x180005151
mov al, 1
jmp 0x180005159
jmp 0x180005157
xor al, al
add rsp, 0x78
ret

Function at 0x180005460
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x38
mov rax, qword [0x180021ac0]
mov qword [rsp + 0x28], rax
jmp 0x180005480
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x1800054af
lea r9, [rsp + 0x20]
mov r8d, 0x40
mov edx, 0x10000
mov rcx, qword [rsp + 0x28]
call sub.KERNEL32.dll_VirtualProtect
test eax, eax
jne 0x1800054ad
call sub.KERNEL32.dll_GetLastError
jmp 0x1800054b1
jmp 0x180005472
xor eax, eax
add rsp, 0x38
ret
Function at 0x180005b40
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 0x180005b6d
mov eax, 0x10dd
jmp 0x180005d86
cmp dword [0x180021adc], 0
je 0x180005b81
mov eax, dword [0x180021adc]
jmp 0x180005d86
cmp qword [rsp + 0x78], 0
jne 0x180005b93
mov eax, 0x57
jmp 0x180005d86
cmp qword [rsp + 0x70], 0
jne 0x180005ba5
mov eax, 6
jmp 0x180005d86
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
jne 0x180005bd7
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 0x180005d86
mov ecx, 0x30
call fcn.180007ca0
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x180005c49
mov dword [rsp + 0x20], 8
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
cmp qword [rsp + 0x30], 0
je 0x180005c34
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov edx, 0x30
mov rcx, qword [rsp + 0x50]
call fcn.180007cdc
mov qword [rsp + 0x30], 0
mov rax, qword [rsp + 0x70]
mov qword [0x180021ae0], rax
mov eax, dword [rsp + 0x20]
jmp 0x180005d86
xor edx, edx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax]
call fcn.180005b10
mov qword [rsp + 0x38], rax
xor edx, edx
mov rcx, qword [rsp + 0x78]
call fcn.180005b10
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 0x180005ca6
movsxd rax, dword [rsp + 0x24]
cmp rax, 0x1e
jbe 0x180005cc3
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x180005cbe
jmp 0x180005c0a
jmp 0x180005c00
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x78]
cmp qword [rax + 0x50], rcx
je 0x180005cf0
mov dword [rsp + 0x20], 9
cmp dword [0x180021ad0], 0
je 0x180005ceb
jmp 0x180005c0a
jmp 0x180005c00
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 0x180005d27
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180005c00
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 0x180005d90
Capabilities:
Resume thread

Disassembly:
sub rsp, 0x68
call sub.KERNEL32.dll_GetCurrentThreadId
cmp dword [0x180021ad8], eax
je 0x180005dab
mov eax, 0x10dd
jmp 0x180005ed0
mov rax, qword [0x180021af0]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x180005e55
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 0x180005e20
mov rax, qword [rsp + 0x28]
cmp qword [rax + 0x20], 0
je 0x180005e20
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call fcn.1800047c0
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.180007cdc
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x28], rax
jmp 0x180005db7
mov qword [0x180021af0], 0
call fcn.180005220
mov rax, qword [0x180021ae8]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x180005eb9
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.180007cdc
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x30], rax
jmp 0x180005e71
mov qword [0x180021ae8], 0
mov dword [0x180021ad8], 0
xor eax, eax
add rsp, 0x68
ret
Function at 0x180006400
Capabilities:
Suspend thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
cmp dword [0x180021adc], 0
je 0x18000641d
mov eax, dword [0x180021adc]
jmp 0x1800064e3
call sub.KERNEL32.dll_GetCurrentThread
cmp qword [rsp + 0x50], rax
jne 0x180006430
xor eax, eax
jmp 0x1800064e3
mov ecx, 0x10
call fcn.180007ca0
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x18000649e
mov dword [rsp + 0x20], 8
cmp qword [rsp + 0x28], 0
je 0x180006483
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov edx, 0x10
mov rcx, qword [rsp + 0x38]
call fcn.180007cdc
mov qword [rsp + 0x28], 0
mov eax, dword [rsp + 0x20]
mov dword [0x180021adc], eax
mov qword [0x180021ae0], 0
mov eax, dword [rsp + 0x20]
jmp 0x1800064e3
mov rcx, qword [rsp + 0x50]
call sub.KERNEL32.dll_SuspendThread
cmp eax, 0xffffffff
jne 0x1800064b8
call sub.KERNEL32.dll_GetLastError
mov dword [rsp + 0x20], eax
jmp 0x180006459
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 0x18000f61c
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 0x18000f64c
xor eax, eax
jmp 0x18000f70f
mov rbp, rbx
cmp word [rax], si
je 0x18000f671
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000f658
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000f654
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.18000f53c
movsxd r14, eax
test eax, eax
jne 0x18000f6af
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000f645
mov rcx, r14
call fcn.18000ce3c
mov rdi, rax
test rax, rax
jne 0x18000f6c8
xor ecx, ecx
call fcn.18000db74
jmp 0x18000f6a4
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.18000f53c
test eax, eax
jne 0x18000f6f9
mov rcx, rdi
call fcn.18000db74
jmp 0x18000f703
xor ecx, ecx
call fcn.18000db74
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 0x1406c2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406c21df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406c2089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c206f
add dl, dl
jne 0x1406c2096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c20f6
xor eax, eax
add dl, dl
jne 0x1406c20a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406c21ad
add dl, dl
jne 0x1406c20b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c20c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c20d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c20dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406c20ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406c207e
mov eax, 1
add dl, dl
jne 0x1406c2106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406c2113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c20fb
sub eax, ebx
mov ebx, 1
jne 0x1406c214c
mov ecx, 1
add dl, dl
jne 0x1406c212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c2123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406c2168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406c2175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406c215d
cmp eax, 0x7d00
jae 0x1406c219b
cmp eax, 0x500
jb 0x1406c2196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c207e
cmp eax, 0x7f
ja 0x1406c219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406c207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406c21d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406c207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20