joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140096020
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14013dae8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov ebp, 4
mov r15, rdx
xor r14d, r14d
lea rax, [rcx + 1]
lea rdi, [rsp]
lea rbx, [rsp + 8]
mov esi, ebp
movzx ecx, byte [rax + 2]
movzx r8d, byte [rax + 1]
movzx r10d, byte [rax - 1]
movzx edx, byte [rax]
lea r11d, [r10 + r8]
sub r10d, r8d
lea r9d, [rcx + rdx]
sub edx, ecx
lea rbx, [rbx + 0x10]
lea ecx, [r9 + r11]
sub r11d, r9d
lea rdi, [rdi + 0x10]
mov dword [rdi - 0x10], ecx
lea ecx, [r10 + rdx]
sub r10d, edx
mov dword [rbx - 0xc], r11d
mov dword [rbx - 0x14], ecx
mov dword [rbx - 0x10], r10d
lea rax, [rax + 0x20]
dec rsi
jne 0x140096061
lea rdi, [r15 + 8]
lea rsi, [rsp + 0x30]
nop word [rax + rax]
mov ecx, dword [rsi - 0x10]
mov eax, dword [rsi]
mov ebx, dword [rsi - 0x30]
mov r11d, dword [rsi - 0x20]
lea r9d, [rbx + rcx]
sub ebx, ecx
movzx ecx, word [rdi + 0x10]
lea r8d, [r11 + rax]
sub r11d, eax
mov eax, ebx
lea rsi, [rsi + 4]
lea rdi, [rdi + 2]
sub eax, r11d
cdq
mov r10d, eax
movzx eax, word [rdi + 6]
xor r10d, edx
sub r10d, edx
imul r10d, eax
mov eax, r9d
sub eax, r8d
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
movzx ecx, word [rdi - 0xa]
add r10d, eax
lea eax, [r8 + r9]
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
movzx ecx, word [rdi - 2]
add r10d, eax
lea eax, [rbx + r11]
cdq
xor eax, edx
sub eax, edx
imul eax, ecx
add r14d, eax
add r14d, r10d
dec rbp
jne 0x1400960c0
mov eax, r14d
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140062590
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
ret
Function at 0x14009ac50
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push r15
sub rsp, 0x48
mov rax, qword [0x14013dae8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ebx, dword [rcx + 0x34]
movsxd rbp, dword [rcx + 0x30]
mov rsi, rcx
mov eax, ebx
mov edx, 1
imul eax, ebp
movsxd rcx, eax
call fcn.140061fb0
mov r15, rax
mov qword [rsp + 0x20], rax
test rax, rax
je 0x14009ae4d
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x88], r13
lea r13d, [rbx - 1]
mov qword [rsp + 0x40], r14
cmp r13d, 1
jle 0x14009ae33
lea ecx, [rbp - 1]
mov qword [rsp + 0x80], r12
lea r11, [rax + rbp]
lea r15d, [rbp + 1]
lea r12d, [r13 - 1]
movsxd rbx, ecx
mov r8d, 1
cmp r8, rbx
jge 0x14009adba
lea rdi, [rbp*8]
mov r10d, r15d
nop word [rax + rax]
mov rax, qword [rsi + 0x5c60]
movsxd rcx, r10d
xorps xmm0, xmm0
lea rdx, [rax + rcx*8]
mov rcx, rdx
mov r9d, dword [rdx]
movdqu xmmword [rsp + 0x28], xmm0
sub rcx, rdi
mov eax, dword [rcx - 8]
shr r9d, 5
shr rax, 5
and r9d, 3
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rcx]
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rcx + 8]
xor ecx, ecx
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rdx - 8]
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rdx + 8]
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rdi + rdx - 8]
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rdi + rdx]
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
mov eax, dword [rdi + rdx + 8]
shr rax, 5
and eax, 3
inc dword [rsp + rax*4 + 0x28]
xor eax, eax
nop dword [rax]
cmp dword [rsp + rax*4 + 0x28], 5
jge 0x14009ada4
inc rax
inc ecx
cmp rax, 4
jl 0x14009ad90
jmp 0x14009ada7
mov r9d, ecx
mov byte [r8 + r11], r9b
inc r8
inc r10d
cmp r8, rbx
jl 0x14009acf0
add r15d, ebp
add r11, rbp
dec r12
jne 0x14009acd0
mov r15, qword [rsp + 0x20]
mov r12, qword [rsp + 0x80]
cmp r13d, 1
jle 0x14009ae33
lea eax, [rbp - 1]
lea r10, [r15 + rbp]
lea ebx, [rbp + 1]
movsxd r11, eax
lea edi, [r13 - 1]
nop dword [rax]
mov r8d, 1
cmp r8, r11
jge 0x14009ae29
mov r9d, ebx
nop
mov rax, qword [rsi + 0x5c60]
movsxd rcx, r9d
inc r8
lea rdx, [rax + rcx*8]
movzx eax, byte [r8 + r10 - 1]
inc r9d
shl eax, 5
xor eax, dword [rdx]
and eax, 0x60
xor dword [rdx], eax
cmp r8, r11
jl 0x14009ae00
add ebx, ebp
add r10, rbp
dec rdi
jne 0x14009adf0
mov rcx, r15
call fcn.140061fa0
mov r14, qword [rsp + 0x40]
mov r13, qword [rsp + 0x88]
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140062590
add rsp, 0x48
pop r15
pop rsi
pop rbp
pop rbx
ret
Function at 0x14009f680
Capabilities:
Contain obfuscated stackstrings

Disassembly:
sub rsp, 0x48
mov rax, qword [0x14013dae8]
xor rax, rsp
mov qword [rsp + 0x38], rax
movzx eax, dx
shr edx, 0x10
mov r9, rcx
mov byte [rsp + 0x24], al
sar eax, 8
mov byte [rsp + 0x26], dl
mov byte [rsp + 0x25], al
movzx eax, r8w
shr r8d, 0x10
mov byte [rsp + 0x32], r8b
sar r8d, 8
sar edx, 8
mov byte [rsp + 0x33], r8b
mov r8, rcx
mov byte [rsp + 0x30], al
mov byte [rsp + 0x27], dl
sar eax, 8
lea rcx, [rsp + 0x20]
mov edx, 0x15
mov dword [rsp + 0x20], 0x46464952
mov dword [rsp + 0x28], 0x50424557
mov dword [rsp + 0x2c], 0x4c385056
mov byte [rsp + 0x34], 0x2f
mov byte [rsp + 0x31], al
call qword [r9 + 0x60]
xor ecx, ecx
mov edx, 8
test eax, eax
cmove ecx, edx
mov eax, ecx
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140062590
add rsp, 0x48
ret

Function at 0x14009ffe0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x460
mov rax, qword [0x14013dae8]
xor rax, rsp
mov qword [rsp + 0x450], rax
cmp dword [rcx + 8], 0x20
mov ebp, dword [r8 + 0x60]
mov rdi, r8
mov r12d, edx
mov rbx, rcx
lea r15, [r8 + 0x64]
jl 0x1400a0021
call fcn.1400b40e0
mov ecx, dword [rbx + 8]
mov eax, 1
shl rax, cl
or qword [rbx], rax
lea eax, [rcx + 1]
mov dword [rbx + 8], eax
cmp eax, 0x20
jl 0x1400a0042
mov rcx, rbx
call fcn.1400b40e0
mov ecx, dword [rbx + 8]
mov eax, 3
lea esi, [rbp - 1]
shl rax, cl
or qword [rbx], rax
lea eax, [rcx + 2]
mov dword [rbx + 8], eax
cmp eax, 0x20
jl 0x1400a0066
mov rcx, rbx
call fcn.1400b40e0
mov ecx, dword [rbx + 8]
mov eax, esi
shl rax, cl
or qword [rbx], rax
lea eax, [rcx + 8]
mov dword [rbx + 8], eax
lea eax, [rbp - 1]
movsxd r11, eax
cmp r11, 1
jl 0x1400a0114
lea rsi, [rsp + 0x50]
mov qword [rsp + 0x498], r14
lea r14, [r15 + r11*4]
sub rsi, r15
nop dword [rax + rax]
mov edx, dword [r14 - 4]
mov r8d, dword [r14]
lea r14, [r14 - 4]
mov r9d, r8d
mov ecx, r8d
and r8d, 0xff00ff00
and r9d, 0xff00
and ecx, 0xffff00ff
mov eax, edx
and eax, 0xff00ff00
sub r9d, eax
mov eax, edx
and edx, 0xff00ff00
sub r9d, 0xff01
and eax, 0xff00ff
sub r8d, edx
sub ecx, eax
add r8d, 0xff00ff
add ecx, 0xff00
xor r9d, ecx
and r9d, 0xff00ff
xor r9d, r8d
mov dword [rsi + r14 + 4], r9d
dec r11
jne 0x1400a00a0
mov r14, qword [rsp + 0x498]
mov eax, dword [r15]
mov dword [rsp + 0x40], r12d
mov dword [rsp + 0x38], 0x14
mov dword [rsp + 0x50], eax
lea rax, [rdi + 0x490]
mov dword [rsp + 0x30], 1
lea r9, [rdi + 0x468]
lea r8, [rdi + 0x4e0]
lea rdx, [rsp + 0x50]
mov rcx, rbx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call fcn.14009e890
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.140062590
mov rbx, qword [rsp + 0x4a8]
add rsp, 0x460
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400b89a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
movsxd r11, dword [rdx]
movsxd rax, ecx
mov rbx, rdx
lea r8, [r11 + r11*2]
mov r9, r11
add r8, rax
mov eax, dword [rdx + 4]
imul rcx, r8, 0x2c
add rcx, qword [rdx + 0x20]
test eax, eax
jns 0x1400b89e1
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x1400b89d6
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx], eax
xor eax, eax
pop rbx
ret
cmp r11d, eax
jg 0x1400b8b85
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
lea rsi, [0x140000000]
mov ebp, 0x43
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x1400b8a17
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
mov dword [rcx], eax
mov rax, qword [rbx + 8]
movsx edx, word [rax + r9*2]
test edx, edx
jne 0x1400b8a72
nop dword [rax + rax]
mov eax, dword [rcx + 4]
inc r11d
inc r9
cmp eax, 0xfffe0000
jb 0x1400b8a49
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx + 4], eax
movzx eax, byte [r9 + rsi + 0x1063d0]
imul rcx, rax, 0x84
mov rax, qword [rbx + 8]
add rcx, qword [rbx + 0x20]
movsx edx, word [rax + r9*2]
test edx, edx
je 0x1400b8a30
mov eax, dword [rcx + 4]
inc r11d
inc r9
cmp eax, 0xfffe0000
jb 0x1400b8a8b
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10001
xor r8d, r8d
mov dword [rcx + 4], eax
lea eax, [rdx + 1]
cmp eax, 2
mov eax, dword [rcx + 8]
seta r8b
cmp eax, 0xfffe0000
jb 0x1400b8ab3
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, r8d
mov dword [rcx + 8], eax
test r8d, r8d
jne 0x1400b8ae0
movzx eax, byte [r9 + rsi + 0x1063d0]
imul rcx, rax, 0x84
mov rax, qword [rbx + 0x20]
add rax, 0x2c
jmp 0x1400b8b69
mov eax, edx
cdq
xor eax, edx
sub eax, edx
cmp eax, ebp
cmovg eax, ebp
xor r10d, r10d
cdqe
movzx r8d, word [rsi + rax*4 + 0x107c4c]
movzx edi, word [rsi + rax*4 + 0x107c4e]
shr r8d, 1
je 0x1400b8b51
lea rdx, [rcx + 0xc]
nop dword [rax + rax]
test r8b, 1
je 0x1400b8b45
mov ecx, r10d
mov eax, 2
shl eax, cl
mov ecx, 0
test edi, eax
mov eax, dword [rdx]
setne cl
cmp eax, 0xfffe0000
jb 0x1400b8b3c
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
add eax, ecx
mov dword [rdx], eax
inc r10d
add rdx, 4
sar r8d, 1
jne 0x1400b8b10
movzx eax, byte [r9 + rsi + 0x1063d0]
imul rcx, rax, 0x84
mov rax, qword [rbx + 0x20]
add rax, 0x58
add rcx, rax
cmp r11d, dword [rbx + 4]
jle 0x1400b8a05
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x18]
mov rbp, qword [rsp + 0x10]
cmp r11d, 0x10
jge 0x1400b8ba4
mov eax, dword [rcx]
cmp eax, 0xfffe0000
jb 0x1400b8b9d
inc eax
shr eax, 1
and eax, 0x7fff7fff
add eax, 0x10000
mov dword [rcx], eax
mov eax, 1
pop rbx
ret
Function at 0x1400d9ad0
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 0x1400d9b07
call fcn.1400dc130
mov dword [rax], 0x16
call fcn.1400dcd70
xor eax, eax
jmp 0x1400d9b95
mov rdx, r9
mov rcx, r8
call fcn.1400d9bb8
mov rbx, rax
test rax, rax
je 0x1400d9b92
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400d9c1c]
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 0x1400d9b7f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400dc170
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400d9b66
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400d9b75
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400e9b10
jmp 0x1400d9b92
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400d9b8f
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 0x1400d9cf0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400d9e38

Function at 0x1400e66b0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400e66d8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400e66d8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1400f1528
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.1400e9d7c
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 0x1400f15c9
cmp ebx, dword [rsp + 0x30]
je 0x1400f15c2
test esi, esi
je 0x1400f15c2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400f159d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400f15aa
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400f1587
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400f15ae
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400f15cb
mov eax, 1
jmp 0x1400f15cb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400f2540
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.140062380
sub rsp, rax
mov rax, qword [0x14013dae8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400eeb60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400f258f
mov rax, rbp
jmp 0x1400f2697
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 + 0x145700]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400f2270
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x145700]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400f2693
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 0x1400f2693
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400f2270
test rax, rax
js 0x1400f2693
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400f2693
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400f2685
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400f2685
cmp byte [rcx], 0xd
jne 0x1400f266b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400f267a
cmp byte [rcx + 1], 0xa
jne 0x1400f267a
inc rcx
jmp 0x1400f267a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x13e720]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400f264d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400f2697
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140062590
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 0x1400f323c
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 0x1400f326c
xor eax, eax
jmp 0x1400f332f
mov rbp, rbx
cmp word [rax], si
je 0x1400f3291
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400f3278
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400f3274
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.1400e9c3c
movsxd r14, eax
test eax, eax
jne 0x1400f32cf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400f3265
mov rcx, r14
call fcn.1400e9b4c
mov rdi, rax
test rax, rax
jne 0x1400f32e8
xor ecx, ecx
call fcn.1400e9b10
jmp 0x1400f32c4
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.1400e9c3c
test eax, eax
jne 0x1400f3319
mov rcx, rdi
call fcn.1400e9b10
jmp 0x1400f3323
xor ecx, ecx
call fcn.1400e9b10
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 0x1400f334c
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 0x1400f33d3
mov rsi, rbx
cmp word [rax], bp
je 0x1400f3392
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400f337c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400f3378
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400e9b4c
mov rdi, rax
test rax, rax
je 0x1400f33c0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400d0030
mov rbp, rdi
xor ecx, ecx
call fcn.1400e9b10
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 0x1400f52e8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400f52fe
mov al, 1
jmp 0x1400f535e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400f530f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400f535c
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400f3844
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400f535c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400f535c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400f535c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400f535e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400f5d90
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, [0x140145700]
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 0x1400f5de7
cmp word [rdx], r13w
jne 0x1400f5de7
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400f5dec
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400f5f11
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400f5f32
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400f5e25
mov rdx, r9
mov word [rbx], cx
jmp 0x1400f5e4c
cmp r9, r8
jae 0x1400f5e5c
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 0x1400f5e06
jmp 0x1400f5f11
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 0x1400f5f06
cmp dword [rsp + 0x80], esi
je 0x1400f5f06
lea r8, [0x140145700]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400f5ede
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400f5eae
mov word [rbx], r13w
jmp 0x1400f5f0e
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 0x1400f5ebb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400f5f0e
cmp word [rsp + 0x70], r13w
jne 0x1400f5eeb
cmp rbx, r14
je 0x1400f5ea8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400f21cc
cmp word [rsp + 0x70], r13w
je 0x1400f5f11
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, [0x140145700]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400f5f0b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400f5f11
Function at 0x1400fc7e0
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.1400f21cc
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1400f21cc
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400fc930
cmp rax, 0xffffffffffffffff
je 0x1400fc930
xor edi, edi
test rbp, rbp
jle 0x1400fc8db
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1400ebbb4
mov rbx, rax
test rax, rax
jne 0x1400fc868
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400fc8d1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400dd474
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.1400f41e0
cmp eax, 0xffffffff
je 0x1400fc8b1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400fc878
mov edx, r15d
mov ecx, r14d
call fcn.1400dd474
jmp 0x1400fc8d1
cmp byte [rsi + 0x38], dil
je 0x1400fc8c8
cmp dword [rsi + 0x34], 5
jne 0x1400fc8c8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400fc8d1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400e9b10
jmp 0x1400fc944
jns 0x1400fc944
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1400f21cc
cmp rax, 0xffffffffffffffff
jne 0x1400fc8fc
cmp byte [rsi + 0x30], dil
je 0x1400fc944
mov edi, dword [rsi + 0x2c]
jmp 0x1400fc944
mov ecx, r14d
call fcn.1400f3844
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400fc944
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 0x1400fc944
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400fc93d
mov eax, dword [rsi + 0x2c]
jmp 0x1400fc942
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1400f21cc
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 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1402091e0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1402091f0]
mov dword [rax], 1
mov rax, qword [0x140209200]
mov dword [rax], 1
mov rax, qword [0x140209190]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1402091d0]
mov dword [0x14021700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1402092b0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x140209290]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140209140]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a