joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140018fa8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14001902f
mov rsi, rbx
cmp word [rax], bp
je 0x140018fee
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018fd8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018fd4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400167d8
mov rdi, rax
test rax, rax
je 0x14001901c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d970
mov rbp, rdi
xor ecx, ecx
call fcn.1400158e8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b19c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001b1b2
mov al, 1
jmp 0x14001b212
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001b1c3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001b210
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400192f0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b210
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001b210
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001b210
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001b212
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14001f430
Capabilities:
Parse pe header

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

Disassembly:
mov eax, 0x14d8
call fcn.140018d30
sub rsp, rax
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x14c0], rax
cmp byte [0x140028fc0], 0
je 0x1400014cb
cmp qword [0x140028fc8], 0
jne 0x1400014cb
mov qword [rsp + 0x14d0], rbx
xor ebx, ebx
mov qword [rsp + 0x58], rbx
lea edx, [rbx + 0x10]
call fcn.140008160
movups xmm0, xmmword [str.DebugLogs]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x68], 0xf
mov qword [rsp + 0x60], 9
movups xmmword [rax], xmm0
movzx ecx, word [0x140021ee0]
mov word [rax + 0x10], cx
lea rcx, [rsp + 0x50]
mov word [rax + 0x12], bx
cmp qword [rsp + 0x68], 8
cmovae rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x1400013e2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400013e2
cmp eax, 0xb7
je 0x1400013e2
mov edx, eax
lea rcx, str.Failed_to_create_log_directory
call fcn.140001250
jmp 0x140001485
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [rsp + 0x4a]
movzx edx, word [rsp + 0x48]
movzx eax, word [rsp + 0x4c]
movzx r10d, word [rsp + 0x46]
movzx r9d, word [rsp + 0x42]
movzx r8d, word [rsp + 0x40]
mov dword [rsp + 0x38], eax
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x28], edx
lea rdx, str.DebugLogs_04d_02d_02d__02d_02d_02d_upd.txt
mov dword [rsp + 0x20], r10d
call qword [sym.imp.USER32.dll_wsprintfW]
xor r9d, r9d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
lea rcx, [rsp + 0x70]
mov edx, 0x40000000
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 7]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x140028fc8], rax
cmp rax, 0xffffffffffffffff
jne 0x140001485
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Failed_to_create_log_file
call fcn.140001250
mov qword [0x140028fc8], rbx
mov rdx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x14d0]
cmp rdx, 8
jb 0x1400014cb
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400014c6
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400014e3
call fcn.14000a160
mov rcx, qword [rsp + 0x14c0]
xor rcx, rsp
call fcn.140009c10
add rsp, 0x14d8
ret
call fcn.1400105ac
int3
Function at 0x140001ca0
Capabilities:
Delete directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rbp + 0x47], rax
xorps xmm0, xmm0
movups xmmword [rbp + 0x27], xmm0
mov edx, 0x10
call fcn.140008160
mov qword [rbp + 0x27], rax
mov qword [rbp + 0x37], 0xe
mov qword [rbp + 0x3f], 0xf
movups xmm0, xmmword [str.tupdates_ready]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400220d0]
movsd qword [rax + 0x10], xmm0
mov ecx, dword [0x1400220d8]
mov dword [rax + 0x18], ecx
xor ebx, ebx
mov word [rax + 0x1c], bx
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
lea edx, [rbx + 0x10]
call fcn.140008160
mov qword [rbp + 7], rax
mov qword [rbp + 0x17], 0xd
mov qword [rbp + 0x1f], 0xf
movups xmm0, xmmword [str.tupdates_temp]
movups xmmword [rax], xmm0
movsd xmm0, qword [0x1400220f0]
movsd qword [rax + 0x10], xmm0
movzx ecx, word [0x1400220f8]
mov word [rax + 0x18], cx
mov word [rax + 0x1a], bx
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
lea edx, [rbx + 0x10]
call fcn.140008160
mov qword [rbp - 0x19], rax
mov qword [rbp - 9], 8
mov qword [rbp - 1], 0xf
movups xmm0, xmmword [str.tupdates]
movups xmmword [rax], xmm0
mov word [rax + 0x10], bx
lea rcx, [rbp + 0x27]
call fcn.140001980
lea rcx, [rbp + 7]
call fcn.140001980
lea rcx, [rbp - 0x19]
cmp qword [rbp - 1], 8
cmovae rcx, qword [rbp - 0x19]
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140001df8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001df3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001ea4
call fcn.14000a160
mov qword [rbp - 9], rbx
mov qword [rbp - 1], 7
mov word [rbp - 0x19], bx
mov rdx, qword [rbp + 0x1f]
cmp rdx, 8
jb 0x140001e45
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001eaa
call fcn.14000a160
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 8
jb 0x140001e81
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001e7c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e9e
call fcn.14000a160
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140009c10
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rbp
ret
call fcn.1400105ac
nop
call fcn.1400105ac
nop
call fcn.1400105ac
int3
Function at 0x140006c50
Capabilities:
Create directory

Disassembly:
push rbx
mov eax, 0x3d80
call fcn.140018d30
sub rsp, rax
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x3d70], rax
mov rbx, rcx
lea rdx, str._stdata_
mov r8, rcx
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140006cad
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x140006ce6
mov r8, rbx
lea rdx, str._sdumps_
lea rcx, [rsp + 0x80]
call qword [sym.imp.USER32.dll_wsprintfW]
xor edx, edx
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x140006ced
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140006ced
xor eax, eax
jmp 0x140006dea
lea r8, str.Updater.exe
mov edx, 0xa28
lea rcx, [rsp + 0x14d0]
call fcn.140010134
mov edx, 0x2e
lea rcx, [rsp + 0x14d0]
call fcn.14000b868
test rax, rax
je 0x140006d2d
lea rdx, [0x14002207c]
mov rcx, rax
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
movzx ecx, word [rsp + 0x7c]
movzx edx, word [rsp + 0x7a]
movzx r8d, word [rsp + 0x78]
movzx r9d, word [rsp + 0x76]
movzx r10d, word [rsp + 0x72]
movzx r11d, word [rsp + 0x70]
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x58], eax
lea rax, str.0.1.0
mov dword [rsp + 0x50], ecx
lea rcx, [rsp + 0x2920]
mov dword [rsp + 0x48], edx
lea rdx, str._s_s__s__04d_02d_02d__02d_02d_02d__ld__ld.dmp
mov dword [rsp + 0x40], r8d
lea r8, [rsp + 0x80]
mov dword [rsp + 0x38], r9d
lea r9, [rsp + 0x14d0]
mov dword [rsp + 0x30], r10d
mov dword [rsp + 0x28], r11d
mov qword [rsp + 0x20], rax
call qword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
lea rcx, [rsp + 0x2920]
mov qword [rsp + 0x30], rax
xor r9d, r9d
mov dword [rsp + 0x28], eax
mov edx, 0xc0000000
mov dword [rsp + 0x20], 2
lea r8d, [rax + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, qword [rsp + 0x3d70]
xor rcx, rsp
call fcn.140009c10
add rsp, 0x3d80
pop rbx
ret
Function at 0x140006e10
Capabilities:
Query environment variable

Disassembly:
push rdi
mov eax, 0x2900
call fcn.140018d30
sub rsp, rax
mov rax, qword [0x140027010]
xor rax, rsp
mov qword [rsp + 0x28f0], rax
mov rdi, rcx
mov rcx, qword [0x140028fc8]
test rcx, rcx
je 0x140006e51
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140028fc8], 0
lea rcx, str.DBGHELP.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x140006fc5
lea rdx, str.MiniDumpWriteDump
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140029020], rax
test rax, rax
je 0x140006fc5
mov qword [rsp + 0x2920], rsi
xor ecx, ecx
xor esi, esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r8d, 0xa28
lea rdx, [rsp + 0x50]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140006fbd
mov eax, eax
lea rdx, str.Updater.exe
mov qword [rsp + 0x2918], rbx
lea rbx, [rsp + rax*2 + 0x3a]
mov rcx, rbx
call fcn.14000ffc4
test eax, eax
jne 0x140006f01
lea rdx, [0x14002207c]
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x50]
call fcn.140006c50
mov rsi, rax
lea rcx, [rax + 1]
test rcx, 0xfffffffffffffffe
jne 0x140006f57
mov r8d, 0xa28
lea rdx, [rsp + 0x14a0]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140006f52
mov eax, eax
lea rcx, [rsp + 0x14a0]
lea r8, str.Telegram_Desktop
lea rdx, str._s_
lea rcx, [rcx + rax*2]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rcx, [rsp + 0x14a0]
call fcn.140006c50
mov rsi, rax
test rsi, rsi
je 0x140006fb5
cmp rsi, 0xffffffffffffffff
je 0x140006fb5
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rsp + 0x44], rdi
mov rdi, qword [0x140029020]
mov dword [rsp + 0x40], eax
mov dword [rsp + 0x4c], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov r9d, 1
mov qword [rsp + 0x20], rcx
mov r8, rsi
mov rcx, rax
mov edx, ebx
call rdi
mov rbx, qword [rsp + 0x2918]
mov rsi, qword [rsp + 0x2920]
mov rcx, qword [rsp + 0x28f0]
xor rcx, rsp
call fcn.140009c10
add rsp, 0x2900
pop rdi
ret
Function at 0x1400095b4
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 0x14000962c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14000962c
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 0x14000962c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140009620
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14000963e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14000960e
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 0x14000962e

Function at 0x14000a8a0
Capabilities:
Parse pe header

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

Function at 0x140010b94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140010984
Function at 0x140013c70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140013cf7
mov rsi, rbx
cmp word [rax], bp
je 0x140013cb6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140013ca0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140013c9c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140012920
mov rdi, rax
test rax, rax
je 0x140013ce4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000f490
mov rbp, rdi
xor ecx, ecx
call fcn.140012a34
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140018c60
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018c88
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018c88
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001020
Capabilities:
Allocate or change rwx memory
Create thread
Inject dll
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
xor edx, edx
mov ecx, 0x1fffff
mov r8d, 0x43c0
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor edx, edx
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov rcx, rax
mov rdi, rax
lea r8d, [rdx + 0x32]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x32
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, str.D:projects_standardinjection_release_testlib.dll
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x30], 0
xor r8d, r8d
mov r9, rax
mov dword [rsp + 0x28], 0
xor edx, edx
mov qword [rsp + 0x20], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rax
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400011b0
mov rcx, rax
lea rdx, section..text
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___class_std::ios_base____ptr64____cdecl___class_std::ios_base____ptr64_____ptr64]
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___void_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [0x140001360]
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
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]
mov r9d, 0x8000
mov r8d, 0x32
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x40
pop rdi
ret

Function at 0x140001c8c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001cd6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001cd6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001cd6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001cd6
cmp dword [rcx + 0x84], 0xe
jbe 0x140001cd6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001cd8
xor al, al
add rsp, 0x28
ret
Function at 0x140003960
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 0x140003988
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 0x1400039ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400039b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003a09
test ecx, ecx
jle 0x1400039e9
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 0x140003a09
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003a09
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 0x140003a30
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 0x140003a52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003a68
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 0x140003a84
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003a86
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003ac2
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 0x140003b5e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140003afd
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 0x140003b3e
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 0x140003b5e
cmp rbx, rax
ja 0x140003b10
test rbx, rbx
je 0x140003b5e
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 0x140003f80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000c010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003fad
xor eax, eax
jmp 0x14000410a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140003fd8
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140003fd8
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x14000410a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400040fd
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000401b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140004046
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 0x140004102
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 0x1400040b5
sub eax, 1
je 0x1400040b5
cmp eax, 2
jne 0x1400040fd
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 0x140004102
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400040e3
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 0x1400040fd
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004102
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140005c90
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret