joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14018c810
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140204ec0]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14018c867
cmp word [rdx], r13w
jne 0x14018c867
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14018c86c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14018c991
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14018c9b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14018c8a5
mov rdx, r9
mov word [rbx], cx
jmp 0x14018c8cc
cmp r9, r8
jae 0x14018c8dc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14018c886
jmp 0x14018c991
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14018c986
cmp dword [rsp + 0x80], esi
je 0x14018c986
lea r8, [0x140204ec0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14018c95e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14018c92e
mov word [rbx], r13w
jmp 0x14018c98e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14018c93b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14018c98e
cmp word [rsp + 0x70], r13w
jne 0x14018c96b
cmp rbx, r14
je 0x14018c928
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14018ba78
cmp word [rsp + 0x70], r13w
je 0x14018c991
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140204ec0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14018c98b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14018c991
Function at 0x1401a57e8
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14019f314
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1401a5889
cmp ebx, dword [rsp + 0x30]
je 0x1401a5882
test esi, esi
je 0x1401a5882
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401a585d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401a586a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401a5847
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401a586e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401a588b
mov eax, 1
jmp 0x1401a588b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401a6dc8
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 0x1401a6df8
xor eax, eax
jmp 0x1401a6ebb
mov rbp, rbx
cmp word [rax], si
je 0x1401a6e1d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401a6e04
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401a6e00
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.1401a6ce8
movsxd r14, eax
test eax, eax
jne 0x1401a6e5b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401a6df1
mov rcx, r14
call fcn.1401a1c0c
mov rdi, rax
test rax, rax
jne 0x1401a6e74
xor ecx, ecx
call fcn.14019e9c8
jmp 0x1401a6e50
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.1401a6ce8
test eax, eax
jne 0x1401a6ea5
mov rcx, rdi
call fcn.14019e9c8
jmp 0x1401a6eaf
xor ecx, ecx
call fcn.14019e9c8
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 0x1401a6ed8
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 0x1401a6f5f
mov rsi, rbx
cmp word [rax], bp
je 0x1401a6f1e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401a6f08
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401a6f04
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1401a1c0c
mov rdi, rax
test rax, rax
je 0x1401a6f4c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140176c30
mov rbp, rdi
xor ecx, ecx
call fcn.14019e9c8
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 0x1401a9514
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.140181dc4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401a959e
cmp byte [rbp - 0x21], r15b
je 0x1401a9599
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401a95d4
call fcn.14019fae4
test eax, eax
jne 0x1401a95c0
cmp byte [rbp - 0x21], r15b
je 0x1401a95b8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401a95d4
cmp byte [rbp - 0x21], r15b
je 0x1401a95d1
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.1401873dc
test eax, eax
jne 0x1401a9674
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140181dc4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401a9613
cmp byte [rbp - 0x21], r15b
je 0x1401a9648
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401a9648
call fcn.14019fae4
test eax, eax
jne 0x1401a9634
cmp byte [rbp - 0x21], r15b
je 0x1401a962d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401a9648
cmp byte [rbp - 0x21], r15b
je 0x1401a9645
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.1401873dc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401a9674
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401a9677
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401a9685
mov rcx, rdi
call fcn.14019e9c8
cmp byte [rbp + 0x3f], r15b
je 0x1401a9694
mov rcx, qword [rbp + 0x27]
call fcn.14019e9c8
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 0x1401a979c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401fdbb8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401a97e6
call fcn.14018a42c
mov dword [rax], 0xf
call fcn.14018a40c
mov dword [rax], 0xd
call fcn.1401a15d4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140174050
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401a97f1
lea eax, [rbx + 1]
jmp 0x1401a97d3
add cx, 0x40
mov dword [rsp + 0x22], 0x5c003a
mov word [rsp + 0x20], cx
lea rcx, [rsp + 0x20]
mov word [rsp + 0x26], bx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
test eax, eax
je 0x1401a97d1
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401a97d3
Function at 0x1401aa880
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1401aa896
mov al, 1
jmp 0x1401aa8f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1401aa8a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1401aa8f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14018ac9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1401aa8f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1401aa8f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1401aa8f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1401aa8f6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001117c
Capabilities:
Terminate process

Disassembly:
jmp 0x140012e10
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x178
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x26
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x198]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x148], rax
lea rcx, [0x140027015]
call fcn.140011442
lea rdx, [0x14001d404]
mov rcx, qword [rbp + 0x180]
call qword [sym.imp.ucrtbased.dll_fopen]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x140012eae
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
mov r8, qword [rbp + 0x180]
lea rdx, str.Unable_to_open_file__s_n
mov rcx, rax
call fcn.1400113f7
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
lea r8, [rbp + 0x28]
lea rdx, str._d._19s
mov rcx, qword [rbp + 8]
call fcn.1400111a9
cmp eax, 0xffffffff
je 0x140012faf
lea rdx, [rbp + 0x28]
mov rax, qword [rbp + 0x178]
mov rcx, qword [rax]
call fcn.14001139d
mov qword [rbp + 0x58], rax
cmp qword [rbp + 0x58], 0
jne 0x140012f09
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea r8, [rbp + 0x28]
lea rdx, str.Patient_with_ID__s_not_found_in_the_tree_n
mov rcx, rax
call fcn.1400113f7
jmp 0x140012eae
mov ecx, 0x10
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x78], rax
cmp qword [rbp + 0x78], 0
jne 0x140012f44
mov ecx, 2
call qword [sym.imp.ucrtbased.dll___acrt_iob_func]
lea rdx, str.Memory_allocation_error_n
mov rcx, rax
call fcn.1400113f7
mov ecx, 1
call qword [sym.imp.ucrtbased.dll_exit]
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x58]
mov qword [rax], rcx
mov rax, qword [rbp + 0x78]
mov qword [rax + 8], 0
mov rax, qword [rbp + 0x170]
cmp qword [rax + 8], 0
jne 0x140012f88
mov rax, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x78]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x78]
mov qword [rax], rcx
jmp 0x140012faa
mov rax, qword [rbp + 0x170]
mov rax, qword [rax + 8]
mov rcx, qword [rbp + 0x78]
mov qword [rax + 8], rcx
mov rax, qword [rbp + 0x170]
mov rcx, qword [rbp + 0x78]
mov qword [rax + 8], rcx
jmp 0x140012eae
mov rcx, qword [rbp + 8]
call qword [sym.imp.ucrtbased.dll_fclose]
lea rcx, [rbp - 0x20]
lea rdx, [0x14001d180]
call fcn.1400113c5
mov rcx, qword [rbp + 0x148]
xor rcx, rbp
call fcn.14001121c
lea rsp, [rbp + 0x158]
pop rdi
pop rbp
ret

