joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400666e0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14006670d
xor al, al
jmp 0x14006686f
mov rax, qword [0x1400876c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x1400876c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x1400876d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x1400876d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x1400876e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x1400876e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x1400876f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x1400876f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x140087700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x140066861
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x1400667b9
mov r11d, 2
jmp 0x1400667dd
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x1400667d3
mov r11d, 1
jmp 0x1400667dd
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x140066885
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x140066822
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14006683a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14006684a
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x140066858
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x1400667a0
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14006686a
Function at 0x140005510
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
mov qword [rsp + 0x58], rdx
mov rbx, r8
xor edx, edx
test rcx, rcx
je 0x140005544
cmp word [rcx], 0x5a4d
jne 0x140005544
movsxd rax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140005544
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140005544
mov edx, dword [rcx + 0x28]
add rdx, qword [rsp + 0x58]
mov rcx, rbx
call fcn.140005450
test eax, eax
jne 0x140005560
xor eax, eax
add rsp, 0x40
pop rbx
ret
mov rcx, rbx
call fcn.1400054c0
test rax, rax
je 0x140005555
lea rdx, [rax + 0x10]
lea rax, [rsp + 0x38]
mov rcx, qword [rbx]
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x58]
mov qword [rsp + 0x38], 0
call fcn.140005d12
not eax
shr eax, 0x1f
add rsp, 0x40
pop rbx
ret

Function at 0x140005c10
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.140005bb0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140006074
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x14098ef78]
xor ebx, ebx
add rax, 0x18
mov r12, rcx
mov ecx, dword [0x14098ef74]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x1400060c2
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400060ba
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400061a9
inc ebx
add rax, 0x28
jmp 0x14000609a
mov rcx, r12
call fcn.1400068a1
mov rbp, rax
test rax, rax
jne 0x1400060e1
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140006010
movsxd rbx, ebx
mov rax, qword [0x14098ef78]
xor edx, edx
imul rbx, rbx, 0x28
add rax, rbx
mov dword [rax], edx
mov qword [rax + 0x20], rbp
call fcn.14000694f
mov edx, dword [rbp + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14098ef78]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x140006143
mov rax, qword [0x14098ef78]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140006010
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400061a3
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400061a3
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14098ef78]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400061a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140006010
inc dword [0x14098ef74]
mov ecx, edi
mov rdi, r12
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x1400065d0
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x14098efe0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14098efc0]
test rbx, rbx
je 0x14000661c
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140006616
test eax, eax
jne 0x140006616
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x1400065ee
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400067d0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x1400067f3
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x1400067f3
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x1400067f4
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x14000682e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140006825
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140006830
inc r8d
add rax, 0x28
jmp 0x14000680c
xor eax, eax
ret

Function at 0x1400068a1
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140989a70]
mov r8, rcx
mov rcx, r9
call fcn.1400067d0
test eax, eax
je 0x1400068cd
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp fcn.1400067f4
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400110c3
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140015f30
mov word [rsp + 8], cx
push rbp
push rdi
sub rsp, 0x248
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
movzx ecx, word [rsp + 0x268]
mov rax, qword [0x14001d018]
xor rax, rbp
mov qword [rbp + 0x218], rax
lea rcx, [0x1400230a2]
call fcn.1400113bb
movzx ecx, word [rbp + 0x240]
call qword [sym.imp.USER32.dll_VkKeyScanW]
mov word [rbp + 4], ax
movsx eax, word [rbp + 4]
cmp eax, 0xffffffff
jne 0x140015f98
jmp 0x140016144
movsx rax, word [rbp + 4]
and rax, 0xff
mov byte [rbp + 0x24], al
movsx rax, word [rbp + 4]
shr rax, 8
and rax, 0xff
mov byte [rbp + 0x44], al
mov dword [rbp + 0x70], 0
lea rax, [rbp + 0x78]
mov rdi, rax
xor eax, eax
mov ecx, 0x98
rep stosb byte [rdi], al
mov dword [rbp + 0x124], 0
movzx eax, byte [rbp + 0x44]
and eax, 1
test eax, eax
je 0x14001601a
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov dword [rbp + rax + 0x70], 1
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov ecx, 0x10
mov word [rbp + rax + 0x78], cx
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov dword [rbp + rax + 0x70], 1
movzx eax, byte [rbp + 0x24]
movsxd rcx, dword [rbp + 0x124]
imul rcx, rcx, 0x28
mov word [rbp + rcx + 0x78], ax
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov dword [rbp + rax + 0x70], 1
movzx eax, byte [rbp + 0x24]
movsxd rcx, dword [rbp + 0x124]
imul rcx, rcx, 0x28
mov word [rbp + rcx + 0x78], ax
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov dword [rbp + rax + 0x7c], 2
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
movzx eax, byte [rbp + 0x44]
and eax, 1
test eax, eax
je 0x1400160eb
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov dword [rbp + rax + 0x70], 1
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov ecx, 0x10
mov word [rbp + rax + 0x78], cx
movsxd rax, dword [rbp + 0x124]
imul rax, rax, 0x28
mov dword [rbp + rax + 0x7c], 2
mov eax, dword [rbp + 0x124]
inc eax
mov dword [rbp + 0x124], eax
mov dword [rbp + 0x144], 0
jmp 0x140016105
mov eax, dword [rbp + 0x144]
inc eax
mov dword [rbp + 0x144], eax
mov eax, dword [rbp + 0x124]
cmp dword [rbp + 0x144], eax
jge 0x140016144
movsxd rax, dword [rbp + 0x144]
imul rax, rax, 0x28
lea rax, [rbp + rax + 0x70]
mov r8d, 0x28
mov rdx, rax
mov ecx, 1
call qword [sym.imp.USER32.dll_SendInput]
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400160f7
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ac00]
call fcn.140011348
mov rcx, qword [rbp + 0x218]
xor rcx, rbp
call fcn.1400111d6
lea rsp, [rbp + 0x228]
pop rdi
pop rbp
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013280
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 0x1400112b2
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400145d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400145f0
xor al, al
jmp 0x140014671
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014603
xor al, al
jmp 0x140014671
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 0x14001462d
xor al, al
jmp 0x140014671
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014641
xor al, al
jmp 0x140014671
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014653
xor al, al
jmp 0x140014671
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001466f
xor al, al
jmp 0x140014671
mov al, 1
add rsp, 0x38
ret
Function at 0x1400019f0
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.0x140001a11
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 0x140001a3e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001a40
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001a99
test ecx, ecx
jle 0x140001a79
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 0x140001a99
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001a99
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 0x140001ac0
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 0x140001ae2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140001af1
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 0x140001b14
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140001b16
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001b52
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 0x140001bee
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140001b8d
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 0x140001bce
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 0x140001bee
cmp rbx, rax
ja 0x140001ba0
test rbx, rbx
je 0x140001bee
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 0x140002010
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000203d
xor eax, eax
jmp 0x1400021a9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002077
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002077
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 0x1400021a9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000219c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400020ba
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 0x1400020e5
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 0x1400021a1
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 0x140002154
sub eax, 1
je 0x140002154
cmp eax, 2
jne 0x14000219c
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 0x1400021a1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002182
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 0x14000219c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400021a1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002a90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002470
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140007010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002543
cmp byte [rcx + 0x71], 0
je 0x140002543
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000253f
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 0x140002504
sub eax, 1
je 0x140002508
cmp eax, 2
jne 0x14000253f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002a90
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002536
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 0x14000253f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400024ec
xor al, al
jmp 0x1400024ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002a90
add rsp, 0x60
pop rbx
ret

Function at 0x140003424
Capabilities:
Parse pe header

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

Disassembly:
cmp rcx, qword [0x140057888]
jne 0x14000da4a
rol rcx, 0x10
test cx, 0xffff
jne 0x14000da46
repz ret
ror rcx, 0x10
jmp 0x14001b5d0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400595f0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1400596e8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001b655
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400595f0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001b677
mov rax, qword [rsp + 0x88]
mov qword [0x1400596e8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140059688], rax
mov rax, qword [0x1400596e8]
mov qword [0x140059560], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140059670], rax
mov dword [0x140059550], 0xc0000409
mov dword [0x140059554], 1
mov rax, qword [0x140057888]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140057890]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1400595e8], eax
mov ecx, 1
call fcn.14001d8b0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140048810]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400595e8], 0
jne 0x14001b6fe
mov ecx, 1
call fcn.14001d8b0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140001990
Capabilities:
Manipulate console buffer

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x60
mov rax, qword [0x14008c070]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov ebx, ecx
xor ebp, ebp
mov ecx, 0xfffffff5
mov dword [rsp + 0x30], ebp
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001a7b
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140001a7b
movsx ecx, word [rsp + 0x38]
mov qword [rsp + 0x78], rdi
movsx edi, word [rsp + 0x3a]
imul edi, ecx
cmp ebx, 0xffffffff
jle 0x140001a1a
movzx eax, word [0x14008d1e0]
mov edi, ebx
mov word [rsp + 0x30], ax
movzx eax, word [0x14008d1dc]
inc ax
mov word [rsp + 0x32], ax
jmp 0x140001a26
mov dword [0x14008d1e0], ebp
mov dword [0x14008d1dc], ebp
mov ebx, dword [rsp + 0x30]
lea rax, [rsp + 0x34]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8d, edi
mov dl, reloc.WLDAP32.dll_Ordinal_32
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterA]
test eax, eax
je 0x140001a76
movzx edx, word [rsp + 0x40]
lea rax, [rsp + 0x34]
mov r9d, ebx
mov qword [rsp + 0x20], rax
mov r8d, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
test eax, eax
je 0x140001a76
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14006cd00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rsi
ret