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

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
test r8, r8
je 0x140163db7
mov rcx, qword [rcx + 8]
movsxd r9, dword [rcx + 0x3c]
cmp dword [rcx + r9 + 0x84], 0
je 0x140163db7
add r9, rcx
xor eax, eax
cmp word [r9 + 0x14], 0x78
jb 0x140163db0
add r9, 0x88
je 0x140163db0
mov eax, dword [r9]
test rax, rax
je 0x140163db7
add rax, rcx
je 0x140163db7
cmp rdx, 0xffff
jbe 0x140163daa
mov r10d, dword [rax + 0x18]
mov r11d, dword [rax + 0x20]
lea r9, [rcx + r11]
test r11, r11
cmove r9, r11
test r10, r10
je 0x140163db7
lea r10, [r9 + r10*4]
mov r11b, byte [rdx]
inc rdx
mov rsi, r9
jmp 0x140163d48
xor ebp, ebp
lea rdi, [rsi + rdi*2]
movzx ebx, byte [rbx]
cmp bpl, bl
je 0x140163d8f
movzx ebp, bpl
sub ebp, ebx
cmovs r10, rdi
add rdi, 4
test ebp, ebp
cmovg rsi, rdi
cmp rsi, r10
je 0x140163db7
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 0x140163d21
mov r14, rdx
mov ebp, r11d
cmp bpl, byte [rbx]
jne 0x140163d23
inc rbx
mov bpl, byte [r14]
inc r14
test bpl, bpl
jne 0x140163d7a
jmp 0x140163d21
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 0x140163db0

Function at 0x140164680
Capabilities:
Get system information on windows

Disassembly:
push rsi
push rdi
sub rsp, 0x158
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov eax, dword [0x1402b63a8]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401646e0
mov rsi, qword [0x1402b63a0]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140186020
mov rax, rsi
add rsp, 0x158
pop rdi
pop rsi
ret
lea rcx, [0x1402b63a8]
call fcn.140183590
cmp dword [0x1402b63a8], 0xffffffff
jne 0x1401646bc
lea rsi, [rsp + 0x38]
mov r8d, 0x118
mov rcx, rsi
xor edx, edx
call fcn.140188160
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.1401833f4
mov rsi, rax
mov edi, dword [rdi]
mov eax, dword [0x1402b63f0]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401647a0
lea r8, [0x1402b63c0]
lea rdx, [rsp + 0x34]
mov rcx, rsi
mov r9d, edi
call fcn.14002aea0
mov qword [0x1402b63a0], rsi
lea rcx, [0x1402b63a8]
call fcn.1401835f8
jmp 0x1401646bc
lea rcx, [0x1402b63f0]
call fcn.140183590
cmp dword [0x1402b63f0], 0xffffffff
jne 0x140164771
xorps xmm0, xmm0
movups xmmword [0x1402b63e0], xmm0
movups xmmword [0x1402b63d0], xmm0
movups xmmword [0x1402b63c0], xmm0
lea rcx, [0x1402b63c0]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
lea rcx, [0x1402b63f0]
call fcn.1401835f8
jmp 0x140164771
Function at 0x140165a10
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 0x140165b0e
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1402756b0]
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 0x140165a80
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm5, xmm0
pclmulqdq xmm5, xmm4, 0
pxor xmm5, xmm3
movdqa xmm3, xmmword [0x1402756c0]
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 0x140165b9d
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 0x140165b73
movdqa xmm1, xmmword [0x1402756c0]
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 [0x1402756d0], 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 0x140169a00
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 [0x14029b028]
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 [0x140281af0]
movups xmmword [rdi - 0x28], xmm0
movaps xmm0, xmmword [0x140281b00]
movups xmmword [rdi - 0x18], xmm0
mov dword [rdi + 0x44], 0x20
test rdx, rdx
je 0x140169abc
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 0x140169aa9
shr r8, 6
lea rcx, [rsp + 0x20]
mov rdx, rbx
call fcn.140088200
mov r8, r14
and r8, 0x3f
je 0x140169abc
and r14, 0xffffffffffffffc0
add rbx, r14
mov r14d, r8d
mov dword [rsp + 0x88], r14d
mov rcx, rdi
mov rdx, rbx
call fcn.140187ab0
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 0x140169b9c
cmp rcx, 0x38
je 0x140169aff
mov r8d, 0x38
sub r8, rcx
add rcx, rdi
xor edx, edx
call fcn.140188160
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.140088200
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 0x140169b55
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 0x140169b44
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.140186020
mov rax, rsi
add rsp, 0xa0
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
cmp eax, 0x3f
je 0x140169bb4
mov r8d, 0x3f
sub r8, rax
add rcx, rdi
xor edx, edx
call fcn.140188160
lea rcx, [rsp + 0x20]
mov r8d, 1
mov rdx, rdi
call fcn.140088200
xor ecx, ecx
jmp 0x140169aec
Function at 0x14016e610
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 0x14016e6a7
mov rax, r8
shr rax, 2
mov r10, rdx
not r10
add r10, r9
je 0x14016e67e
mov r10, r8
and r10, 0xfffffffffffffffe
xor r9d, r9d
lea r11, [0x14027c470]
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 0x14016e650
jmp 0x14016e681
xor r9d, r9d
test r8b, 1
je 0x14016e6a1
movzx r8d, al
movzx edx, byte [rdx + r9]
xor edx, r8d
lea r8, [0x14027c470]
shr eax, 8
xor eax, dword [r8 + rdx*4]
mov dword [rcx + 0x18], eax
pop rdi
pop rsi
ret
xor eax, eax
jmp 0x14016e6a1
Function at 0x140174860
Capabilities:
Encode data using base64

Disassembly:
push rsi
push rdi
sub rsp, 0x28
cmp rcx, 1
jne 0x1401748dc
mov rdi, qword [0x1402b6188]
mov esi, 2
cmp rdi, 2
jae 0x140174911
lea rcx, [rsi*8]
call fcn.1401833f4
mov rcx, qword [0x1402b6180]
mov qword [0x1402b6180], rax
test rcx, rcx
jne 0x1401748d5
mov qword [0x1402b6188], rsi
xor eax, eax
mov rcx, qword [0x1402b6180]
mov qword [rcx + rax*8], 0
inc rax
cmp rsi, rax
jne 0x1401748ab
mov r8, qword [0x1402b6190]
test r8, r8
jne 0x140174940
add rsp, 0x28
pop rdi
pop rsi
ret
call fcn.1401833ec
jmp 0x1401748a2
mov rsi, rcx
lea rax, [rcx - 1]
test rcx, rax
je 0x1401748f3
mov rcx, rsi
call fcn.14014edb0
mov rsi, rax
mov rdi, qword [0x1402b6188]
cmp rsi, rdi
jbe 0x140174911
mov rax, rsi
shr rax, 0x3d
je 0x140174882
call fcn.1401c1450
cmp rsi, rdi
jae 0x1401748ce
mov rax, qword [0x1402b6198]
test rax, rax
jns 0x140174a55
mov rcx, rax
shr rcx, 1
and eax, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
jmp 0x140174a5a
mov rcx, qword [r8 + 8]
mov rax, rsi
shr rax, 1
movabs rdx, 0x5555555555555555
and rdx, rax
mov rax, rsi
sub rax, rdx
movabs rdx, 0x3333333333333333
mov r9, rax
and r9, rdx
shr rax, 2
and rax, rdx
add rax, r9
mov rdx, rax
shr rdx, 4
add rdx, rax
movabs rax, 0xf0f0f0f0f0f0f0f
and rax, rdx
movabs r9, 0x101010101010101
imul r9, rax
shr r9, 0x38
cmp r9, 1
jbe 0x1401749b8
cmp rcx, rsi
jb 0x1401749bf
mov rax, rcx
xor edx, edx
div rsi
mov rcx, rdx
jmp 0x1401749bf
lea rax, [rsi - 1]
and rcx, rax
mov rax, qword [0x1402b6180]
lea rdx, [0x1402b6190]
mov qword [rax + rcx*8], rdx
mov r10, qword [r8]
test r10, r10
je 0x1401748ce
lea r11, [rsi - 1]
jmp 0x140174a3c
mov qword [rdx + rax*8], r8
jmp 0x140174a2a
and rax, r11
cmp rax, rcx
je 0x140174a27
mov rdx, qword [0x1402b6180]
cmp qword [rdx + rax*8], 0
je 0x1401749e3
mov rdx, qword [r10]
mov qword [r8], rdx
mov rdx, qword [0x1402b6180]
mov rdx, qword [rdx + rax*8]
mov rdx, qword [rdx]
mov qword [r10], rdx
mov rdx, qword [0x1402b6180]
mov rax, qword [rdx + rax*8]
mov qword [rax], r10
mov r10, r8
mov rax, rcx
mov r8, r10
mov r10, qword [r10]
mov rcx, rax
test r10, r10
je 0x1401748ce
mov rax, qword [r10 + 8]
cmp r9d, 1
jbe 0x1401749e9
cmp rax, rsi
jb 0x1401749ec
xor edx, edx
div rsi
mov rax, rdx
jmp 0x1401749ec
cvtsi2ss xmm0, rax
divss xmm0, dword [0x1402b61a0]
call fcn.1401a20cc
cvttss2si rcx, xmm0
mov rdx, rcx
subss xmm0, dword [0x140260048]
cvttss2si rax, xmm0
sar rdx, 0x3f
and rax, rdx
or rax, rcx
cmp rdi, 3
jb 0x140174b10
mov rcx, rdi
shr rcx, 1
movabs rdx, 0x5555555555555555
and rdx, rcx
mov rcx, rdi
sub rcx, rdx
movabs rdx, 0x3333333333333333
mov r8, rcx
shr r8, 2
and rcx, rdx
and r8, rdx
add r8, rcx
mov rcx, r8
shr rcx, 4
add rcx, r8
movabs rdx, 0xf0f0f0f0f0f0f0f
and rdx, rcx
movabs rcx, 0x101010101010101
imul rcx, rdx
shr rcx, 0x38
cmp ecx, 1
ja 0x140174b10
lea rcx, [rax - 1]
bsr rcx, rcx
xor ecx, 0x3f
neg cl
mov edx, 1
shl rdx, cl
cmp rax, 2
cmovb rdx, rax
jmp 0x140174b1b
mov rcx, rax
call fcn.14014edb0
mov rdx, rax
cmp rsi, rdx
cmova rdx, rsi
cmp rdx, rdi
jae 0x1401748ce
lea rcx, [0x1402b6180]
add rsp, 0x28
pop rdi
pop rsi
jmp fcn.1401f6110
Function at 0x140174b40
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 [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov eax, dword [0x1402b6440]
mov ecx, dword [0x1402ab5e0]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140174d2c
mov rsi, qword [0x1402b6438]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
je 0x140174d6e
movzx ebx, bl
dec ebx
or ebx, 1
cmp byte [0x1402b63f4], 0
mov eax, 8
mov ecx, 1
cmove ecx, eax
xor ebp, ebp
add ebx, dword [0x1402b63f8]
mov dword [0x1402b63f8], ebx
cmovne ebp, ecx
mov eax, dword [0x1402b63fc]
cmp ebp, eax
je 0x140174d0b
test eax, eax
je 0x140174c9c
mov rax, qword [0x1402aaf18]
lea rcx, [0x140181ca0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140174d7b
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 0x140174ddc
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
mov qword [rsp + 0x28], rax
mov rcx, qword [0x1402b6448]
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 [0x1402b6400]
cmp r8, 2
jb 0x140174d9d
lea rdx, [rcx + rax]
sar rdx, 0x3f
btc rdx, 0x3f
add rcx, rax
cmovo rcx, rdx
mov rax, rcx
mov qword [0x1402b6400], rax
mov ecx, dword [0x1402b63fc]
call qword [sym.imp.WINMM.dll_timeEndPeriod]
mov dword [0x1402b63fc], ebp
test ebx, ebx
je 0x140174d0b
mov rax, qword [0x1402aaf18]
lea rcx, [0x140181ca0]
lea rdi, [rsp + 0x28]
cmp rax, rcx
jne 0x140174d8c
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 0x140174db5
imul rax, rax, 0xf4240
cqo
idiv qword [0x1402b6458]
mov qword [0x1402b6448], rax
mov ecx, dword [0x1402b63fc]
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.140186020
mov al, 1
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
ret
lea rcx, [0x1402b6440]
call fcn.140183590
cmp dword [0x1402b6440], 0xffffffff
jne 0x140174b7e
mov ecx, 8
call fcn.1401833f4
mov qword [rax], 0
mov qword [0x1402b6438], rax
lea rcx, [0x1402b6440]
call fcn.1401835f8
jmp 0x140174b7e
mov rcx, rsi
call sub.KERNEL32.dll_AcquireSRWLockExclusive
jmp 0x140174b96
mov rcx, rdi
call qword [0x1402c9008]
mov rax, qword [rdi]
jmp 0x140174c30
mov rcx, rdi
call qword [0x1402c9008]
mov rax, qword [rdi]
jmp 0x140174cf8
cmp rcx, rax
je 0x140174c89
add rcx, rdx
cmp rcx, 1
ja 0x140174c89
jmp 0x140174e03
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140174cf8
mov rcx, qword [0x1402b6458]
cqo
idiv rcx
imul r8, rax, 0xf4240
imul rax, rdx, 0xf4240
cqo
idiv rcx
add rax, r8
jmp 0x140174c2b
int3
Function at 0x1401851f4
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 0x14018526c
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x14018526c
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 0x14018526c
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x140185260
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x14018527e
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x14018524e
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 0x14018526e

Function at 0x1401858e0
Capabilities:
Parse pe header

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

Function at 0x140197b78
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 0x140197baf
call fcn.1401834c4
mov dword [rax], 0x16
call fcn.1401b28a4
xor eax, eax
jmp 0x140197c3d
mov rdx, r9
mov rcx, r8
call fcn.140197c60
mov rbx, rax
test rax, rax
je 0x140197c3a
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140197cd0]
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 0x140197c27
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14019ac3c
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140197c0e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140197c1d
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.140180f30
jmp 0x140197c3a
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140197c37
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 0x14019af7c
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 [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x240], rax
lea rdx, [0x14025f8e8]
mov rbp, rcx
call fcn.1401b52dc
xor edi, edi
test rax, rax
je 0x14019b062
mov ebx, edi
call fcn.1401834c4
mov r14d, dword [rax]
call fcn.1401834c4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rbp
mov dword [rax], edi
call fcn.1401849a4
mov rsi, rax
test rax, rax
je 0x14019aff3
call fcn.1401834c4
mov dword [rax], r14d
jmp 0x14019b01d
call fcn.1401834c4
cmp dword [rax], 0x22
jne 0x14019b05a
call fcn.1401834c4
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.1401849a4
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x14019b05a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x14019b021
cmp rax, 3
je 0x14019b03c
mov rcx, rsi
call fcn.14019aed8
test al, al
je 0x14019b04d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x14019b04d
mov dil, 1
mov rcx, rbx
call fcn.140180f30
mov al, dil
jmp 0x14019b064
mov rcx, rbx
call fcn.140180f30
xor al, al
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140186020
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 0x1401a0730
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x14029b028]
xor rax, rsp
mov qword [rsp + 0x28], rax
cmp ecx, 0x1a
jbe 0x1401a077a
call fcn.14019ac1c
mov dword [rax], 0xf
call fcn.1401834c4
mov dword [rax], 0xd
call fcn.1401b28a4
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140186020
add rsp, 0x30
pop rbx
ret
xor ebx, ebx
test ecx, ecx
jne 0x1401a0785
lea eax, [rbx + 1]
jmp 0x1401a0767
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 0x1401a0765
cmp eax, 1
setne bl
mov eax, ebx
jmp 0x1401a0767
Function at 0x1401ac960
Capabilities:
Parse pe header

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

Function at 0x1401b6a98
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.1401b0504
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 0x1401b6b39
cmp ebx, dword [rsp + 0x30]
je 0x1401b6b32
test esi, esi
je 0x1401b6b32
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1401b6b0d
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1401b6b1a
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1401b6af7
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1401b6b1e
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1401b6b3b
mov eax, 1
jmp 0x1401b6b3b
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401b80a8
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 0x1401b80d8
xor eax, eax
jmp 0x1401b819b
mov rbp, rbx
cmp word [rax], si
je 0x1401b80fd
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1401b80e4
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1401b80e0
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.1401b7fc8
movsxd r14, eax
test eax, eax
jne 0x1401b813b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1401b80d1
mov rcx, r14
call fcn.1400b1530
mov rdi, rax
test rax, rax
jne 0x1401b8154
xor ecx, ecx
call fcn.140180f30
jmp 0x1401b8130
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.1401b7fc8
test eax, eax
jne 0x1401b8185
mov rcx, rdi
call fcn.140180f30
jmp 0x1401b818f
xor ecx, ecx
call fcn.140180f30
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 0x1401b81b8
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 0x1401b823f
mov rsi, rbx
cmp word [rax], bp
je 0x1401b81fe
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1401b81e8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1401b81e4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400b1530
mov rdi, rax
test rax, rax
je 0x1401b822c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140187ab0
mov rbp, rdi
xor ecx, ecx
call fcn.140180f30
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