joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014ff80
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rsi, rdx
mov rbx, rcx
mov rax, qword [rcx + 8]
mov rdi, qword [rax + 0xb0]
cmp rdi, 0xffffffffffffffff
jne 0x1401500d4
cmp dword [rax + 0xd0], edi
jne 0x1401500a5
cmp qword [rax + 0xa8], 0
jne 0x1401500a5
lea rdi, [rax + 0x30]
mov rcx, rdi
call fcn.14013bc00
test al, al
jne 0x14015013c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.14013b6f0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140042d40
nop
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14015001d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015001d
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
mov edx, 3
lea rcx, [rsp + 0x20]
call fcn.1400430b0
test al, al
je 0x140150096
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140044000
movzx esi, al
test al, al
jne 0x140150083
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.1400478c0
nop
mov r8, rax
mov edx, 0xc
mov rcx, rbx
call fcn.14013b460
nop
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x140150083
lock xadd dword [rax], edi
cmp edi, 1
jne 0x140150083
mov rcx, qword [rsp + 0x48]
call fcn.1402275a0
nop
lea rcx, [rsp + 0x20]
call fcn.140042e20
movzx eax, sil
jmp 0x14015013e
lea rcx, [rsp + 0x20]
call fcn.140042e20
jmp 0x14015013c
cmp rdi, 0xffffffffffffffff
jne 0x1401500d4
mov rcx, qword [rax + 0xa8]
test rcx, rcx
je 0x1401500be
call fcn.140237cc8
jmp 0x1401500c4
mov eax, dword [rax + 0xd0]
mov ecx, eax
call fcn.140237ac4
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14015013c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [case.0x1400f4c10.0]
mov rbp, rax
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400f4c10.0]
test al, al
je 0x140150129
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140150129
mov rax, qword [rbx]
cmp rbp, rsi
cmovl rsi, rbp
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400f4c10.0]
mov al, 1
jmp 0x14015013e
mov rax, qword [rbx]
mov rdx, rbp
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400f4c10.0]
xor al, al
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x14015ab10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r13
push r14
push r15
sub rsp, 0x30
mov r14, rdx
mov r13, rcx
mov rdi, qword [rdx]
mov rax, qword [rdx + 8]
movzx ebp, byte [rdi + rax]
mov byte [rdi + rax], 0xff
mov esi, ebp
shl rsi, 5
mov rax, qword [rdi + 0x80]
mov rcx, qword [rsi + rax + 0x18]
test rcx, rcx
je 0x14015ab76
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov edx, 0x10
call fcn.1402200d0
mov rcx, rbx
test rbx, rbx
jne 0x14015ab60
mov rcx, qword [rdi + 0x80]
movzx eax, byte [rdi + 0x89]
mov byte [rsi + rcx], al
mov byte [rdi + 0x89], bpl
dec qword [r13 + 8]
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x20], xmm0
movabs rbp, 0xe38e38e38e38e39
mov rsi, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x20]
nop
inc rsi
mov qword [rsp + 0x28], rsi
cmp rsi, 0x80
jne 0x14015abff
xor esi, esi
mov qword [rsp + 0x28], rsi
add rbx, 0x90
mov rcx, rbx
sub rcx, qword [r13 + 0x20]
mov rax, rbp
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, qword [r13 + 0x10]
shr rax, 7
cmp rdx, rax
cmove rbx, qword [r13 + 0x20]
mov qword [rsp + 0x20], rbx
movzx edx, byte [rsi + rbx]
cmp rdx, 0xff
je 0x14015ad58
shl rdx, 5
add rdx, qword [rbx + 0x80]
mov r10, qword [r13 + 0x10]
movsxd rcx, dword [rdx]
shl rcx, 4
movsxd rax, dword [rdx + 4]
add rcx, rax
add rcx, qword [rdx + 8]
xor rcx, qword [r13 + 0x18]
lea rax, [r10 - 1]
and rcx, rax
mov r9, qword [r13 + 0x20]
mov rax, rcx
shr rax, 7
lea r8, [rax + rax*8]
shl r8, 4
add r8, r9
and ecx, 0x7f
cmp r8, rbx
jne 0x14015ac63
cmp rcx, rsi
je 0x14015abb0
cmp r8, qword [r14]
jne 0x14015ac6e
cmp rcx, qword [r14 + 8]
je 0x14015acae
inc rcx
cmp rcx, 0x80
jne 0x14015ac55
xor ecx, ecx
add r8, 0x90
mov rdx, r8
sub rdx, r9
mov rax, rbp
imul rdx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov rax, r10
shr rax, 7
cmp rdx, rax
jne 0x14015ac55
mov r8, r9
jmp 0x14015ac55
mov rdi, qword [r14]
cmp rbx, rdi
jne 0x14015acd3
mov rcx, qword [r14 + 8]
movzx eax, byte [rdi + rsi]
mov byte [rdi + rcx], al
mov byte [rdi + rsi], 0xff
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r14], xmm0
jmp 0x14015abb0
mov r15, qword [r14 + 8]
movzx eax, byte [rdi + 0x88]
cmp byte [rdi + 0x89], al
jne 0x14015acee
mov rcx, rdi
call fcn.1400beb60
movzx eax, byte [rdi + 0x89]
mov byte [r15 + rdi], al
movzx r8d, byte [rdi + 0x89]
shl r8, 5
add r8, qword [rdi + 0x80]
movzx eax, byte [r8]
mov byte [rdi + 0x89], al
movzx edx, byte [rsi + rbx]
mov byte [rsi + rbx], 0xff
mov ecx, edx
shl rcx, 5
add rcx, qword [rbx + 0x80]
movups xmm0, xmmword [rcx]
movups xmmword [r8], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [r8 + 0x10], xmm1
movzx eax, byte [rbx + 0x89]
mov byte [rcx], al
mov byte [rbx + 0x89], dl
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [r14], xmm0
jmp 0x14015abb0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop r13
ret
Function at 0x14015e830
Capabilities:
Delete registry key

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
mov rdi, rcx
lea rax, vtable.QWinSettingsPrivate.0
mov qword [rcx], rax
xor r15d, r15d
cmp byte [rcx + 0x100], r15b
je 0x14015e98c
cmp qword [rcx + 0xf8], r15
je 0x14015e98c
mov rbx, qword [rcx + 0xf0]
mov rcx, rbx
call fcn.140160770
test rax, rax
je 0x14015e98c
cmp byte [rbx + 0x28], r15b
jne 0x14015e98c
mov rcx, rbx
call fcn.140160770
test rax, rax
je 0x14015e98c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x38]
call fcn.140094620
mov rsi, rax
cmp qword [rdi + 0xf8], r15
je 0x14015e8ed
mov rbx, qword [rdi + 0xf0]
mov rcx, rbx
call fcn.140160770
test rax, rax
je 0x14015e8ed
cmp byte [rbx + 0x28], r15b
jne 0x14015e8ed
mov rcx, rbx
call fcn.140160770
jmp 0x14015e8f0
mov rax, r15
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x14015e96a
mov rdx, qword [rdi + 0xf0]
mov r8, qword [rdx + 0x10]
mov qword [rsp + 0x20], r8
mov rcx, qword [rdx + 0x18]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rdx + 0x20]
mov qword [rsp + 0x30], rcx
test r8, r8
je 0x14015e92d
lock inc dword [r8]
lea rcx, [rsp + 0x20]
call fcn.140094620
mov r8, rax
lea rdx, str.QSettings:_Failed_to_delete_key___ls_
mov ecx, ebx
call fcn.14010dfc0
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x14015e96a
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015e96a
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x14015e98c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015e98c
mov rcx, qword [rsp + 0x38]
call fcn.1402275a0
mov ebx, r15d
cmp qword [rdi + 0xf8], rbx
jle 0x14015e9f5
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0xe8]
test rax, rax
je 0x14015e9b3
mov eax, dword [rax]
cmp eax, 1
jle 0x14015e9c7
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rdi + 0xe8]
call fcn.140161af0
mov rbp, qword [rdi + 0xf0]
mov rcx, qword [rbp + r14 + 8]
test rcx, rcx
je 0x14015e9de
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp + r14 + 8], r15
inc ebx
add r14, 0x30
movsxd rax, ebx
cmp rax, qword [rdi + 0xf8]
jl 0x14015e9a0
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14015ea65
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015ea65
mov rbx, qword [rdi + 0xf0]
mov rax, qword [rdi + 0xf8]
lea rsi, [rax + rax*2]
shl rsi, 4
add rsi, rbx
cmp rbx, rsi
je 0x14015ea59
nop dword [rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x14015ea50
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015ea50
mov rcx, qword [rbx + 0x10]
call fcn.1402275a0
add rbx, 0x30
cmp rbx, rsi
jne 0x14015ea30
mov rcx, qword [rdi + 0xe8]
call fcn.1402275a0
mov rcx, rdi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
jmp fcn.1400bd4b0
Function at 0x140160080
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov r15d, edx
mov rbp, rcx
mov r8d, 2
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.14015f1e0
nop
xor r12d, r12d
mov edi, r12d
cmp qword [rsp + 0x58], rdi
jle 0x1401601e3
mov r14d, r15d
or r14d, 0x2001f
mov esi, r12d
nop
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rcx + rsi]
mov qword [rsp + 0x30], rdx
mov rax, qword [rcx + rsi + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rcx + rsi + 0x10]
mov qword [rsp + 0x40], rax
test rdx, rdx
je 0x1401600fa
lock inc dword [rdx]
mov qword [rsp + 0xa0], r12
lea rcx, [rsp + 0x30]
call fcn.140094620
mov rdx, rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x20], rax
mov r9d, r14d
xor r8d, r8d
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14016016c
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14016016c
mov edx, r15d
mov rcx, rbx
call fcn.140160080
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.140094620
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x1401601a4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14016018e
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14016018e
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
inc edi
add rsi, 0x18
movsxd rax, edi
cmp rax, qword [rsp + 0x58]
jl 0x1401600d0
jmp 0x1401601e3
lea rcx, [rsp + 0x30]
call fcn.140094620
mov r8, rax
lea rdx, str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
mov ecx, ebx
call fcn.14010dfc0
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1401601e3
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401601e3
mov rcx, qword [rsp + 0x30]
call fcn.1402275a0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140160243
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140160243
mov rax, qword [rsp + 0x58]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x50]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x140160239
mov rcx, qword [rbx]
test rcx, rcx
je 0x140160230
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140160230
mov rcx, qword [rbx]
call fcn.1402275a0
add rbx, 0x18
cmp rbx, rdi
jne 0x140160212
mov rcx, qword [rsp + 0x48]
call fcn.1402275a0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x140189ac0
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [rdx + 0x10], 2
mov rbx, rdx
mov rdi, rcx
jl 0x140189ca7
mov rax, qword [rdx + 8]
movzx ecx, word [rax]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x140189b07
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x140189b1d
cmp ecx, 0x7f
jbe 0x140189ca7
call fcn.14008e190
test al, al
je 0x140189ca7
mov rax, qword [rbx + 8]
cmp word [rax + 2], 0x3a
jne 0x140189ca7
movzx ecx, word [rax]
call fcn.140093470
test ax, ax
je 0x140189ca7
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
cmp rcx, rdx
je 0x140189b63
nop word [rax + rax]
cmp word [rcx + 8], ax
je 0x140189ca7
add rcx, 0x10
cmp rcx, rdx
jne 0x140189b50
movups xmm0, xmmword [str..A:_]
lea rcx, [rsp + 0x90]
mov word [rsp + 0x48], ax
movups xmmword [rsp + 0x88], xmm0
mov word [rsp + 0x90], ax
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 2
jne 0x140189ca7
xor ebx, ebx
mov qword [rsp + 0xb8], rsi
mov qword [rsp + 0x30], rbx
lea edx, [rax + 0x7e]
mov dword [rsp + 0x28], 0x2000000
lea r8d, [rax + 5]
xor r9d, r9d
mov dword [rsp + 0x20], 3
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140189bef
lea rdx, [rsp + 0x88]
lea rcx, str.CreateFile__ls_failed.
call fcn.14010e2a0
jmp 0x140189c9f
xorps xmm0, xmm0
mov qword [rsp + 0x58], rbx
xorps xmm1, xmm1
mov dword [rsp + 0x50], 0x38
mov cl, 1
mov dword [rsp + 0x54], 6
movdqu xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x60], rsi
movdqu xmmword [rsp + 0x78], xmm1
call fcn.140105420
mov rcx, rax
mov rax, qword [rax + 0x70]
test rax, rax
jne 0x140189c33
call fcn.1400ee0b0
mov rcx, rax
call fcn.14019ceb0
mov rcx, rax
lea rdx, [rsp + 0x50]
xor r8d, r8d
call qword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov rcx, rsi
mov qword [rsp + 0x40], rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
jne 0x140189c78
lea rdx, [rsp + 0x88]
lea rcx, str.RegisterDeviceNotification__ls_failed.
call fcn.14010e2a0
jmp 0x140189c9f
mov rdx, qword [rdi + 0x28]
lea rcx, [rdi + 0x20]
cmp rdx, qword [rdi + 0x30]
je 0x140189c95
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
add qword [rdi + 0x28], 0x10
jmp 0x140189c9f
lea r8, [rsp + 0x40]
call fcn.1401876c0
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.1402200b0
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x1401a6460
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x1401a64c1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1401a6480
mov ecx, dword [r9]
jmp 0x1401a65ab
cmp ecx, 0x4e0
jb 0x1401a65ab
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1401a64e0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x1401a6530
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x1401a6700
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov r14, rdx
sub rdi, rdx
sar rdi, 2
xor ebp, ebp
mov esi, ebp
mov rax, qword [0x140397300]
bt rax, 0xb
jae 0x1401a673f
mov rdx, rdi
mov rcx, r14
call fcn.1401a6e90
mov rsi, rax
cmp rsi, rdi
je 0x1401a67a9
mov rbx, rdi
sub rbx, rsi
shl rbx, 2
lea rcx, [r14 + rsi*4]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
cmovne rbp, rbx
mov rax, rbp
cqo
and edx, 3
add rax, rdx
sar rax, 2
add rsi, rax
cmp rsi, rdi
je 0x1401a67a9
lea rbx, [r14 + rsi*4]
sub rdi, rsi
lea rdi, [rbx + rdi*4]
cmp rbx, rdi
je 0x1401a67a9
nop word [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.1402381c4
mov eax, dword [rsp + 0x48]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x1401a6790
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401a6850
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
mov ebx, 0x10
nop dword [rax]
nop word [rax + rax]
mov edx, 0x10
lea rcx, [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
nop
test al, al
jne 0x1401a68c5
sub ebx, 1
jne 0x1401a6880
lea rbx, [rsp + 0x38]
nop
lea rcx, [rsp + 0x20]
call fcn.1402381c4
mov eax, dword [rsp + 0x20]
mov dword [rbx], eax
add rbx, 4
lea rax, [rsp + 0x48]
cmp rbx, rax
jne 0x1401a68a0
movups xmm0, xmmword [rsp + 0x38]
jmp 0x1401a68ca
movups xmm0, xmmword [rsp + 0x28]
mov rax, rdi
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1402200b0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1401a68f0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x9f0
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rsp + 0x9e0], rax
mov dword [rcx + 0x1388], 0xffffffff
mov edx, 1
mov dword [rcx], edx
mov r8d, 0x1571
mov dword [rcx + 8], r8d
mov rbx, rcx
add rcx, 0xc
nop dword [rax]
mov eax, r8d
lea rcx, [rcx + 4]
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, edx
inc rdx
mov dword [rcx - 4], r8d
cmp rdx, 0x270
jb 0x1401a6930
lea r8, [rsp + 0x9e0]
mov dword [rbx + 4], 0x270
lea rdx, [rsp + 0x20]
lea rcx, [0x140395f0c]
call fcn.1401a6700
xor r8d, r8d
mov edx, r8d
nop dword [rax]
mov ecx, dword [rsp + rdx*4 + 0x20]
mov eax, ecx
or eax, r8d
mov dword [rbx + rdx*4 + 8], ecx
shr ecx, 0x1f
test rdx, rdx
cmovne ecx, eax
inc rdx
mov r8d, ecx
cmp rdx, 0x270
jb 0x1401a6980
test ecx, ecx
jne 0x1401a69b0
mov dword [rbx + 8], 0x80000000
mov dword [rbx + 4], 0x270
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.1402200b0
add rsp, 0x9f0
pop rbx
ret
Function at 0x1401a8560
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rsp + 0x80], rax
xor ebp, ebp
mov qword [rsp + 0x58], rdx
mov eax, dword [rcx + 4]
mov rsi, r8
mov dword [rsp + 0x20], ebp
mov rbx, rdx
mov rdi, rcx
test eax, eax
jne 0x1401a86e3
mov ecx, dword [rcx]
lea r9d, [rbp + 8]
lea r8, [rsp + 0x58]
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1401a86ce
movzx eax, word [rsp + 0x58]
cmp ax, 0x31
je 0x1401a86ce
cmp ax, 0x30
jne 0x1401a869c
mov dword [rdi + 4], 1
mov rax, qword [rsi + 8]
lea rcx, [rsp + 0x28]
mov rdx, qword [rsi]
mov edi, 6
mov qword [rsp + 0x30], rax
mov rax, qword [rsi + 0x10]
mov qword [rsp + 0x38], rax
mov qword [rsi], rbp
mov qword [rsi + 8], rbp
mov qword [rsi + 0x10], rbp
mov qword [rcx], rbp
mov esi, 0xffffffff
mov qword [rbx], rdx
mov rax, qword [rcx + 8]
mov qword [rcx + 8], rbp
mov qword [rbx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rcx + 0x10], rbp
mov qword [rbx + 0x10], rax
test dil, 2
je 0x1401a8653
mov rcx, qword [rsp + 0x28]
and edi, 0xfffffffd
test rcx, rcx
je 0x1401a8653
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401a8653
mov rcx, qword [rsp + 0x28]
call fcn.1402275a0
test dil, 1
je 0x1401a8676
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1401a8676
lock xadd dword [rax], esi
cmp esi, 1
jne 0x1401a8676
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
mov rax, rbx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1402200b0
mov rbx, qword [rsp + 0xc8]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
cmp ax, 0x32
je 0x1401a86da
mov ecx, dword [rdi]
lea r8, [rsp + 0x68]
mov r9d, 0xb
lea edx, [r9 + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1401a86ce
movzx ecx, word [rsp + 0x68]
movzx eax, word [rsp + 0x58]
add ecx, 2
cmp eax, ecx
je 0x1401a86da
mov dword [rdi + 4], 3
jmp 0x1401a85de
mov dword [rdi + 4], 2
jmp 0x1401a86ec
cmp eax, 2
jne 0x1401a85de
mov r8, rsi
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1401aaf00
mov rcx, rax
mov edi, 5
mov rdx, qword [rax]
jmp 0x1401a8608
Function at 0x1401a97b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x14038d940]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x58], rdx
xor r14d, r14d
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x20], r14
lea rax, [0x1402edd80]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 1
mov qword [rbp - 0x80], 0x40
lea rax, [rbp - 0x68]
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x78], 0x40
lea r9d, [r14 + 0x40]
lea r8, [rbp - 0x68]
mov edx, ebx
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1401a98d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x50
jne 0x1401a987d
test eax, eax
jne 0x1401a987d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400b0420
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x1401a9863
call fcn.1402275a0
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1401a99a2
mov rbx, 0xffffffffffffffff
jmp 0x1401a998f
cmp eax, 0x7a
je 0x1401a98a3
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rax
mov rax, qword [rdi + 0x18]
and rax, 0xfffffffffffffffe
or rax, 2
and eax, 3
mov qword [rdi + 0x18], rax
jmp 0x1401a9850
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1401a9882
movsxd rdx, eax
lea rcx, [rbp - 0x80]
call fcn.1401457e0
mov r9d, dword [rbp - 0x78]
mov r8, qword [rbp - 0x70]
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1401a9882
mov rdx, qword [rbp - 0x70]
cmp ebx, 0x50
jne 0x1401a98ec
cmp word [rdx], 0
je 0x1401a9842
mov rbx, 0xffffffffffffffff
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.14008d720
nop
mov rcx, qword [rax]
mov qword [rax], r14
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 8]
mov qword [rax + 8], r14
mov qword [rsp + 0x48], rcx
mov rcx, qword [rax + 0x10]
mov qword [rax + 0x10], r14
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401a9945
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401a9945
mov rcx, qword [rsp + 0x60]
call fcn.1402275a0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400b0420
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401a9972
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401a9972
mov rcx, qword [rsp + 0x40]
call fcn.1402275a0
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x1401a9985
call fcn.1402275a0
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1401a99a2
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1401a99a2
mov rcx, qword [rsp + 0x20]
call fcn.1402275a0
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1402200b0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret