joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00408624]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x401f68
mov rax, qword [0x00408628]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x401e2c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x401eb5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x401e10
mov rcx, rbx
call fcn.00402a80
test rax, rax
mov r12, rax
je 0x401f9d
mov rax, qword [0x00408628]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00402bb0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408628]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f80
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401eae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x401f10
add dword [0x00408624], 1
cmp edi, 8
jae 0x401ee3
test dil, 4
jne 0x401f54
test edi, edi
je 0x401ed8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x401f6f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x401ed8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x401efc
jmp 0x401ed8
add rsi, qword [0x00408628]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401eae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402fb0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x401ed8
xor esi, esi
jmp 0x401e37
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x401ed8
mov rax, qword [0x00408628]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00402fb0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00402fb0
nop
nop dword [rax]

Function at 0x4026f0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402744
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x40273b
test rsi, rsi
je 0x40273b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402720
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402a80
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x004053e0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x402aed
mov rcx, r8
call fcn.00402960
test eax, eax
je 0x402aed
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x402aed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402ae4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402aef
add rax, 0x28
cmp rax, r9
jne 0x402ad0
xor eax, eax
add rsp, 0x28
ret

Function at 0x402fb0
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
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.00402e30
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.00402e30
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140002dd0
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov r12d, dword [rax]
call sub.ucrtbase.dll___p___wargv
mov r13, qword [rax]
call sub.ucrtbase.dll__get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sub.ucrtbase.dll__set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call 0x140002e40
mov ecx, eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x98
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rbx, rax
movzx eax, word [rax]
test ax, ax
je 0x140002ec4
cmp ax, 9
je 0x140002eb0
cmp ax, 0x20
je 0x140002eb0
xor r9d, r9d
xor ecx, ecx
nop dword [rax + rax]
cmp ax, 0x5c
je 0x140002f18
cmp ax, 0x22
je 0x140002f00
xor ecx, ecx
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
je 0x140002ec4
cmp ax, 9
sete dl
cmp ax, 0x20
sete r8b
or dl, r8b
je 0x140002e70
test r9b, 1
jne 0x140002e70
nop dword [rax]
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 9
je 0x140002eb0
cmp ax, 0x20
je 0x140002eb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [rsp + 0x5c], 1
je 0x140002f20
movzx esi, word [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r9d, esi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140002060
add rsp, 0x98
pop rbx
pop rsi
ret
and ecx, 1
jne 0x140002e84
xor r9d, 1
jmp 0x140002e86
add ecx, 1
jmp 0x140002e86
mov eax, 1
mov esi, 1
mov word [rsp + 0x60], ax
jmp 0x140002edb
Function at 0x140002e40
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbx
sub rsp, 0x20
mov ecx, 1
call sub.ucrtbase.dll__configure_wide_argv
call sub.ucrtbase.dll__initialize_wide_environment
call sub.ucrtbase.dll___p___argc
mov r12d, dword [rax]
call sub.ucrtbase.dll___p___wargv
mov r13, qword [rax]
call sub.ucrtbase.dll__get_initial_wide_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sub.ucrtbase.dll__set_app_type
mov ecx, r12d
mov r8, rbx
mov rdx, r13
call 0x140002e40
mov ecx, eax
call sub.ucrtbase.dll_exit
nop
nop
nop
nop
push rsi
push rbx
sub rsp, 0x98
call qword [sym.imp.kernel32.dll_GetCommandLineW]
mov rbx, rax
movzx eax, word [rax]
test ax, ax
je 0x140002ec4
cmp ax, 9
je 0x140002eb0
cmp ax, 0x20
je 0x140002eb0
xor r9d, r9d
xor ecx, ecx
nop dword [rax + rax]
cmp ax, 0x5c
je 0x140002f18
cmp ax, 0x22
je 0x140002f00
xor ecx, ecx
movzx eax, word [rbx + 2]
add rbx, 2
test ax, ax
je 0x140002ec4
cmp ax, 9
sete dl
cmp ax, 0x20
sete r8b
or dl, r8b
je 0x140002e70
test r9b, 1
jne 0x140002e70
nop dword [rax]
movzx eax, word [rbx + 2]
add rbx, 2
cmp ax, 9
je 0x140002eb0
cmp ax, 0x20
je 0x140002eb0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetStartupInfoW]
test byte [rsp + 0x5c], 1
je 0x140002f20
movzx esi, word [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleW]
mov r9d, esi
mov r8, rbx
xor edx, edx
mov rcx, rax
call fcn.140002060
add rsp, 0x98
pop rbx
pop rsi
ret
and ecx, 1
jne 0x140002e84
xor r9d, 1
jmp 0x140002e86
add ecx, 1
jmp 0x140002e86
mov eax, 1
mov esi, 1
mov word [rsp + 0x60], ax
jmp 0x140002edb
Function at 0x140f84c80
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f84c8a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f84cb3
pop rbp
sub rbp, 0x33
sub rbp, 0xf84c80
sub rsp, 0x20
jmp 0x140f84cd2
mov rax, 0xf84c80
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff8d1209ba
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f84cf1
jmp 0x140f84d08
xor edx, dword [rbx + 0x31]
xor eax, dword [rsi - 0xd454546]
cmp edi, dword [rbx - 0x4e]
mov ebx, 0xbbf2baba
push rbx
bnd jge 0x140f84d98
mov dl, 0xba
mov edx, 0x787df2ba
xchg edx, eax
mov edx, 0x4df2baba
pop rax
mov ebx, 0xb63b317b
mov edx, 0xbbf2baba
push rdx
invalid
mov edx, 0x3753baba
mov eax, 0x52e8baba
invalid
Function at 0x14001dd60
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
mov r10, rdx
test r9, r9
je 0x14001deb4
cmp r9, 4
jb 0x14001ddaa
mov rdx, r9
shr rdx, 2
imul rax, rdx, 0xfffffffffffffffc
add r9, rax
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [r10]
add r10, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub rdx, 1
jne 0x14001dd90
xor r11d, r11d
test r9, r9
je 0x14001deb4
cmp r9, 0x40
jb 0x14001de93
lea rdx, [rcx - 1]
lea rax, [r8 - 1]
add rdx, r9
add rax, r9
cmp rcx, rax
ja 0x14001dddc
cmp rdx, r8
jae 0x14001de93
lea rax, [r10 - 1]
add rax, r9
cmp rcx, rax
ja 0x14001ddf1
cmp rdx, r10
jae 0x14001de93
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp], rdi
mov rdi, r9
and rdi, 0xffffffffffffffc0
mov rdx, r10
lea rax, [r8 + 0x10]
sub rdx, r8
mov rbx, rcx
sub rbx, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rdx + rax - 0x10]
movdqu xmm2, xmmword [rdx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rbx + rax - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rax - 0x30]
movdqu xmm1, xmmword [rdx + rax - 0x30]
movdqu xmmword [rbx + rax - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm2, xmmword [rdx + rax - 0x20]
movdqu xmmword [rbx + rax - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rbx + rax - 0x20], xmm2
cmp r11, rdi
jb 0x14001de20
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
cmp r11, r9
jae 0x14001deb4
sub r10, r8
lea rdx, [r11 + r8]
sub rcx, r8
sub r9, r11
movzx eax, byte [rdx + r10]
xor al, byte [rdx]
mov byte [rdx + rcx], al
lea rdx, [rdx + 1]
sub r9, 1
jne 0x14001dea0
add rsp, 8
ret

Function at 0x14003d0d0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003cefc
Function at 0x1407d1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1407d11df
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 0x1407d1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d106f
add dl, dl
jne 0x1407d1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d10f6
xor eax, eax
add dl, dl
jne 0x1407d10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407d11ad
add dl, dl
jne 0x1407d10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407d10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1407d107e
mov eax, 1
add dl, dl
jne 0x1407d1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407d1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d10fb
sub eax, ebx
mov ebx, 1
jne 0x1407d114c
mov ecx, 1
add dl, dl
jne 0x1407d112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1407d1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1407d1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407d115d
cmp eax, 0x7d00
jae 0x1407d119b
cmp eax, 0x500
jb 0x1407d1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d107e
cmp eax, 0x7f
ja 0x1407d119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1407d107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407d11d2
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 0x1407d107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000b9fc
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140016950], eax
call fcn.14000b77c
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140016950], 0
jne case.default.0x14000ba52
mov ecx, 1
call fcn.14000b77c
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
ror dword [rax + riz*8 + 0x2a97ff40], cl
mov bl, 0x8a
sbb byte [rax], bh
mov dl, 0x24
jrcxz 0x140023327
push rsp
std
add eax, 0x212d1fb
mov word [rcx], ss
fmul st(5), st(0)
in eax, dx
and byte [rdi], ch
mov ecx, 0x97f7f43e
sbb al, 0x77
ret
add cl, byte [rcx + rdx + 0x20edcddc]
invalid
Function at 0x141028e7c
Capabilities:
Encode data using xor

