joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140030250
Capabilities:
Hash data using fnv

Disassembly:
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + 0xa0]
mov ecx, dword [rcx + 0x98]
jmp 0x140051840
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 8], ecx
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
mov rdi, rdx
mov ebx, ecx
lea r14, [0x1400d66f0]
mov qword [rbp + 0x17], r14
mov byte [rbp + 0x1f], 0
mov rcx, r14
call fcn.1400561c0
test eax, eax
jne 0x140051a01
cmp dword [0x1400d673c], 0x7fffffff
je 0x140051a0c
mov byte [rbp + 0x1f], 1
lea r8, [0x1400d66b0]
mov qword [rbp + 0x27], r8
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rbp + 0x68]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x69]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x6a]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1400d66e0]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1400d66c8]
mov rax, qword [rcx + 8]
mov rdx, qword [0x1400d66b8]
cmp rax, rdx
je 0x140051920
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x140051922
nop dword [rax]
cmp rax, rcx
je 0x140051920
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x140051910
jmp 0x140051922
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x1400519c1
lea rdx, [rbp + 0x67]
mov rcx, r8
call fcn.140052f60
mov dword [rbp - 0x19], 1
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rax
movups xmm6, xmmword [rbp - 0x19]
movups xmmword [rbp - 1], xmm6
mov ecx, 0x18
call fcn.140074bf8
test rax, rax
je 0x140051974
movups xmm0, xmmword [rbp - 9]
movups xmmword [rax], xmm0
unpckhpd xmm6, xmm6
movsd qword [rax + 0x10], xmm6
mov qword [rbp + 0x77], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004b840]
xor edx, edx
xor ecx, ecx
call fcn.140087d50
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400519ef
cmp dword [rbp - 0x11], 0
je 0x1400519e4
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.140056704
test eax, eax
jne 0x1400519e4
mov rcx, r14
mov rbx, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rbp
jmp fcn.1400561c8
mov ecx, 1
call fcn.14005643c
nop
mov dword [rbp - 0x11], 0
mov ecx, 6
call fcn.14005643c
nop
mov ecx, 5
call fcn.14005643c
int3
mov dword [0x1400d673c], 0x7ffffffe
mov ecx, 6
call fcn.14005643c
int3
Function at 0x140051840
Capabilities:
Create thread
Hash data using fnv

Disassembly:
mov rcx, qword [rcx + 8]
mov rdx, qword [rcx + 0xa0]
mov ecx, dword [rcx + 0x98]
jmp 0x140051840
mov rax, rsp
mov qword [rax + 0x10], rbx
mov dword [rax + 8], ecx
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x90
movaps xmmword [rax - 0x28], xmm6
mov rdi, rdx
mov ebx, ecx
lea r14, [0x1400d66f0]
mov qword [rbp + 0x17], r14
mov byte [rbp + 0x1f], 0
mov rcx, r14
call fcn.1400561c0
test eax, eax
jne 0x140051a01
cmp dword [0x1400d673c], 0x7fffffff
je 0x140051a0c
mov byte [rbp + 0x1f], 1
lea r8, [0x1400d66b0]
mov qword [rbp + 0x27], r8
movzx edx, bl
movabs rax, 0xcbf29ce484222325
xor rdx, rax
movabs rcx, 0x100000001b3
imul rdx, rcx
movzx eax, byte [rbp + 0x68]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x69]
xor rdx, rax
imul rdx, rcx
movzx eax, byte [rbp + 0x6a]
xor rdx, rax
imul rdx, rcx
mov rcx, qword [0x1400d66e0]
and rcx, rdx
shl rcx, 4
add rcx, qword [0x1400d66c8]
mov rax, qword [rcx + 8]
mov rdx, qword [0x1400d66b8]
cmp rax, rdx
je 0x140051920
mov rcx, qword [rcx]
cmp ebx, dword [rax + 0x10]
je 0x140051922
nop dword [rax]
cmp rax, rcx
je 0x140051920
mov rax, qword [rax + 8]
cmp ebx, dword [rax + 0x10]
jne 0x140051910
jmp 0x140051922
xor eax, eax
test rax, rax
cmove rax, rdx
cmp rax, rdx
je 0x1400519c1
lea rdx, [rbp + 0x67]
mov rcx, r8
call fcn.140052f60
mov dword [rbp - 0x19], 1
mov qword [rbp - 0x11], rdi
mov qword [rbp - 9], rax
movups xmm6, xmmword [rbp - 0x19]
movups xmmword [rbp - 1], xmm6
mov ecx, 0x18
call fcn.140074bf8
test rax, rax
je 0x140051974
movups xmm0, xmmword [rbp - 9]
movups xmmword [rax], xmm0
unpckhpd xmm6, xmm6
movsd qword [rax + 0x10], xmm6
mov qword [rbp + 0x77], rax
lea rcx, [rbp - 0x11]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0
mov r9, rax
lea r8, [0x14004b840]
xor edx, edx
xor ecx, ecx
call fcn.140087d50
mov qword [rbp - 0x19], rax
test rax, rax
je 0x1400519ef
cmp dword [rbp - 0x11], 0
je 0x1400519e4
movaps xmm0, xmmword [rbp - 0x19]
movdqa xmmword [rbp - 9], xmm0
lea rcx, [rbp - 9]
call fcn.140056704
test eax, eax
jne 0x1400519e4
mov rcx, r14
mov rbx, qword [rsp + 0xb8]
movaps xmm6, xmmword [rsp + 0x80]
add rsp, 0x90
pop r14
pop rdi
pop rbp
jmp fcn.1400561c8
mov ecx, 1
call fcn.14005643c
nop
mov dword [rbp - 0x11], 0
mov ecx, 6
call fcn.14005643c
nop
mov ecx, 5
call fcn.14005643c
int3
mov dword [0x1400d673c], 0x7ffffffe
mov ecx, 6
call fcn.14005643c
int3
Function at 0x140001118
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
sub ecx, 1
je 0x140001198
sub ecx, 1
je 0x140001173
sub ecx, 1
je 0x14000114e
cmp ecx, 1
jne 0x140001149
xor r9d, r9d
lea r8, str.frando_ru
lea rdx, [0x1400033e8]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
add rsp, 0x28
ret
xor r9d, r9d
lea r8, [0x140003300]
lea rdx, [0x140003380]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r9d, r9d
lea r8, [0x140003300]
lea rdx, [0x140003348]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor r9d, r9d
lea r8, [0x140003300]
lea rdx, [0x140003318]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3

Function at 0x1400011c0
Capabilities:
Execute command

Disassembly:
sub rsp, 0x28
lea rcx, [0x140003410]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.__________________n____
call fcn.140001054
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
cmp eax, 0xa
jne 0x1400011dd
add rsp, 0x28
ret

Function at 0x1400011f0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
call qword [sym.imp.USER32.dll_EmptyClipboard]
or rbx, 0xffffffffffffffff
mov rdx, rbx
inc rdx
cmp byte [rdi + rdx], 0
jne 0x140001217
inc rdx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rsi, rax
test rax, rax
jne 0x140001240
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14000128c
inc rbx
cmp byte [rdi + rbx], 0
jne 0x140001240
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalLock]
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rdx, rsi
mov ecx, 1
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x14000129c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1400012ba
lea ecx, [rax + 2]
call fcn.140001118
mov ebx, 1
mov ecx, ebx
call qword [sym.imp.USER32.dll_IsClipboardFormatAvailable]
test eax, eax
jne 0x1400012e5
lea rcx, str._______________n
call fcn.140001054
call qword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [rbx + 2]
call fcn.140001118
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetClipboardData]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
mov rcx, rbx
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret
Function at 0x14000131c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea r8, [0x140003440]
lea rdx, str.dialogname.txt
lea rcx, [rbp + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen_s]
mov r8, qword [rbp + 7]
test r8, r8
jne 0x14000136a
lea ecx, [r8 + 4]
call fcn.140001118
mov r8, qword [rbp + 7]
xorps xmm0, xmm0
lea rcx, [rbp + 0xf]
xor eax, eax
movups xmmword [rbp + 0xf], xmm0
mov word [rbp + 0x3f], ax
movups xmmword [rbp + 0x1f], xmm0
lea edx, [rax + 0x31]
movups xmmword [rbp + 0x2f], xmm0
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fgets]
mov rcx, qword [rbp + 7]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
lea rdx, [rbp + 0xf]
xor ecx, ecx
call qword [sym.imp.USER32.dll_FindWindowA]
movups xmm0, xmmword [str.frando_ru_______]
mov cl, byte [0x140003468]
xor edx, edx
mov byte [rbp - 0x59], cl
mov rbx, rax
lea rcx, [rbp - 0x58]
movaps xmmword [rbp - 0x69], xmm0
lea r8d, [rdx + 0x53]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbp - 0x69]
call fcn.1400011f0
test eax, eax
jne 0x1400013dd
lea ecx, [rax + 1]
call fcn.140001118
xor r9d, r9d
xor r8d, r8d
mov edx, 0x302
mov rcx, rbx
call qword [sym.imp.USER32.dll_SendMessageA]
xor r9d, r9d
mov edx, pe_nt_image_headers64
mov rcx, rbx
lea r8d, [r9 + 0xd]
call qword [sym.imp.USER32.dll_SendMessageA]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140001770
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rbp
ret
Function at 0x1400015d8
Capabilities:
Execute command

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x38], rax
jmp 0x1400015f4
call fcn.1400011c0
lea rcx, [0x140003410]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, str.______frando_ru____.__n__________n
call fcn.140001054
lea rdx, [rsp + 0x30]
lea rcx, [0x1400034a4]
call fcn.1400010dc
cmp dword [rsp + 0x30], 2
je 0x1400015ef
mov edi, 0x3e8
mov edx, 0x190
mov ecx, edx
call qword [sym.imp.USER32.dll_SetCursorPos]
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 6]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x11
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x41
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x11
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x41
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x11
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov cl, 0x43
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x11
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
xor r9d, r9d
xor edx, edx
mov cl, 0x43
lea r8d, [r9 + 2]
call qword [sym.imp.USER32.dll_keybd_event]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x2bc
mov ecx, 0x190
call qword [sym.imp.USER32.dll_SetCursorPos]
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 6]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x190
mov ecx, edi
call qword [sym.imp.USER32.dll_SetCursorPos]
and qword [rsp + 0x20], 0
xor edx, edx
xor r9d, r9d
xor r8d, r8d
lea ecx, [rdx + 6]
call qword [sym.imp.USER32.dll_mouse_event]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140001424
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000162a
Function at 0x1400a7764
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [0x1400ab230]
test rax, rax
je 0x1400a77ae
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a77ae
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a77ae
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a77ae
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a77ae
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a77b0
xor al, al
add rsp, 0x28
ret
Function at 0x1400ce4bc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400bfb08
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400bfb08
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400ce60c
cmp rax, 0xffffffffffffffff
je 0x1400ce60c
xor edi, edi
test rbp, rbp
jle 0x1400ce5b7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400bc774
mov rbx, rax
test rax, rax
jne 0x1400ce544
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400ce5ad
mov edx, 0x8000
mov ecx, r14d
call fcn.1400ba554
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400c1084
cmp eax, 0xffffffff
je 0x1400ce58d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400ce554
mov edx, r15d
mov ecx, r14d
call fcn.1400ba554
jmp 0x1400ce5ad
cmp byte [rsi + 0x38], dil
je 0x1400ce5a4
cmp dword [rsi + 0x34], 5
jne 0x1400ce5a4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x1400ce5ad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400bc7ec
jmp 0x1400ce620
jns 0x1400ce620
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400bfb08
cmp rax, 0xffffffffffffffff
jne 0x1400ce5d8
cmp byte [rsi + 0x30], dil
je 0x1400ce620
mov edi, dword [rsi + 0x2c]
jmp 0x1400ce620
mov ecx, r14d
call fcn.1400c6f80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400ce620
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
jmp 0x1400ce620
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400ce619
mov eax, dword [rsi + 0x2c]
jmp 0x1400ce61e
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400bfb08
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x1400cf470
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400cf498
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400cf498
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0xcd5660
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0xcd566d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0xcd567d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0xcd5665
lea eax, [rcx + 1]
jmp 0xcd568b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0xcd569e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0xcd5684
sub eax, 3
jb 0xcd56be
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0xcd570d
sar eax, 1
movsxd rbp, eax
jb 0xcd56f4
jmp 0xcd56cc
add ebx, ebx
jne 0xcd56ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xcd56f4
inc ecx
add ebx, ebx
jne 0xcd56da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0xcd56f4
call r11
adc ecx, ecx
add ebx, ebx
jne 0xcd56ed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0xcd56dc
add ecx, 2
jmp 0xcd56f9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.00cd5622
jmp 0xcd566d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3d5400
mov dl, 0xa7
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0xcd5759
cmp rsi, rcx
jae 0xcd5761
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0xcd5740
cmp al, 0x8f
ja 0xcd5740
cmp byte [rsi - 2], 0xf
je 0xcd5746
sub al, 0xe8
cmp al, 1
ja 0xcd572a
cmp rsi, rcx
jae 0xcd5761
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0xcd5730
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0xcd5761
lodsb al, byte [rsi]
jmp 0xcd5740
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8ca000]
mov eax, dword [rdi]
or eax, eax
je 0xcd57be
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x8d5000]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0xcd576e
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0xcd57b8
mov qword [rbx], rax
add rbx, 8
jmp 0xcd578e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0xcd5802
cmp al, 0xef
ja 0xcd57ea
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0xcd57ca
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0xcd57d9
mov eax, dword [rdi]
add rdi, 4
jmp 0xcd57d9
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0xcd5856
sub rsp, 0xffffffffffffff80
jmp 0x4689a0
Function at 0x140002010
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140003b89
call 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]
jmp 0x140003bf9
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x140003bf3
test rax, rax
jle 0x140003bd3
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call fcn.14000506c
mov edx, ebp
mov rcx, rdi
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
add r14, rbp
test rbx, rbx
jle 0x140003bf3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003bf3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140003c14
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
test r8, r8
jg 0x140003c44
xor eax, eax
jmp 0x140003d29
cmp qword [rcx + 0x68], 0
je 0x140003c56
call 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]
jmp 0x140003d29
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x28], rax
test rax, rax
je 0x140003ca7
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x20]
call fcn.140003d44
mov rcx, rsi
mov rbx, qword [rax]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rbx
mov rcx, rbp
mov rdx, rax
call fcn.14000506c
sub qword [rsp + 0x20], rbx
mov edx, ebx
mov rcx, rsi
add rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rsi + 0x80], 0
je 0x140003d1e
mov rcx, rsi
call fcn.1400048b8
mov rcx, qword [rsp + 0x20]
mov ebx, 0xfff
jmp 0x140003cf2
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
add rbp, rax
sub rcx, rax
mov qword [rsp + 0x20], rcx
cmp rax, rbx
jne 0x140003d23
cmp rcx, rbx
ja 0x140003cc5
test rcx, rcx
je 0x140003d23
mov r9, qword [rsi + 0x80]
mov r8, rcx
mov rcx, rbp
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
jmp 0x140003d23
mov rcx, qword [rsp + 0x20]
sub rdi, rcx
mov rax, rdi
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1400065b0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140004934
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x14000d010]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp qword [rcx + 0x68], 0
mov rdi, rcx
je 0x1400049c3
cmp byte [rcx + 0x71], 0
je 0x1400049c3
call fcn.14000463c
mov r8, qword [rdi]
mov edx, eax
mov rcx, rdi
mov ebx, eax
call qword [r8 + 0x18]
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x34], ebx
lea rcx, [rsp + 0x34]
mov dword [rsp + 0x30], eax
call fcn.140005050
test al, al
jne 0x140004a1b
mov rcx, qword [rdi + 0x68]
lea rax, [rsp + 0x38]
lea rdx, [rdi + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x40]
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 0x1400049e0
sub eax, 1
je 0x1400049e4
cmp eax, 2
jne 0x140004a1b
mov byte [rdi + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400065b0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rdi
ret
mov byte [rdi + 0x71], 0
mov rbx, qword [rsp + 0x38]
lea rax, [rsp + 0x40]
sub rbx, rax
je 0x140004a12
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x40]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140004a1b
cmp byte [rdi + 0x71], 0
sete al
jmp 0x1400049c5
xor al, al
jmp 0x1400049c5