joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401643d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x1401644f7
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x1401644f7
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x1401644f0
add r9, 0x88
je 0x1401644f0
mov eax, dword [r9]
test rax, rax
je 0x1401644f7
add rax, rcx
je 0x1401644f7
cmp rdx, 0xffff
jbe 0x1401644ea
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x1401644f7
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
jmp 0x140164488
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x1401644cf
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
je 0x1401644f7
mov rdi, r10
sub rdi, rsi
mov rbx, rdi
sar rbx, 2
shr rdi, 0x3f
add rdi, rbx
and rdi, 0xfffffffffffffffe
mov r14d, dword [rsi + rdi*2]
lea rbx, [rcx + r14]
test r14, r14
cmove rbx, r14
test r11b, r11b
je 0x140164461
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x140164463
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x1401644ba
jmp 0x140164461
mov edx, dword [rax + 0x24]
add rcx, rdx
test rdx, rdx
cmove rcx, rdx
sub rdi, r9
sar rdi, 1
movzx edx, word [rcx + rdi]
add dx, word [rax + 0x10]
mov word [r8], dx
mov al, 1
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
xor eax, eax
jmp 0x1401644f0

Function at 0x140164e60
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402b73a8]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140164ec0
mov rsi, qword [0x1402b73a0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.1401879f0
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402b73a8]
call fcn.140184f58
cmp dword [0x1402b73a8], 0xffffffff
jne 0x140164e9c
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140189b30
mov dword [rsi - 4], 0x11c
lea rsi, [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
lea rdi, [rsp + 0x30]
mov dword [rdi], 0
mov ecx, dword [rsi + 4]
mov edx, dword [rsi + 8]
mov qword [rsp + 0x20], rdi
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetProductInfo]
mov ecx, 0x80
call fcn.140184dc4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402b73f0]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140164f80
lea r8, [0x1402b73c0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002c120
mov qword [0x1402b73a0], rsi
lea rcx, [0x1402b73a8]
call fcn.140184fc0
jmp 0x140164e9c
lea rcx, [0x1402b73f0]
call fcn.140184f58
cmp dword [0x1402b73f0], 0xffffffff
jne 0x140164f51
xorps xmm0, xmm0
movups xmmword [0x1402b73e0], xmm0
movups xmmword [0x1402b73d0], xmm0
movups xmmword [0x1402b73c0], xmm0
lea rcx, [0x1402b73c0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402b73f0]
call fcn.140184fc0
jmp 0x140164f51
Function at 0x140167190
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
jb 0x14016728e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1402766b0]
nop dword [rax]
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 0x140167200
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1402766c0]
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 0x14016731d
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 0x1401672f3
movdqa xmm1, xmmword [0x1402766c0]
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 [0x1402766d0], 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
Function at 0x14016b2b0
Capabilities:
Hash data using sha256

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa0
mov rsi, r8
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x98], rax
xorps xmm0, xmm0
lea rdi, [rsp + 0x48]
movups xmmword [rdi + 0x34], xmm0
movups xmmword [rdi + 0x28], xmm0
movups xmmword [rdi + 0x18], xmm0
movups xmmword [rdi + 8], xmm0
movups xmmword [rdi - 8], xmm0
movaps xmm0, xmmword [0x140282af0]
movups xmmword [rdi - 0x28], xmm0
movaps xmm0, xmmword [0x140282b00]
movups xmmword [rdi - 0x18], xmm0
mov dword [rdi + 0x44], 0x20
test rdx, rdx
je 0x14016b36c
mov r14, rdx
mov rbx, rcx
lea eax, [rdx*8]
mov rcx, rdx
shr rcx, 0x1d
mov dword [rsp + 0x44], ecx
mov dword [rsp + 0x40], eax
mov r8, rdx
cmp rdx, 0x40
jb 0x14016b359
shr r8, 6
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140089840
mov r8, r14
and r8, 0x3f
je 0x14016b36c
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
mov dword [rsp + 0x88], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.140189480
mov eax, dword [rsp + 0x88]
lea rcx, [rax + 1]
mov ebx, dword [rsp + 0x8c]
mov ebp, dword [rsp + 0x40]
mov r14d, dword [rsp + 0x44]
mov byte [rsp + rax + 0x48], 0x80
cmp rax, 0x38
jae 0x14016b44c
cmp rcx, 0x38
je 0x14016b3af
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.140189b30
bswap r14d
lea rcx, [rsp + 0x20]
mov dword [rcx + 0x60], r14d
bswap ebp
mov dword [rcx + 0x64], ebp
mov r8d, 1
mov rdx, rdi
call fcn.140089840
xorps xmm0, xmm0
movups xmmword [rdi + 0x30], xmm0
movups xmmword [rdi + 0x20], xmm0
movups xmmword [rdi + 0x10], xmm0
movups xmmword [rdi], xmm0
mov dword [rdi + 0x40], 0
lea eax, [rbx - 0x21]
cmp eax, 0xffffffe3
jb 0x14016b405
shr ebx, 2
xor eax, eax
mov ecx, dword [rsp + rax*4 + 0x20]
bswap ecx
mov dword [rsi + rax*4], ecx
inc rax
cmp rbx, rax
jne 0x14016b3f4
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
movaps xmmword [rsp + 0x50], xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1401879f0
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp eax, 0x3f
je 0x14016b464
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.140189b30
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rdi
call fcn.140089840
xor ecx, ecx
jmp 0x14016b39c
Function at 0x14016fc70
Capabilities:
Hash data with crc32

Disassembly:
push rsi
push rdi
mov rdx, qword [rcx]
mov r9, qword [rcx + 8]
mov r8, r9
sub r8, rdx
je 0x14016fd07
mov rax, r8
shr rax, 2
mov r10, rdx
not r10
add r10, r9
je 0x14016fcde
mov r10, r8
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x14027d470]
nop dword [rax + rax]
movzx esi, al
movzx edi, byte [rdx + r9]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
movzx esi, al
movzx edi, byte [rdx + r9 + 1]
xor edi, esi
shr eax, 8
xor eax, dword [r11 + rdi*4]
add r9, 2
cmp r10, r9
jne 0x14016fcb0
jmp 0x14016fce1
xor r9d, r9d
test r8b, 1
je 0x14016fd01
movzx r8d, al
movzx edx, byte [rdx + r9]
xor edx, r8d
lea r8, [0x14027d470]
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14016fd01
Function at 0x140175b20
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov ebx, ecx
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1402b7440]
mov ecx, dword [0x1402ac5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140175d0c
mov rsi, qword [0x1402b7438]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140175d4e
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1402b73f4], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x1402b73f8]
mov dword [0x1402b73f8], ebx
cmovne ebp, ecx
mov eax, dword [0x1402b73fc]
cmp ebp, eax
je 0x140175ceb
test eax, eax
je 0x140175c7c
mov rax, qword [0x1402abf18]
lea rcx, [0x140183600]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140175d5b
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140175dbc
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1402b7448]
xor edx, edx
cmp rax, rcx
setns dl
movabs r8, 0x7fffffffffffffff
add r8, rdx
sub rax, rcx
cmovo rax, r8
movabs rdx, 0x8000000000000001
lea r8, [rax + rdx]
mov rcx, qword [0x1402b7400]
cmp r8, 2
jb 0x140175d7d
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1402b7400], rax
mov ecx, dword [0x1402b73fc]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1402b73fc], ebp
test ebx, ebx
je 0x140175ceb
mov rax, qword [0x1402abf18]
lea rcx, [0x140183600]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140175d6c
mov qword [rdi], 0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov rax, qword [rdi]
movabs rcx, 0x8637bd05af7
cmp rax, rcx
jge 0x140175d95
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b7458]
mov qword [0x1402b7448], rax
mov ecx, dword [0x1402b73fc]
call qword [sym.imp.WINMM.dll_timeBeginPeriod]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1401879f0
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1402b7440]
call fcn.140184f58
cmp dword [0x1402b7440], 0xffffffff
jne 0x140175b5e
mov ecx, 8
call fcn.140184dc4
mov qword [rax], 0
mov qword [0x1402b7438], rax
lea rcx, [0x1402b7440]
call fcn.140184fc0
jmp 0x140175b5e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140175b76
mov rcx, rdi
call qword [0x1402ca008]
mov rax, qword [rdi]
jmp 0x140175c10
mov rcx, rdi
call qword [0x1402ca008]
mov rax, qword [rdi]
jmp 0x140175cd8
cmp rcx, rax
je 0x140175c69
add rcx, rdx
cmp rcx, 1
ja 0x140175c69
jmp 0x140175de3
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140175cd8
mov rcx, qword [0x1402b7458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140175c0b
int3
Function at 0x140186bc4
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 0x140186c3c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x140186c3c
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 0x140186c3c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140186c30
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x140186c4e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x140186c1e
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 0x140186c3e

Function at 0x1401872b0
Capabilities:
Parse pe header

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

Function at 0x140199548
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 0x14019957f
call fcn.140184e94
mov dword [rax], 0x16
call fcn.1401b4274
xor eax, eax
jmp 0x14019960d
mov rdx, r9
mov rcx, r8
call fcn.140199630
mov rbx, rax
test rax, rax
je 0x14019960a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1401996a0]
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 0x1401995f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019c60c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1401995de
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1401995ed
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140182870
jmp 0x14019960a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140199607
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 0x14019c94c
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 [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x1402608e8]
mov rbp, rcx
call fcn.1401b6cac
xor edi, edi
test rax, rax
je 0x14019ca32
mov ebx, edi
call fcn.140184e94
mov r14d, dword [rax]
call fcn.140184e94
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.140186374
mov rsi, rax
test rax, rax
je 0x14019c9c3
call fcn.140184e94
mov dword [rax], r14d
jmp 0x14019c9ed
call fcn.140184e94
cmp dword [rax], 0x22
jne 0x14019ca2a
call fcn.140184e94
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.140186374
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14019ca2a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14019c9f1
cmp rax, 3
je 0x14019ca0c
mov rcx, rsi
call fcn.14019c8a8
test al, al
je 0x14019ca1d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14019ca1d
mov dil, 1
mov rcx, rbx
call fcn.140182870
mov al, dil
jmp 0x14019ca34
mov rcx, rbx
call fcn.140182870
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1401879f0
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 0x1401a2100
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14029c028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401a214a
call fcn.14019c5ec
mov dword [rax], 0xf
call fcn.140184e94
mov dword [rax], 0xd
call fcn.1401b4274
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1401879f0
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401a2155
lea eax, [rbx + 1]
jmp 0x1401a2137
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 0x1401a2135
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401a2137
Function at 0x1401ae330
Capabilities:
Parse pe header

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

Function at 0x1401b8468
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.1401b1ed4
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 0x1401b8509
cmp ebx, dword [rsp + 0x30]
je 0x1401b8502
test esi, esi
je 0x1401b8502
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b84dd
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b84ea
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b84c7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b84ee
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b850b
mov eax, 1
jmp 0x1401b850b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b9a78
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 0x1401b9aa8
xor eax, eax
jmp 0x1401b9b6b
mov rbp, rbx
cmp word [rax], si
je 0x1401b9acd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401b9ab4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401b9ab0
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.1401b9998
movsxd r14, eax
test eax, eax
jne 0x1401b9b0b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401b9aa1
mov rcx, r14
call fcn.1400b2b70
mov rdi, rax
test rax, rax
jne 0x1401b9b24
xor ecx, ecx
call fcn.140182870
jmp 0x1401b9b00
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.1401b9998
test eax, eax
jne 0x1401b9b55
mov rcx, rdi
call fcn.140182870
jmp 0x1401b9b5f
xor ecx, ecx
call fcn.140182870
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 0x1401b9b88
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 0x1401b9c0f
mov rsi, rbx
cmp word [rax], bp
je 0x1401b9bce
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b9bb8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b9bb4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b2b70
mov rdi, rax
test rax, rax
je 0x1401b9bfc
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140189480
mov rbp, rdi
xor ecx, ecx
call fcn.140182870
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 0x1401bc1c4
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.140193ee4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1401bc24e
cmp byte [rbp - 0x21], r15b
je 0x1401bc249
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401bc284
call fcn.1401b26a4
test eax, eax
jne 0x1401bc270
cmp byte [rbp - 0x21], r15b
je 0x1401bc268
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401bc284
cmp byte [rbp - 0x21], r15b
je 0x1401bc281
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.1401993cc
test eax, eax
jne 0x1401bc324
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140193ee4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401bc2c3
cmp byte [rbp - 0x21], r15b
je 0x1401bc2f8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1401bc2f8
call fcn.1401b26a4
test eax, eax
jne 0x1401bc2e4
cmp byte [rbp - 0x21], r15b
je 0x1401bc2dd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1401bc2f8
cmp byte [rbp - 0x21], r15b
je 0x1401bc2f5
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.1401993cc
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1401bc324
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1401bc327
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1401bc335
mov rcx, rdi
call fcn.140182870
cmp byte [rbp + 0x3f], r15b
je 0x1401bc344
mov rcx, qword [rbp + 0x27]
call fcn.140182870
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