joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140184810
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using salsa20 or chacha

Disassembly:
push rbp
push rsi
push rdi
mov eax, 0xb0
call fcn.140239ef0
sub rsp, rax
mov rax, qword [0x1403285e8]
xor rax, rsp
mov qword [rsp + 0xa0], rax
mov rax, qword [rsp + 0xf0]
mov rbp, r8
mov dword [rsp + 0x60], 0x61707865
mov rsi, rdx
mov dword [rsp + 0x64], 0x3320646e
mov rdi, rcx
mov dword [rsp + 0x68], 0x79622d32
mov dword [rsp + 0x6c], 0x6b206574
movups xmm0, xmmword [r9]
movups xmm1, xmmword [r9 + 0x10]
movups xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x80], xmm1
movups xmmword [rsp + 0x90], xmm0
test r8, r8
je 0x1401849f1
mov qword [rsp + 0xd8], rbx
mov qword [rsp + 0xe0], r14
nop
mov ebx, 0x40
lea rdx, [rsp + 0x60]
cmp rbp, rbx
lea rcx, [rsp + 0x20]
cmovb rbx, rbp
call fcn.140184a10
xor eax, eax
test rbx, rbx
je 0x1401849cb
cmp rbx, 0x40
jb 0x140184999
lea rdx, [rdi - 1]
add rdx, rbx
lea rcx, [rsp + rbx + 0x1f]
cmp rdi, rcx
ja 0x1401848ef
lea rcx, [rsp + 0x20]
cmp rdx, rcx
jae 0x140184999
lea rcx, [rsi - 1]
add rcx, rbx
cmp rdi, rcx
ja 0x140184904
cmp rdx, rsi
jae 0x140184999
mov r10, rbx
and r10, 0xffffffffffffffc0
mov rdx, rsi
lea r8, [rsp + 0x20]
lea r11, [rsp + 0x30]
sub rdx, rdi
sub r8, rdi
lea r14, [rsp + 0x40]
sub r11, rdi
lea rcx, [rdi + 0x10]
sub r14, rdi
nop dword [rax]
movdqu xmm0, xmmword [r8 + rcx - 0x10]
add rax, 0x40
movdqu xmm1, xmmword [rdx + rcx - 0x10]
movdqu xmm2, xmmword [rcx + r8]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm1
pxor xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x30]
movdqu xmm1, xmmword [rcx + r11 - 0x40]
movdqu xmmword [rcx - 0x40], xmm2
pxor xmm1, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x20]
movdqu xmm2, xmmword [rcx + r14 - 0x40]
movdqu xmmword [rcx - 0x30], xmm1
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
cmp rax, r10
jb 0x140184930
cmp rax, rbx
jae 0x1401849cb
lea rcx, [rsp + 0x20]
mov r8, rsi
sub r8, rcx
mov r9, rdi
lea rcx, [rsp + 0x20]
sub r9, rcx
nop
lea rdx, [rsp + 0x20]
add rdx, rax
inc rax
movzx ecx, byte [rdx + r8]
xor cl, byte [rdx]
mov byte [rdx + r9], cl
cmp rax, rbx
jb 0x1401849b0
inc dword [rsp + 0x90]
add rdi, rbx
add rsi, rbx
sub rbp, rbx
jne 0x1401848a0
mov r14, qword [rsp + 0xe0]
mov rbx, qword [rsp + 0xd8]
mov rcx, qword [rsp + 0xa0]
xor rcx, rsp
call fcn.140239380
add rsp, 0xb0
pop rdi
pop rsi
pop rbp
ret
Function at 0x140187ca0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x38
call fcn.140239ef0
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x140187cc9
lea rax, [0x140186310]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14017e130
lea rax, [0x1401854d0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.14017de80

Function at 0x140190ad0
Capabilities:
Encode data using xor

Disassembly:
push rbx
movsxd rbx, r9d
mov r10, r8
mov r11, rdx
cmp rdx, r8
je 0x140190c32
mov qword [rsp + 0x10], rsi
lea rsi, [rcx - 1]
not rcx
shr rsi, 0x3f
shr rcx, 0x3f
and rsi, rcx
mov ecx, dword [rdx + 8]
xor ecx, dword [r8 + 8]
dec rsi
and ecx, esi
xor dword [rdx + 8], ecx
xor dword [r8 + 8], ecx
mov edx, dword [r8 + 0x10]
movq xmm4, rsi
xor edx, dword [r11 + 0x10]
and edx, esi
punpcklqdq xmm4, xmm4
xor dword [r11 + 0x10], edx
xor dword [r8 + 0x10], edx
mov ecx, dword [r11 + 0x14]
mov edx, dword [r8 + 0x14]
xor rdx, rcx
and edx, 4
and rdx, rsi
mov eax, edx
xor eax, ecx
xor ecx, ecx
mov dword [r11 + 0x14], eax
xor dword [r8 + 0x14], edx
mov edx, ecx
test r9d, r9d
jle 0x140190bf2
cmp ebx, 2
jb 0x140190bf2
mov r9, qword [r8]
lea rax, [rbx - 1]
mov r8, qword [r11]
mov qword [rsp + 0x18], rdi
lea rdi, [rbx - 1]
lea rdi, [r9 + rdi*8]
lea rax, [r8 + rax*8]
cmp r9, rax
ja 0x140190b81
cmp rdi, r8
jae 0x140190bed
cmp r9, r10
ja 0x140190b8b
cmp rdi, r10
jae 0x140190bed
cmp r9, r11
ja 0x140190b95
cmp rdi, r11
jae 0x140190bed
cmp r8, r10
ja 0x140190b9f
cmp rax, r10
jae 0x140190bed
cmp r8, r11
ja 0x140190ba9
cmp rax, r11
jae 0x140190bed
mov eax, ebx
and eax, 0xfffffffe
nop
movdqu xmm2, xmmword [rcx + r9]
add edx, 2
movdqu xmm1, xmmword [rcx + r8]
lea rcx, [rcx + 0x10]
movdqa xmm3, xmm2
pxor xmm3, xmm1
pand xmm3, xmm4
movdqa xmm0, xmm3
pxor xmm3, xmm2
pxor xmm0, xmm1
movdqu xmmword [rcx + r8 - 0x10], xmm0
movdqu xmmword [rcx + r9 - 0x10], xmm3
cmp edx, eax
jl 0x140190bb0
mov rdi, qword [rsp + 0x18]
movsxd rax, edx
cmp rax, rbx
jge 0x140190c2d
nop word [rax + rax]
mov rcx, qword [r11]
mov rdx, qword [rcx + rax*8]
lea r8, [rcx + rax*8]
mov rcx, qword [r10]
mov r9, qword [rcx + rax*8]
xor r9, rdx
and r9, rsi
xor rdx, r9
mov qword [r8], rdx
mov rcx, qword [r10]
xor qword [rcx + rax*8], r9
inc rax
cmp rax, rbx
jl 0x140190c00
mov rsi, qword [rsp + 0x10]
pop rbx
ret
Function at 0x14019ca40
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
mov r10, rdx
xor r11b, r11b
xor edx, edx
mov rsi, r9
mov rbx, rcx
test rcx, rcx
je 0x14019cb54
test r10, r10
je 0x14019cb54
movzx eax, byte [rcx]
test r8d, r8d
jne 0x14019ca85
cmp al, 0x7f
jbe 0x14019cb4d
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14019cb5c
mov r11b, 0xff
cmp al, 0x80
jbe 0x14019ca9b
mov edx, 1
mov eax, edx
add rax, r10
jmp 0x14019cb5c
jne 0x14019cb4d
mov eax, 1
lea rcx, [r10 - 1]
cmp r10, rax
jbe 0x14019cb3e
cmp rcx, 8
jb 0x14019cb30
and ecx, 7
mov rdx, r10
sub rdx, rcx
xorps xmm3, xmm3
xorps xmm2, xmm2
nop dword [rax + rax]
movd xmm1, dword [rax + rbx]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
por xmm1, xmm3
movdqa xmm3, xmm1
movd xmm1, dword [rax + rbx + 4]
punpcklbw xmm1, xmm0
add rax, 8
punpcklwd xmm1, xmm0
por xmm1, xmm2
movdqa xmm2, xmm1
cmp rax, rdx
jb 0x14019cad0
por xmm2, xmm3
movdqa xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movd edx, xmm2
cmp rax, r10
jae 0x14019cb3e
nop
movzx ecx, byte [rax + rbx]
inc rax
or edx, ecx
cmp rax, r10
jb 0x14019cb30
neg edx
sbb r11b, r11b
movzx r11d, r11b
mov edx, r11d
and edx, 1
mov eax, edx
add rax, r10
jmp 0x14019cb5c
mov eax, 1
mov r10, rdx
mov qword [rsp + 0x10], rdi
test rsi, rsi
je 0x14019cbb5
mov rdi, qword [r9]
test rdi, rdi
je 0x14019cbb5
movzx r8d, r11b
lea r9, [rbx + r10]
and r8d, 1
mov byte [rdi], r11b
test r10, r10
je 0x14019cbb2
mov ebx, edx
add rbx, rdi
nop word [rax + rax]
movzx edx, byte [r9 - 1]
lea r9, [r9 - 1]
dec r10
movzx ecx, r11b
xor edx, ecx
add r8d, edx
mov byte [rbx + r10], r8b
shr r8d, 8
test r10, r10
jne 0x14019cb90
add qword [rsi], rax
mov rdi, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
pop rsi
ret
Function at 0x1401df8e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x20
call fcn.140239ef0
sub rsp, rax
mov rsi, r9
mov rbp, r9
shr rsi, 3
mov rdi, r8
mov rbx, rdx
mov r14, rcx
cmp r8, r9
jb 0x1401df9a0
nop
xor edx, edx
test rsi, rsi
je 0x1401df990
nop word [rax + rax]
movzx eax, byte [rbx + 6]
movzx ecx, byte [rbx + 7]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 5]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 4]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 3]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 2]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx + 1]
shl rcx, 8
or rcx, rax
movzx eax, byte [rbx]
shl rcx, 8
add rbx, 8
or rcx, rax
xor qword [r14 + rdx*8], rcx
inc rdx
cmp rdx, rsi
jb 0x1401df930
mov rcx, r14
call fcn.1401df0b0
sub rdi, rbp
cmp rdi, rbp
jae 0x1401df920
mov rbx, qword [rsp + 0x30]
mov rax, rdi
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140236684
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140236708
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140236708
dec r8
sub rdx, 1
jne 0x1402366ee
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14023a478
Capabilities:
Parse pe header

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

Function at 0x14024932c
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 0x140249363
call fcn.14024a888
mov dword [rax], 0x16
call fcn.140248f14
xor eax, eax
jmp 0x1402493f1
mov rdx, r9
mov rcx, r8
call fcn.1402492c8
mov rbx, rax
test rax, rax
je 0x1402493ee
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402491f4]
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 0x1402493db
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14024a7fc
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402493c2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402493d1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14025ada0
jmp 0x1402493ee
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402493eb
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 0x14024adc0
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 0x14024ac2b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14024ac2b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14024ac2b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14024ac2b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14024ac2b
cmp dword [rcx + 0x84], 0xe
jbe 0x14024ac2b
cmp dword [rcx + 0xf8], 0
je 0x14024ac2b
mov ecx, ebx
call fcn.14024acdc
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.14024aab8
nop
cmp dword [rbp + 0x20], 0
je 0x14024ac79
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14024ac84
int3
xor r8d, r8d
xor edx, edx
jmp 0x14024abbc

Function at 0x14024b514
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.140239ef0
sub rsp, rax
mov rax, qword [0x1403285e8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14024d164
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14024b563
mov rax, rbp
jmp 0x14024b66b
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 + 0x32f620]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14025ee9c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x32f620]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14024b667
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 0x14024b667
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14025ee9c
test rax, rax
js 0x14024b667
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14024b667
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14024b659
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14024b659
cmp byte [rcx], 0xd
jne 0x14024b63f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14024b64e
cmp byte [rcx + 1], 0xa
jne 0x14024b64e
inc rcx
jmp 0x14024b64e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3289d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14024b621
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14024b66b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140239380
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 0x14024be08
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x250
mov rax, qword [0x1403285e8]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1402f3b90]
mov rbp, rcx
call fcn.140260af4
xor edi, edi
test rax, rax
je 0x14024beee
mov ebx, edi
call fcn.14024a888
mov r14d, dword [rax]
call fcn.14024a888
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140260a40
mov rsi, rax
test rax, rax
je 0x14024be7f
call fcn.14024a888
mov dword [rax], r14d
jmp 0x14024bea9
call fcn.14024a888
cmp dword [rax], 0x22
jne 0x14024bee6
call fcn.14024a888
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140260a40
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14024bee6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14024bead
cmp rax, 3
je 0x14024bec8
mov rcx, rsi
call fcn.14024bd64
test al, al
je 0x14024bed9
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14024bed9
mov dil, 1
mov rcx, rbx
call fcn.140247c24
mov al, dil
jmp 0x14024bef0
mov rcx, rbx
call fcn.140247c24
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140239380
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x14025927c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140259292
mov al, 1
jmp 0x1402592f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1402592a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1402592f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140260fd4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1402592f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1402592f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1402592f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1402592f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14025e23c
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, [0x14032f620]
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 0x14025e293
cmp word [rdx], r13w
jne 0x14025e293
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14025e298
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14025e3bd
mov r11d, reloc.WS2_32.dll_listen
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14025e3de
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14025e2d1
mov rdx, r9
mov word [rbx], cx
jmp 0x14025e2f8
cmp r9, r8
jae 0x14025e308
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 0x14025e2b2
jmp 0x14025e3bd
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 0x14025e3b2
cmp dword [rsp + 0x80], esi
je 0x14025e3b2
lea r8, [0x14032f620]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14025e38a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14025e35a
mov word [rbx], r13w
jmp 0x14025e3ba
mov ecx, reloc.WS2_32.dll_listen
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 0x14025e367
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14025e3ba
cmp word [rsp + 0x70], r13w
jne 0x14025e397
cmp rbx, r14
je 0x14025e354
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14025eea4
cmp word [rsp + 0x70], r13w
je 0x14025e3bd
mov ecx, reloc.WS2_32.dll_listen
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, [0x14032f620]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14025e3b7
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14025e3bd
Function at 0x140264a38
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 0x140264a68
xor eax, eax
jmp 0x140264b2b
mov rbp, rbx
cmp word [rax], si
je 0x140264a8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140264a74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140264a70
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.140263390
movsxd r14, eax
test eax, eax
jne 0x140264acb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140264a61
mov rcx, r14
call fcn.14025b5f0
mov rdi, rax
test rax, rax
jne 0x140264ae4
xor ecx, ecx
call fcn.14025ada0
jmp 0x140264ac0
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.140263390
test eax, eax
jne 0x140264b15
mov rcx, rdi
call fcn.14025ada0
jmp 0x140264b1f
xor ecx, ecx
call fcn.14025ada0
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 0x140264b48
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 0x140264bcf
mov rsi, rbx
cmp word [rax], bp
je 0x140264b8e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140264b78
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140264b74
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14025b5f0
mov rdi, rax
test rax, rax
je 0x140264bbc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14023bd70
mov rbp, rdi
xor ecx, ecx
call fcn.14025ada0
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 0x140267b8c
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.14025973c
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 0x140267c2d
cmp ebx, dword [rsp + 0x30]
je 0x140267c26
test esi, esi
je 0x140267c26
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140267c01
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140267c0e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140267beb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140267c12
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140267c2f
mov eax, 1
jmp 0x140267c2f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140269f1c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1403285e8]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140269f66
call fcn.14024a868
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14024a888
mov dword [rax], reloc.WS2_32.dll_listen
call fcn.140248f14
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140239380
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140269f71
lea eax, [rbx + 1]
jmp 0x140269f53
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 0x140269f51
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140269f53
Function at 0x14026a060
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.14025eea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14025eea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14026a1b0
cmp rax, 0xffffffffffffffff
je 0x14026a1b0
xor edi, edi
test rbp, rbp
jle 0x14026a15b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140259d10
mov rbx, rax
test rax, rax
jne 0x14026a0e8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14026a151
mov edx, 0x8000
mov ecx, r14d
call fcn.14024d318
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.14025aa98
cmp eax, 0xffffffff
je 0x14026a131
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14026a0f8
mov edx, r15d
mov ecx, r14d
call fcn.14024d318
jmp 0x14026a151
cmp byte [rsi + 0x38], dil
je 0x14026a148
cmp dword [rsi + 0x34], 5
jne 0x14026a148
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
cmp byte [rsi + 0x30], dil
je 0x14026a151
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14025ada0
jmp 0x14026a1c4
jns 0x14026a1c4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14025eea4
cmp rax, 0xffffffffffffffff
jne 0x14026a17c
cmp byte [rsi + 0x30], dil
je 0x14026a1c4
mov edi, dword [rsi + 0x2c]
jmp 0x14026a1c4
mov ecx, r14d
call fcn.140260fd4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14026a1c4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, reloc.WS2_32.dll_listen
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], reloc.WS2_32.dll_listen
jmp 0x14026a1c4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14026a1bd
mov eax, dword [rsi + 0x2c]
jmp 0x14026a1c2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14025eea4
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