joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400023fd
xor eax, eax
jmp 0x140002569
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002437
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002437
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002569
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000255c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000247a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x1400024a5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002561
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002514
sub eax, 1
je 0x140002514
cmp eax, 2
jne 0x14000255c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002561
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002542
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000255c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002561
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002fd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002700
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400027d3
cmp byte [rcx + 0x71], 0
je 0x1400027d3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400027cf
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002794
sub eax, 1
je 0x140002798
cmp eax, 2
jne 0x1400027cf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002fd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400027c6
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x1400027cf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000277c
xor al, al
jmp 0x14000277c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002fd0
add rsp, 0x60
pop rbx
ret

Function at 0x140003950
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000399a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000399a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000399a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000399a
cmp dword [rcx + 0x84], 0xe
jbe 0x14000399a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000399c
xor al, al
add rsp, 0x28
ret
Function at 0x180001180
Capabilities:
Contain obfuscated stackstrings
Get windows directory from kuser_shared_data

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor esi, esi
mov dword [rbp - 0x19], 0x73005c
mov edx, 0x7ffe0030
mov word [rbp - 0x11], si
mov word [rbp + 0x13], si
mov rbx, rcx
mov word [rbp + 3], si
mov dword [rbp - 0x15], 0x730079
mov dword [rbp + 7], 0x650074
mov dword [rbp + 0xb], 0x33006d
mov dword [rbp + 0xf], 0x5c0032
mov dword [rbp - 9], 0x6f0077
mov dword [rbp - 5], 0x360077
mov dword [rbp - 1], 0x5c0034
call fcn.18000271c
lea rdx, [rbp - 0x19]
call fcn.180002670
lea r9d, [rsi + 0x40]
mov qword [rsp + 0x20], rsi
mov ecx, r9d
lea rdi, [rbp + 0x17]
xor eax, eax
lea r8, [rbp + 0x17]
rep stosb byte [rdi], al
or rcx, 0xffffffffffffffff
mov qword [rbp + 0x17], r9
xor edx, edx
call qword [sym.imp.ntdll.dll_NtQuer]
test eax, eax
js 0x180001230
mov eax, dword [rbp + 0x4f]
lea rdx, [rbp - 9]
shr eax, 1
test al, 1
jne 0x180001234
lea rdx, [rbp + 7]
mov rcx, rbx
call fcn.180002670
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x18000144c
Capabilities:
Map section object

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x8d0]
sub rsp, 0x9d0
xor ebx, ebx
mov r15d, 0x1000
mov qword [rbp + 0x908], rbx
mov r14, rcx
mov qword [rbp + 0x910], rbx
mov qword [rbp + 0x918], r15
call fcn.1800012e4
mov rsi, rax
test rax, rax
je 0x1800015e0
xor eax, eax
lea rdi, [rbp - 0x70]
mov ecx, 0x100
lea rdx, [rbp - 0x70]
rep stosb byte [rdi], al
mov ecx, 0x6364
call fcn.180001258
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rax, [rsp + 0x50]
mov dword [rsp + 0x60], 0x30
xorps xmm0, xmm0
mov qword [rsp + 0x70], rax
lea r8, [rsp + 0x60]
mov qword [rsp + 0x68], rsi
mov edx, 0xf001f
mov dword [rsp + 0x78], 0x40
lea rcx, [rbp + 0x908]
movdqu xmmword [rbp - 0x80], xmm0
call qword [sym.imp.ntdll.dll_NtOpenSection]
test eax, eax
js 0x1800015d7
mov rcx, qword [rbp + 0x908]
lea eax, [rbx + 2]
mov dword [rsp + 0x48], eax
lea r8, [rbp + 0x910]
mov dword [rsp + 0x40], 0x100000
xor r9d, r9d
mov dword [rsp + 0x38], eax
or rdx, 0xffffffffffffffff
lea rax, [rbp + 0x918]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], r15
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
test eax, eax
js 0x1800015ca
mov rdx, qword [rbp + 0x910]
lea rdi, [rbp + 0x90]
mov r15d, 0x834
xor eax, eax
mov ecx, r15d
mov r8d, r15d
rep stosb byte [rdi], al
lea rcx, [rbp + 0x90]
call fcn.1800038a0
mov rdx, qword [rbp + 0x908]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntdll.dll_NtUnmapViewOfSection]
mov edi, dword [rbp + 0x90]
lea rdx, [rbp + 0x90]
mov r8d, r15d
mov dword [rbp + 0x90], ebx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlCom]
cmp edi, eax
jne 0x1800015ca
mov rcx, r14
mov dword [rbp + 0x90], edi
lea rdx, [rbp + 0x90]
mov r8d, r15d
call fcn.1800038a0
mov ebx, 1
mov rcx, qword [rbp + 0x908]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, rsi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xa00]
add rsp, 0x9d0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000185c
Capabilities:
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x628]
sub rsp, 0x710
mov r14, rcx
mov ebx, edx
xor eax, eax
lea rdi, [rbp - 0x10]
mov ecx, 0x20a
xor esi, esi
rep stosb byte [rdi], al
lea rcx, [rbp - 0x10]
xor r12d, r12d
lea r15d, [rsi + 0x10]
call fcn.180001180
lea edx, [rsi + 0x68]
xor eax, eax
mov ecx, edx
lea rdi, [rbp - 0x80]
rep stosb byte [rdi], al
lea rcx, [rbp - 0x80]
mov dword [rbp - 0x80], edx
call fcn.18000169c
test r14, r14
je 0x18000190b
test ebx, ebx
je 0x18000190b
mov rax, qword gs:[0x30]
lea r8, [rbx + 0x1000]
lea edx, [rsi + 8]
mov edi, ebx
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rbx, rax
test rax, rax
je 0x180001947
xor r15d, r15d
lea esi, [r12 + 1]
mov r8d, edi
mov rdx, r14
mov rcx, rax
call fcn.1800038a0
jmp 0x180001947
xor eax, eax
lea rdi, [rbp + 0x200]
mov ecx, 0x410
lea rdx, [rbp - 0x10]
rep stosb byte [rdi], al
lea rcx, [rbp + 0x200]
call fcn.18000271c
lea rdx, str.cmd.exe
lea rcx, [rbp + 0x200]
call fcn.180002670
xor ebx, ebx
lea r12, [rbp + 0x200]
mov eax, 5
mov dword [rbp - 0x44], 1
mov word [rbp - 0x40], ax
lea rdi, [rsp + 0x60]
xor eax, eax
xor r9d, r9d
mov r8, rbx
mov rdx, r12
lea ecx, [rax + 0x18]
rep stosb byte [rdi], al
lea rax, [rsp + 0x60]
xor ecx, ecx
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
and qword [rsp + 0x38], 0
mov dword [rsp + 0x30], r15d
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov edi, eax
test eax, eax
je 0x1800019c2
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntdll.dll_NtClose]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ntdll.dll_NtClose]
test esi, esi
je 0x1800019e2
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]
lea r11, [rsp + 0x710]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180002ad0
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x448
call fcn.18000259c
cmp eax, 0xc00000bb
je 0x180002ae4
int3
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea r8, [rsp + 0x30]
lea rax, [rsp + 0x450]
mov qword [rsp + 0x20], rax
call section..text
test eax, eax
je 0x180002b1c
cmp dword [rsp + 0x450], 0
jbe 0x180002b1c
lea rcx, [rsp + 0x30]
call fcn.180003734
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlE]
add rsp, 0x448
ret

Function at 0x180002b2c
Capabilities:
Create process on windows
Get windows directory from kuser_shared_data
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r14
push rbp
lea rbp, [rax - 0x3d8]
sub rsp, 0x4d0
call fcn.18000259c
cmp eax, 0xc00000bb
je 0x180002b57
int3
mov edx, 0x7ffe0030
lea rcx, [rbp - 0x40]
mov ebx, 5
call fcn.18000271c
lea rdx, str._system32_
lea rcx, [rbp - 0x40]
call fcn.180002670
lea rdx, str.mmc.exe
lea rcx, [rbp - 0x40]
call fcn.180002670
xor eax, eax
lea r14d, [rbx + 0x6b]
mov ecx, r14d
lea rdi, [rsp + 0x50]
rep stosb byte [rdi], al
lea rax, [rbp - 0x40]
mov dword [rsp + 0x50], r14d
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x50]
lea rax, str.eventvwr.msc
mov dword [rsp + 0x54], 0x40
mov qword [rsp + 0x70], rax
mov dword [rbp - 0x80], ebx
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
xor edi, edi
test eax, eax
je 0x180002c46
xor edx, edx
lea rcx, str.MMCMainFrame
call qword [sym.imp.USER32.dll_FindWindowW]
test rax, rax
jne 0x180002bf6
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
add ebx, 0xffffffff
jne 0x180002bd0
jmp 0x180002c30
mov rcx, rax
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, 1
mov qword [rsp + 0x28], r14
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], ecx
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x38], rdi
lea r8d, [rcx + 0x27]
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [rbp - 0x48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ecx, ecx
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r14, qword [r11 + 0x20]
mov rsp, r11
pop rbp
jmp qword [sym.imp.ntdll.dll_RtlE]
Function at 0x180002f60
Capabilities:
Accept command line arguments

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x240
xor ebx, ebx
mov dword [rax + 8], ebx
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
call fcn.18000259c
cmp eax, 0xc00000bb
je 0x180002f98
mov ecx, 0x666f6666
call qword [sym.imp.ntdll.dll_RtlE]
xor eax, eax
lea rdi, [rsp + 0x30]
mov ecx, 0x20a
lea r8, [rsp + 0x30]
rep stosb byte [rdi], al
lea rax, [rsp + 0x250]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call section..text
cmp dword [rsp + 0x250], ebx
je 0x180003054
movzx eax, word [rsp + 0x30]
cmp ax, 0x31
jne 0x180002fe1
call fcn.180002ea8
mov ebx, eax
jmp 0x180003054
cmp ax, 0x32
jne 0x180003032
mov edx, 0xe
xor ecx, ecx
mov esi, 0xc0000001
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x18000302e
lea rdx, [rsp + 0x250]
mov qword [rsp + 0x250], 0xffffffffff676980
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtDel]
call fcn.180002d1c
mov edi, eax
call qword [sym.imp.ole32.dll_CoUninitialize]
neg edi
sbb eax, eax
not eax
and esi, eax
mov ebx, esi
jmp 0x180003054
cmp ax, 0x33
jne 0x180003054
lea rdx, [rsp + 0x250]
mov qword [rsp + 0x250], 0xfffffffffeced300
xor ecx, ecx
call qword [sym.imp.ntdll.dll_NtDel]
mov ecx, ebx
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
jmp qword [sym.imp.ntdll.dll_RtlE]
Function at 0x180003734
Capabilities:
Create process on windows
Enumerate gui resources
Get windows directory from kuser_shared_data
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x3f0]
sub rsp, 0x4f0
mov rbx, rcx
mov edx, 0x7ffe0030
lea rcx, [rbp - 0x20]
call fcn.18000271c
lea rdx, str._system32_
lea rcx, [rbp - 0x20]
call fcn.180002670
lea rdx, str.msconfig.exe
lea rcx, [rbp - 0x20]
call fcn.180002670
xor eax, eax
lea rdi, [rsp + 0x40]
lea edx, [rax + 0x70]
mov ecx, edx
rep stosb byte [rdi], al
lea rax, [rbp - 0x20]
mov dword [rsp + 0x40], edx
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x40]
lea rax, [0x18000460c]
mov dword [rsp + 0x44], 0x40
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x70], 5
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x18000384f
xor eax, eax
lea rdi, [rbp - 0x50]
and qword [rsp + 0x20], rax
lea r8, [rbp - 0x50]
xor edx, edx
lea r9d, [rax + 0x30]
mov ecx, r9d
rep stosb byte [rdi], al
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ntdll.dll_NtQuer]
test eax, eax
js 0x180003839
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [rbp - 0x30]
lea rdx, [rsp + 0x30]
and qword [rsp + 0x30], 0
lea rcx, [0x1800036b8]
mov dword [rsp + 0x38], eax
call qword [sym.imp.USER32.dll_EnumWindows]
test eax, eax
jne 0x180003839
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x180003839
mov r8, rbx
lea rdx, [0x180003510]
call qword [sym.imp.USER32.dll_EnumChildWindows]
mov rcx, qword [rbp - 0x58]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0x4f0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140007fd0
Capabilities:
Create device object

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
lea rdx, [0x14000b8e0]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x14000d740]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rax, [rsp + 0x80]
mov r9d, 0x22
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov byte [rsp + 0x28], 0
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], 0x100
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov edi, eax
test eax, eax
jne 0x140008082
or dword [rbx + 0x10], 4
lea rax, [0x140007ee0]
mov qword [rbx + 0x80], rax
lea rdx, [rsp + 0x40]
mov qword [rbx + 0x70], rax
lea rcx, [rsp + 0x50]
lea rax, [0x140007f10]
mov qword [rbx + 0xe0], rax
lea rax, [0x140007f60]
mov qword [rbx + 0x68], rax
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
call fcn.140007bb0
test al, al
jne 0x1400080b8
mov r9d, 0x65
lea r8, [0x14000d770]
lea rdx, [0x14000d780]
lea ecx, [r9 - 0x64]
call fcn.140007cc0
mov eax, 0xc0000365
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
call fcn.14000add0
test al, al
jne 0x1400080f8
call fcn.140005cd0
call fcn.14000a7b0
mov r9d, 0x71
lea r8, [0x14000d770]
lea rdx, [0x14000d7c0]
lea ecx, [r9 - 0x70]
call fcn.140007cc0
mov eax, 0xc0000365
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, edi
add rsp, 0x60
pop rdi
ret
Function at 0x1407134d0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140713657
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 0x140713501
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407134e7
add dl, dl
jne 0x14071350e
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14071356e
xor eax, eax
add dl, dl
jne 0x14071351d
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140713625
add dl, dl
jne 0x14071352e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071353b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140713548
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140713555
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140713562
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407134f6
mov eax, 1
add dl, dl
jne 0x14071357e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14071358b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140713573
sub eax, ebx
mov ebx, 1
jne 0x1407135c4
mov ecx, 1
add dl, dl
jne 0x1407135a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407135b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14071359b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407134f6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407135e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407135ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407135d5
cmp eax, 0x7d00
jae 0x140713613
cmp eax, 0x500
jb 0x14071360e
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407134f6
cmp eax, 0x7f
ja 0x140713616
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407134f6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14071364a
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 0x1407134f6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b6c0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140015a30
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140015a30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x14000b730
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e7094]
test esi, esi
mov rbx, rcx
jle 0x14000b860
mov rax, qword [0x1400e7098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14000b77b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14000b805
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14000b760
mov rcx, rbx
call fcn.14000c180
test rax, rax
mov rdi, rax
je 0x14000b882
mov rax, qword [0x1400e7098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14000c2c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e7098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b867
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b7fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b810
add dword [0x1400e7094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x1400e7098]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b7fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14000b6c0
nop dword [rax]
xor esi, esi
jmp 0x14000b788
mov rax, qword [0x1400e7098]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call fcn.14000b6c0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.14000b6c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000bdf0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e7100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e70e0]
test rbx, rbx
je 0x14000be4c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000be43
test rsi, rsi
je 0x14000be43
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000be28
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14000c180
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400c26c0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000c1a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000c1a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000c1a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000c1fd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x14000c1f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000c1a0
add rax, 0x28
cmp rax, r9
jne 0x14000c1e0
xor eax, eax
ret

Function at 0x14000c200
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c26c0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000c21f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000c228
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000c21f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14000c2c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400c26c0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000c2df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14000c2e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret