joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43b110
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x8e0
mov rbp, rsp
mov qword [rbp + 0x40], rcx
mov qword [rbp + 0x48], rdx
mov qword [rbp + 0x58], 0
nop
mov rcx, qword [rbp + 0x40]
mov rdx, qword [rbp + 0x48]
lea r8, [rbp + 0x60]
mov r9d, 0x400
call fcn.0043aeb0
mov ebx, eax
mov rax, qword [0x00702720]
cmp byte [rax], 0
je 0x43b248
mov rcx, qword [0x007020d0]
call fcn.0040a7b0
call fcn.00409010
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov esi, eax
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0043b0d0]
mov r8d, 1
movsxd r9, esi
call fcn.004115e0
mov ecx, 1
xor rdx, rdx
lea r8, [rbp + 0x60]
mov r9d, ebx
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
call sub.kernel32.dll_WideCharToMultiByte_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
mov rdx, qword [rbp + 0x58]
mov r8d, esi
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle_1
mov rcx, rax
lea rdx, [0x0043b2e8]
mov r8d, 2
lea r9, [rbp + 0x54]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile_1
jmp 0x43b28e
mov rcx, qword [0x00707f48]
call fcn.00411de0
mov rcx, rax
mov rax, qword [0x00701fc8]
mov edx, dword [rax + 8]
lea r8, [rbp + 0x860]
mov r9d, 0x40
call sub.user32.dll_LoadStringW_1
xor rcx, rcx
lea rdx, [rbp + 0x60]
lea r8, [rbp + 0x860]
mov r9d, 0x2010
call sub.user32.dll_MessageBoxW
nop
lea rcx, [rbp + 0x58]
mov rdx, qword [0x0043b0d0]
call fcn.004117c0
lea rsp, [rbp + 0x8e0]
pop rbx
pop rsi
pop rbp
ret

Function at 0x43d210
Capabilities:
Get file version info

Disassembly:
push rbp
sub rsp, 0x60
mov rbp, rsp
mov qword [rbp + 0x48], 0
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x70], rcx
nop
mov dword [rbp + 0x54], 0xffffffff
lea rcx, [rbp + 0x48]
mov rdx, qword [rbp + 0x70]
call fcn.0040eca0
lea rcx, [rbp + 0x48]
call fcn.0040eed0
mov rcx, qword [rbp + 0x48]
call fcn.0040f960
mov rcx, rax
lea rdx, [rbp + 0x40]
call sub.version.dll_GetFileVersionInfoSizeW
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
je 0x43d2c1
mov ecx, dword [rbp + 0x44]
call fcn.00408cd0
mov qword [rbp + 0x58], rax
nop
mov rcx, qword [rbp + 0x48]
call fcn.0040f960
mov rcx, rax
mov edx, dword [rbp + 0x40]
mov r8d, dword [rbp + 0x44]
mov r9, qword [rbp + 0x58]
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x43d2b7
mov rcx, qword [rbp + 0x58]
lea rdx, [0x0043d334]
lea r8, [rbp + 0x38]
lea r9, [rbp + 0x34]
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x43d2b7
mov rax, qword [rbp + 0x38]
mov eax, dword [rax + 8]
mov dword [rbp + 0x54], eax
nop
mov rcx, qword [rbp + 0x58]
call fcn.00408d00
nop
lea rcx, [rbp + 0x48]
call fcn.0040e5f0
mov eax, dword [rbp + 0x54]
lea rsp, [rbp + 0x60]
pop rbp
ret
Function at 0x4c43d0
Capabilities:
Encode data using xor

Disassembly:
mov al, 0xb5
mov r8, rcx
xor rdx, rdx
mov ecx, edx
and ecx, 0x3f
mov r9, r8
shr r9, cl
and r9b, 0xff
xor al, r9b
add edx, 1
cmp edx, 8
jne 0x4c43d8
nop
ret

Function at 0x507ee0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
mov qword [rbp + 0x60], r8
mov rcx, rsi
mov rdx, qword [rbp + 0x60]
mov r8, r9
call sub.kernel32.dll_FindResourceW
mov qword [rbx + 0x20], rax
cmp qword [rbx + 0x20], 0
jne 0x507f17
mov rcx, rbp
call fcn.00507dd0
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_LoadResource
mov qword [rbx + 0x28], rax
cmp qword [rbx + 0x28], 0
jne 0x507f36
mov rcx, rbp
call fcn.00507dd0
mov rcx, qword [rbx + 0x28]
call sub.kernel32.dll_LockResource
mov rdi, rax
mov rcx, rsi
mov rdx, qword [rbx + 0x20]
call sub.kernel32.dll_SizeofResource
mov rcx, rbx
mov rdx, rdi
mov r8d, eax
call fcn.00507640
lea rsp, [rbp + 0x28]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x51b220
Capabilities:
Resume thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x20], rcx
mov byte [rbp + 0x2f], dl
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
nop
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x19], 0
jne 0x51b253
movzx rax, byte [rbp + 0x2f]
test al, al
je 0x51b2b1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x1d], 0
jne 0x51b2b1
mov rax, qword [rbp + 0x20]
cmp byte [rax + 0x68], 0
jne 0x51b2b1
mov rax, qword [rbp + 0x20]
mov byte [rax + 0x1b], 0
mov byte [rax + 0x19], 0
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x51b2db
lea rcx, [rbp + 0x38]
mov rdx, qword [0x00702608]
call fcn.00414300
mov rcx, qword [0x004db2a0]
mov dl, 1
mov r8, qword [rbp + 0x38]
call fcn.0043b310
mov rcx, rax
call fcn.0040d860
jmp 0x51b2db
lea rcx, [rbp + 0x30]
mov rdx, qword [0x00702608]
call fcn.00414300
mov rcx, qword [0x004db2a0]
mov dl, 1
mov r8, qword [rbp + 0x30]
call fcn.0043b310
mov rcx, rax
call fcn.0040d860
nop
lea rcx, [rbp + 0x30]
mov edx, 2
call fcn.0040e6d0
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x51c150
Capabilities:
Suspend thread

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x50], rcx
mov rax, qword [rbp + 0x50]
movzx rax, byte [rax + 0x1b]
mov byte [rbp + 0x3f], al
nop
mov rax, qword [rbp + 0x50]
mov byte [rax + 0x1b], 1
mov rax, qword [rbp + 0x50]
mov rcx, qword [rax + 0x10]
call sub.kernel32.dll_SuspendThread
mov rcx, qword [rbp + 0x50]
test eax, eax
setge dl
call fcn.0051b060
jmp 0x51c1ab
lea rsp, [rbp + 0x40]
pop rbp
ret

Function at 0x51c1d0
Capabilities:
Resume thread

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, rcx
mov rcx, qword [rbx + 0x10]
call sub.kernel32.dll_ResumeThread
mov esi, eax
mov rcx, rbx
test esi, esi
setge dl
call fcn.0051b060
cmp esi, 1
jne 0x51c1fa
mov byte [rbx + 0x1b], 0
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x5a2de0
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rbp, rsp
mov qword [rbp + 0x90], rcx
mov qword [rbp + 0x98], rdx
xor rax, rax
mov qword [rbp + 0x38], rax
cmp qword [0x0070d270], 0
je 0x5a2fa4
mov ecx, 0x11
call sub.user32.dll_GetKeyState
mov rcx, qword [0x007025b0]
mov rcx, qword [rcx]
test ax, 0x8000
setne al
movzx rcx, byte [rcx + 0x178]
xor cl, al
test cl, cl
je 0x5a2fa4
mov rcx, qword [0x0070d278]
mov rax, qword [0x0070d278]
mov rbx, qword [rax]
call qword [rbx + 0x10]
xor rbx, rbx
mov rax, qword [0x0070d270]
mov esi, dword [rax + 0x10]
sub esi, 1
cmp ebx, esi
jg 0x5a2f66
add esi, 1
mov rcx, qword [0x0070d270]
mov edx, ebx
call fcn.004fbf30
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x50]
cmp rax, qword [rbp + 0x98]
je 0x5a2f5b
mov rax, qword [rbp + 0x50]
cmp byte [rax + 0x381], 0
je 0x5a2f5b
mov rcx, qword [rbp + 0x50]
mov rax, qword [rbp + 0x50]
mov rax, qword [rax]
call qword [rax + 0xd8]
test al, al
je 0x5a2f5b
mov rcx, qword [rbp + 0x50]
call fcn.005b5690
mov rcx, rax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5a2f5b
mov rcx, rbp
call fcn.005a2d60
test al, al
jne 0x5a2f5b
mov rcx, qword [rbp + 0x50]
mov dx, 0xffb9
call fcn.0040b860
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x98]
call rax
test al, al
je 0x5a2f5b
mov byte [rbp + 0x5f], 1
mov rcx, qword [rbp + 0x50]
mov dx, 0xffba
call fcn.0040b860
mov rdi, rax
mov rcx, qword [rbp + 0x50]
mov rdx, qword [rbp + 0x98]
lea r8, [rbp + 0x40]
mov r9, qword [rbp + 0x90]
lea rax, [rbp + 0x5f]
mov qword [rsp + 0x20], rax
call rdi
cmp byte [rbp + 0x5f], 0
je 0x5a2f5b
lea rcx, [rbp + 0x40]
mov rdx, qword [rbp + 0x90]
call fcn.00419090
test al, al
je 0x5a2f5b
mov rcx, qword [0x0070d278]
mov rdx, qword [rbp + 0x50]
call fcn.005a1f80
add ebx, 1
cmp ebx, esi
jne 0x5a2e6c
nop
mov rax, qword [0x0070d278]
cmp dword [rax + 0x10], 0
jle 0x5a2f84
mov rcx, qword [0x0070d278]
call fcn.005a2080
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
test rax, rax
je 0x5a2fa4
mov rcx, rbp
mov rdx, qword [rbp + 0x38]
call fcn.005a2b00
test al, al
jne 0x5a2fa4
xor rax, rax
mov qword [rbp + 0x38], rax
mov rax, qword [rbp + 0x38]
lea rsp, [rbp + 0x68]
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x5eb0b0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push rbp
sub rsp, 0x50
mov rbp, rsp
mov qword [rbp + 0x28], rbp
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], rdx
mov rcx, qword [rbp + 0x68]
call fcn.0040e780
nop
xor rcx, rcx
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x5eb199
nop
mov dword [rbp + 0x3c], 0
cmp qword [rbp + 0x68], 0
je 0x5eb0f7
mov rax, qword [rbp + 0x68]
mov eax, dword [rax - 4]
mov dword [rbp + 0x3c], eax
mov ecx, 0x2002
mov edx, dword [rbp + 0x3c]
add edx, edx
add edx, 2
movsxd rdx, edx
call sub.kernel32.dll_GlobalAlloc
mov qword [rbp + 0x48], rax
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalLock
mov qword [rbp + 0x40], rax
nop
mov dword [rbp + 0x38], 0
cmp qword [rbp + 0x68], 0
je 0x5eb138
mov rax, qword [rbp + 0x68]
mov eax, dword [rax - 4]
mov dword [rbp + 0x38], eax
mov rcx, qword [rbp + 0x68]
call fcn.0040f960
mov rcx, rax
mov rdx, qword [rbp + 0x40]
mov r8d, dword [rbp + 0x38]
add r8d, r8d
add r8d, 2
movsxd r8, r8d
call fcn.004090a0
call sub.user32.dll_EmptyClipboard
mov ecx, 0xd
mov rdx, qword [rbp + 0x48]
call sub.user32.dll_SetClipboardData
nop
mov rcx, qword [rbp + 0x48]
call sub.kernel32.dll_GlobalUnlock
jmp 0x5eb191
nop
call sub.user32.dll_CloseClipboard
jmp 0x5eb1b6
mov rcx, qword [0x00427348]
mov dl, 1
mov r8, qword [0x00701e70]
call fcn.0043b5a0
mov rcx, rax
call fcn.0040d860
nop
lea rcx, [rbp + 0x68]
call fcn.0040e5f0
lea rsp, [rbp + 0x50]
pop rbp
ret

Function at 0x5f2710
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
movzx rbx, word [0x005f2764]
mov ecx, 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5f2731
or bx, 1
mov ecx, 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5f2745
or bx, 4
mov ecx, 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x5f2759
or bx, 2
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1400234ac
Capabilities:
Parse pe header

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

Function at 0x140024adc
Capabilities:
Parse pe header

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

Function at 0x140024c24
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140024c24
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140024c93
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024c93
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024c93
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024c93
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024c93
cmp dword [rcx + 0x84], 0xe
jbe 0x140024c93
cmp dword [rcx + 0xf8], 0
je 0x140024c93
mov ecx, ebx
call fcn.140024b5c
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140024db8
nop
cmp dword [rbp + 0x20], 0
je 0x140024ce1
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140024bf0
int3

Function at 0x140026390
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400263b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400263b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x14002b4ac
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 0x14002b533
mov rsi, rbx
cmp word [rax], bp
je 0x14002b4f2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002b4dc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14002b4d8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002a544
mov rdi, rax
test rax, rax
je 0x14002b520
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400300a0
mov rbp, rdi
xor ecx, ecx
call fcn.140029800
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 0x1400014a0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, rdx
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14000150b
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x140001502
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400014fd
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400015d4
mov rcx, r8
call fcn.1401e12f0
xor edi, edi
xor al, al
jmp 0x1400015b8
mov r8, qword [rbx + 0x10]
mov r9d, 0x3000
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
je 0x1400014c8
cmp qword [rbx + 0x18], 0x10
mov r8, rbx
jb 0x14000153d
mov r8, qword [rbx]
mov r9, qword [rbx + 0x10]
xor edi, edi
mov rdx, rbp
mov qword [rsp + 0x20], rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
mov qword [rsp + 0x30], rdi
xor edx, edx
mov dword [rsp + 0x28], edi
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x18]
cmp rdx, 0x10
jb 0x1400015b6
mov rcx, qword [rbx]
inc rdx
cmp rdx, 0x1000
jb 0x1400015b1
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400015d4
mov rcx, r8
call fcn.1401e12f0
mov al, 1
mov byte [rbx], dil
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
mov qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400046e0
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 0x140004708
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 0x14000472e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140004730
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140004789
test ecx, ecx
jle 0x140004769
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 0x140004789
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140004789
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 0x1400047b0
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 0x1400047d2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400047e8
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 0x140004804
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004806
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004842
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 0x1400048de
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000487d
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 0x1400048be
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 0x1400048de
cmp rbx, rax
ja 0x140004890
test rbx, rbx
je 0x1400048de
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 0x140004d10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140004d3d
xor eax, eax
jmp 0x140004ea9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004d77
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004d77
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 0x140004ea9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140004e9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004dba
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 0x140004de5
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 0x140004ea1
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 0x140004e54
sub eax, 1
je 0x140004e54
cmp eax, 2
jne 0x140004e9c
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 0x140004ea1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004e82
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 0x140004e9c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140004ea1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1401e12d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140005370
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140005443
cmp byte [rcx + 0x71], 0
je 0x140005443
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000543f
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 0x140005404
sub eax, 1
je 0x140005408
cmp eax, 2
jne 0x14000543f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140005436
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 0x14000543f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400053ec
xor al, al
jmp 0x1400053ec
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x60
pop rbx
ret
Function at 0x140010b50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1402c8b58]
xor rax, rsp
mov qword [rsp + 0x60], rax
cmp byte [rcx + 0x20], 0
mov rbx, rcx
jne 0x140010c3d
mov qword [rsp + 0x88], rdi
lea rdx, [rsp + 0x20]
xor edi, edi
mov word [rsp + 0x28], 0x101
mov qword [rsp + 0x20], rdi
mov byte [rsp + 0x2a], dil
call fcn.1400109d0
mov rax, qword [rsp + 0x20]
test rax, rax
js 0x140010c35
cmp byte [0x1402cb5b8], dil
mov qword [rsp + 0x30], rax
jne 0x140010bbf
call sub.api_ms_win_crt_time_l1_1_0.dll__tzset
mov byte [0x1402cb5b8], 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x38]
call sub.api_ms_win_crt_time_l1_1_0.dll__localtime64_s
mov eax, dword [rsp + 0x4c]
test eax, eax
jns 0x140010be1
xor ecx, ecx
call fcn.14000c920
mov eax, dword [rsp + 0x4c]
mov ecx, 0x76c
mov word [rbx + 0x1e], di
add ax, cx
mov dword [rbx + 0x24], 0xffffffff
mov word [rbx + 0x10], ax
movzx eax, word [rsp + 0x48]
inc ax
mov byte [rbx + 0x20], 1
mov word [rbx + 0x12], ax
movzx eax, word [rsp + 0x50]
mov word [rbx + 0x14], ax
movzx eax, word [rsp + 0x44]
mov word [rbx + 0x16], ax
movzx eax, word [rsp + 0x40]
mov word [rbx + 0x18], ax
movzx eax, word [rsp + 0x3c]
mov word [rbx + 0x1a], ax
movzx eax, word [rsp + 0x38]
mov word [rbx + 0x1c], ax
mov rdi, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1401e12d0
add rsp, 0x70
pop rbx
ret