Disassembly:
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x141028ea5
pop rbp
sub rbp, 0x29
sub rbp, 0x1028e7c
jmp 0x141028f05
sub rsp, 0x20
jmp 0x141028f15
mov rax, 0x1028e7c
add rax, rbp
add rax, 0xcb
mov rcx, 0x64a
mov rdx, 0x48679ea
xor byte [rax], dl
inc rax
dec rcx
jne 0x141028f34
jmp 0x141028f4b
movabs byte [0xeaeaead663610363], al
movabs byte [0xeba2eaeaebe22b6b], al
add esp, dword [rdx - 0x151ed5d3]
invalid

Function at 0x140012534
Capabilities:
Parse pe header

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

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x140001000
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x190], rax
xor edi, edi
lea rcx, str..IoControl
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
lea r8d, [rdi + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140005668], rax
inc rax
test rax, 0xfffffffffffffffe
jne 0x140001070
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.driver_is_not_loaded_n
call fcn.140001220
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x60]
mov dword [rsp + 0x60], 0x130
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x1400010cf
nop dword [rax + rax]
lea rdx, str.notepad.exe
lea rcx, [rsp + 0x8c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
mov rcx, rbx
test eax, eax
je 0x140001195
lea rdx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x1400010a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [0x140005668]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rdi
mov r9d, 0x10
mov dword [0x140005670], eax
mov edx, 0x2201c8
mov dword [rsp + 0x44], eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x20], rdi
mov qword [rsp + 0x50], rdi
mov dword [rsp + 0x40], 0x85b3e12
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
mov rbx, qword [rsp + 0x50]
lea rdx, str.base_address___
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
mov qword [0x140005678], rbx
call fcn.140001220
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_long_unsigned___int64_____ptr64]
mov rcx, rax
lea rdx, [0x140003334]
call fcn.140001220
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::basic_istream_char__struct_std::char_traits_char__::get_void____ptr64]
xor eax, eax
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.140001400
mov rbx, qword [rsp + 0x1b0]
add rsp, 0x1a0
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
jmp 0x1400010da

Function at 0x140001cc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001d12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d12
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d14
xor al, al
add rsp, 0x28
ret
Function at 0x1400a4000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400a40d6
push r9
push r8
push rdx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rcx
mov rdx, qword [rdx + 0x20]
push rsi
mov rsi, qword [rdx + 0x50]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x1400a4037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x1400a402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400a40cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400a40cb
add rax, rdx
mov r8d, dword [rax + 0x20]
push rax
mov ecx, dword [rax + 0x18]
add r8, rdx
jrcxz 0x1400a40ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x1400a4081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x1400a4072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
pop r8
add rax, rdx
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x1400a4021
Function at 0x140002430
Capabilities:
Parse pe header

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

Function at 0x14001279c
Capabilities:
Parse pe header

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

Function at 0x140068610
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140068638
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140068638
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140072f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x48
xor ebp, ebp
mov ecx, 0x80
lea r14d, [rbp + 0x10]
call fcn.14003fb34
mov ecx, 0x4000
mov r13, rax
xor r12d, r12d
xor edi, edi
xor ebx, ebx
call fcn.14003fb34
mov qword [rsp + 0x28], rax
mov r15, rax
test rax, rax
je 0x140073106
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0xa8], 1
mov esi, r12d
sub esi, edi
cmp edi, r12d
jge 0x140072fd0
movsxd rdx, edi
mov rcx, r15
add rdx, rbx
movsxd r8, esi
call fcn.14000e2b0
mov r9, qword [rsp + 0x90]
mov eax, 0x4000
sub eax, esi
movsxd rdi, esi
add rdi, r15
movsxd r8, eax
mov rcx, rdi
mov edx, 1
call fcn.140045540
movsxd rcx, eax
mov r12, rax
test eax, eax
js 0x1400730db
test r12d, r12d
jle 0x140073111
add r12d, esi
mov rbx, r15
mov qword [rsp + 0x30], r12
cmp esi, r12d
jge 0x1400730ad
mov r12, qword [rsp + 0x20]
mov rsi, rdi
mov r15, rcx
nop dword [rax + rax]
movzx eax, byte [rdi]
cmp al, 0xd
je 0x140073045
cmp al, 0xa
je 0x140073045
test rbx, rbx
jne 0x140073092
mov rbx, rsi
jmp 0x140073092
mov byte [rdi], 0
test rbx, rbx
je 0x140073092
cmp ebp, r14d
jne 0x140073067
add r14d, r14d
mov rcx, r13
movsxd rdx, r14d
shl rdx, 3
call fcn.140042b70
mov r13, rax
mov qword [r13 + r12*8], rbx
mov ecx, 2
inc r12
inc ebp
call fcn.140012c74
mov rcx, rax
lea rdx, str._rLoading_Pattern__d:__s
mov r9, rbx
mov r8d, ebp
call fcn.140001080
xor ebx, ebx
inc rsi
inc rdi
sub r15, 1
jne 0x140073030
mov r15, qword [rsp + 0x28]
mov qword [rsp + 0x20], r12
mov r12, qword [rsp + 0x30]
mov eax, ebx
mov edi, r12d
sub eax, r15d
mov ecx, 0x4000
test rbx, rbx
mov rbx, r15
cmovne edi, eax
call fcn.14003fb34
mov qword [rsp + 0x28], rax
mov r15, rax
test rax, rax
jne 0x140072fb5
jmp 0x140073106
call fcn.14002a11c
mov ecx, dword [rax]
call fcn.14003f978
mov ecx, 2
mov rbx, rax
call fcn.140012c74
mov rcx, rax
lea rdx, str.Error_reading_file:__s_n
mov r8, rbx
call fcn.140001080
mov dword [rsp + 0xa8], 0
mov rax, qword [rsp + 0x98]
mov ecx, 2
mov qword [rax], r13
mov rax, qword [rsp + 0xa0]
mov dword [rax], ebp
call fcn.140012c74
mov rcx, rax
lea rdx, [0x14008fe84]
call fcn.140001080
mov eax, dword [rsp + 0xa8]
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret