joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140332b00
Capabilities:
Encode data using xor

Disassembly:
sbb r9b, byte [rsi + 1]
invalid
push 0x1f31593e
xor dword [rdi], ebx
call fcn.14035a5e9
rol byte [rdi + 0x27], cl
jg 0x140332b03
push rbx
xchg edx, eax
nop
jmp 0x140332ac2
Function at 0x1404a51b4
Capabilities:
Execute anti-debugging instructions

Disassembly:
pushfq
bts r10w, cx
rol r10w, 0xfd
push r14
dec rax
adc al, spl
push rbx
shr dx, cl
sal dh, cl
push rsi
push rcx
add dx, 0x258f
rdtsc
push r13
bts rsi, r8
push rdi
push rbp
lahf
btr bx, 0x88
push r15
movzx r10w, dil
cqo
shl dil, 0x8d
push r12
rol dil, 0xf6
sub r10w, di
cwde
push r8
rdtsc
bts edx, esi
sal ebx, 0x18
push r9
sal sil, cl
movsxd r9, r14d
movabs rcx, 0
setbe r10b
ror rbx, cl
push rcx
xor ebx, r8d
btr ax, r12w
movsx esi, r10w
mov r10d, dword [rsp + 0x90]
bswap bx
sub r9w, dx
neg si
add r10d, 0x655b278f
ror r10d, 3
bswap r10d
setge bh
dec rbx
dec r10d
lahf
rcl dil, cl
ror bh, cl
add r10, rcx
neg r9d
or dil, 0x4e
cmovae r9w, r8w
movabs rax, 0x100000000
xor sil, 0xee
adc r9b, bpl
lea r10, [r10 + rax]
mov rsi, rsp
btr r9d, 0x9e
sar dx, cl
btr bx, r13w
sub rsp, 0x180
rcl r9w, 0x98
not di
and edx, 0xeac25f1
and rsp, 0xfffffffffffffff0
mov rbx, r10
cmp bh, 0x72
movabs rdx, 0
sub rbx, rdx
ror r9d, cl
bt r9w, bx
test r14w, 0x619e
lea r9, [0x1404305bb]
add dil, 0x37
sub r10, 4
neg edi
bt di, r12w
mov edi, dword [r10]
xor edi, ebx
jmp 0x14045587b
dec edi
xor edi, 0x83562f5
dec edi
jmp 0x1405352a5
push rdx
push r10
push rax
push r11
jmp 0x1404304a3
jmp r9
bswap edi
push rbx
xor dword [rsp], edi
add bl, 0xe2
setge bh
pop rbx
movsxd rdi, edi
cmp r13w, 0x5ccc
add r9, rdi
jmp 0x1404be59b
Function at 0x140001730
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140001758
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14000177e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001780
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400017d9
test ecx, ecx
jle 0x1400017b9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x1400017d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400017d9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140001800
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140001822
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140001838
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140001854
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001856
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001892
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000192e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400018cd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000190e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000192e
cmp rbx, rax
ja 0x1400018e0
test rbx, rbx
je 0x14000192e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001d50
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001d7d
xor eax, eax
jmp 0x140001ee9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001db7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001db7
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 0x140001ee9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001edc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001dfa
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 0x140001e25
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 0x140001ee1
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 0x140001e94
sub eax, 1
je 0x140001e94
cmp eax, 2
jne 0x140001edc
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 0x140001ee1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001ec2
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 0x140001edc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140001ee1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140008c80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002220
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400022f3
cmp byte [rcx + 0x71], 0
je 0x1400022f3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x1400022ef
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 0x1400022b4
sub eax, 1
je 0x1400022b8
cmp eax, 2
jne 0x1400022ef
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008c80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400022e6
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 0x1400022ef
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000229c
xor al, al
jmp 0x14000229c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140008c80
add rsp, 0x60
pop rbx
ret
Function at 0x1400029d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x150], rax
xor edx, edx
mov dword [rsp + 0x20], 0x130
mov rdi, rcx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x140002b38
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002a36
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x140002a4c
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
lea rdx, [rsp + 0x4c]
cmp rbx, rsi
mov r8, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002abd
cmp rsi, rbx
jb 0x140002abd
ja 0x140002abd
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
mov ebx, dword [rsp + 0x28]
cmp rdx, 0x10
jb 0x140002ab6
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002ab1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002bac
mov rcx, r8
call fcn.140008cdc
mov eax, ebx
jmp 0x140002b70
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
je 0x140002b2f
nop
lea rax, [rsp + 0x4c]
mov rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002ae0
cmp qword [rdi + 0x18], 0x10
mov rcx, rdi
jb 0x140002af6
mov rcx, qword [rdi]
mov rsi, qword [rdi + 0x10]
lea rdx, [rsp + 0x4c]
cmp rbx, rsi
mov r8, rsi
cmovb r8, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140002b1d
cmp rsi, rbx
jb 0x140002b1d
jbe 0x140002a6f
lea rdx, [rsp + 0x20]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140002ad0
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x140002b6e
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x140002b69
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140002bac
mov rcx, r8
call fcn.140008cdc
xor eax, eax
mov byte [rdi], 0
mov qword [rdi + 0x18], 0xf
mov qword [rdi + 0x10], 0
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140008c80
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140002bc0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rcx
xor esi, esi
lea ecx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x234
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140002c4c
mov rdx, rdi
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
je 0x140002c47
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140002c21
jmp 0x140002c4c
mov rsi, qword [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140008c80
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x140002ed0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
xor edi, edi
mov rcx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, 3
jb 0x14000302f
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140002f1e
mov rax, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 3
lea r9, [0x14000b81c]
lea rcx, [rsp + 0x50]
call fcn.140007aa0
lea r9, [rsp + 0x50]
cmp qword [rsp + 0x68], 0x10
cmovae r9, qword [rsp + 0x50]
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
lea r8, str.cmd.exe
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rdx, qword [rsp + 0x68]
cmp rdx, 0x10
jb 0x140002fb2
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fad
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140002fad
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140008cdc
movdqa xmm0, xmmword [0x14000bfd0]
movdqu xmmword [rsp + 0x60], xmm0
mov byte [rsp + 0x50], 0
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140002ffb
inc rdx
mov rcx, qword [rbx]
cmp rdx, 0x1000
jb 0x140002ff6
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140003028
mov rcx, r8
call fcn.140008cdc
mov qword [rbx + 0x10], rdi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140008c80
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1400011f0
nop
int3
Function at 0x140008760
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x30]
lea edx, [rbx + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400087c7
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
lea r9d, [rbx + 4]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x3c]
mov dword [rsp + 0x38], 4
lea edx, [rbx + 0x14]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
cmovne ebx, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400087d7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1400087fe
xor r9d, r9d
lea r8, [0x14000bf70]
lea rdx, str.Mo_Hack__Chuot_Phai_Chon_Run_as_administrator
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [rbx - 1]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008c80
add rsp, 0x50
pop rbx
ret

Function at 0x140008820
Capabilities:
Set console window title

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140010010]
xor rax, rsp
mov qword [rsp + 0x40], rax
cmp qword [rdx + 0x18], 0x10
mov rdi, rdx
mov rcx, rdx
jb 0x140008849
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
lea rdx, [rsp + 0x30]
mov rbx, rax
call qword [sym.imp.USER32.dll_GetWindowRect]
mov r8d, dword [rsp + 0x34]
mov r9d, 0x190
mov edx, dword [rsp + 0x30]
mov rcx, rbx
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], 0xc8
call qword [sym.imp.USER32.dll_MoveWindow]
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400088c4
mov rcx, qword [rdi]
inc rdx
cmp rdx, 0x1000
jb 0x1400088bf
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400088ef
mov rcx, r8
call fcn.140008cdc
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140008c80
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140008950
Capabilities:
Manipulate console buffer

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
mov ecx, 0xfffffff5
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 2
mov word [rsp + 0x3a], bx
mov word [rsp + 0x38], cx
mov rcx, rax
mov edx, dword [rsp + 0x38]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]

Function at 0x14000974c
Capabilities:
Parse pe header

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

Disassembly:
jmp 0x140014060
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400112bc
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400153a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400153c0
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400153d3
xor al, al
jmp 0x140015441
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 0x1400153fd
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015411
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015423
xor al, al
jmp 0x140015441
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001543f
xor al, al
jmp 0x140015441
mov al, 1
add rsp, 0x38
ret
Function at 0x14001132a
Capabilities:
Manipulate console buffer

Disassembly:
jmp 0x140011990
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0xa
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x128]
lea rcx, [0x1400250a7]
call fcn.1400113c0
movzx eax, word [rbp + 0x100]
mov word [rbp + 4], ax
movzx eax, word [rbp + 0x108]
mov word [rbp + 6], ax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [rbp + 4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001be60]
call fcn.140011357
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret
Function at 0x140001000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x60]
lea rcx, [0x140001100]
mov qword [rax + 0x68], rcx
lea rdx, [0x140001bd0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
mov qword [0x140003038], rax
mov rax, qword [rsp + 0x60]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x68]
or eax, 0x20
mov rcx, qword [rsp + 0x38]
mov dword [rcx + 0x68], eax
lea rcx, [0x140001250]
call fcn.1400011a0
cmp dword [rsp + 0x30], 0
jge 0x14000108a
lea rcx, [0x140001bf0]
call sub.ntoskrnl.exe_DbgPrint
lea rdx, [0x140001c10]
lea rcx, [0x140003020]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov qword [rsp + 0x28], 0
lea rax, [0x140003010]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8, qword [rsp + 0x60]
lea rdx, [0x140003020]
lea rcx, [0x140001480]
call qword [sym.imp.ntoskrnl.exe_CmRegisterCallbackEx]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
jge 0x1400010e8
lea rcx, [0x140001c20]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x1400010f4
lea rcx, [0x140001c40]
call sub.ntoskrnl.exe_DbgPrint
xor eax, eax
add rsp, 0x58
ret

Function at 0x14010b3af
Capabilities:
Encode data using xor

Disassembly:
lea rsp, [rsp + 8]
je 0x14010ba3f
mov edx, 0xf2256090
push r10
lea r10, [0x140119e18]
mov edx, 0x5588a989
neg dl
inc edx
movzx edx, byte [r8 + rdx - 0x5588a978]
push 0xffffffffc7afe70e
rol word [rsp + 1], 0x4d
xor edx, eax
and edx, 0xff
mov edx, dword [r10 + rdx*4]
shr eax, 8
xor eax, edx
push 0x6abe848b
inc r8
xor eax, 0xd2838019
dec r11
lea rsp, [rsp + 0x10]
jne 0x14010b3c8
jmp 0x14010ba3d

Function at 0x14011e8f4
Capabilities:
Encode data using xor

Disassembly:
call fcn.14012ab55
push 0xffffffffc4b53538
mov r9, qword [rbp + riz]
mov r10, qword ss:[r9]
call fcn.1400eef57
test rdx, rdx
push 0xffffffff8c858a09
lea rsp, [rsp + 0x18]
je 0x14011e97b
mov ebx, 0xada7a79e
sar ebx, 0xf9
push rdi
mov edi, 0x97116090
lea rbx, [0x1400ff310]
mov edi, 0xb0981a18
movzx edi, byte [r11]
push 0xffffffff898d200b
sub word [rsp + 6], 0x9697
xor edi, eax
shl byte [rsp + 6], 7
and edi, 0xff
mov edi, dword [rbx + rdi*4]
shl dword [rsp + 2], 0xb4
shr eax, 8
xor eax, edi
inc r11
inc word [rsp + 2]
xor eax, 0x23915603
sar dword [rsp + 1], 0x85
dec rdx
push 0xffffffffac3e6129
push 0x528ae53f
lea rsp, [rsp + 0x18]
jne 0x14011e91c
mov edi, 0x26007233
pop rdi
call fcn.1401219fa
call fcn.1400ed8b3
add r9, rdx
jmp 0x1400f85a0
Function at 0x140003670
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140003691
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400036be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400036c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003719
test ecx, ecx
jle 0x1400036f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140003719
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003719
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
adc eax, 0x7038771f
loop 0x14017f0db
fldcw word [rdi + 0x60]
movabs al, byte [0xa826892c3d650246]
or ah, al
int3
add byte [rsi + 0x75], dh
or eax, 0xc4514f27
sar dword [rbp + rdi*8 + 0x30], 0xee
invalid
imul ebp, dword [rcx - 0x3330bd06], 0x8a964edd
int 0x9b
ja 0x14017f080
sbb bl, byte [rdx + 0x63]
cli
jns 0x14017f14d
pop rdx
invalid
pop rcx
jno 0x14017f0ab
cmp ah, byte [rsi + rdi*8 + 0x53]
movsd dword [rdi], dword [rsi]
or al, 0x64
push rsi
mov cl, Ordinal_79
invalid
invalid