joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b034c
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 0x1400b03d3
mov rsi, rbx
cmp word [rax], bp
je 0x1400b0392
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400b037c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400b0378
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a5b44
mov rdi, rax
test rax, rax
je 0x1400b03c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400b5370
mov rbp, rdi
xor ecx, ecx
call fcn.1400a5904
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 0x1400b4590
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.1400aa420
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400aa420
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400b46e0
cmp rax, 0xffffffffffffffff
je 0x1400b46e0
xor edi, edi
test rbp, rbp
jle 0x1400b468b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400a70e4
mov rbx, rax
test rax, rax
jne 0x1400b4618
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400b4681
mov edx, 0x8000
mov ecx, r14d
call fcn.1400a4a10
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400a8b50
cmp eax, 0xffffffff
je 0x1400b4661
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400b4628
mov edx, r15d
mov ecx, r14d
call fcn.1400a4a10
jmp 0x1400b4681
cmp byte [rsi + 0x38], dil
je 0x1400b4678
cmp dword [rsi + 0x34], 5
jne 0x1400b4678
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
cmp byte [rsi + 0x30], dil
je 0x1400b4681
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400a5904
jmp 0x1400b46f4
jns 0x1400b46f4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400aa420
cmp rax, 0xffffffffffffffff
jne 0x1400b46ac
cmp byte [rsi + 0x30], dil
je 0x1400b46f4
mov edi, dword [rsi + 0x2c]
jmp 0x1400b46f4
mov ecx, r14d
call fcn.1400b0998
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400b46f4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, SafeArrayDestroy
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], SafeArrayDestroy
jmp 0x1400b46f4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400b46ed
mov eax, dword [rsi + 0x2c]
jmp 0x1400b46f2
mov eax, SafeArrayUnaccessData
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400aa420
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x1400b4ea0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b4ec8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400b4ec8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rdi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov r9, rcx
movabs rbp, 0xc2b2ae3d27d4eb4f
movabs rsi, 0x9e3779b185ebca87
movabs r14, 0x27d4eb2f165667c5
movabs r15, 0x7a1435883d4d519d
cmp rdi, 0x20
jb 0x140002159
mov r8, qword [r9 + 0x18]
mov rdx, qword [rcx + 8]
mov rax, r8
mov r9, qword [r9 + 0x20]
mov rcx, qword [rcx + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rcx
rol rax, 7
add r10, rax
mov rax, rdx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rdx, rbp
imul rcx, rbp
imul r8, rbp
imul r9, rbp
rol rdx, 0x1f
imul rdx, rsi
rol rcx, 0x1f
xor r10, rdx
rol r8, 0x1f
imul r10, rsi
imul rcx, rsi
imul r8, rsi
sub r10, r15
rol r9, 0x1f
xor r10, rcx
imul r10, rsi
imul r9, rsi
sub r10, r15
xor r10, r8
imul r10, rsi
sub r10, r15
xor r10, r9
imul r10, rsi
add rax, r10
add rax, rdi
jmp 0x140002161
lea rax, [rdi + r14]
add rax, qword [rcx + 0x18]
lea rdx, [r11 + 8]
cmp rdx, rbx
ja 0x14000219a
nop word [rax + rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, rbp
add r11, 8
rol rcx, 0x1f
imul rcx, rsi
xor rax, rcx
rol rax, 0x1b
imul rax, rsi
sub rax, r15
cmp rdx, rbx
jbe 0x140002170
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x1400021c5
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rsi
xor rax, rcx
rol rax, 0x17
imul rax, rbp
add rax, r8
cmp r11, rbx
jae 0x1400021eb
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r14
xor rax, rcx
rol rax, 0xb
imul rax, rsi
cmp r11, rbx
jb 0x1400021d0
mov rbx, qword [rsp + 0x18]
mov rcx, rax
mov rsi, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
shr rcx, 0x21
xor rcx, rax
imul rcx, rbp
mov rbp, qword [rsp + 0x20]
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
ret

Function at 0x14000a500
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
lea rbx, [rsp + 0x30]
xor r14d, r14d
mov rbp, rdx
mov word [rsp + 0x30], r14w
mov rsi, rcx
mov edi, 0x28
test al, al
je 0x14000a5b1
nop word [rax + rax]
mov r8d, 2
mov byte [rsp + 0x20], al
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x21], r14b
lea rcx, [rsp + 0x24]
call fcn.14000fca0
cmp rax, 1
jne 0x14000a5e7
mov rcx, rdi
mov rax, rbx
cmp word [rbx], r14w
je 0x14000a58d
add rax, 2
dec rcx
cmp word [rax], r14w
jne 0x14000a580
cmp rcx, 1
jb 0x14000a5e7
movzx ecx, word [rsp + 0x24]
inc rsi
mov word [rax], cx
add rbx, 2
mov word [rax + 2], r14w
dec rdi
movzx eax, byte [rsi]
test al, al
jne 0x14000a550
mov rdx, rbp
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.14000c1b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call fcn.14000f964
int3
Function at 0x14000a670
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a6b5
xor al, al
jmp 0x14000a702
cmp word [rbx], 0
je 0x14000a6cd
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a6c0
cmp word [rsp + 0x30], 0
je 0x14000a6fb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a723
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a6e0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000c1b0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f964
int3
Function at 0x14000b580
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002fdd8]
test rcx, rcx
je 0x14000b5bb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000b5ae
mov rcx, qword [0x14002fdd8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002fdd8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14002fde8], 0
je 0x14000b6ae
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x140029898]
mov qword [rsp + 0x80], rsi
lea rsi, [0x140030610]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b68f
test al, 0x10
je 0x14000b68f
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b635
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000caa4
Capabilities:
Parse pe header

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

Function at 0x14000f754
Capabilities:
Parse pe header

Disassembly:
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 0x14000f7c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f7c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f7c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f7c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f7c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f7c3
cmp dword [rcx + 0xf8], 0
je 0x14000f7c3
mov ecx, ebx
call fcn.14000f874
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.14000f650
nop
cmp dword [rbp + 0x20], 0
je 0x14000f811
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f81c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f754

Function at 0x14000f958
Capabilities:
Parse pe header

Disassembly:
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 0x14000f7c3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f7c3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f7c3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f7c3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f7c3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f7c3
cmp dword [rcx + 0xf8], 0
je 0x14000f7c3
mov ecx, ebx
call fcn.14000f874
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.14000f650
nop
cmp dword [rbp + 0x20], 0
je 0x14000f811
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f81c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f754
Function at 0x140018d68
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 0x140018def
mov rsi, rbx
cmp word [rax], bp
je 0x140018dae
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018d98
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018d94
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016598
mov rdi, rax
test rax, rax
je 0x140018ddc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001f980
mov rbp, rdi
xor ecx, ecx
call fcn.1400156a8
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 0x14001af5c
Capabilities:
Get file size

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

Function at 0x14001f1f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f218
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f218
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140007080
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov esi, eax
movabs eax, dword [0xda8b088900409214]
test ebx, ebx
jle 0x1400070a1
mov eax, 0xff
call fcn.140002680
xor byte [rsi], al
jne 0x140007091
pop rsi
pop rbx
ret
Function at 0x1400136c0
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
mov eax, 0x20450
call fcn.140063520
sub rsp, rax
mov rax, qword [0x14009b3f8]
xor rax, rsp
mov qword [rsp + 0x20440], rax
mov rdi, rcx
add rcx, 0x18
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea rcx, [rsp + 0x440]
mov r8d, 0x1fffe
call fcn.140035c20
xor edx, edx
mov qword [rsp + 0x30], 0
mov r8d, 0x400
lea rcx, [rsp + 0x40]
call fcn.140035c20
mov rdx, qword [rsp + 0x20478]
lea rcx, [rsp + 0x30]
lea rbx, [rsp + 0x20480]
call fcn.140002040
call fcn.140001140
mov r9, qword [rsp + 0x30]
lea rdx, [rsp + 0x440]
mov qword [rsp + 0x28], rbx
mov r8d, 0xffff
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
call fcn.14003de40
mov rcx, qword [rsp + 0x30]
mov edx, 2
call fcn.1400302b8
cmp byte [rdi + 0x10], 0
jne 0x1400137ae
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x1400137a8
mov rax, qword [rdi]
lea rdx, [rdi + 0x458]
mov rcx, rdi
call qword [rax + 0x40]
cmp byte [rdi + 0x10], 0
je 0x1400137f6
lea r9, [rsp + 0x440]
mov edx, 0x200
lea r8, str.INFO_s
lea rcx, [rsp + 0x40]
call fcn.140001150
lea rcx, [rdi + 0x40]
lea rdx, [rsp + 0x40]
call fcn.140027470
test eax, eax
je 0x1400137f6
mov byte [rdi + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rdi + 8]
lea rdx, [rsp + 0x440]
mov rax, qword [rcx]
call qword [rax + 0x60]
lea rcx, [rdi + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x20440]
xor rcx, rsp
call fcn.1400303d0
add rsp, 0x20450
pop rdi
pop rsi
pop rbx
ret
Function at 0x140013830
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x30
mov r14, rcx
mov rbp, r8
add rcx, 0x18
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rdx, rbx
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0x60]
call fcn.140002040
call fcn.140001140
mov rdi, qword [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rbp
mov r9, rdi
xor edx, edx
mov qword [rsp + 0x20], 0
mov rcx, qword [rax]
mov rsi, rax
or rcx, 2
call fcn.14003de38
test eax, eax
mov rcx, 0xffffffffffffffff
cmovs eax, ecx
add eax, 0x10
movsxd rbx, eax
mov eax, 2
mul rbx
cmovo rax, rcx
mov rcx, rax
call fcn.140030420
mov rcx, qword [rsi]
mov r9, rdi
mov r8, rbx
mov qword [rsp + 0x28], rbp
mov rdx, rax
mov qword [rsp + 0x20], 0
mov r15, rax
call fcn.14003de40
mov edx, 2
mov rcx, rdi
call fcn.1400302b8
cmp byte [r14 + 0x10], 0
jne 0x140013922
mov rax, qword [r14]
mov rcx, r14
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x140013917
mov rax, qword [r14]
lea rdx, [r14 + 0x458]
mov rcx, r14
call qword [rax + 0x40]
cmp byte [r14 + 0x10], 0
je 0x1400139c8
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str.INFO
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, 0xffffffffffffffff
lea edx, [rax + 2]
mov eax, 2
add edx, ebx
movsxd r8, edx
mul r8
cmovo rax, rcx
mov rcx, rax
call fcn.140030420
mov rcx, r15
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, str.INFO
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r9, r15
lea r8, str.INFO_s
lea ecx, [rax + 2]
add ecx, ebx
movsxd rdx, ecx
mov rcx, rdi
call fcn.140001150
lea rcx, [r14 + 0x40]
mov rdx, rdi
call fcn.140027470
test eax, eax
je 0x1400139bb
mov byte [r14 + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov edx, 2
mov rcx, rdi
call fcn.1400302b8
mov rcx, qword [r14 + 8]
mov rdx, r15
mov rax, qword [rcx]
call qword [rax + 0x60]
mov edx, 2
mov rcx, r15
call fcn.1400302b8
lea rcx, [r14 + 0x18]
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r12
pop rdi
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140013a10
Capabilities:
Hide graphical window

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x430
mov rax, qword [0x14009b3f8]
xor rax, rsp
mov qword [rsp + 0x420], rax
mov rbx, rcx
mov rdi, r9
add rcx, 0x18
mov r14d, r8d
mov ebp, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.140035c20
cmp byte [rbx + 0x10], 0
jne 0x140013a80
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x140013a7a
mov rax, qword [rbx]
lea rdx, [rbx + 0x458]
mov rcx, rbx
call qword [rax + 0x40]
cmp byte [rbx + 0x10], 0
je 0x140013ac3
mov r9, rdi
lea r8, str.INFO_s
mov edx, 0x200
lea rcx, [rsp + 0x20]
call fcn.140001150
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x20]
call fcn.140027470
test eax, eax
je 0x140013ac3
mov byte [rbx + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
mov r9, rdi
mov r8d, r14d
mov edx, ebp
mov rax, qword [rcx]
call qword [rax + 0x38]
lea rcx, [rbx + 0x18]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400303d0
add rsp, 0x430
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140013b00
Capabilities:
Hide graphical window
Manipulate console buffer

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x868
mov rax, qword [0x14009b3f8]
xor rax, rsp
mov qword [rsp + 0x850], rax
mov rsi, qword [rsp + 0x8c0]
lea rbp, [rcx + 0x18]
mov rbx, rcx
mov edi, r9d
mov rcx, rbp
mov r15d, r8d
mov r14d, edx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
xor edx, edx
lea rcx, [rsp + 0x50]
mov r8d, 0x400
call fcn.140035c20
cmp byte [rbx + 0x10], 0
jne 0x140013b7e
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test eax, eax
je 0x140013b78
mov rax, qword [rbx]
lea rdx, [rbx + 0x458]
mov rcx, rbx
call qword [rax + 0x40]
cmp byte [rbx + 0x10], 0
je 0x140013bc6
mov r9d, edi
mov qword [rsp + 0x20], rsi
lea r8, str.PERCENT_d__s
mov edx, 0x200
lea rcx, [rsp + 0x50]
call fcn.140001150
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x50]
call fcn.140027470
test eax, eax
je 0x140013bc6
mov byte [rbx + 0x10], 0
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 1
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
lea rdx, vtable.cLog.0
mov rax, qword [rcx]
mov r10, qword [rax + 0x28]
cmp rax, rdx
jne 0x140013cb1
cmp byte [rcx + 0x1c], 0
jne 0x140013c88
cmp dword [rcx + 0xc28], 0
je 0x140013c88
xor edx, edx
lea rcx, [rsp + 0x450]
mov r8d, 0x400
call fcn.140035c20
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea rdx, [rsp + 0x38]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
test eax, eax
je 0x140013c88
mov word [rsp + 0x30], r14w
mov rcx, rbx
mov word [rsp + 0x32], r15w
mov edx, dword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
mov r9, rsi
mov dword [rsp + 0x20], edi
lea r8, str._s_d__
mov edx, 0x200
lea rcx, [rsp + 0x450]
call fcn.140001150
lea r9, [rsp + 0x34]
mov qword [rsp + 0x20], 0
mov r8d, eax
lea rdx, [rsp + 0x450]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0x850]
xor rcx, rsp
call fcn.1400303d0
add rsp, 0x868
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov r9d, edi
mov qword [rsp + 0x20], rsi
mov r8d, r15d
mov edx, r14d
call r10
jmp 0x140013c88