Function at 0x140011271
Capabilities:
Terminate process

Disassembly:
jmp 0x140015ce0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x140011311
Capabilities:
Parse pe header

Disassembly:
jmp 0x140017020
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140017040
xor al, al
jmp 0x1400170c1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140017053
xor al, al
jmp 0x1400170c1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x14001707d
xor al, al
jmp 0x1400170c1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140017091
xor al, al
jmp 0x1400170c1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x1400170a3
xor al, al
jmp 0x1400170c1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x1400170bf
xor al, al
jmp 0x1400170c1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400050c0
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x14000f040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov word [rsp + 0x6c], 0x500
lea rax, [rsp + 0x60]
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x68]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
mov r8d, 0x20
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
mov dword [rsp + 0x68], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14000514d
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x140005142
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rsp + 0x70], 1
je 0x14000517e
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Please_run_the_program_as_an_administrator.
call fcn.140005e70
lea rdx, [0x140006210]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov eax, 1
jmp 0x140005185
call fcn.140004a40
xor eax, eax
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140007ac0
add rsp, 0x80
pop rbx
ret

Function at 0x1400074dc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140007516
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000751b
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140007564
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14000a4b0]
cmp byte [rcx + rax], 0
je 0x140007564
dec r8
sub rdx, 1
jne 0x14000754a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14000874c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140008796
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140008796
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140008796
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140008796
cmp dword [rcx + 0x84], 0xe
jbe 0x140008796
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140008798
xor al, al
add rsp, 0x28
ret
Function at 0x14001fd20
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140083e40]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14001fd77
cmp word [rdx], r13w
jne 0x14001fd77
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001fd7c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001fea1
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001fec2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001fdb5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001fddc
cmp r9, r8
jae 0x14001fdec
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14001fd96
jmp 0x14001fea1
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001fe96
cmp dword [rsp + 0x80], esi
je 0x14001fe96
lea r8, [0x140083e40]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001fe6e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001fe3e
mov word [rbx], r13w
jmp 0x14001fe9e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14001fe4b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001fe9e
cmp word [rsp + 0x70], r13w
jne 0x14001fe7b
cmp rbx, r14
je 0x14001fe38
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400212b4
cmp word [rsp + 0x70], r13w
je 0x14001fea1
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140083e40]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001fe9b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001fea1
Function at 0x14003199c
Capabilities:
Set console window title

Disassembly:
mov edx, 2
xor ecx, ecx
jmp 0x1400319a8
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp dword [0x140081022], 0
mov edi, edx
mov rbx, rcx
jne 0x1400319c6
call qword [sym.imp.KERNEL32.dll_AllocConsole]
mov ecx, 0xfffffff6
mov dword [0x140081d88], edi
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140085860], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140085880], rax
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, qword [0x140085880]
lea rdx, [0x1400858a0]
mov qword [0x1400858c0], rax
call qword [sym.imp.KERNEL32.dll_GetConsoleScreenBufferInfo]
mov edi, 1
lea rcx, [0x140031984]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
test rbx, rbx
je 0x140031a38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
lea rcx, [0x1400858e0]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, [0x140085920]
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov rbx, qword [rsp + 0x30]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x140031d5c
Capabilities:
Manipulate console buffer

Disassembly:
push rdi
sub rsp, 0x30
xor eax, eax
cmp dword [0x140084528], eax
je 0x140031ddc
movsx edi, word [0x1400858a2]
movzx edx, word [0x1400858a8]
mov rcx, qword [0x140085880]
mov dword [rsp + 0x40], eax
movsx eax, word [0x1400858a0]
mov r9d, dword [rsp + 0x40]
imul edi, eax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputAttribute]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x48]
mov rcx, qword [0x140085880]
mov edx, 0x20
mov r8d, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_FillConsoleOutputCharacterW]
mov edx, dword [rsp + 0x40]
mov rcx, qword [0x140085880]
call qword [sym.imp.KERNEL32.dll_SetConsoleCursorPosition]
add rsp, 0x30
pop rdi
ret
Function at 0x140032210
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
test r9d, r9d
je 0x140032287
mov rcx, qword [0x140082ea4]
add esi, 2
xor edx, edx
lea eax, [rsi + 1]
movsxd r8, eax
add r8, r8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140032287
mov rcx, rax
test rbx, rbx
je 0x140032278
mov rdx, rbx
call fcn.1400542f4
lea rdx, [0x14006ae6c]
mov rcx, rdi
call fcn.140054358
jmp 0x140032284
lea rdx, [0x14006ae6c]
call fcn.1400542f4
mov rbx, rdi
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8d, esi
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteConsoleW]
test eax, eax
jne 0x140032311
mov eax, dword [0x140081d88]
cmp eax, 2
je 0x1400322dc
cmp eax, 0x18
je 0x1400322d2
and qword [rsp + 0x20], 0
lea r8d, [rsi + rsi]
lea r9, [rsp + 0x58]
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x140032311
mov rcx, rbx
call fcn.140033f80
jmp 0x1400322e4
mov rcx, rbx
call fcn.140034070
mov rcx, rax
mov rbx, rax
call fcn.1400543a0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x58]
mov r8, rax
mov rdx, rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call fcn.140033f70
test rdi, rdi
je 0x140032328
mov rcx, qword [0x140082ea4]
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret