joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14025dd30
Capabilities:
Reference sql statements

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
mov r14d, dword [rsp + 0x70]
mov ebx, r8d
mov dword [rax - 0x18], r14d
mov rbp, r9
mov qword [rax - 0x20], r9
mov rdi, rdx
mov r9, rdx
mov byte [rcx + 0x1c], 1
mov r8, rdx
mov dword [rax - 0x28], ebx
lea rdx, str.SELECT_1_FROM___w_.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d___Q___d_NULL
mov rsi, rcx
call fcn.14029e020
test ebx, ebx
jne 0x14025dd99
mov r9, rbp
mov dword [rsp + 0x20], r14d
mov r8, rdi
lea rdx, str.SELECT_1_FROM_temp.sqlite_master_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1___Q___d_NULL
mov rcx, rsi
call fcn.14029e020
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 0x140261630
Capabilities:
Reference sql statements

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r12
push r15
sub rsp, 0x20
mov eax, dword [rcx + 0x40]
xor ebx, ebx
mov r12, r8
mov r15, rdx
mov rdi, rcx
test eax, eax
jne 0x1402617c1
cmp qword [rcx + 0x20], rbx
jne 0x14026167d
mov r9, qword [rcx + 0x10]
lea rdx, str.SELECT_data_FROM__Q._q_node_WHERE_nodeno_
mov r8, qword [rcx + 8]
call fcn.140261c70
mov qword [rdi + 0x20], rax
mov eax, dword [rdi + 0x40]
test eax, eax
jne 0x1402617c1
mov rcx, qword [rdi + 0x20]
mov r8, r15
mov edx, 1
call fcn.1401f5480
mov rcx, qword [rdi + 0x20]
call fcn.1401f5b30
cmp eax, 0x64
jne 0x140261791
mov rcx, qword [rdi + 0x20]
xor edx, edx
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], r14
call fcn.1401f6720
mov rsi, qword [rdi + 0x20]
movsxd r14, eax
test rsi, rsi
jne 0x1402616d7
lea rcx, [0x1403d7d28]
call fcn.1401f6e40
mov rbp, rax
jmp 0x14026174e
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1402616e9
call qword [0x14042c5f0]
mov rcx, qword [rsi + 0xa0]
test rcx, rcx
je 0x1402616fe
cmp bx, word [rsi + 0xc0]
jb 0x140261719
mov rcx, qword [rsi]
mov edx, 0x19
mov dword [rcx + 0x50], 0x19
call fcn.1402830c0
lea rcx, [0x1403d7d28]
call fcn.1401f6e40
mov rcx, qword [rsi]
mov rbp, rax
mov edx, dword [rsi + 0x34]
cmp byte [rcx + 0x67], bl
jne 0x140261734
test edx, edx
jne 0x140261734
mov eax, ebx
jmp 0x14026173c
call fcn.1402075f0
mov rcx, qword [rsi]
mov dword [rsi + 0x34], eax
mov rcx, qword [rcx + 0x18]
test rcx, rcx
je 0x14026174e
call qword [0x14042c600]
call fcn.1402d3d20
test eax, eax
jne 0x140261767
mov rcx, r14
call fcn.14029d740
mov rbx, rax
test rax, rax
jne 0x140261770
mov dword [rdi + 0x40], 7
jmp 0x140261782
mov r8, r14
mov rdx, rbp
mov rcx, rax
call fcn.1402f4a50
mov dword [r12], r14d
mov rsi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rcx, qword [rdi + 0x20]
call fcn.1401f6ae0
mov ecx, dword [rdi + 0x40]
test ecx, ecx
jne 0x1402617c1
mov dword [rdi + 0x40], eax
mov ecx, eax
test eax, eax
jne 0x1402617c1
test rbx, rbx
jne 0x1402617c1
mov r8, r15
lea rdx, str.Node__lld_missing_from_database
mov rcx, rdi
call fcn.1402615b0
mov rax, rbx
mov rbx, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r12
pop rdi
ret
Function at 0x1402617e0
Capabilities:
Reference sql statements

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
lea rax, str.SELECT_parentnode_FROM__Q._q_parent_WHERE_nodeno_1
movsxd r15, edx
mov rdi, qword [rcx + r15*8 + 0x28]
lea r14, [rcx + r15*8]
mov qword [rsp + 0x40], rax
lea rax, str.SELECT_nodeno_FROM__Q._q_rowid_WHERE_rowid_1
mov qword [rsp + 0x48], rax
mov rbp, r9
mov rsi, r8
mov rbx, rcx
test rdi, rdi
jne 0x140261843
mov r9, qword [rcx + 0x10]
mov r8, qword [rcx + 8]
mov rdx, qword [rsp + r15*8 + 0x40]
call fcn.140261c70
mov rdi, rax
mov qword [r14 + 0x28], rax
cmp dword [rbx + 0x40], 0
jne 0x1402618f9
mov r8, rsi
mov edx, 1
mov rcx, rdi
call fcn.1401f5480
mov rcx, rdi
call fcn.1401f5b30
cmp eax, 0x65
jne 0x14026189b
test r15d, r15d
lea rcx, str.__rowid
lea rax, str.__parent
mov r9, rbp
cmovne rax, rcx
lea rdx, str.Mapping___lld_____lld__missing_from__s_table
mov rcx, rbx
mov qword [rsp + 0x20], rax
mov r8, rsi
call fcn.1402615b0
jmp 0x1402618e8
cmp eax, 0x64
jne 0x1402618e8
xor edx, edx
mov rcx, rdi
call fcn.1401f6380
mov r9, rax
cmp rax, rbp
je 0x1402618e8
test r15d, r15d
mov qword [rsp + 0x30], rbp
lea rcx, str.__rowid
mov qword [rsp + 0x28], rsi
lea rax, str.__parent
mov r8, rsi
cmovne rax, rcx
lea rdx, str.Found___lld_____lld__in__s_table__expected___lld_____lld_
mov rcx, rbx
mov qword [rsp + 0x20], rax
call fcn.1402615b0
mov rcx, rdi
call fcn.1401f6ae0
cmp dword [rbx + 0x40], 0
jne 0x1402618f9
mov dword [rbx + 0x40], eax
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 0x14026fe70
Capabilities:
Encode data using xor

Disassembly:
push rbx
xor r11d, r11d
mov r10, rdx
mov rdx, rcx
mov eax, r11d
mov r9d, r11d
test r8d, r8d
jle 0x14026ff46
cmp r8d, 8
jb 0x14026ff46
mov qword [rsp + 0x10], rsi
lea rbx, [rcx + 4]
mov qword [rsp + 0x18], rdi
mov rcx, r10
movsxd rdi, r8d
sub rcx, rdx
and rdi, 0xfffffffffffffff8
mov rsi, 0xfffffffffffffffc
sub rsi, rdx
xorps xmm4, xmm4
xorps xmm3, xmm3
nop
movd xmm2, dword [rcx + rbx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rbx - 4]
lea rbx, [rbx + 8]
punpcklbw xmm2, xmm0
lea rax, [rsi + rbx]
punpcklwd xmm2, xmm0
add r9d, 8
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
movd xmm1, dword [rbx - 8]
punpcklbw xmm1, xmm0
por xmm4, xmm2
movd xmm2, dword [rcx + rbx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
pxor xmm2, xmm1
por xmm3, xmm2
cmp rax, rdi
jl 0x14026fec0
mov rdi, qword [rsp + 0x18]
por xmm3, xmm4
mov rsi, qword [rsp + 0x10]
movdqa xmm0, xmm3
psrldq xmm0, 8
por xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
por xmm3, xmm0
movd eax, xmm3
movsxd rbx, r9d
movsxd r9, r8d
cmp rbx, r9
jge 0x14026ff78
sub r10, rdx
lea rcx, [rbx + rdx]
sub r9, rbx
nop dword [rax + rax]
movzx r8d, byte [rcx + r10]
movzx edx, byte [rcx]
lea rcx, [rcx + 1]
xor r8d, edx
or eax, r8d
sub r9, 1
jne 0x14026ff60
test eax, eax
setne r11b
mov eax, r11d
pop rbx
ret
Function at 0x14028a400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rsi
push rdi
push r14
sub rsp, 0x28
xor r11d, r11d
mov rdi, r8
mov ebx, r11d
mov r14, rdx
mov rsi, rcx
cmp dword [rcx + 0x28], ebx
jle 0x14028a509
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x60], r12
lea r12, str.main
mov qword [rsp + 0x20], r15
lea r15, [0x1403d65c0]
nop
mov rax, qword [rsi + 0x20]
mov r10d, ebx
xor r10d, 1
cmp ebx, 2
cmovge r10d, ebx
movsxd rcx, r10d
shl rcx, 5
mov rbp, qword [rcx + rax + 0x18]
test rdi, rdi
je 0x14028a481
mov r8, qword [rcx + rax]
mov r9, rdi
sub r9, r8
nop dword [rax]
movzx ecx, byte [r8]
movzx eax, byte [r9 + r8]
cmp ecx, eax
jne 0x14028a4bc
test ecx, ecx
jne 0x14028a4ca
lea rcx, [rbp + 0x20]
xor r8d, r8d
mov rdx, r14
call fcn.14021b710
mov r11, qword [rax + 0x10]
test r11, r11
jne 0x14028a4a0
inc ebx
cmp ebx, dword [rsi + 0x28]
jl 0x14028a440
mov r12, qword [rsp + 0x60]
mov rax, r11
mov rbp, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
movzx edx, byte [rax + r15]
movzx ecx, byte [rcx + r15]
cmp ecx, edx
jne 0x14028a4cf
inc r8
jmp 0x14028a470
test r10d, r10d
jne 0x14028a499
mov r9, rdi
mov rax, r12
sub r9, r12
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [r9 + rax]
cmp edx, ecx
jne 0x14028a4f5
test edx, edx
je 0x14028a481
inc rax
jmp 0x14028a4e0
movzx r8d, byte [rcx + r15]
movzx edx, byte [rdx + r15]
cmp edx, r8d
jne 0x14028a499
inc rax
jmp 0x14028a4e0
mov rax, r11
add rsp, 0x28
pop r14
pop rdi
pop rsi
pop rbx
ret
Function at 0x140308d4c
Capabilities:
Parse pe header

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

Function at 0x14030a028
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.1402f1230
sub rsp, rax
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140309680
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14030a077
mov rax, rbp
jmp 0x14030a17f
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 + 0x434ef0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14031ed54
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x434ef0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14030a17b
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 0x14030a17b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14031ed54
test rax, rax
js 0x14030a17b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14030a17b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14030a16d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14030a16d
cmp byte [rcx], 0xd
jne 0x14030a153
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14030a162
cmp byte [rcx + 1], 0xa
jne 0x14030a162
inc rcx
jmp 0x14030a162
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x430950]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14030a135
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14030a17f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1402f09e0
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 0x14030b26c
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 [0x140430528]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1403ea758]
mov rbp, rcx
call fcn.1402ffcc8
xor edi, edi
test rax, rax
je 0x14030b352
mov ebx, edi
call fcn.14030aa00
mov r14d, dword [rax]
call fcn.14030aa00
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.14031fa74
mov rsi, rax
test rax, rax
je 0x14030b2e3
call fcn.14030aa00
mov dword [rax], r14d
jmp 0x14030b30d
call fcn.14030aa00
cmp dword [rax], 0x22
jne 0x14030b34a
call fcn.14030aa00
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14031fa74
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14030b34a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14030b311
cmp rax, 3
je 0x14030b32c
mov rcx, rsi
call fcn.14030b1c8
test al, al
je 0x14030b33d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14030b33d
mov dil, 1
mov rcx, rbx
call fcn.1402ff780
mov al, dil
jmp 0x14030b354
mov rcx, rbx
call fcn.1402ff780
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1402f09e0
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 0x14031df8c
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, [0x140434ef0]
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 0x14031dfe3
cmp word [rdx], r13w
jne 0x14031dfe3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14031dfe8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14031e10d
mov r11d, ntohs
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14031e12e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14031e021
mov rdx, r9
mov word [rbx], cx
jmp 0x14031e048
cmp r9, r8
jae 0x14031e058
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 0x14031e002
jmp 0x14031e10d
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 0x14031e102
cmp dword [rsp + 0x80], esi
je 0x14031e102
lea r8, [0x140434ef0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14031e0da
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14031e0aa
mov word [rbx], r13w
jmp 0x14031e10a
mov ecx, ntohs
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 0x14031e0b7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14031e10a
cmp word [rsp + 0x70], r13w
jne 0x14031e0e7
cmp rbx, r14
je 0x14031e0a4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14031ed5c
cmp word [rsp + 0x70], r13w
je 0x14031e10d
mov ecx, ntohs
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, [0x140434ef0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14031e107
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14031e10d
Function at 0x14031eff4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14031f00a
mov al, 1
jmp 0x14031f06a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14031f01b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14031f068
mov ecx, dword [rcx + 0x18]
nop
call fcn.14031f6b4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14031f068
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14031f068
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14031f068
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14031f06a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140323774
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 0x1403237a4
xor eax, eax
jmp 0x140323867
mov rbp, rbx
cmp word [rax], si
je 0x1403237c9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1403237b0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1403237ac
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.14031c4f4
movsxd r14, eax
test eax, eax
jne 0x140323807
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14032379d
mov rcx, r14
call fcn.140319110
mov rdi, rax
test rax, rax
jne 0x140323820
xor ecx, ecx
call fcn.14031817c
jmp 0x1403237fc
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.14031c4f4
test eax, eax
jne 0x140323851
mov rcx, rdi
call fcn.14031817c
jmp 0x14032385b
xor ecx, ecx
call fcn.14031817c
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 0x140323884
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 0x14032390b
mov rsi, rbx
cmp word [rax], bp
je 0x1403238ca
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1403238b4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1403238b0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140319110
mov rdi, rax
test rax, rax
je 0x1403238f8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402f4a50
mov rbp, rdi
xor ecx, ecx
call fcn.14031817c
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 0x140326808
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.14031aa80
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 0x1403268a9
cmp ebx, dword [rsp + 0x30]
je 0x1403268a2
test esi, esi
je 0x1403268a2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14032687d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14032688a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140326867
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14032688e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1403268ab
mov eax, 1
jmp 0x1403268ab
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14032a6dc
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x140430528]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x14032a726
call fcn.14030a9dc
mov dword [rax], reloc.WS2_32.dll_ntohs
call fcn.14030aa00
mov dword [rax], ntohs
call fcn.140306d1c
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1402f09e0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x14032a731
lea eax, [rbx + 1]
jmp 0x14032a713
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 0x14032a711
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x14032a713
Function at 0x14032ad78
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1403019a0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14032ae02
cmp byte [rbp - 0x21], r15b
je 0x14032adfd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14032ae38
call fcn.140318488
test eax, eax
jne 0x14032ae24
cmp byte [rbp - 0x21], r15b
je 0x14032ae1c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14032ae38
cmp byte [rbp - 0x21], r15b
je 0x14032ae35
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1403074d0
test eax, eax
jne 0x14032aed8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1403019a0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14032ae77
cmp byte [rbp - 0x21], r15b
je 0x14032aeac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14032aeac
call fcn.140318488
test eax, eax
jne 0x14032ae98
cmp byte [rbp - 0x21], r15b
je 0x14032ae91
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14032aeac
cmp byte [rbp - 0x21], r15b
je 0x14032aea9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1403074d0
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14032aed8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14032aedb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14032aee9
mov rcx, rdi
call fcn.14031817c
cmp byte [rbp + 0x3f], r15b
je 0x14032aef8
mov rcx, qword [rbp + 0x27]
call fcn.14031817c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14032bcb4
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.14031ed5c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14031ed5c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14032be04
cmp rax, 0xffffffffffffffff
je 0x14032be04
xor edi, edi
test rbp, rbp
jle 0x14032bdaf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140318104
mov rbx, rax
test rax, rax
jne 0x14032bd3c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14032bda5
mov edx, 0x8000
mov ecx, r14d
call fcn.14030abac
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.14031bd58
cmp eax, 0xffffffff
je 0x14032bd85
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14032bd4c
mov edx, r15d
mov ecx, r14d
call fcn.14030abac
jmp 0x14032bda5
cmp byte [rsi + 0x38], dil
je 0x14032bd9c
cmp dword [rsi + 0x34], 5
jne 0x14032bd9c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
cmp byte [rsi + 0x30], dil
je 0x14032bda5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14031817c
jmp 0x14032be18
jns 0x14032be18
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14031ed5c
cmp rax, 0xffffffffffffffff
jne 0x14032bdd0
cmp byte [rsi + 0x30], dil
je 0x14032be18
mov edi, dword [rsi + 0x2c]
jmp 0x14032be18
mov ecx, r14d
call fcn.14031f6b4
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14032be18
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, ntohs
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], send
jmp 0x14032be18
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14032be11
mov eax, dword [rsi + 0x2c]
jmp 0x14032be16
mov eax, reloc.WS2_32.dll_shutdown
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14031ed5c
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