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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x1400399c8]
test eax, eax
jne 0x140025e53
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140025e33
mov dword [0x1400399c8], 1
jmp 0x140025e6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140025e4d
mov dword [0x1400399c8], 2
jmp 0x140025f49
mov eax, dword [0x1400399c8]
cmp eax, 1
jne 0x140025f40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140025f93
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x140025e95
add rbx, 2
cmp word [rbx], 0
jne 0x140025e81
add rbx, 2
cmp word [rbx], 0
jne 0x140025e81
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x140025f33
mov rcx, rbp
call fcn.1400219c0
test rax, rax
mov rsi, rax
je 0x140025f33
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x140025f0d
mov rcx, rsi
call fcn.14001db00
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140025f19
cmp eax, 2
je 0x140025f49
test eax, eax
jne 0x140025f93
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x140025f93
cmp byte [rax], 0
je 0x140025f72
nop
add rax, 1
cmp byte [rax], 0
jne 0x140025f60
add rax, 1
cmp byte [rax], 0
jne 0x140025f60
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.1400219c0
test rax, rax
mov rdi, rax
jne 0x140025fa5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001cf80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret
Function at 0x1400282b0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400212b0
xor ebx, ebx
cmp qword [0x140039c50], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x1400283dc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400284ef
lea rdx, [0x140030188]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400284ef
mov rcx, rax
call fcn.1400211e0
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140039c50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400211e0
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140039c58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400211e0
lea rcx, [rsp + 0x98]
mov qword [0x140039c60], rax
call fcn.140021c70
test eax, eax
je 0x14002838f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140020ef0
cmp dword [rsp + 0x98], 2
jne 0x1400283dc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400211e0
test rax, rax
mov qword [0x140039c70], rax
je 0x1400283dc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.1400211e0
mov qword [0x140039c68], rax
mov rcx, qword [0x140039c68]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140028488
cmp qword [0x140039c70], rbp
je 0x140028488
call fcn.1400213a0
mov rcx, qword [0x140039c70]
mov rsi, rax
call fcn.1400213a0
test rsi, rsi
mov r12, rax
je 0x140028488
test rax, rax
je 0x140028488
call rsi
test rax, rax
je 0x140028453
lea rcx, [rsp + 0x34]
mov r9d, InitCommonControls
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140028453
test byte [rsp + 0x40], 1
jne 0x140028488
lea rcx, [rsp + 0x30]
call fcn.140021cc0
test eax, eax
je 0x140028475
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.140020ef0
cmp dword [rsp + 0x30], 4
jb 0x140028482
bts edi, 0x15
jmp 0x1400284c6
bts edi, 0x12
jmp 0x1400284c6
mov rcx, qword [0x140039c58]
cmp rcx, rbp
je 0x1400284c6
call fcn.1400213a0
test rax, rax
je 0x1400284c6
call rax
test rax, rax
mov rbx, rax
je 0x1400284c6
mov rcx, qword [0x140039c60]
cmp rcx, rbp
je 0x1400284c6
call fcn.1400213a0
test rax, rax
je 0x1400284c6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140039c50]
call fcn.1400213a0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400284ef
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400284f1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x14002a880
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140037a90]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x14002a8c7
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140025630
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.14001d640
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140025630
add rsp, 0x38
ret

Function at 0x14002ac27
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140037a90]
jne 0x14002564a
rol rcx, 0x10
test cx, 0xffff
jne 0x140025646
repz ret
ror rcx, 0x10
jmp 0x14002ab80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140039d30]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140039e28]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14002ac05
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140039d30]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14002ac27
mov rax, qword [rsp + 0x88]
mov qword [0x140039e28], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140039dc8], rax
mov rax, qword [0x140039e28]
mov qword [0x140039ca0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140039db0], rax
mov dword [0x140039c90], 0xc0000409
mov dword [0x140039c94], 1
mov rax, qword [0x140037a90]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140037a98]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140039d28], eax
mov ecx, 1
call fcn.140027820
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140030b28]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140039d28], 0
jne 0x14002acae
mov ecx, 1
call fcn.140027820
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x1400020e4
Capabilities:
Parse pe header

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

Function at 0x140009c68
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140009a64
Function at 0x14000ff08
Capabilities:
Query environment variable

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, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000ff38
xor eax, eax
jmp 0x14000fffb
mov rbp, rbx
cmp word [rax], si
je 0x14000ff5d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ff44
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ff40
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000b7bc
movsxd r14, eax
test eax, eax
jne 0x14000ff9b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ff31
mov rcx, r14
call fcn.14000b75c
mov rdi, rax
test rax, rax
jne 0x14000ffb4
xor ecx, ecx
call fcn.14000aae4
jmp 0x14000ff90
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000b7bc
test eax, eax
jne 0x14000ffe5
mov rcx, rdi
call fcn.14000aae4
jmp 0x14000ffef
xor ecx, ecx
call fcn.14000aae4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x14001421c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140014232
mov al, 1
jmp 0x140014292
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140014243
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140014290
mov ecx, dword [rcx + 0x18]
nop
call fcn.140010770
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140014290
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140014290
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140014290
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140014292
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140015b08
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000e74c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140015b92
cmp byte [rbp - 0x21], r15b
je 0x140015b8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140015bc8
call fcn.14000ad34
test eax, eax
jne 0x140015bb4
cmp byte [rbp - 0x21], r15b
je 0x140015bac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140015bc8
cmp byte [rbp - 0x21], r15b
je 0x140015bc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000e5d0
test eax, eax
jne 0x140015c68
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000e74c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140015c07
cmp byte [rbp - 0x21], r15b
je 0x140015c3c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140015c3c
call fcn.14000ad34
test eax, eax
jne 0x140015c28
cmp byte [rbp - 0x21], r15b
je 0x140015c21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140015c3c
cmp byte [rbp - 0x21], r15b
je 0x140015c39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000e5d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140015c68
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140015c6b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140015c79
mov rcx, rdi
call fcn.14000aae4
cmp byte [rbp + 0x3f], r15b
je 0x140015c88
mov rcx, qword [rbp + 0x27]
call fcn.14000aae4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140018240
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140018268
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140018268
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140008bc0
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 0x140008be8
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 0x140008c0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140008c10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140008c69
test ecx, ecx
jle 0x140008c49
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 0x140008c69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140008c69
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 0x140008c90
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 0x140008cb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140008cc8
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 0x140008ce4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140008ce6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140008d22
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 0x140008dbe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140008d5d
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 0x140008d9e
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 0x140008dbe
cmp rbx, rax
ja 0x140008d70
test rbx, rbx
je 0x140008dbe
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 0x1400091f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140154010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000921d
xor eax, eax
jmp 0x14000937a
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140009248
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140009248
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 0x14000937a
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000936d
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14000928b
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 0x1400092b6
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 0x140009372
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 0x140009325
sub eax, 1
je 0x140009325
cmp eax, 2
jne 0x14000936d
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 0x140009372
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140009353
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 0x14000936d
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140009372
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400c7430
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140009d20
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140154010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140009df3
cmp byte [rcx + 0x71], 0
je 0x140009df3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140009def
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 0x140009db4
sub eax, 1
je 0x140009db8
cmp eax, 2
jne 0x140009def
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c7430
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140009de6
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 0x140009def
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140009d9c
xor al, al
jmp 0x140009d9c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400c7430
add rsp, 0x60
pop rbx
ret
Function at 0x14000d3a0
Capabilities:
Get graphical window text

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x140154010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov esi, r8d
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x28], rcx
xor r14d, r14d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x40], r14
mov ecx, 0x100
call fcn.1400c7450
mov qword [rsp + 0x30], rax
lea rbx, [rax + 0x100]
mov qword [rsp + 0x40], rbx
xor edx, edx
mov r8d, 0x100
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x38], rbx
mov rbx, qword [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, 0xff
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextA]
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
mov rdx, qword [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x14000d446
mov rcx, rbp
call fcn.140002120
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14000d498
mov rdx, qword [rsp + 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000d493
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000d493
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400c76e4
mov rax, rbp
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400c7430
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x14000d4c0
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x140154010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rdx
mov qword [rsp + 0x28], rcx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x1fe
call sub.VCRUNTIME140.dll_memset
mov edx, 0x452
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetDlgItem]
mov r8d, 0xfe
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.USER32.dll_GetWindowTextW]
xorps xmm0, xmm0
lea rax, [rsp + 0x30]
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], 0
mov r8, 0xffffffffffffffff
mov qword [rdi + 0x18], 0
inc r8
cmp word [rax + r8*2], 0
jne 0x14000d540
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14000dab0
mov rax, rdi
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400c7430
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret