joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014a800
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rcx + 8]
mov rdi, r8
mov rsi, rdx
and dword [rbx + 0x70], 0xfdffffff
cmp dword [rbx + 0xd4], 2
je 0x140137ce0
mov rax, qword [rcx]
mov rax, qword [rax + 0x18]
call qword [case.0x1400f4a30.0]
mov dword [rbx + 0xd4], 2
mov r8, rdi
mov rdx, rsi
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp 0x14014a800
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov rbp, r8
mov r14, rdx
mov rsi, rcx
mov r15, qword [rcx + 0x28]
cmp qword [rcx + 0xa8], 0
jne 0x14014a91b
cmp dword [rcx + 0xd0], 0xffffffff
jne 0x14014a91b
mov rcx, qword [rcx + 0xb0]
cmp rcx, 0xffffffffffffffff
je 0x14014a912
xor r12d, r12d
mov edi, r12d
mov rbx, r8
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebp
mov qword [rax - 0x58], r12
lea r9, [rax + 8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x14014a8cf
nop dword [rax + rax]
mov eax, dword [rsp + 0x80]
test eax, eax
je 0x14014a8ca
add rdi, rax
sub rbx, rax
cmp rdi, rbp
jge 0x14014a8ca
mov r8d, 0x2000000
cmp rbx, r8
cmovl r8d, ebx
lea rdx, [rdi + r14]
mov qword [rsp + 0x20], r12
lea r9, [rsp + 0x80]
mov rcx, qword [rsi + 0xb0]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14014a880
test rdi, rdi
je 0x14014a8cf
mov rax, rdi
jmp 0x14014a920
mov edx, 0xffffffff
lea rcx, [rsp + 0x30]
call fcn.1401100d0
nop
mov r8, rax
mov edx, 2
mov rcx, r15
call fcn.140134c50
nop
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14014a912
mov ecx, 0xffffffff
lock xadd dword [rdx], ecx
cmp ecx, 1
jne 0x14014a912
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
mov rax, 0xffffffffffffffff
jmp 0x14014a920
call fcn.140137d00
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x14014ae70
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 0x14014afc4
cmp dword [rax + 0xd0], edi
jne 0x14014af95
cmp qword [rax + 0xa8], 0
jne 0x14014af95
lea rdi, [rax + 0x30]
mov rcx, rdi
call fcn.1401353f0
test al, al
jne 0x14014b02c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140134ee0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140042e70
nop
mov edi, 0xffffffff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14014af0d
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14014af0d
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
mov edx, 3
lea rcx, [rsp + 0x20]
call fcn.1400431e0
test al, al
je 0x14014af86
mov rdx, rsi
lea rcx, [rsp + 0x20]
call fcn.140044130
movzx esi, al
test al, al
jne 0x14014af73
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x20]
call fcn.1400479f0
nop
mov r8, rax
mov edx, 0xc
mov rcx, rbx
call fcn.140134c50
nop
mov rax, qword [rsp + 0x48]
test rax, rax
je 0x14014af73
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14014af73
mov rcx, qword [rsp + 0x48]
call fcn.14021b7f0
nop
lea rcx, [rsp + 0x20]
call fcn.140042f50
movzx eax, sil
jmp 0x14014b02e
lea rcx, [rsp + 0x20]
call fcn.140042f50
jmp 0x14014b02c
cmp rdi, 0xffffffffffffffff
jne 0x14014afc4
mov rcx, qword [rax + 0xa8]
test rcx, rcx
je 0x14014afae
call fcn.14022bbe8
jmp 0x14014afb4
mov eax, dword [rax + 0xd0]
mov ecx, eax
call fcn.14022b9e4
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x14014b02c
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0x30]
call qword [case.0x1400f4a30.0]
mov rbp, rax
mov rax, qword [rbx]
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400f4a30.0]
test al, al
je 0x14014b019
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14014b019
mov rax, qword [rbx]
cmp rbp, rsi
cmovl rsi, rbp
mov rdx, rsi
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400f4a30.0]
mov al, 1
jmp 0x14014b02e
mov rax, qword [rbx]
mov rdx, rbp
mov rcx, rbx
mov rax, qword [rax + 0x38]
call qword [case.0x1400f4a30.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 0x140155cc0
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 0x140155d26
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov edx, 0x10
call fcn.140214330
mov rcx, rbx
test rbx, rbx
jne 0x140155d10
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 0x140155daf
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 0x140155f08
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 0x140155e13
cmp rcx, rsi
je 0x140155d60
cmp r8, qword [r14]
jne 0x140155e1e
cmp rcx, qword [r14 + 8]
je 0x140155e5e
inc rcx
cmp rcx, 0x80
jne 0x140155e05
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 0x140155e05
mov r8, r9
jmp 0x140155e05
mov rdi, qword [r14]
cmp rbx, rdi
jne 0x140155e83
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 0x140155d60
mov r15, qword [r14 + 8]
movzx eax, byte [rdi + 0x88]
cmp byte [rdi + 0x89], al
jne 0x140155e9e
mov rcx, rdi
call fcn.1400bf160
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 0x140155d60
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 0x140159ab0
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 0x140159c0c
cmp qword [rcx + 0xf8], r15
je 0x140159c0c
mov rbx, qword [rcx + 0xf0]
mov rcx, rbx
call fcn.14015b910
test rax, rax
je 0x140159c0c
cmp byte [rbx + 0x28], r15b
jne 0x140159c0c
mov rcx, rbx
call fcn.14015b910
test rax, rax
je 0x140159c0c
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], r15
lea rcx, [rsp + 0x38]
call fcn.140094f20
mov rsi, rax
cmp qword [rdi + 0xf8], r15
je 0x140159b6d
mov rbx, qword [rdi + 0xf0]
mov rcx, rbx
call fcn.14015b910
test rax, rax
je 0x140159b6d
cmp byte [rbx + 0x28], r15b
jne 0x140159b6d
mov rcx, rbx
call fcn.14015b910
jmp 0x140159b70
mov rax, r15
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
je 0x140159bea
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 0x140159bad
lock inc dword [r8]
lea rcx, [rsp + 0x20]
call fcn.140094f20
mov r8, rax
lea rdx, str.QSettings:_Failed_to_delete_key___ls_
mov ecx, ebx
call fcn.14010c550
mov rcx, qword [rsp + 0x20]
test rcx, rcx
je 0x140159bea
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140159bea
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140159c0c
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140159c0c
mov rcx, qword [rsp + 0x38]
call fcn.14021b7f0
mov ebx, r15d
cmp qword [rdi + 0xf8], rbx
jle 0x140159c75
mov r14, r15
nop dword [rax + rax]
mov rax, qword [rdi + 0xe8]
test rax, rax
je 0x140159c33
mov eax, dword [rax]
cmp eax, 1
jle 0x140159c47
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rdi + 0xe8]
call fcn.14015cc40
mov rbp, qword [rdi + 0xf0]
mov rcx, qword [rbp + r14 + 8]
test rcx, rcx
je 0x140159c5e
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 0x140159c20
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x140159ce5
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140159ce5
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 0x140159cd9
nop dword [rax]
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140159cd0
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x140159cd0
mov rcx, qword [rbx + 0x10]
call fcn.14021b7f0
add rbx, 0x30
cmp rbx, rsi
jne 0x140159cb0
mov rcx, qword [rdi + 0xe8]
call fcn.14021b7f0
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.1400bda90
Function at 0x14015b2c0
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.14015a460
nop
xor r12d, r12d
mov edi, r12d
cmp qword [rsp + 0x58], rdi
jle 0x14015b423
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 0x14015b33a
lock inc dword [rdx]
mov qword [rsp + 0xa0], r12
lea rcx, [rsp + 0x30]
call fcn.140094f20
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 0x14015b3ac
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
je 0x14015b3ac
mov edx, r15d
mov rcx, rbx
call fcn.14015b2c0
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x30]
call fcn.140094f20
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, eax
test eax, eax
jne 0x14015b3e4
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14015b3ce
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015b3ce
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
inc edi
add rsi, 0x18
movsxd rax, edi
cmp rax, qword [rsp + 0x58]
jl 0x14015b310
jmp 0x14015b423
lea rcx, [rsp + 0x30]
call fcn.140094f20
mov r8, rax
lea rdx, str.QSettings:_RegDeleteKey_failed_on_subkey___ls_
mov ecx, ebx
call fcn.14010c550
nop
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14015b423
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015b423
mov rcx, qword [rsp + 0x30]
call fcn.14021b7f0
nop
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14015b483
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015b483
mov rax, qword [rsp + 0x58]
lea rcx, [rax + rax*2]
mov rbx, qword [rsp + 0x50]
lea rdi, [rbx + rcx*8]
cmp rbx, rdi
je 0x14015b479
mov rcx, qword [rbx]
test rcx, rcx
je 0x14015b470
mov eax, 0xffffffff
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14015b470
mov rcx, qword [rbx]
call fcn.14021b7f0
add rbx, 0x18
cmp rbx, rdi
jne 0x14015b452
mov rcx, qword [rsp + 0x48]
call fcn.14021b7f0
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 0x140184880
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x14037da00]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp qword [rdx + 0x10], 2
mov rbx, rdx
mov rdi, rcx
jl 0x140184a67
mov rax, qword [rdx + 8]
movzx ecx, word [rax]
lea eax, [rcx - 0x41]
cmp eax, 0x39
ja 0x1401848c7
lea eax, [rcx - 0x5b]
cmp eax, 5
ja 0x1401848dd
cmp ecx, 0x7f
jbe 0x140184a67
call fcn.14008ecb0
test al, al
je 0x140184a67
mov rax, qword [rbx + 8]
cmp word [rax + 2], 0x3a
jne 0x140184a67
movzx ecx, word [rax]
call fcn.140093da0
test ax, ax
je 0x140184a67
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rdi + 0x20]
cmp rcx, rdx
je 0x140184923
nop word [rax + rax]
cmp word [rcx + 8], ax
je 0x140184a67
add rcx, 0x10
cmp rcx, rdx
jne 0x140184910
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 0x140184a67
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 0x1401849af
lea rdx, [rsp + 0x88]
lea rcx, str.CreateFile__ls_failed.
call fcn.14010c800
jmp 0x140184a5f
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.140104560
mov rcx, rax
mov rax, qword [rax + 0x70]
test rax, rax
jne 0x1401849f3
call fcn.1400edfb0
mov rcx, rax
call fcn.1401952a0
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 0x140184a38
lea rdx, [rsp + 0x88]
lea rcx, str.RegisterDeviceNotification__ls_failed.
call fcn.14010c800
jmp 0x140184a5f
mov rdx, qword [rdi + 0x28]
lea rcx, [rdi + 0x20]
cmp rdx, qword [rdi + 0x30]
je 0x140184a55
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
add qword [rdi + 0x28], 0x10
jmp 0x140184a5f
lea r8, [rsp + 0x40]
call fcn.140182440
mov rsi, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140214310
mov rbx, qword [rsp + 0xc0]
add rsp, 0xa0
pop rdi
ret
Function at 0x14019dac0
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 0x14019db21
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 0x14019dae0
mov ecx, dword [r9]
jmp 0x14019dc0b
cmp ecx, 0x4e0
jb 0x14019dc0b
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 0x14019db40
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 0x14019db90
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 0x14019dd60
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 [0x140387240]
bt rax, 0xb
jae 0x14019dd9f
mov rdx, rdi
mov rcx, r14
call fcn.14019e4f0
mov rsi, rax
cmp rsi, rdi
je 0x14019de09
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 0x14019de09
lea rbx, [r14 + rsi*4]
sub rdi, rsi
lea rdi, [rbx + rdi*4]
cmp rbx, rdi
je 0x14019de09
nop word [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.14022c0e4
mov eax, dword [rsp + 0x48]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x14019ddf0
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14019deb0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14037da00]
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 0x14019df25
sub ebx, 1
jne 0x14019dee0
lea rbx, [rsp + 0x38]
nop
lea rcx, [rsp + 0x20]
call fcn.14022c0e4
mov eax, dword [rsp + 0x20]
mov dword [rbx], eax
add rbx, 4
lea rax, [rsp + 0x48]
cmp rbx, rax
jne 0x14019df00
movups xmm0, xmmword [rsp + 0x38]
jmp 0x14019df2a
movups xmm0, xmmword [rsp + 0x28]
mov rax, rdi
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140214310
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x9f0
mov rax, qword [0x14037da00]
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 0x14019df90
lea r8, [rsp + 0x9e0]
mov dword [rbx + 4], 0x270
lea rdx, [rsp + 0x20]
lea rcx, [0x140385e4c]
call fcn.14019dd60
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 0x14019dfe0
test ecx, ecx
jne 0x14019e010
mov dword [rbx + 8], 0x80000000
mov dword [rbx + 4], 0x270
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.140214310
add rsp, 0x9f0
pop rbx
ret
Function at 0x1401a0bd0
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 [0x14037da00]
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, [0x1402e0610]
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 0x1401a0cf9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x50
jne 0x1401a0c9d
test eax, eax
jne 0x1401a0c9d
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.1400b0c50
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x1401a0c83
call fcn.14021b7f0
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1401a0dc2
mov rbx, 0xffffffffffffffff
jmp 0x1401a0daf
cmp eax, 0x7a
je 0x1401a0cc3
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 0x1401a0c70
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1401a0ca2
movsxd rdx, eax
lea rcx, [rbp - 0x80]
call fcn.14013ec60
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 0x1401a0ca2
mov rdx, qword [rbp - 0x70]
cmp ebx, 0x50
jne 0x1401a0d0c
cmp word [rdx], 0
je 0x1401a0c62
mov rbx, 0xffffffffffffffff
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.14008e200
nop
mov rcx, qword [rax]
mov qword [rsp + 0x40], rcx
mov rcx, qword [rax + 8]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rax + 0x10]
mov qword [rsp + 0x50], rcx
mov qword [rax], r14
mov qword [rax + 8], r14
mov qword [rax + 0x10], r14
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1401a0d65
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401a0d65
mov rcx, qword [rsp + 0x60]
call fcn.14021b7f0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400b0c50
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1401a0d92
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1401a0d92
mov rcx, qword [rsp + 0x40]
call fcn.14021b7f0
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x1401a0da5
call fcn.14021b7f0
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x1401a0dc2
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x1401a0dc2
mov rcx, qword [rsp + 0x20]
call fcn.14021b7f0
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140214310
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret