joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400b4c40
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rcx
xor eax, eax
test r8d, r8d
sete al
xor r8d, r8d
test edx, edx
sete r8b
xor ecx, ecx
mov edx, r8d
mov r8d, eax
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi], 0
test rax, rax
je 0x1400b4d42
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400b4cd0
lea rax, [rdi + 1]
cmp rax, 2
jb 0x1400b4ca7
mov qword [rsi], rdi
call fcn.140078a00
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, qword [rsi]
mov byte [rsi + 8], 0
inc rax
cmp rax, 1
jbe 0x1400b4d46
mov rax, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140078a00
mov r14, qword [rsi]
cmp qword [0x140208550], 0
je 0x1400b4d01
mov rcx, qword [0x140208550]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [0x1401e8220]
mov qword [rsi], 0
jmp 0x1400b4c95
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401da154]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400b4d49
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400b4d3c
call qword [0x1401e8220]
mov rcx, rax
xor edx, edx
call fcn.14002a2a0
jmp 0x1400b4ce2
xor ecx, ecx
mov dl, 1
jmp 0x1400b4d35
mov byte [rsi + 8], 0
int3
xor ecx, ecx
jmp 0x1400b4d33
Function at 0x1400c7670
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x58
movdqa xmmword [rsp + 0x40], xmm10
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
movdqu xmm4, xmmword [rcx]
movdqu xmm3, xmmword [rcx + 0x10]
movdqu xmm2, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rcx + 0x30]
movd xmm0, r8d
pxor xmm0, xmm4
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x40
jae 0x1400c77ef
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
pmovzxdq xmm3, qword [0x1401ccc60]
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm2
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm5
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
cmp rdx, 0x10
jb 0x1400c7752
movdqu xmm1, xmmword [rcx]
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm3, 0x11
pxor xmm0, xmm2
add rcx, 0x10
add rdx, 0xfffffffffffffff0
cmp rdx, 0xf
ja 0x1400c7728
pmovzxdq xmm1, qword [0x1401ccc60]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
psrldq xmm0, 4
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
pxor xmm3, xmm0
pxor xmm0, xmm0
pblendw xmm0, xmm3, 3
pclmulqdq xmm0, xmmword [0x1401ccc50], 0x10
pblendw xmm0, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm0, 0
pxor xmm1, xmm3
pextrd eax, xmm1, 1
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
movaps xmm10, xmmword [rsp + 0x40]
add rsp, 0x58
ret
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1401ccc40]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm3
pclmulqdq xmm7, xmm4, 0
movdqa xmm8, xmm2
pclmulqdq xmm8, xmm4, 0
movdqa xmm9, xmm1
pclmulqdq xmm9, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pclmulqdq xmm3, xmm5, 0x11
pclmulqdq xmm2, xmm5, 0x11
pclmulqdq xmm1, xmm5, 0x11
movdqu xmm10, xmmword [rcx]
pxor xmm10, xmm6
pxor xmm0, xmm10
movdqu xmm6, xmmword [rcx + 0x10]
pxor xmm6, xmm7
pxor xmm3, xmm6
movdqu xmm6, xmmword [rcx + 0x20]
pxor xmm6, xmm8
pxor xmm2, xmm6
movdqu xmm6, xmmword [rcx + 0x30]
pxor xmm6, xmm9
pxor xmm1, xmm6
add rdx, 0xffffffffffffffc0
add rcx, 0x40
cmp rdx, 0x3f
ja 0x1400c7806
jmp 0x1400c76c2
Function at 0x1400ca350
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
xor eax, eax
mov qword [rcx], rax
mov r14, qword [rdx]
mov qword [rdx], rax
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1400ca378
call fcn.140078a00
cmp qword [rsi], r14
je 0x1400ca3a7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ca3b6
cmp r15, 2
jb 0x1400ca39f
mov qword [rsi], r14
call fcn.140078a00
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140078a00
mov rbx, qword [rsi]
cmp qword [0x140208550], 0
je 0x1400ca3e7
mov rcx, qword [0x140208550]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x1401e8220]
mov qword [rsi], 0
jmp 0x1400ca391
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401da154]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ca428
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400ca422
call qword [0x1401e8220]
mov rcx, rax
xor edx, edx
call fcn.14002a2a0
jmp 0x1400ca3c8
xor ecx, ecx
mov dl, 1
jmp 0x1400ca41b
xor ecx, ecx
jmp 0x1400ca419
jmp 0x1400ca350

Function at 0x1400ca430
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, rcx
mov r14, qword [rdx]
mov qword [rdx], 0
lea r15, [r14 + 1]
cmp r15, 2
jb 0x1400ca457
call fcn.140078a00
cmp qword [rsi], r14
je 0x1400ca486
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rax, qword [rsi]
inc rax
cmp rax, 2
jae 0x1400ca495
cmp r15, 2
jb 0x1400ca47e
mov qword [rsi], r14
call fcn.140078a00
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140078a00
mov rbx, qword [rsi]
cmp qword [0x140208550], 0
je 0x1400ca4c6
mov rcx, qword [0x140208550]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, rbx
call qword [0x1401e8220]
mov qword [rsi], 0
jmp 0x1400ca470
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x1401da154]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400ca507
lea rcx, [sym.chrome.exe_GetHandleVerifier]
cmp rax, rcx
je 0x1400ca501
call qword [0x1401e8220]
mov rcx, rax
xor edx, edx
call fcn.14002a2a0
jmp 0x1400ca4a7
xor ecx, ecx
mov dl, 1
jmp 0x1400ca4fa
xor ecx, ecx
jmp 0x1400ca4f8
Function at 0x1400d1d50
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x1402047a0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1400d1d86
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x1400d1d86
add rax, rcx
mov rax, qword [rax]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x1400d1d80

Function at 0x1400d3fd0
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x14000003c]
lea rsi, [0x140000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x1400d4048
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x1400d4048
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x1400d4048
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x1400d403c
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x1400d405a
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x1400d402a
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x1400d404a

Function at 0x1400d48ac
Capabilities:
Parse pe header

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

Function at 0x1400e5f78
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 0x1400e5faf
call fcn.1400d2bc4
mov dword [rax], 0x16
call fcn.1400faa24
xor eax, eax
jmp 0x1400e603d
mov rdx, r9
mov rcx, r8
call fcn.1400e6060
mov rbx, rax
test rax, rax
je 0x1400e603a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400e60d0]
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 0x1400e6027
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400e8da8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400e600e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400e601d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400c8a80
jmp 0x1400e603a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400e6037
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 0x1400e62ec
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x1400e62ec
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 0x1400e635b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400e635b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400e635b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400e635b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400e635b
cmp dword [rcx + 0x84], 0xe
jbe 0x1400e635b
cmp dword [rcx + 0xf8], 0
je 0x1400e635b
mov ecx, ebx
call fcn.1400e6224
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.1400e6480
nop
cmp dword [rbp + 0x20], 0
je 0x1400e63a9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400e62b8
int3

Function at 0x1400e90cc
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 [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1401bcd38]
mov rbp, rcx
call fcn.1400fd45c
xor edi, edi
test rax, rax
je 0x1400e91b2
mov ebx, edi
call fcn.1400d2bc4
mov r14d, dword [rax]
call fcn.1400d2bc4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1400ee740
mov rsi, rax
test rax, rax
je 0x1400e9143
call fcn.1400d2bc4
mov dword [rax], r14d
jmp 0x1400e916d
call fcn.1400d2bc4
cmp dword [rax], 0x22
jne 0x1400e91aa
call fcn.1400d2bc4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1400ee740
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x1400e91aa
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1400e9171
cmp rax, 3
je 0x1400e918c
mov rcx, rsi
call fcn.1400e9028
test al, al
je 0x1400e919d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x1400e919d
mov dil, 1
mov rcx, rbx
call fcn.1400c8a80
mov al, dil
jmp 0x1400e91b4
mov rcx, rbx
call fcn.1400c8a80
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1400d4e20
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 0x1400eb0b4
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, [0x1402062f0]
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 0x1400eb10b
cmp word [rdx], r13w
jne 0x1400eb10b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400eb110
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x1400eb235
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400eb256
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400eb149
mov rdx, r9
mov word [rbx], cx
jmp 0x1400eb170
cmp r9, r8
jae 0x1400eb180
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 0x1400eb12a
jmp 0x1400eb235
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 0x1400eb22a
cmp dword [rsp + 0x80], esi
je 0x1400eb22a
lea r8, [0x1402062f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400eb202
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400eb1d2
mov word [rbx], r13w
jmp 0x1400eb232
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 0x1400eb1df
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x1400eb232
cmp word [rsp + 0x70], r13w
jne 0x1400eb20f
cmp rbx, r14
je 0x1400eb1cc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400ea3fc
cmp word [rsp + 0x70], r13w
je 0x1400eb235
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, [0x1402062f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400eb22f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x1400eb235
Function at 0x1400f4a60
Capabilities:
Parse pe header

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

Function at 0x1400fec18
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.1400f8684
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 0x1400fecb9
cmp ebx, dword [rsp + 0x30]
je 0x1400fecb2
test esi, esi
je 0x1400fecb2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400fec8d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400fec9a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1400fec77
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400fec9e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400fecbb
mov eax, 1
jmp 0x1400fecbb
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14010015c
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 0x14010018c
xor eax, eax
jmp 0x14010024f
mov rbp, rbx
cmp word [rax], si
je 0x1401001b1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140100198
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140100194
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.14010007c
movsxd r14, eax
test eax, eax
jne 0x1401001ef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140100185
mov rcx, r14
call fcn.140076dd0
mov rdi, rax
test rax, rax
jne 0x140100208
xor ecx, ecx
call fcn.1400c8a80
jmp 0x1401001e4
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.14010007c
test eax, eax
jne 0x140100239
mov rcx, rdi
call fcn.1400c8a80
jmp 0x140100243
xor ecx, ecx
call fcn.1400c8a80
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 0x14010026c
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 0x1401002f3
mov rsi, rbx
cmp word [rax], bp
je 0x1401002b2
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14010029c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140100298
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140076dd0
mov rdi, rax
test rax, rax
je 0x1401002e0
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14010c000
mov rbp, rdi
xor ecx, ecx
call fcn.1400c8a80
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 0x1401028a4
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.1400e0914
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14010292e
cmp byte [rbp - 0x21], r15b
je 0x140102929
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140102964
call fcn.1400f8e54
test eax, eax
jne 0x140102950
cmp byte [rbp - 0x21], r15b
je 0x140102948
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140102964
cmp byte [rbp - 0x21], r15b
je 0x140102961
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.1400e5dfc
test eax, eax
jne 0x140102a04
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400e0914
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401029a3
cmp byte [rbp - 0x21], r15b
je 0x1401029d8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401029d8
call fcn.1400f8e54
test eax, eax
jne 0x1401029c4
cmp byte [rbp - 0x21], r15b
je 0x1401029bd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401029d8
cmp byte [rbp - 0x21], r15b
je 0x1401029d5
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.1400e5dfc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140102a04
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140102a07
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140102a15
mov rcx, rdi
call fcn.1400c8a80
cmp byte [rbp + 0x3f], r15b
je 0x140102a24
mov rcx, qword [rbp + 0x27]
call fcn.1400c8a80
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 0x140102b2c
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x1401f6040]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x140102b76
call fcn.1400e8d88
mov dword [rax], 0xf
call fcn.1400d2bc4
mov dword [rax], 0xd
call fcn.1400faa24
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1400d4e20
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x140102b81
lea eax, [rbx + 1]
jmp 0x140102b63
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 0x140102b61
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x140102b63
Function at 0x1401038e4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov ebp, 0x7ff
movzx ecx, word [rcx + 6]
mov esi, edx
shr cx, 4
and cx, bp
cmp cx, bp
jne 0x140103945
test byte [rbx + 6], 0xf
jne 0x140103938
xor edi, edi
cmp word [rbx + 4], di
jne 0x140103938
cmp word [rbx + 2], di
jne 0x140103938
cmp word [rbx], di
jne 0x140103938
lea esi, [rdi + 1]
jmp 0x14010393d
mov esi, 2
movzx eax, si
jmp 0x140103b3d
xor edi, edi
test cx, cx
jne 0x140103960
mov rcx, rbx
call fcn.14010913c
movzx ecx, ax
cmp di, ax
jl 0x140103b3a
movsx edx, cx
test esi, esi
jle 0x140103990
sub ebp, edx
cmp ebp, esi
jg 0x140103990
movsd xmm0, qword [0x1401c0080]
cmp word [rbx + 6], di
jge 0x140103982
xorps xmm0, xmmword [0x1401bcee0]
movsd qword [rbx], xmm0
mov eax, 1
jmp 0x140103b3d
movzx r11d, word [rbx + 6]
mov eax, edx
neg eax
cmp eax, esi
jge 0x1401039bd
add si, cx
mov eax, 0x800f
shl si, 4
and r11w, ax
or si, r11w
mov word [rbx + 6], si
or eax, 0xffffffff
jmp 0x140103b3d
movzx r15d, r11w
lea ebp, [rsi - 1]
and r11w, 0xf
mov r13d, 0x8000
mov r12d, 0x10
and r15w, r13w
or r11w, r12w
add ebp, edx
cmp ebp, 0xffffffcb
jl 0x140103b2f
test ebp, ebp
jns 0x140103b2f
lea esi, [r12 - 0xf]
movzx r14d, di
cmp bp, 0xfff0
jg 0x140103a52
movzx edx, word [rbx + 4]
mov eax, 0xfff0
movzx r8d, word [rbx + 2]
sub ax, bp
shr ax, 4
add ax, si
movzx ecx, ax
movzx eax, cx
shl ax, 4
add bp, ax
test r14w, r14w
mov eax, edi
setne al
movzx r14d, ax
or r14w, word [rbx]
mov word [rbx], r8w
movzx r8d, dx
movzx edx, r11w
mov r11d, edi
sub rcx, rsi
jne 0x140103a24
mov word [rbx + 4], dx
mov word [rbx + 2], r8w
neg bp
je 0x140103ad1
movzx r8d, word [rbx]
mov eax, edi
movzx r9d, word [rbx + 2]
movzx edx, r8w
movsx r10d, bp
sub r12d, r10d
mov ecx, r12d
shl dx, cl
test r14w, r14w
movzx r14d, dx
movzx edx, word [rbx + 4]
setne al
or r14w, ax
movzx eax, r9w
shl ax, cl
movzx ecx, bp
shr r8w, cl
mov ecx, r12d
or ax, r8w
mov word [rbx], ax
movzx eax, dx
shl ax, cl
movzx ecx, bp
shr r9w, cl
mov ecx, r12d
or ax, r9w
mov word [rbx + 2], ax
movzx eax, r11w
shl ax, cl
movzx ecx, bp
shr dx, cl
mov ecx, r10d
or ax, dx
mov word [rbx + 4], ax
shr r11w, cl
or r11w, r15w
mov word [rbx + 6], r11w
cmp r13w, r14w
jb 0x140103ae7
jne 0x140103b06
test byte [rbx], sil
je 0x140103b06
add word [rbx], si
jne 0x140103b06
add word [rbx + 2], si
jne 0x140103b06
add word [rbx + 4], si
jne 0x140103b06
add r11w, si
mov word [rbx + 6], r11w
jmp 0x1401039b5
cmp r11w, r15w
jne 0x1401039b5
cmp word [rbx + 4], di
jne 0x1401039b5
cmp word [rbx + 2], di
jne 0x1401039b5
movzx eax, word [rbx]
neg ax
sbb ax, ax
jmp 0x140103b3d
mov word [rbx + 6], r15w
mov dword [rbx + 2], edi
mov word [rbx], di
movzx eax, di
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret