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

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x140004e52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x140004ecc
mov rdi, r14
mov rcx, rbx
call fcn.140002b30
test rax, rax
jle 0x140004ea4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.14000a5f0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140004ebc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140004ec4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x140004e66
sub r14, rdi
jmp 0x140004faf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x140004ee3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140004ee5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004f17
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.14000a5f0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140004fac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140004f52
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
cmp rbp, 0xfff
jbe 0x140004f8d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.1400118ec
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x140004fac
cmp rbp, rax
ja 0x140004f60
test rbp, rbp
je 0x140004fac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.1400118ec
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140005a90
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x6f], 0
mov rbp, rcx
je 0x140005c8e
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0x7f0965650969d1c5
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [r14 + rax]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [rax + r15]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
xor byte [rax + 0x16], sil
xor byte [rax + 0x1e], sil
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
xor byte [rax + 0x17], dil
xor byte [rax + 0x1f], dil
shl cl, 3
shr rbx, cl
lea ecx, [rax + r12]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
xor byte [rax + 0x18], bl
xor byte [rax + 0x20], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
xor byte [rax + 0x19], r11b
xor byte [rax + 0x21], r11b
shl cl, 3
shr r10, cl
lea ecx, [rax + rdx]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0x7f0965650969d1c5
xor byte [rax + 0x12], r10b
xor byte [rax + 0x1a], r10b
xor byte [rax + 0x22], r10b
shl cl, 3
shr r9, cl
lea ecx, [rax + r8]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
xor byte [rax + 0x1b], r9b
shl cl, 3
shr r8, cl
movzx ecx, byte [rsp + 0x40]
xor byte [rax + 4], r8b
add cl, al
xor byte [rax + 0xc], r8b
and cl, 7
xor byte [rax + 0x14], r8b
xor byte [rax + 0x1c], r8b
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
xor byte [rax + 0x15], dl
xor byte [rax + 0x1d], dl
add rax, 0x25
lea rcx, [rax + r14]
cmp rcx, 0x6f
mov rdx, qword [rsp + 0x48]
movabs r9, 0x7f0965650969d1c5
mov r8, qword [rsp + 0x50]
jb 0x140005b30
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x6f], 0
add rsp, 0x30
pop rbp
ret
Function at 0x140005ca0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0x30
cmp byte [rcx + 0x6f], 0
mov rbp, rcx
je 0x140005e9e
mov qword [rsp + 0x58], rbx
lea rax, [rcx + 2]
mov qword [rsp + 0x28], rsi
mov rdx, 0xfffffffffffffffb
mov qword [rsp + 0x20], rdi
sub rdx, rcx
mov qword [rsp + 0x18], r12
mov r8, 0xfffffffffffffffc
mov qword [rsp + 0x10], r13
sub r8, rcx
mov qword [rsp + 8], r14
mov r13, 0xfffffffffffffffa
sub r13, rcx
mov qword [rsp], r15
mov r15, rcx
mov qword [rsp + 0x48], rdx
mov r12d, 1
mov qword [rsp + 0x50], r8
sub r12, rcx
mov r14, 0xfffffffffffffffe
mov rcx, 0xfffffffffffffffd
not r15
sub rcx, rbp
movabs r9, 0x67f7a945730d6b67
mov qword [rsp + 0x40], rcx
sub r14, rbp
nop dword [rax]
nop word [rax + rax]
lea ecx, [r14 + rax]
mov rsi, r9
and cl, 7
mov rdi, r9
shl cl, 3
mov rbx, r9
shr rsi, cl
mov r11, r9
xor byte [rax - 2], sil
lea ecx, [rax + r15]
xor byte [rax + 6], sil
and cl, 7
xor byte [rax + 0xe], sil
mov r10, r9
xor byte [rax + 0x16], sil
xor byte [rax + 0x1e], sil
shl cl, 3
shr rdi, cl
movzx ecx, al
xor byte [rax - 1], dil
sub cl, bpl
xor byte [rax + 7], dil
and cl, 7
xor byte [rax + 0xf], dil
xor byte [rax + 0x17], dil
xor byte [rax + 0x1f], dil
shl cl, 3
shr rbx, cl
lea ecx, [rax + r12]
xor byte [rax], bl
and cl, 7
xor byte [rax + 8], bl
xor byte [rax + 0x10], bl
xor byte [rax + 0x18], bl
xor byte [rax + 0x20], bl
shl cl, 3
shr r11, cl
lea ecx, [rax + r13]
xor byte [rax + 1], r11b
and cl, 7
xor byte [rax + 9], r11b
xor byte [rax + 0x11], r11b
xor byte [rax + 0x19], r11b
xor byte [rax + 0x21], r11b
shl cl, 3
shr r10, cl
lea ecx, [rax + rdx]
xor byte [rax + 2], r10b
and cl, 7
xor byte [rax + 0xa], r10b
movabs rdx, 0x67f7a945730d6b67
xor byte [rax + 0x12], r10b
xor byte [rax + 0x1a], r10b
xor byte [rax + 0x22], r10b
shl cl, 3
shr r9, cl
lea ecx, [rax + r8]
xor byte [rax + 3], r9b
and cl, 7
xor byte [rax + 0xb], r9b
mov r8, rdx
xor byte [rax + 0x13], r9b
xor byte [rax + 0x1b], r9b
shl cl, 3
shr r8, cl
movzx ecx, byte [rsp + 0x40]
xor byte [rax + 4], r8b
add cl, al
xor byte [rax + 0xc], r8b
and cl, 7
xor byte [rax + 0x14], r8b
xor byte [rax + 0x1c], r8b
shl cl, 3
shr rdx, cl
xor byte [rax + 5], dl
xor byte [rax + 0xd], dl
xor byte [rax + 0x15], dl
xor byte [rax + 0x1d], dl
add rax, 0x25
lea rcx, [rax + r14]
cmp rcx, 0x6f
mov rdx, qword [rsp + 0x48]
movabs r9, 0x67f7a945730d6b67
mov r8, qword [rsp + 0x50]
jb 0x140005d40
mov r15, qword [rsp]
mov r14, qword [rsp + 8]
mov r13, qword [rsp + 0x10]
mov r12, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x58]
mov byte [rbp + 0x6f], 0
add rsp, 0x30
pop rbp
ret

Function at 0x140009204
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000924e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000924e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000924e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000924e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000924e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140009250
xor al, al
add rsp, 0x28
ret
Function at 0x14000eea0
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 0x14000ed0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000ed0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000ed0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000ed0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000ed0b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000ed0b
cmp dword [rcx + 0xf8], 0
je 0x14000ed0b
mov ecx, ebx
call fcn.14000edbc
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.14000eb98
nop
cmp dword [rbp + 0x20], 0
je 0x14000ed59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ed64
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000ec9c

Function at 0x14001756c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140017582
mov al, 1
jmp 0x1400175e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140017593
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400175e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d8b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400175e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400175e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400175e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400175e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140019244
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x140019264
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000fc3c
or eax, 0xffffffff
jmp 0x140019266
xor eax, eax
add rsp, 0x28
ret

Function at 0x1400197a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.140008e90
sub rsp, rax
mov rax, qword [0x14005c0a0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400169dc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400197ef
mov rax, rbp
jmp 0x1400198f7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x5e430]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001a6ec
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5e430]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400198f3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400198f3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001a6ec
test rax, rax
js 0x1400198f3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400198f3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400198e5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400198e5
cmp byte [rcx], 0xd
jne 0x1400198cb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400198da
cmp byte [rcx + 1], 0xa
jne 0x1400198da
inc rcx
jmp 0x1400198da
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5c4a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400198ad
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400198f7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400087b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019a8c
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, [0x14005e430]
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 0x140019ae3
cmp word [rdx], r13w
jne 0x140019ae3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140019ae8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140019c0d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140019c2e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140019b21
mov rdx, r9
mov word [rbx], cx
jmp 0x140019b48
cmp r9, r8
jae 0x140019b58
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 0x140019b02
jmp 0x140019c0d
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 0x140019c02
cmp dword [rsp + 0x80], esi
je 0x140019c02
lea r8, [0x14005e430]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140019bda
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140019baa
mov word [rbx], r13w
jmp 0x140019c0a
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 0x140019bb7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140019c0a
cmp word [rsp + 0x70], r13w
jne 0x140019be7
cmp rbx, r14
je 0x140019ba4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001a6f4
cmp word [rsp + 0x70], r13w
je 0x140019c0d
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, [0x14005e430]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140019c07
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140019c0d
Function at 0x14001d2f8
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 0x14001d328
xor eax, eax
jmp 0x14001d3eb
mov rbp, rbx
cmp word [rax], si
je 0x14001d34d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001d334
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001d330
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.14001b5bc
movsxd r14, eax
test eax, eax
jne 0x14001d38b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001d321
mov rcx, r14
call fcn.140016804
mov rdi, rax
test rax, rax
jne 0x14001d3a4
xor ecx, ecx
call fcn.1400167c8
jmp 0x14001d380
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.14001b5bc
test eax, eax
jne 0x14001d3d5
mov rcx, rdi
call fcn.1400167c8
jmp 0x14001d3df
xor ecx, ecx
call fcn.1400167c8
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 0x14001fe08
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.14001621c
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 0x14001fea9
cmp ebx, dword [rsp + 0x30]
je 0x14001fea2
test esi, esi
je 0x14001fea2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001fe7d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001fe8a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001fe67
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001fe8e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001feab
mov eax, 1
jmp 0x14001feab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140022d74
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.14001a6f4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001a6f4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140022ec4
cmp rax, 0xffffffffffffffff
je 0x140022ec4
xor edi, edi
test rbp, rbp
jle 0x140022e6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140015a60
mov rbx, rax
test rax, rax
jne 0x140022dfc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140022e65
mov edx, 0x8000
mov ecx, r14d
call fcn.1400137f4
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.140018194
cmp eax, 0xffffffff
je 0x140022e45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140022e0c
mov edx, r15d
mov ecx, r14d
call fcn.1400137f4
jmp 0x140022e65
cmp byte [rsi + 0x38], dil
je 0x140022e5c
cmp dword [rsi + 0x34], 5
jne 0x140022e5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140022e65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400167c8
jmp 0x140022ed8
jns 0x140022ed8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001a6f4
cmp rax, 0xffffffffffffffff
jne 0x140022e90
cmp byte [rsi + 0x30], dil
je 0x140022ed8
mov edi, dword [rsi + 0x2c]
jmp 0x140022ed8
mov ecx, r14d
call fcn.14001d8b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140022ed8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140022ed8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140022ed1
mov eax, dword [rsi + 0x2c]
jmp 0x140022ed6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001a6f4
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 0x1400233b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400233d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400233d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001fa0
Capabilities:
Parse pe header

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

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x478
mov rax, qword [0x1400761f0]
xor rax, rsp
mov qword [rsp + 0x460], rax
lea rdx, [rsp + 0x48]
mov rcx, qword [0x140077b30]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_GetConsoleScreenBufferInfo]
test eax, eax
jne 0x140027c78
jmp 0x140027d5b
movzx eax, word [rsp + 0x4c]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x4e]
mov word [rsp + 0x32], ax
movsx eax, word [rsp + 0x30]
add eax, dword [rsp + 0x480]
mov word [rsp + 0x38], ax
movzx eax, word [rsp + 0x32]
mov word [rsp + 0x3a], ax
movzx eax, word [rsp + 0x32]
mov word [rsp + 0x3e], ax
movzx eax, word [rsp + 0x56]
mov word [rsp + 0x3c], ax
mov eax, 0x100
mov word [rsp + 0x34], ax
mov eax, 1
mov word [rsp + 0x36], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140077b44]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x140077b30]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_ReadConsoleOutputA]
mov dword [rsp + 0x40], eax
call fcn.140026c50
movzx eax, word [rsp + 0x30]
mov word [rsp + 0x38], ax
mov eax, 0x100
mov word [rsp + 0x34], ax
mov eax, 1
mov word [rsp + 0x36], ax
movsx eax, word [rsp + 0x3c]
sub eax, dword [rsp + 0x480]
mov word [rsp + 0x3c], ax
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, dword [0x140077b44]
mov r8d, dword [rsp + 0x34]
lea rdx, [rsp + 0x60]
mov rcx, qword [0x140077b30]
call qword [sym.imp.api_ms_win_core_console_l2_1_0.dll_WriteConsoleOutputA]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.14002a0e0
add rsp, 0x478
ret

Function at 0x14002a620
Capabilities:
Access peb ldr_data

Disassembly:
push r12
push r14
push r15
sub r12, r12
add r12, 0x60
mov r14, qword gs:[r12]
push r11
mov r11, qword [r14 + 0x10]
add r14, 0x18
mov r15, qword [r14]
mov r12, r15
add r12, 0x10
mov r14, qword [r12]
push rax
mov r12, qword [r14 + 0x30]
cmp r12, 0
je 0x14002a67a
invalid
mov r15, qword [r14 + 0x60]
mov rax, qword [r15]
and eax, 0xdf00df
mov r15, qword [r15 + 0xb]
add r15d, eax
shr r15d, 2
sub r15d, 0xc914cd2
cmp r15, 0
je 0x14002a682
mov r14, qword [r14]
jmp 0x14002a64b
mov r14d, dword [r12 + 0x3c]
add r14, r12
add r14, 0x10
mov r15d, dword [r14 + 0x78]
add r15, r12
push r10
mov eax, dword [r15 + 0x20]
add rax, r12
mov r10d, dword [rax]
add r10, r12
mov r14d, dword [r10 + 0xb]
sub r14d, 0x746365
cmp r14d, 0
cmp esi, 0
jne 0x14002a6b7
jmp 0x14002a6c5
inc rax
inc rax
inc rax
inc rax
jmp 0x14002a69e
mov r14d, dword [r15 + 0x20]
sub rax, r14
sub rax, r12
shr eax, 1
call 0x1b78debd6
and al, 0x49
add esi, eax
add r14, r12
mov eax, dword [r14]
mov r14d, dword [r15 + 0x1c]
shl eax, 0x10
shr eax, 0xe
add r14, r12
add r14, rax
mov eax, dword [r14]
add rax, r12
mov r14d, 0xe3000
add r14, r11
push r12
push r11
push r14
push r10
push r10
push rax
mov rcx, r14
mov r9, rsp
mov r8d, 0x40
mov edx, 0x55000
call rax
pop r15
pop r10
pop r10
pop r14