joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005c710
Capabilities:
Create directory

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov r8, rdx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.140066630
mov rax, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
test rax, rax
je 0x14005c7c7
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x38]
lea rdx, [rsp + 0x20]
mov r8b, 1
call fcn.14005ea40
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
test rdi, rdi
je 0x14005c7c7
mov rcx, rdi
xor edx, edx
call qword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
je 0x14005c79b
test rsi, rsi
je 0x14005c797
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140006af0
xor esi, esi
jmp 0x14005c7c7
call qword [sym.imp.kernel32.dll_GetLastError]
mov ebx, eax
shl rbx, 0x20
or rbx, 2
test rsi, rsi
je 0x14005c7c4
add rsi, rsi
mov r8d, 2
mov rcx, rdi
mov rdx, rsi
call fcn.140006af0
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret

Function at 0x14005d570
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400929a8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14005d5b4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtReadFile]
cmp eax, 0x103
jne 0x14005d613
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0xc0000011
jne 0x14005d622
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
jmp 0x14005d65a
cmp eax, 0x103
je 0x14005d664
test eax, eax
js 0x14005d63f
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
mov qword [rsi], 0
jmp 0x14005d65a
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov qword [rsi], 1
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140092a10]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140053cc0
mov rcx, rax
call fcn.140049530
mov ecx, 7
int 0x29
ud2
Function at 0x14005d6d0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400929a8]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14005d714
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14005d77a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.kernel32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14005d7b1
test eax, eax
js 0x14005d78b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14005d7a4
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, [0x140092a10]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140053cc0
mov rcx, rax
call fcn.140049530
mov ecx, 7
int 0x29
ud2
Function at 0x140064390
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rsi
push rdi
sub rsp, 0x88
movdqa xmmword [rsp + 0x70], xmm6
mov rsi, rcx
lea rcx, [rsp + 0x40]
call fcn.140066630
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
test rcx, rcx
je 0x140064406
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.14005c160
mov rdi, qword [rsp + 0x28]
test rdi, rdi
je 0x140064414
movdqu xmm6, xmmword [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140064434
mov qword [rsi], rdi
movdqu xmmword [rsi + 8], xmm6
jmp 0x140064425
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
lea rcx, [rsp + 0x28]
call fcn.140049b20
mov qword [rsi], 0
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
ret
mov qword [rsi], 0
movq rdx, xmm6
test rdx, rdx
je 0x140064425
add rdx, rdx
mov r8d, 2
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0x70]
add rsp, 0x88
pop rdi
pop rsi
jmp fcn.140006af0

Function at 0x140064fe0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x140065018
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.140065030
nop
add rsp, 0x38
ret

Function at 0x140065030
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x140065073
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.kernel32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140051760]
mov qword [rbp - 0x28], rax
lea rax, str.6._t_
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str._._t_
lea rcx, [rbp - 0x60]
call fcn.1400807d0
ud2
Function at 0x1400656b0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
mov rsi, rcx
movzx eax, byte [0x1400b7141]
mov ecx, 0x10
mov edx, 8
call fcn.140006ae0
test rax, rax
je 0x14006578f
mov rbx, rax
mov qword [rax], r14
mov qword [rax + 8], rdi
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x140065820]
xor edi, edi
xor ecx, ecx
mov rdx, rsi
mov r9, rax
call qword [sym.imp.kernel32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140065781
mov rcx, qword [rbx]
mov qword [rbp - 0x18], rbx
mov rax, qword [rbx + 8]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x10], rax
call qword [rax]
mov rax, qword [rbp - 0x10]
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140065758
mov r8, qword [rax + 0x10]
mov rcx, qword [rbp - 0x20]
call fcn.140006af0
mov edx, 0x10
mov r8d, 8
mov rcx, qword [rbp - 0x18]
call fcn.140006af0
call qword [sym.imp.kernel32.dll_GetLastError]
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov edi, 1
mov rax, rdi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
mov qword [rbp - 0x10], r14
mov qword [rbp - 0x18], rdi
mov ecx, 8
mov edx, 0x10
call fcn.140080650
ud2
Function at 0x14007ac30
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14007acaa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14007aca0
cmp r10, r11
jb 0x14007ad43
cmp r10, rdx
ja 0x14007ad57
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14007aca2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14007ac80
jmp 0x14007ad17
ja 0x14007acaa
mov r11, r10
cmp rax, r8
jne 0x14007ac52
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14007ad1b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14007acf0
mov r8, r10
sub ecx, r9d
jns 0x14007ad0e
jmp 0x14007ad1d
cmp r10, rdx
je 0x14007ad29
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14007ad1d
xor al, 1
cmp r8, rdx
jne 0x14007acd0
jmp 0x14007ad1d
xor eax, eax
jmp 0x14007ad1d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valueassertion_failed:__buf.is_empty__
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140080870
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140080e20
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.140080da0
ud2
Function at 0x14007da60
Capabilities:
Parse pe header

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

Function at 0x14007f55d
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x48
lea rbp, [rsp + 0x40]
mov qword [rbp], 0xfffffffffffffffe
lea rcx, str.api_ms_win_core_synch_l1_2_0.dll
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14007f5bb
mov rdi, rax
lea rdx, [0x14008d7a6]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007f5bb
mov rsi, rax
lea rdx, [0x14008d7b4]
mov rcx, rdi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007f5bb
xor edi, edi
jmp 0x14007f63d
lea rcx, [0x14008d740]
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
test rax, rax
je 0x14007f694
mov rsi, rax
lea rdx, [0x14008d74a]
mov rcx, rax
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007f694
mov rbx, rax
lea rdx, [0x14008d75d]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007f694
mov rdi, rax
lea rdx, [0x14008d771]
mov rcx, rsi
call qword [sym.imp.kernel32.dll_GetProcAddress]
test rax, rax
je 0x14007f694
mov rsi, rax
lea rcx, [rbp - 0x20]
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call rbx
test eax, eax
jne 0x14007f694
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x18], rdi
mov qword [rbp - 0x10], rsi
mov qword [rbp - 8], rax
push 0x18
pop rcx
call fcn.140001b30
mov rcx, rax
mov rax, qword [rbp - 8]
mov qword [rcx + 0x10], rax
movups xmm0, xmmword [rbp - 0x18]
movups xmmword [rcx], xmm0
xor eax, eax
lock cmpxchg qword [0x1400b7148], rcx
je 0x14007f688
mov rsi, rax
mov qword [rbp - 0x18], rcx
call fcn.140041087
lea rcx, [rbp - 0x18]
call fcn.140001cbb
mov rcx, rsi
mov rax, rcx
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop rbp
ret
and qword [rbp - 0x18], 0
lea rcx, str.parking_lot_requires_either_NT_Keyed_Events__WinXP__or_WaitOnAddress_WakeByAddress__Win8_C:UsersWei.cargo_registry_srcindex.crates.io_6f17d22bba15001fparking_lot_core_0.9.8_src_thread_parkerwindowsmod.rs
lea r8, [0x14008d8a0]
push 0x5b
pop rdx
call fcn.14007f53f
ud2
Function at 0x140001350
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xa0
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rdx
mov r14, rcx
mov qword [rbp + 0x17], rcx
mov qword [rbp + 0x27], rdx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov r13d, 0xf
mov qword [rcx + 0x18], r13
mov byte [rcx], 0
lea rsi, [rcx + 0x20]
movups xmmword [rsi], xmm0
lea r15, [rsi + 0x10]
and qword [r15], 0
mov qword [rsi + 0x18], r13
mov byte [rsi], 0
movdqa xmm0, xmmword [0x140007900]
movdqa xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [0x140007920]
movdqa xmmword [rbp - 0x39], xmm1
movdqa xmm0, xmmword [0x140007930]
movdqa xmmword [rbp - 0x29], xmm0
movdqa xmm1, xmmword [str.wxyz0123456789________.__:_ABCDEFGHIJKLMNOPInvalid_passwordQRSTUVWXYZabcdefghijklmnopqrstuv_]
movdqa xmmword [rbp - 0x19], xmm1
movdqa xmm0, xmmword [0x1400078f0]
movdqa xmmword [rbp - 9], xmm0
mov dword [rbp + 7], 0x403f3e3d
mov dword [rbp + 0xb], 0x5e5d5c5b
lea edx, [r13 + 0x4f]
mov dword [rbp + 0xf], 0x7c7b605f
mov word [rbp + 0x13], 0x7e7d
cmp qword [rcx + 0x18], rdx
jb 0x14000143f
mov rbx, qword [rcx]
mov qword [rcx + 0x10], rdx
mov r8d, edx
lea rdx, [rbp - 0x49]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + 0x5e], 0
jmp 0x140001448
lea r9, [rbp - 0x49]
call fcn.140005704
cmp rsi, rdi
je 0x140001491
mov r9, rdi
cmp qword [rdi + 0x18], 0x10
jb 0x14000145a
mov r9, qword [rdi]
mov rbx, qword [rdi + 0x10]
cmp rbx, qword [rsi + 0x18]
ja 0x140001485
cmp qword [rsi + 0x18], 0x10
jb 0x14000146e
mov rsi, qword [rsi]
mov qword [r15], rbx
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memmove
mov byte [rsi + rbx], 0
jmp 0x140001491
mov rdx, rbx
mov rcx, rsi
call fcn.140005704
nop
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x1400014c7
inc rdx
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400014c2
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400014fe
mov rcx, r8
call fcn.140005bd0
and qword [rdi + 0x10], 0
mov qword [rdi + 0x18], r13
mov byte [rdi], 0
mov rax, r14
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140005bb0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140001648
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, rdx
mov rsi, rcx
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rbx + rdx], 0
jne 0x140001669
lea rcx, [r8 + 1]
call fcn.140005e64
xor r9d, r9d
mov r8, rax
test rdi, rdi
je 0x1400016a5
sub rsi, rax
xor edx, edx
lea rcx, [r9 + r8]
mov rax, r9
inc r9
div rbx
mov al, byte [rdx + rbp]
xor al, byte [rsi + rcx]
mov byte [rcx], al
cmp r9, rdi
jb 0x140001689
mov rbx, qword [rsp + 0x30]
mov rax, r8
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov byte [r8 + rdi], 0
add rsp, 0x20
pop rdi
ret
Function at 0x140002558
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp], rax
and dword [rsp + 0x70], 0
lea rax, [0x1400016c4]
and dword [rsp + 0x74], 0
xor ecx, ecx
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x60], 0x50
mov dword [rsp + 0x64], 0x40
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
and qword [rbp - 0x58], 0
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x78], rax
xorps xmm0, xmm0
lea rax, str.MaFenetre
movdqa xmmword [rbp - 0x80], xmm0
xorps xmm1, xmm1
mov qword [rbp - 0x60], rax
movdqa xmmword [rbp - 0x70], xmm1
call qword [sym.imp.USER32.dll_RegisterClassExA]
mov rax, qword [rsp + 0x78]
lea r8, [0x14000b048]
cmp qword [0x14000b060], 0x10
mov r9d, 0xcf0000
mov rdx, qword [rbp - 0x60]
cmovae r8, qword [0x14000b048]
xor ecx, ecx
and qword [rsp + 0x58], 0
mov qword [rsp + 0x50], rax
mov eax, 0x64
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 0x96
mov dword [rsp + 0x30], 0x12c
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExA]
xor edx, edx
lea r8, [rbp - 0x50]
xor r9d, r9d
mov qword [0x14000b940], rax
lea ecx, [rdx + 0x30]
call qword [sym.imp.USER32.dll_SystemParametersInfoA]
mov edi, dword [rbp - 0x48]
lea rdx, [rbp - 0x40]
mov ebx, dword [rbp - 0x44]
mov rcx, qword [0x14000b940]
sub edi, dword [rbp - 0x50]
sub ebx, dword [rbp - 0x4c]
call qword [sym.imp.USER32.dll_GetWindowRect]
mov eax, dword [rbp - 0x3c]
sub eax, dword [rbp - 0x34]
mov rcx, qword [0x14000b940]
add eax, ebx
cdq
mov dword [rsp + 0x30], 1
and dword [rsp + 0x28], 0
sub eax, edx
and dword [rsp + 0x20], 0
sar eax, 1
mov r9d, eax
mov eax, dword [rbp - 0x40]
sub eax, dword [rbp - 0x38]
add eax, edi
cdq
sub eax, edx
xor edx, edx
sar eax, 1
mov r8d, eax
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [0x14000b940]
mov ebx, 0xfffffff0
mov edx, ebx
call qword [sym.imp.USER32.dll_GetWindowLongPtrA]
mov rcx, qword [0x14000b940]
mov edx, ebx
and rax, 0xfffffffffff8ffff
mov r8, rax
call qword [sym.imp.USER32.dll_SetWindowLongPtrA]
mov rcx, qword [0x14000b940]
lea edx, [rbx + 0x15]
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x14000b940]
call qword [sym.imp.USER32.dll_UpdateWindow]
jmp 0x140002713
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rbp - 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageA]
xor r9d, r9d
lea rcx, [rbp - 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageA]
test eax, eax
jne 0x1400026ff
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.140005bb0
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x140004404
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140004434
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x1400044ac
mov rax, qword [rcx + 0x40]
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x14000444b
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14000444d
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400044a6
test ecx, ecx
jle 0x140004486
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 0x1400044a6
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400044a6
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
sub rsi, rbx
mov rax, rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x1400044c8
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x1400044e8
xor eax, eax
jmp 0x1400045d1
cmp qword [rcx + 0x68], 0
je 0x1400044fa
call qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
jmp 0x1400045d1
mov rax, qword [rcx + 0x38]
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140004511
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004513
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004545
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rbx
sub rdi, rbx
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x1400045cb
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000457c
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
mov ebx, 0xfff
jmp 0x1400045a6
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]
add r14, rax
sub rdi, rax
cmp rax, rbx
jne 0x1400045cb
cmp rdi, rbx
ja 0x140004583
test rdi, rdi
je 0x1400045cb
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rbp, rdi
mov rax, rbp
add rsp, 0x20
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140004974
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x14000b010]
xor rax, rsp
mov qword [rbp - 8], rax
or edi, 0xffffffff
mov esi, edx
mov rbx, rcx
cmp edx, edi
jne 0x1400049ad
xor eax, eax
jmp 0x140004acd
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x1400049e7
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
mov rcx, r8
add rcx, qword [rax]
cmp qword [rax], rcx
jae 0x1400049e7
lea ecx, [r8 - 1]
mov eax, esi
mov dword [rdx], ecx
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], sil
jmp 0x140004acd
cmp qword [rbx + 0x80], 0
je 0x140004acb
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004a22
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 0x140004a43
movsx ecx, sil
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
jmp 0x140004ac8
lea rax, [rbp - 0x40]
mov byte [rbp - 0x30], sil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rbp - 8]
mov qword [rsp + 0x30], rax
lea r9, [rbp - 0x2f]
lea rax, [rbp - 0x28]
mov qword [rsp + 0x28], rax
lea r8, [rbp - 0x30]
lea rax, [rbp - 0x38]
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 0x140004a91
sub eax, 1
je 0x140004a91
cmp eax, 2
jne 0x140004acb
movsx ecx, byte [rbp - 0x30]
jmp 0x140004a2f
mov r14, qword [rbp - 0x40]
lea rax, [rbp - 0x28]
sub r14, rax
je 0x140004abc
mov r9, qword [rbx + 0x80]
lea rcx, [rbp - 0x28]
mov r8, r14
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r14, rax
jne 0x140004acb
lea rax, [rbp - 0x30]
mov byte [rbx + 0x71], 1
cmp qword [rbp - 0x38], rax
cmovne edi, esi
mov eax, edi
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140005bb0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret