joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b7220
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1400f6700]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1400e1900]
mov rbp, rcx
call fcn.1400c0ba4
xor edi, edi
test rax, rax
je 0x1400b7306
mov ebx, edi
call fcn.1400ad428
mov r14d, dword [rax]
call fcn.1400ad428
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400c0af0
mov rsi, rax
test rax, rax
je 0x1400b7297
call fcn.1400ad428
mov dword [rax], r14d
jmp 0x1400b72c1
call fcn.1400ad428
cmp dword [rax], 0x22
jne 0x1400b72fe
call fcn.1400ad428
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400c0af0
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400b72fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400b72c5
cmp rax, 3
je 0x1400b72e0
mov rcx, rsi
call fcn.1400b717c
test al, al
je 0x1400b72f1
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400b72f1
mov dil, 1
mov rcx, rbx
call fcn.1400ad678
mov al, dil
jmp 0x1400b7308
mov rcx, rbx
call fcn.1400ad678
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400a1e40
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1400b7e98
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400b7ecf
call fcn.1400ad428
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.1400aa590
xor eax, eax
jmp 0x1400b7f5d
mov rdx, r9
mov rcx, r8
call fcn.1400b7e34
mov rbx, rax
test rax, rax
je 0x1400b7f5a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400b7d60]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400b7f47
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ad39c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400b7f2e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400b7f3d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400bc668
jmp 0x1400b7f5a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b7f57
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400b9c78
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x1400f8340]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x1400b9ccf
cmp word [rdx], r13w
jne 0x1400b9ccf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400b9cd4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400b9df9
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400b9e1a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400b9d0d
mov rdx, r9
mov word [rbx], cx
jmp 0x1400b9d34
cmp r9, r8
jae 0x1400b9d44
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x1400b9cee
jmp 0x1400b9df9
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400b9dee
cmp dword [rsp + 0x80], esi
je 0x1400b9dee
lea r8, [0x1400f8340]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400b9dc6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400b9d96
mov word [rbx], r13w
jmp 0x1400b9df6
mov ecx, reloc.WS2_32.dll_listen
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x1400b9da3
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400b9df6
cmp word [rsp + 0x70], r13w
jne 0x1400b9dd3
cmp rbx, r14
je 0x1400b9d90
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400b81f0
cmp word [rsp + 0x70], r13w
je 0x1400b9df9
mov ecx, reloc.WS2_32.dll_listen
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x1400f8340]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400b9df3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400b9df9
Function at 0x1400bfb10
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400bfb26
mov al, 1
jmp 0x1400bfb86
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400bfb37
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400bfb84
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400c0524
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400bfb84
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400bfb84
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400bfb84
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400bfb86
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x1400c0634
Capabilities:
Clear file content

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, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400b81f0
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400b81f0
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400c0784
cmp rax, 0xffffffffffffffff
je 0x1400c0784
xor edi, edi
test rbp, rbp
jle 0x1400c072f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400bc5f0
mov rbx, rax
test rax, rax
jne 0x1400c06bc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400c0725
mov edx, 0x8000
mov ecx, r14d
call fcn.1400b98b0
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400bb030
cmp eax, 0xffffffff
je 0x1400c0705
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400c06cc
mov edx, r15d
mov ecx, r14d
call fcn.1400b98b0
jmp 0x1400c0725
cmp byte [rsi + 0x38], dil
je 0x1400c071c
cmp dword [rsi + 0x34], 5
jne 0x1400c071c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x1400c0725
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400bc668
jmp 0x1400c0798
jns 0x1400c0798
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400b81f0
cmp rax, 0xffffffffffffffff
jne 0x1400c0750
cmp byte [rsi + 0x30], dil
je 0x1400c0798
mov edi, dword [rsi + 0x2c]
jmp 0x1400c0798
mov ecx, r14d
call fcn.1400c0524
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400c0798
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x1400c0798
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400c0791
mov eax, dword [rsi + 0x2c]
jmp 0x1400c0796
mov eax, reloc.WLDAP32.dll_Ordinal_22
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400b81f0
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400c4014
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 0x1400c4044
xor eax, eax
jmp 0x1400c4107
mov rbp, rbx
cmp word [rax], si
je 0x1400c4069
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400c4050
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400c404c
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.1400c0fd0
movsxd r14, eax
test eax, eax
jne 0x1400c40a7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400c403d
mov rcx, r14
call fcn.1400bd24c
mov rdi, rax
test rax, rax
jne 0x1400c40c0
xor ecx, ecx
call fcn.1400bc668
jmp 0x1400c409c
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.1400c0fd0
test eax, eax
jne 0x1400c40f1
mov rcx, rdi
call fcn.1400bc668
jmp 0x1400c40fb
xor ecx, ecx
call fcn.1400bc668
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 0x1400c4124
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400c41ab
mov rsi, rbx
cmp word [rax], bp
je 0x1400c416a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400c4154
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400c4150
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400bd24c
mov rdi, rax
test rax, rax
je 0x1400c4198
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400cb870
mov rbp, rdi
xor ecx, ecx
call fcn.1400bc668
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400c58ac
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400c58cc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400ad39c
or eax, 0xffffffff
jmp 0x1400c58ce
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400c8218
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1400f6700]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1400c8262
call fcn.1400ad408
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.1400ad428
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.1400aa590
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400a1e40
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1400c826d
lea eax, [rbx + 1]
jmp 0x1400c824f
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1400c824d
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1400c824f
Function at 0x1400c96b4
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.1400ad448
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400c973e
cmp byte [rbp - 0x21], r15b
je 0x1400c9739
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400c9774
call fcn.1400bc910
test eax, eax
jne 0x1400c9760
cmp byte [rbp - 0x21], r15b
je 0x1400c9758
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400c9774
cmp byte [rbp - 0x21], r15b
je 0x1400c9771
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.1400b5c98
test eax, eax
jne 0x1400c9814
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400ad448
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400c97b3
cmp byte [rbp - 0x21], r15b
je 0x1400c97e8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400c97e8
call fcn.1400bc910
test eax, eax
jne 0x1400c97d4
cmp byte [rbp - 0x21], r15b
je 0x1400c97cd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400c97e8
cmp byte [rbp - 0x21], r15b
je 0x1400c97e5
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.1400b5c98
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400c9814
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400c9817
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400c9825
mov rcx, rdi
call fcn.1400bc668
cmp byte [rbp + 0x3f], r15b
je 0x1400c9834
mov rcx, qword [rbp + 0x27]
call fcn.1400bc668
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 0x140001010
Capabilities:
Allocate or change rwx memory
Check for debugger via api
Enumerate processes
Execute shellcode via createthreadpoolwait
Get system information on windows
Identify system language via api

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x5b0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x5a0], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
jne 0x140001191
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
test eax, eax
jne 0x140001191
xor ecx, ecx
mov eax, 1
cpuid
test ecx, ecx
js 0x140001191
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, 0x1b7740
jb 0x140001191
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov ecx, 0x3ff
and ax, cx
cmp ax, 4
jne 0x140001191
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
mov dword [rsp + 0x70], 0x238
mov r8d, 0x234
lea rcx, [rsp + 0x74]
mov rdi, rax
call sub.VCRUNTIME140.dll_memset
cmp rdi, 0xffffffffffffffff
je 0x140001106
lea rdx, [rsp + 0x70]
mov rcx, rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x1400010f4
nop dword [rax]
nop dword [rax + rax]
lea rdx, [rsp + 0x70]
mov rcx, rdi
inc ebx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400010e0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 0x3c
jl 0x140001191
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp dword [rsp + 0x58], 4
jb 0x140001191
lea rcx, [rsp + 0x70]
mov r8d, 0x52e
lea rdx, [0x1400032b0]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x30]
mov edx, 0x52e
mov r8d, 0x40
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r8d, r8d
lea rcx, [rsp + 0x70]
xor edx, edx
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CreateThreadpoolWait]
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadpoolWait]
mov edx, 0xffffffff
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
xor eax, eax
jmp 0x140001196
mov eax, 1
mov rcx, qword [rsp + 0x5a0]
xor rcx, rsp
call fcn.1400011d0
mov rbx, qword [rsp + 0x5c0]
add rsp, 0x5b0
pop rdi
ret

Function at 0x140001a90
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001ada
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001ada
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_RtlLookupFunctionEntry
jne 0x140001ada
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001ada
cmp dword [rcx + 0x84], 0xe
jbe 0x140001ada
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001adc
xor al, al
add rsp, 0x28
ret
Function at 0x180002df0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x70
mov rdi, rsp
mov ecx, 0x1c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x80]
mov eax, dword [rsp + 0x80]
imul rax, rax, 0x38
mov rcx, qword [0x18000baf0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x48], 5
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180002e74
mov rax, qword [rsp + 0x50]
sub rax, 5
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x48]
add rax, 2
mov qword [rsp + 0x48], rax
lea r9, [rsp + 0x34]
mov r8d, 0x40
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180002e9d
mov eax, 0xa
jmp 0x180002fd7
cmp dword [rsp + 0x88], 0
je 0x180002f0b
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov byte [rax], 0xe9
mov rax, qword [rsp + 0x50]
add rax, 5
mov rcx, qword [rsp + 0x20]
mov rcx, qword [rcx + 8]
sub rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x58]
mov dword [rcx + 1], eax
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180002f09
mov rax, qword [rsp + 0x20]
mov rax, qword [rax]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x60]
mov byte [rax], 0xeb
mov rax, qword [rsp + 0x60]
mov byte [rax + 1], 0xf9
jmp 0x180002f57
mov rax, qword [rsp + 0x20]
movzx eax, byte [rax + 0x20]
and al, 1
movzx eax, al
test eax, eax
je 0x180002f3b
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 7
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x180002f57
mov rax, qword [rsp + 0x20]
add rax, 0x18
mov r8d, 5
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_memcpy
lea r9, [rsp + 0x34]
mov r8d, dword [rsp + 0x34]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 1
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfd
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
movzx eax, byte [rsp + 0x88]
and al, 1
shl al, 2
mov rcx, qword [rsp + 0x20]
movzx ecx, byte [rcx + 0x20]
and cl, 0xfb
or cl, al
movzx eax, cl
mov rcx, qword [rsp + 0x20]
mov byte [rcx + 0x20], al
xor eax, eax
mov rdi, rax
mov rcx, rsp
lea rdx, [0x180008540]
call fcn.180005d64
mov rax, rdi
add rsp, 0x70
pop rdi
ret
Function at 0x180fec058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.180fec1df
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 0x180fec089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180fec06f
add dl, dl
jne 0x180fec096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180fec0f6
xor eax, eax
add dl, dl
jne 0x180fec0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x180fec1ad
add dl, dl
jne 0x180fec0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180fec0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180fec0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180fec0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x180fec0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x180fec07e
mov eax, 1
add dl, dl
jne 0x180fec106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180fec113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180fec0fb
sub eax, ebx
mov ebx, 1
jne 0x180fec14c
mov ecx, 1
add dl, dl
jne 0x180fec12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180fec13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180fec123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180fec07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180fec168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180fec175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180fec15d
cmp eax, 0x7d00
jae 0x180fec19b
cmp eax, 0x500
jb 0x180fec196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180fec07e
cmp eax, 0x7f
ja 0x180fec19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x180fec07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x180fec1d2
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 0x180fec07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001cc0
Capabilities:
Parse pe header

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

Function at 0x140005370
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400053df
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400053df
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400053df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400053df
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400053df
cmp dword [rcx + 0x84], 0xe
jbe 0x1400053df
cmp dword [rcx + 0xf8], 0
je 0x1400053df
mov ecx, ebx
call fcn.140005490
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000526c
nop
cmp dword [rbp + 0x20], 0
je 0x14000542d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140005438
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140005370

Function at 0x140005574
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005370