joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180092c10
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x18035c0c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rbx, rcx
mov word [rcx], 1
lea rax, [0x180091d90]
mov qword [rcx + 8], rax
mov rcx, qword [0x180360150]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], 0
mov qword [rbx + 0x20], 0
mov dword [rbx + 0x28], 0x25ff
mov dword [rbx + 0x2c], 0x1010000
mov dword [rbx + 0x30], 0x1010101
mov word [rbx + 0x34], 0x101
call fcn.180070b00
mov rcx, qword [rbx + 0x10]
mov edx, 0xe
mov r8d, 0x40
mov byte [rbx + 1], al
call fcn.180071c00
mov qword [rbx + 0x20], rax
test rax, rax
je 0x180092db3
mov rcx, qword [rbx + 8]
mov r9d, 0x40
mov qword [rbx + 0x2e], rcx
mov r8d, 0x3000
movsd xmm0, qword [rbx + 0x28]
movsd qword [rax], xmm0
mov ecx, dword [rbx + 0x30]
mov dword [rax + 8], ecx
movzx ecx, word [rbx + 0x34]
mov word [rax + 0xc], cx
xor ecx, ecx
movzx edx, byte [rbx + 1]
add rdx, 0xe
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rbx + 0x18], rax
test rax, rax
je 0x180092db3
mov qword [0x180360168], rax
movzx r8d, byte [rbx + 1]
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx + 0x18]
mov qword [rsp + 0x48], rdi
call fcn.1800d24e0
movzx edx, byte [rbx + 1]
lea r9, [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
mov r8d, 0x40
add rcx, rdx
mov qword [rbx + 0x2e], rcx
mov rcx, qword [rbx + 0x18]
movsd xmm0, qword [rbx + 0x28]
movsd qword [rcx + rdx], xmm0
mov eax, dword [rbx + 0x30]
mov dword [rcx + rdx + 8], eax
movzx eax, word [rbx + 0x34]
mov word [rcx + rdx + 0xc], ax
mov edx, 5
mov edi, dword [rbx + 0x20]
sub edi, dword [rbx + 0x10]
mov rcx, qword [rbx + 0x10]
sub edi, 5
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180092d87
lea rdx, str.Hook:_Failed_to_change_target_function_protection_n
lea rcx, [0x18035e050]
call fcn.1800078e0
mov rdi, qword [rsp + 0x48]
mov rax, rbx
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800a3150
add rsp, 0x30
pop rbx
ret
mov rax, qword [rbx + 0x10]
lea r9, [rsp + 0x20]
mov edx, 5
mov byte [rax], 0xe9
mov rax, qword [rbx + 0x10]
mov dword [rax + 1], edi
mov r8d, dword [rsp + 0x20]
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov byte [rbx], 0
jmp 0x180092d6c
lea rdx, str.Hook:_Failed_to_allocate_memory_n
lea rcx, [0x18035e050]
call fcn.1800078e0
jmp 0x180092d71
Function at 0x180095240
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
movzx eax, byte [rdx]
mov rbx, r8
dec eax
mov r8, rdx
mov rdi, rcx
cmp eax, 0x20
ja case.0x180095329.4
lea rsi, [0x180000000]
nop dword [rax]
cdqe
movzx eax, byte [rsi + rax + 0x954a8]
mov ecx, dword [rsi + rax*4 + 0x9547c]
add rcx, rsi
jmp rcx
mov rax, qword [rbx + 0xd0]
movzx r8d, byte [r8 + 1]
add rax, 0xffffffffffffffc4
lea r8, [rax + r8*2]
movzx eax, byte [r8]
dec eax
cmp eax, 0x20
jbe 0x180095270
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xcc]
movzx edx, word [rsi + rax*2 + 0xdcd00]
mov rcx, rdi
call fcn.180093af0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rbx + 0x9c]
cmp al, 8
jae case.0x180095329.4
lea edx, [rax + 0x6d]
mov rcx, rdi
call fcn.180093af0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [r8 + 1]
add eax, 0xfffffffe
cmp eax, 0x1a
ja case.0x180095329.4
cdqe
movzx eax, byte [rsi + rax + 0x954d8]
mov ecx, dword [rsi + rax*4 + 0x954cc]
add rcx, rsi
jmp rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.1800962e0
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180095500
movzx eax, byte [rbx + 0xa2]
mov r9, rbx
mov rcx, rdi
mov rdx, qword [rbx + rax*8 + 0xa8]
inc al
mov byte [rbx + 0xa2], al
call fcn.180094070
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx edx, byte [rbx + 0x34]
mov rcx, rdi
call fcn.180093ac0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x1800953be
lea edx, [rax + 0x35]
jmp 0x1800953d0
cmp eax, 1
jne 0x1800953cb
lea edx, [rax + 0x1f]
lea eax, [rdx + 0x19]
jmp 0x1800953d5
mov edx, 0x39
mov eax, 0x20
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.180093af0
movsxd rax, dword [rbx + 8]
mov rcx, rdi
movzx edx, byte [rax + rsi + 0xdcec0]
call fcn.180093af0
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov eax, dword [rbx + 0x60]
cmp eax, 2
jne 0x180095417
lea edx, [rax + 0x31]
jmp 0x180095429
cmp eax, 1
jne 0x180095424
lea edx, [rax + 0x19]
lea eax, [rdx - 0xa]
jmp 0x18009542e
mov edx, 0x10
mov eax, 0x1a
cmp byte [rbx + 0x37], 0
mov rcx, rdi
cmovne edx, eax
call fcn.180093af0
mov rbx, qword [rsp + 0x30]
xor al, al
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movsxd rax, dword [rbx + 0xb8]
jmp 0x1800952be
movzx edx, byte [rbx + 0xa0]
and edx, 7
add edx, 0x85
jmp 0x1800952c6
movsxd rax, dword [rbx + 0x98]
jmp 0x1800952be
Function at 0x1800a16f4
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1800a1722
xor eax, eax
jmp 0x1800a1808
cmp qword [rcx + 0x68], 0
je 0x1800a1733
call fcn.1800a1824
jmp 0x1800a1808
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1800a174a
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1800a174c
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1800a177e
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.1800d24e0
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x1800a1802
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x1800a17b5
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x1800a17de
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1800af0ec
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x1800a1802
cmp rsi, rbx
ja 0x1800a17bc
test rsi, rsi
je 0x1800a1802
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1800af0ec
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x1800a92e8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1800a931f
call fcn.1800b62d4
mov dword [rax], 0x16
call fcn.1800ad050
xor eax, eax
jmp 0x1800a93ad
mov rdx, r9
mov rcx, r8
call fcn.1800a9284
mov rbx, rax
test rax, rax
je 0x1800a93aa
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1800a91b0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1800a9397
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1800b6248
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1800a937e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1800a938d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1800b9064
jmp 0x1800a93aa
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1800a93a7
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1800ad490
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.1800a3ec0
sub rsp, rax
mov rax, qword [0x18035c0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800bb5cc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800ad4df
mov rax, rbp
jmp 0x1800ad5e7
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x35f650]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1800bdfbc
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x35f650]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800ad5e3
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 0x1800ad5e3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1800bdfbc
test rax, rax
js 0x1800ad5e3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800ad5e3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800ad5d5
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800ad5d5
cmp byte [rcx], 0xd
jne 0x1800ad5bb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800ad5ca
cmp byte [rcx + 1], 0xa
jne 0x1800ad5ca
inc rcx
jmp 0x1800ad5ca
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x35c4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1800ad59d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800ad5e7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1800a3150
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 0x1800b80b4
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 0x1800b8123
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1800b8123
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1800b8123
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1800b8123
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1800b8123
cmp dword [rcx + 0x84], 0xe
jbe 0x1800b8123
cmp dword [rcx + 0xf8], 0
je 0x1800b8123
mov ecx, ebx
call fcn.1800b81d4
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.1800b7fb0
nop
cmp dword [rbp + 0x20], 0
je 0x1800b8171
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800b817c
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1800b80b4
Function at 0x1800be068
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, [0x18035f650]
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 0x1800be0bf
cmp word [rdx], r13w
jne 0x1800be0bf
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1800be0c4
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1800be1e9
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1800be20a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1800be0fd
mov rdx, r9
mov word [rbx], cx
jmp 0x1800be124
cmp r9, r8
jae 0x1800be134
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 0x1800be0de
jmp 0x1800be1e9
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 0x1800be1de
cmp dword [rsp + 0x80], esi
je 0x1800be1de
lea r8, [0x18035f650]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1800be1b6
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1800be186
mov word [rbx], r13w
jmp 0x1800be1e6
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 0x1800be193
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1800be1e6
cmp word [rsp + 0x70], r13w
jne 0x1800be1c3
cmp rbx, r14
je 0x1800be180
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1800bdfc4
cmp word [rsp + 0x70], r13w
je 0x1800be1e9
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, [0x18035f650]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1800be1e3
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1800be1e9
Function at 0x1800bfe3c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800bfe52
mov al, 1
jmp 0x1800bfeb2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800bfe63
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800bfeb0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800c146c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800bfeb0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800bfeb0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800bfeb0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800bfeb2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800c4a60
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 0x1800c4a90
xor eax, eax
jmp 0x1800c4b53
mov rbp, rbx
cmp word [rax], si
je 0x1800c4ab5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800c4a9c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800c4a98
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.1800c3384
movsxd r14, eax
test eax, eax
jne 0x1800c4af3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800c4a89
mov rcx, r14
call fcn.1800ba2cc
mov rdi, rax
test rax, rax
jne 0x1800c4b0c
xor ecx, ecx
call fcn.1800b9064
jmp 0x1800c4ae8
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.1800c3384
test eax, eax
jne 0x1800c4b3d
mov rcx, rdi
call fcn.1800b9064
jmp 0x1800c4b47
xor ecx, ecx
call fcn.1800b9064
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 0x1800c8c60
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.1800b945c
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 0x1800c8d01
cmp ebx, dword [rsp + 0x30]
je 0x1800c8cfa
test esi, esi
je 0x1800c8cfa
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800c8cd5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800c8ce2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800c8cbf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800c8ce6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800c8d03
mov eax, 1
jmp 0x1800c8d03
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1800c9994
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.1800bdfc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800bdfc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800c9ae4
cmp rax, 0xffffffffffffffff
je 0x1800c9ae4
xor edi, edi
test rbp, rbp
jle 0x1800c9a8f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800b8fec
mov rbx, rax
test rax, rax
jne 0x1800c9a1c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800c9a85
mov edx, 0x8000
mov ecx, r14d
call fcn.1800c9818
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.1800bf638
cmp eax, 0xffffffff
je 0x1800c9a65
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800c9a2c
mov edx, r15d
mov ecx, r14d
call fcn.1800c9818
jmp 0x1800c9a85
cmp byte [rsi + 0x38], dil
je 0x1800c9a7c
cmp dword [rsi + 0x34], 5
jne 0x1800c9a7c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800c9a85
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800b9064
jmp 0x1800c9af8
jns 0x1800c9af8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800bdfc4
cmp rax, 0xffffffffffffffff
jne 0x1800c9ab0
cmp byte [rsi + 0x30], dil
je 0x1800c9af8
mov edi, dword [rsi + 0x2c]
jmp 0x1800c9af8
mov ecx, r14d
call fcn.1800c146c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800c9af8
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 0x1800c9af8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800c9af1
mov eax, dword [rsi + 0x2c]
jmp 0x1800c9af6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800bdfc4
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 0x1800cb9f0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1800cba18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1800cba18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400f96fe
Capabilities:
Write file on windows

Disassembly:
jmp 0x14029c060
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1403a6680]
call fcn.1400fd8f3
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x14029c0b8
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.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 0x14029c1ca
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x14029c163
cmp qword [rbp + 0x28], 0
jle 0x14029c163
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x14029c101
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.1400fd461
nop
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
nop
cmp qword [rbp + 0x130], 0
jle 0x14029c1b9
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x14029c1b9
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x1400fa450
Capabilities:
Log keystrokes via polling

Disassembly:
jmp 0x140125390
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rcx, [0x1403a52c6]
call fcn.1400fd8f3
nop
movzx eax, byte [0x1403815ae]
test eax, eax
jne 0x1401253c0
jmp 0x1401254a1
mov dword [rbp + 4], 0
mov ecx, 0x20
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1401253e0
mov byte [rbp + 0x154], 1
jmp 0x1401253e7
mov byte [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
mov byte [rbp + 0x24], al
mov rcx, qword [rbp + 0x180]
call fcn.1400fc93f
mov byte [rbp + 0x44], al
mov edx, dword [rbp + 4]
lea rcx, [0x140380f30]
call fcn.1400fd655
nop
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x14012545a
movzx eax, byte [rbp + 0x44]
test eax, eax
je 0x14012545a
mov dword [rbp + 0x144], 5
lea rdx, [rbp + 0x144]
lea rcx, [rbp + 0x128]
call fcn.1400fc5f7
mov rcx, rax
call fcn.1400fcc1e
nop
mov edx, 0x10001
lea rcx, [0x140380f30]
call fcn.1400fd655
nop
jmp 0x1401254a1
movzx eax, byte [rbp + 0x24]
test eax, eax
je 0x14012547e
movzx eax, byte [rbp + 0x44]
test eax, eax
jne 0x14012547e
mov edx, 0x100
lea rcx, [0x140380f30]
call fcn.1400fd655
nop
jmp 0x1401254a1
movzx eax, byte [rbp + 0x24]
test eax, eax
jne 0x1401254a1
cmp dword [rbp + 4], 0x10001
jne 0x1401254a1
mov edx, 0x100
lea rcx, [0x140380f30]
call fcn.1400fd655
nop
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret