joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400049c8
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0xf90]
mov eax, 0x1090
call fcn.140004ef0
sub rsp, rax
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rbp + 0xf80], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 0x800
lea rcx, [rbp + 0x780]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call fcn.14000170c
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x780]
xor r15d, r15d
or r12, 0xffffffffffffffff
mov qword [rsp + 0x28], r15
mov r9, r12
mov rcx, qword [rax]
mov r8d, 0x400
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnwprintf_s]
test eax, eax
cmovs eax, r12d
test eax, eax
jns 0x140004a62
mov word [rbp + 0xf7e], r15w
xor edx, edx
lea rcx, [rsp + 0x40]
lea r8d, [rdx + 0x40]
call sub.VCRUNTIME140.dll_memset
mov ebx, 0x20
lea rcx, [rsp + 0x40]
mov edx, ebx
call fcn.140004910
lea r8, [0x14000a96c]
mov edx, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
mov r8, rsi
lea rcx, [rbp - 0x80]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, r12
inc rax
cmp word [rdi + rax*2], r15w
jne 0x140004aa8
cmp rax, 6
jbe 0x140004ad5
add rax, 0xfffffffffffffffa
lea rdx, [0x14000a970]
lea rcx, [rdi + rax*2]
call sub.api_ms_win_crt_string_l1_1_0.dll_wcscmp
test eax, eax
mov eax, 1
je 0x140004ad8
mov eax, r15d
lea rcx, [rsp + 0x40]
mov r14, r12
inc r14
cmp word [rcx + r14*2], r15w
jne 0x140004ae0
test eax, eax
lea rcx, [0x14000a990]
lea rdi, str.Error:
cmove rdi, rcx
lea rsi, [r14 + r14]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rbp + 0x780]
mov edx, 0x3ff
mov qword [rsp + 0x38], r9
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x30], rdi
lea r9, [0x14000a998]
mov dword [rsp + 0x28], ebx
sub rdx, r14
add rcx, rsi
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.140004c00
mov rcx, qword [rbp + 0x776]
test eax, eax
movabs rdx, 0x2e002e002e
mov r8, rsi
cmovs rcx, rdx
lea rdx, [rsp + 0x40]
mov qword [rbp + 0x776], rcx
lea rcx, [rbp - 0x80]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rbp - 0x80]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], r15w
jne 0x140004b7e
mov eax, dword [0x14000a994]
mov dword [rcx], eax
lea rcx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0xf80]
xor rcx, rsp
call fcn.140004f50
lea r11, [rsp + 0x1090]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret

Function at 0x140005bf4
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400067b0
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400067b0
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400067b0
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400067a4
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400067c2
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140006792
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400067b2
Function at 0x1406b9f60
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1406b9f6d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1406b9f7d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1406b9f65
lea eax, [rcx + 1]
jmp 0x1406b9f8b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1406b9f9e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1406b9f84
sub eax, 3
jb 0x1406b9fbe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1406ba00d
sar eax, 1
movsxd rbp, eax
jb 0x1406b9ff4
jmp 0x1406b9fcc
add ebx, ebx
jne 0x1406b9fca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406b9ff4
inc ecx
add ebx, ebx
jne 0x1406b9fda
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1406b9ff4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1406b9fed
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1406b9fdc
add ecx, 2
jmp 0x1406b9ff9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1406b9f22
jmp 0x1406b9f6d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x6b0000]
mov eax, dword [rdi]
or eax, eax
je 0x1406ba079
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x6ba1dc]
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 0x1406ba01d
jns 0x1406ba052
movzx rdx, word [rdi]
add rdi, 2
jmp 0x1406ba05c
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 0x1406ba073
mov qword [rbx], rax
add rbx, 8
jmp 0x1406ba03d
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 0x1406ba0bd
cmp al, 0xef
ja 0x1406ba0a5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1406ba085
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1406ba094
mov eax, dword [rdi]
add rdi, 4
jmp 0x1406ba094
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 + 0x267]
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
mov byte [fcn.1406ba13c], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.1406ba13c
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1406ba12c
sub rsp, 0xffffffffffffff80
jmp 0x1404706fc
Function at 0x140856058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1408561df
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 0x140856089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14085606f
add dl, dl
jne 0x140856096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408560f6
xor eax, eax
add dl, dl
jne 0x1408560a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408561ad
add dl, dl
jne 0x1408560b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408560c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408560d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408560dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408560ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14085607e
mov eax, 1
add dl, dl
jne 0x140856106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140856113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408560fb
sub eax, ebx
mov ebx, 1
jne 0x14085614c
mov ecx, 1
add dl, dl
jne 0x14085612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14085613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140856123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140856168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140856175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14085615d
cmp eax, 0x7d00
jae 0x14085619b
cmp eax, 0x500
jb 0x140856196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085607e
cmp eax, 0x7f
ja 0x14085619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14085607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408561d2
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 0x14085607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001d80
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
push rbx
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
call fcn.140002110
test eax, eax
jne 0x140001ecf
mov ecx, dword [rsp + 0x30]
xor r8d, r8d
mov rdx, rbx
call sym.run_w_py3.7_win_amd64.exe_PySys_SetArgvEx
mov rax, qword [0x14000c1e0]
test rax, rax
jne 0x140001e23
mov r10, qword [0x14000c1a8]
mov rbx, qword [0x14000c278]
test r10, r10
je 0x140001df2
nop dword [rax + rax]
cmp rbx, qword [r10]
je 0x140001ed5
mov r10, qword [r10 + 0x10]
test r10, r10
jne 0x140001de0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.PyImport_ImportModule
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
lea rcx, [0x140004320]
cmove rax, rcx
mov qword [0x14000c1e0], rax
lea rcx, [0x14000b1fc]
call rax
mov rbx, rax
test rax, rax
je 0x140001e7a
xor r8d, r8d
lea rcx, str._MessageBox
xor edx, edx
call sym.run_w_py3.7_win_amd64.exe_PyCFunction_NewEx
mov rdx, qword [str._MessageBox]
mov r8, rax
mov rcx, rbx
call sym.run_w_py3.7_win_amd64.exe_PyObject_SetAttrString
xor r8d, r8d
lea rcx, str._SHGetSpecialFolderPath
xor edx, edx
call sym.run_w_py3.7_win_amd64.exe_PyCFunction_NewEx
mov rdx, qword [str._SHGetSpecialFolderPath]
mov r8, rax
mov rcx, rbx
call sym.run_w_py3.7_win_amd64.exe_PyObject_SetAttrString
call fcn.140002aa0
lea rcx, str.PYTHONINSPECT
mov ebx, eax
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x140001ec8
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rax
lea rdx, str._stdin_
call sym.run_w_py3.7_win_amd64.exe_Py_FdIsInteractive
test eax, eax
je 0x140001ec8
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
xor r8d, r8d
lea rdx, [0x14000b3a8]
mov rcx, rax
call sym.run_w_py3.7_win_amd64.exe_PyRun_InteractiveLoopFlags
call sym.run_w_py3.7_win_amd64.exe_Py_Finalize
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov eax, dword [r10 + 0x20]
lea rcx, [0x14000b578]
mov r9, qword [r10 + 8]
mov r8, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
call fcn.140004880
mov rcx, qword [r10]
lea rdx, str.PyImport_ImportModule
call fcn.140003200
jmp 0x140001e1c
Function at 0x140015fb0
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.0x140015fd1
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 0x140015ffe
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140016000
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140016059
test ecx, ecx
jle 0x140016039
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 0x140016059
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140016059
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
outsb dx, byte [rsi]
add byte [0xc01825df], ch
add byte [rax], al
invalid
Function at 0x140016080
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400160b1
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je case.default.0x1400160c8
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400160eb
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400160ed
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140016129
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400161be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140016164
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 0x14001619e
nop dword [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 0x1400161be
cmp rbx, rax
ja 0x140016170
test rbx, rbx
je 0x1400161be
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
and edx, dword [rdi]
adc al, 9
add eax, 0x11096504
or eax, 0x2e1e3111
adc dword [rdx], esp
and eax, 0x321f2027
add dword [rdx + 0x6d], ebp
insd dword [rdi], dx
std
invalid
Function at 0x1400165e0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400cf040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001660d
xor eax, eax
jmp 0x140016779
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140016647
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140016647
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 0x140016779
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001676c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001668a
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 0x1400166b5
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 0x140016771
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140016724
sub eax, 1
je 0x140016724
cmp eax, 2
jne 0x14001676c
movsx ecx, byte [rsp + 0x40]
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 0x140016771
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140016752
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 0x14001676c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140016771
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400a8310
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140018150
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400cf040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140018223
cmp byte [rcx + 0x71], 0
je 0x140018223
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001821f
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 0x1400181e4
sub eax, 1
je 0x1400181e8
cmp eax, 2
jne 0x14001821f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a8310
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140018216
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 0x14001821f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400181cc
xor al, al
jmp 0x1400181cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a8310
add rsp, 0x60
pop rbx
ret
Function at 0x14002c610
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x1400cf040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rsi, rdx
mov r14, rcx
lea rcx, [rsp + 0x28]
call fcn.140008dd0
nop
mov r8d, 3
lea rdx, [0x1400b3be4]
mov rcx, rsi
call fcn.1400373b0
mov edi, dword [rsp + 0x20]
xor ebx, ebx
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, ebx
test ax, ax
cmovns ecx, edi
mov edi, ecx
inc ebx
cmp ebx, 0x100
jl 0x14002c658
cmp ecx, dword [0x1400cf0d8]
je 0x14002c6ac
lea eax, [rcx - 1]
cmp eax, 0xfe
ja 0x14002c656
mov dword [r14], ecx
mov edx, ecx
lea rcx, [rsp + 0x48]
call fcn.140006150
mov rdx, rax
mov rcx, rsi
call fcn.140008d00
lea rcx, [rsp + 0x48]
call fcn.140009140
jmp 0x14002c6d5
lea rax, [rsp + 0x28]
cmp rsi, rax
je 0x14002c6d5
lea rdx, [rsp + 0x28]
cmp qword [rsp + 0x40], 0xf
cmova rdx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x38]
mov rcx, rsi
call fcn.1400373b0
nop
lea rcx, [rsp + 0x28]
call fcn.140009140
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400a8310
mov rbx, qword [rsp + 0xa0]
add rsp, 0x70
pop r14
pop rdi
pop rsi
ret
Function at 0x140035b00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x40
mov rsi, rdx
mov r14, rcx
mov qword [rsp + 0x78], rcx
mov rax, qword [rdx]
mov qword [rcx], rax
mov eax, dword [rdx + 8]
mov dword [rcx + 8], eax
mov eax, dword [rdx + 0xc]
mov dword [rcx + 0xc], eax
mov eax, dword [rdx + 0x10]
mov dword [rcx + 0x10], eax
mov eax, dword [rdx + 0x14]
mov dword [rcx + 0x14], eax
mov eax, dword [rdx + 0x18]
mov dword [rcx + 0x18], eax
mov eax, dword [rdx + 0x1c]
mov dword [rcx + 0x1c], eax
mov rax, qword [rdx + 0x20]
mov qword [rcx + 0x20], rax
mov eax, dword [rdx + 0x28]
mov dword [rcx + 0x28], eax
add rcx, 0x30
add rdx, 0x30
call fcn.140008dd0
nop
lea r15, [r14 + 0x50]
xor eax, eax
mov qword [r15], rax
mov qword [r15 + 8], rax
mov qword [r15 + 0x10], rax
mov rdx, qword [rsi + 0x58]
sub rdx, qword [rsi + 0x50]
sar rdx, 5
test rdx, rdx
je 0x140035be1
mov rcx, r15
call fcn.140020650
mov qword [rsp + 0x80], r15
mov rbx, qword [r15]
mov rbp, qword [rsi + 0x58]
mov rdi, qword [rsi + 0x50]
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], r15
cmp rdi, rbp
je 0x140035bdd
nop word [rax + rax]
mov rdx, rdi
mov rcx, rbx
call fcn.140008dd0
add rbx, 0x20
mov qword [rsp + 0x28], rbx
add rdi, 0x20
cmp rdi, rbp
jne 0x140035bc0
mov qword [r15 + 8], rbx
lea rbx, [r14 + 0x68]
mov qword [rsp + 0x78], rbx
mov rax, qword [rsi + 0x68]
mov qword [rbx], rax
lea rcx, [rbx + 8]
lea rdx, [rsi + 0x70]
call fcn.140035d30
nop
movsd xmm0, qword [rsi + 0x90]
movsd qword [rbx + 0x28], xmm0
movsd xmm0, qword [rsi + 0x98]
movsd qword [rbx + 0x30], xmm0
mov eax, dword [rsi + 0xa0]
mov dword [rbx + 0x38], eax
movsd xmm0, qword [rsi + 0xa4]
movsd qword [rbx + 0x3c], xmm0
movsd xmm0, qword [rsi + 0xac]
movsd qword [rbx + 0x44], xmm0
mov eax, dword [rsi + 0xb4]
mov dword [rbx + 0x4c], eax
mov eax, dword [rsi + 0xb8]
mov dword [rbx + 0x50], eax
lea rcx, [rbx + 0x58]
lea rdx, [rsi + 0xc0]
call fcn.140008dd0
mov eax, dword [rsi + 0xe0]
mov dword [rbx + 0x78], eax
movsd xmm0, qword [rsi + 0xe4]
movsd qword [rbx + 0x7c], xmm0
movups xmm0, xmmword [rsi + 0xf0]
movups xmmword [rbx + 0x88], xmm0
mov eax, dword [rsi + 0x100]
mov dword [rbx + 0x98], eax
mov eax, dword [rsi + 0x104]
mov dword [rbx + 0x9c], eax
mov eax, dword [rsi + 0x108]
mov dword [rbx + 0xa0], eax
mov eax, dword [rsi + 0x10c]
mov dword [rbx + 0xa4], eax
mov eax, dword [rsi + 0x110]
mov dword [rbx + 0xa8], eax
mov eax, dword [rsi + 0x114]
mov dword [rbx + 0xac], eax
mov rax, qword [rsi + 0x118]
mov qword [rbx + 0xb0], rax
mov eax, dword [rsi + 0x120]
mov dword [rbx + 0xb8], eax
mov eax, dword [rsi + 0x124]
mov dword [rbx + 0xbc], eax
movzx eax, byte [rsi + 0x128]
mov byte [rbx + 0xc0], al
movss xmm0, dword [rsi + 0x130]
movss dword [r14 + 0x130], xmm0
mov rax, r14
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret