joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14126cbb0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x14136fbc0]
xor rax, rsp
mov qword [rsp + 0x280], rax
movzx ebp, dl
xor r13d, r13d
mov esi, ebp
mov dword [rsp + 0x40], 0x18
xor esi, 1
mov qword [rsp + 0x48], r13
shl esi, 0x14
mov r15d, ebp
shl r15d, 0x14
mov r14, rcx
mov dword [rsp + 0x50], r8d
mov edi, 0x3e8
call fcn.14128b150
xor edx, edx
mov r8d, 1
mov rcx, rax
call fcn.14128af80
mov rbx, rax
call fcn.1411f1b10
mov r9d, eax
mov dword [rsp + 0x20], ebx
lea r8, [0x14007cf50]
mov edx, 0x100
lea rcx, [rsp + 0x80]
call fcn.14126e100
lea rax, [rsp + 0x40]
mov r9d, 1
mov qword [rsp + 0x38], rax
lea edx, [rbp + 0x40000001]
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], esi
mov r8d, 8
mov dword [rsp + 0x20], r15d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14126ccb1
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14126cc9c
add edi, 0xffffffff
jne 0x14126cc08
lea rdx, [0x14007cf78]
mov ecx, eax
call fcn.1411cae40
xor al, al
jmp 0x14126cdc8
mov edx, 0x40000000
mov qword [rsp + 0x30], r13
mov eax, 0x80000100
mov dword [rsp + 0x28], 0x40000000
test bpl, bpl
mov dword [rsp + 0x50], 1
lea r9, [rsp + 0x40]
mov dword [rsp + 0x20], 3
cmovne edx, eax
lea rcx, [rsp + 0x80]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14126cd19
lea rcx, [0x14007cfa0]
call fcn.1411cb0a0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14126cdc8
xorps xmm0, xmm0
mov qword [rsp + 0x58], r13
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
movdqu xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [rsp + 0x58]
mov rcx, rbx
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14126cda4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14126cda4
cmp eax, 0x3e5
je 0x14126cd94
lea rdx, [0x14007cfc0]
mov ecx, eax
call fcn.1411cae40
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14126cdc8
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bpl, bpl
je 0x14126cdb9
mov rax, rbx
jmp 0x14126cdbf
mov rax, rdi
mov rdi, rbx
mov qword [r14], rdi
mov qword [r14 + 8], rax
mov al, 1
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1413164a0
mov rbx, qword [rsp + 0x2e8]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14126d8a0
Capabilities:
Enumerate gui resources

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x2f8]
mov rbx, rcx
test rax, rax
je 0x14126d8e6
mov edx, dword [rax + 0x10]
lea rcx, [0x14126ce00]
call qword [sym.imp.USER32.dll_EnumWindows]
mov rcx, qword [rbx + 0x2f8]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x10
mov ecx, dword [rcx + 0x14]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.USER32.dll_PostThreadMessageW]
add rsp, 0x20
pop rbx
ret
Function at 0x141272710
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
cmp dword [0x14136f468], 0xffffffff
jne 0x14127277a
mov qword [rsp + 0x20], rbx
xor eax, eax
mov ebx, 1
lock cmpxchg qword [0x141372bf8], rbx
je 0x141272740
lea rcx, [0x141372bf8]
call fcn.141207060
cmp dword [0x14136f468], 0xffffffff
jne 0x141272755
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x14136f468], eax
mov rax, rbx
xor edx, edx
mov rbx, qword [rsp + 0x20]
lock cmpxchg qword [0x141372bf8], rdx
je 0x14127277a
lea rcx, [0x141372bf8]
add rsp, 0x28
jmp fcn.141207560
add rsp, 0x28
ret
Function at 0x141272d40
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x20
mov r14, rcx
mov rbx, qword [rcx + 8]
lea rsi, [rbx + 0x78]
xor bpl, bpl
mov r12d, 1
test rsi, rsi
je 0x141272d84
xor eax, eax
lock cmpxchg qword [rsi], r12
je 0x141272d80
mov rcx, rsi
call fcn.141207060
movzx ebp, r12b
xor r15d, r15d
cmp byte [rbx + 0x84], r15b
je 0x141272e88
cmp byte [rbx + 0xa8], r15b
jne 0x141272da9
mov byte [rbx + 0xa9], r12b
jmp 0x141272e88
xor edx, edx
mov rcx, qword [rbx + 0x98]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov rdi, qword [r14 + 8]
mov byte [rdi + 0x86], 1
mov dword [rdi + 0x94], 7
mov rbx, qword [rdi + 0xb0]
movzx edx, byte [rsp + 0x50]
mov rcx, r14
call fcn.1412118d0
mov r8, qword [rdi + 0xb0]
mov edx, 0x34
xor ecx, ecx
call fcn.1411f4b60
lea rcx, [rbx + 0x78]
call fcn.141271b70
mov rax, qword [rdi + 0xb0]
mov rbx, qword [rax + 0x70]
test rbx, rbx
je 0x141272e4b
mov qword [rsp + 0x50], r15
mov rdx, qword [rdi + 0xb0]
mov rax, qword [rsp + 0x50]
nop
nop
mov qword [rdx + 0x70], rax
mov rax, qword [rbx]
mov rcx, rbx
mov rax, qword [rax + 0xb0]
call qword [case.0x14120887a.0]
mov rax, qword [rbx]
mov edx, r12d
mov rcx, rbx
mov rax, qword [rax + 0x18]
call qword [case.0x14120887a.0]
mov word [rdi + 0x84], 0x100
mov byte [rdi + 0x86], 0
mov eax, r15d
xchg byte [rdi + 0x87], al
cmp dword [rdi + 0xa4], 0
jne 0x141272e81
mov rcx, qword [rdi + 0x98]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x98], r15
mov dword [rdi + 0xa0], r15d
test bpl, bpl
je 0x141272e9f
mov rax, r12
lock cmpxchg qword [rsi], r15
je 0x141272e9f
mov rcx, rsi
call fcn.141207560
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
Function at 0x141279990
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 [0x14136fbc0]
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, [0x1400777c0]
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
mov r9d, 0x40
lea r8, [rbp - 0x68]
mov edx, ebx
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x141279abb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x50
jne 0x141279a5f
test eax, eax
jne 0x141279a5f
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14124eaf0
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x141279a45
call fcn.14131d86c
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x141279ba5
mov rbx, 0xffffffffffffffff
jmp 0x141279b87
cmp eax, 0x7a
je 0x141279a85
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 0x141279a32
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x141279a64
movsxd rdx, eax
lea rcx, [rbp - 0x80]
call fcn.14127aeb0
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 0x141279a64
mov rdx, qword [rbp - 0x70]
cmp ebx, 0x50
jne 0x141279ace
cmp word [rdx], 0
je 0x141279a24
mov rbx, 0xffffffffffffffff
mov r8, rbx
lea rcx, [rsp + 0x60]
call fcn.1411c24e0
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 0x141279b32
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141279b32
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x60]
call fcn.1411dba10
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.14124eaf0
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x141279b6a
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x141279b6a
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call fcn.1411dba10
nop
lea rax, [rbp - 0x68]
mov rcx, qword [rbp - 0x70]
cmp rcx, rax
je 0x141279b7d
call fcn.14131d86c
nop
mov rax, qword [rsp + 0x20]
test rax, rax
je 0x141279ba5
lock xadd dword [rax], ebx
cmp ebx, 1
jne 0x141279ba5
mov r8d, 8
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.1411dba10
mov rax, rdi
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1413164a0
add rsp, 0x130
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14127b1d0
Capabilities:
Get geographical location

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x14136fbc0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov eax, dword [rcx + 4]
mov rbx, rcx
test eax, eax
jne 0x14127b26a
mov ecx, dword [rcx]
lea r8, [rsp + 0x20]
mov r9d, 8
mov edx, 0x1014
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14127b262
movzx eax, word [rsp + 0x20]
cmp ax, 0x31
je 0x14127b262
cmp ax, 0x30
jne 0x14127b223
mov eax, 1
jmp 0x14127b267
cmp ax, 0x32
jne 0x14127b230
mov eax, 2
jmp 0x14127b267
mov ecx, dword [rbx]
lea r8, [rsp + 0x30]
mov r9d, 0xb
mov edx, 0x13
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14127b262
movzx eax, word [rsp + 0x20]
movzx ecx, word [rsp + 0x30]
add ecx, 2
cmp eax, ecx
mov eax, 2
je 0x14127b267
mov eax, 3
mov dword [rbx + 4], eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1413164a0
add rsp, 0x50
pop rbx
ret
Function at 0x14127cfd0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x260
mov rax, qword [0x14136fbc0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov eax, edx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
mov qword [rcx], r15
mov qword [rcx + 8], r15
mov qword [rcx + 0x10], r15
mov dword [rsp + 0x20], 1
mov r9d, 0xff
lea r8, [rsp + 0x50]
mov edx, 0x5a
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14127d0c0
mov rdi, 0xffffffffffffffff
mov r8, rdi
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.1411c24e0
nop
mov rsi, qword [rax]
mov rbp, qword [rax + 8]
mov r14, qword [rax + 0x10]
mov qword [rax], r15
mov qword [rax + 8], r15
mov qword [rax + 0x10], r15
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14127d094
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14127d094
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.1411dba10
mov rcx, qword [rbx]
mov qword [rbx], rsi
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], r14
test rcx, rcx
je 0x14127d0c0
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x14127d0c0
mov edx, 2
mov r8d, 8
call fcn.1411dba10
mov rax, rbx
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1413164a0
mov rbx, qword [rsp + 0x2a0]
add rsp, 0x260
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14127e2f0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rax, qword [0x14136fbc0]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rdx
xor esi, esi
mov dword [rsp + 0x20], esi
cmp qword [rcx + 0x18], rsi
jne 0x14127e3d3
mov r9d, 0xb
lea r8, [rsp + 0x48]
mov edx, 0x13
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x14127e3d3
mov r8d, 1
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x30]
call fcn.1411c24e0
nop
mov rbp, qword [rax]
mov r14, qword [rax + 8]
mov r15, qword [rax + 0x10]
mov qword [rax], rsi
mov qword [rax + 8], rsi
mov qword [rax + 0x10], rsi
mov esi, 0xffffffff
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x14127e3a5
mov eax, esi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14127e3a5
mov edx, 2
mov r8d, 8
mov rcx, qword [rsp + 0x30]
call fcn.1411dba10
mov rcx, qword [rbx + 8]
mov qword [rbx + 8], rbp
mov qword [rbx + 0x10], r14
mov qword [rbx + 0x18], r15
test rcx, rcx
je 0x14127e3d3
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14127e3d3
mov edx, 2
mov r8d, 8
call fcn.1411dba10
lea rdx, [rbx + 8]
mov rcx, rdi
call fcn.14124eaf0
mov rax, rdi
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1413164a0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1412868e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov qword [rsp + 0x50], r12
lea rsi, [r8 - 1]
sar rsi, 1
mov r15, r9
mov qword [rsp + 0x58], r13
mov r12, r8
mov r14, rdx
mov rdi, rcx
mov rbp, rdx
mov r9, rdx
cmp rdx, rsi
jge 0x14128698c
nop dword [rax + rax]
lea rbx, [r9 + r9]
lea rax, [rbx + 2]
lea rax, [rax + rax*2]
lea rcx, [rdi + rax*8]
lea rdx, [rcx - 0x18]
call fcn.1412423d0
movzx r9d, al
xor r9, 1
inc r9
add r9, rbx
lea rax, [r9 + r9*2]
lea r8, [rdi + rax*8]
lea rax, [r14 + r14*2]
mov r14, r9
mov rcx, qword [rdi + rax*8]
lea rdx, [rdi + rax*8]
mov rax, qword [r8]
mov qword [rdx], rax
mov rax, qword [r8 + 8]
mov qword [r8], rcx
mov rcx, qword [rdx + 8]
mov qword [rdx + 8], rax
mov rax, qword [r8 + 0x10]
mov qword [r8 + 8], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r8 + 0x10], rcx
cmp r9, rsi
jl 0x141286920
cmp r9, rsi
jne 0x1412869db
test r12b, 1
jne 0x1412869db
lea rax, [r12 + r12*2]
lea r8, [rdi + rax*8]
lea rax, [r14 + r14*2]
mov rcx, qword [rdi + rax*8]
lea rdx, [rdi + rax*8]
mov rax, qword [r8 - 0x18]
lea r14, [r12 - 1]
mov qword [rdx], rax
mov rax, qword [r8 - 0x10]
mov qword [r8 - 0x18], rcx
mov rcx, qword [rdx + 8]
mov qword [rdx + 8], rax
mov rax, qword [r8 - 8]
mov qword [r8 - 0x10], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r8 - 8], rcx
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x50]
cmp rbp, r14
jge 0x141286a4b
nop word [rax + rax]
lea rsi, [r14 - 1]
mov rdx, r15
sar rsi, 1
lea rax, [rsi + rsi*2]
lea rbx, [rdi + rax*8]
mov rcx, rbx
call fcn.1412423d0
test al, al
je 0x141286a4b
lea rax, [r14 + r14*2]
mov r14, rsi
mov rcx, qword [rdi + rax*8]
lea rdx, [rdi + rax*8]
mov rax, qword [rbx]
mov qword [rdx], rax
mov rax, qword [rbx + 8]
mov qword [rbx], rcx
mov rcx, qword [rdx + 8]
mov qword [rdx + 8], rax
mov rax, qword [rbx + 0x10]
mov qword [rbx + 8], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [rbx + 0x10], rcx
cmp rbp, rsi
jl 0x1412869f0
mov rbx, qword [rsp + 0x60]
lea rax, [r14 + r14*2]
mov rcx, qword [rdi + rax*8]
lea rdx, [rdi + rax*8]
mov rax, qword [r15]
mov qword [rdx], rax
mov rax, qword [r15 + 8]
mov qword [r15], rcx
mov rcx, qword [rdx + 8]
mov qword [rdx + 8], rax
mov rax, qword [r15 + 0x10]
mov qword [r15 + 8], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rdx + 0x10], rax
mov qword [r15 + 0x10], rcx
add rsp, 0x20
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14128adf0
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 0x14128ae51
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 0x14128ae10
mov ecx, dword [r9]
jmp 0x14128af3b
cmp ecx, 0x4e0
jb 0x14128af3b
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 0x14128ae70
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 0x14128aec0
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 0x14128b090
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 [0x141374240]
bt rax, 0xb
jae 0x14128b0cf
mov rdx, rdi
mov rcx, r14
call fcn.14128b8a0
mov rsi, rax
cmp rsi, rdi
je 0x14128b139
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 0x14128b139
lea rbx, [r14 + rsi*4]
sub rdi, rsi
lea rdi, [rbx + rdi*4]
cmp rbx, rdi
je 0x14128b139
nop word [rax + rax]
lea rcx, [rsp + 0x48]
call fcn.14132be78
mov eax, dword [rsp + 0x48]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x14128b120
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x14128b1e0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x14136fbc0]
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 0x14128b255
sub ebx, 1
jne 0x14128b210
lea rbx, [rsp + 0x38]
nop
lea rcx, [rsp + 0x20]
call fcn.14132be78
mov eax, dword [rsp + 0x20]
mov dword [rbx], eax
add rbx, 4
lea rax, [rsp + 0x48]
cmp rbx, rax
jne 0x14128b230
movups xmm0, xmmword [rsp + 0x38]
jmp 0x14128b25a
movups xmm0, xmmword [rsp + 0x28]
mov rax, rdi
movups xmmword [rdi], xmm0
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1413164a0
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x9f0
mov rax, qword [0x14136fbc0]
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 0x14128b2c0
lea r8, [rsp + 0x9e0]
mov dword [rbx + 4], 0x270
lea rdx, [rsp + 0x20]
lea rcx, [0x141372e4c]
call fcn.14128b090
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 0x14128b310
test ecx, ecx
jne 0x14128b340
mov dword [rbx + 8], 0x80000000
mov dword [rbx + 4], 0x270
mov rcx, qword [rsp + 0x9e0]
xor rcx, rsp
call fcn.1413164a0
add rsp, 0x9f0
pop rbx
ret
Function at 0x14128f230
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x14136fbc0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbx, rdx
mov qword [rsp + 0x78], rdx
xor edi, edi
mov dword [rsp + 0x30], edi
mov ecx, 0x10
call qword [sym.imp.KERNEL32.dll_GetUserGeoID]
mov word [rsp + 0x20], di
mov r9d, 3
lea r8, [rsp + 0x80]
mov edx, 4
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetGeoInfoW]
cmp eax, 3
jne 0x14128f2c2
mov qword [rsp + 0x40], 3
lea rax, [rsp + 0x80]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
call fcn.1411fd9c0
movzx esi, ax
jmp 0x14128f2c4
mov esi, edi
lea rcx, [rsp + 0x60]
call fcn.14128f590
nop
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
mov dword [rsp + 0x30], 1
mov edi, 0xffffffff
test si, si
je 0x14128f358
movzx r8d, si
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.14128a020
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14128f358
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14128f358
mov edx, 1
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call fcn.1411dba10
cmp qword [rbx + 0x10], 0
jne 0x14128f3c8
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.141289eb0
mov rdx, rax
mov rcx, qword [rbx]
mov rax, qword [rax]
mov qword [rbx], rax
mov qword [rdx], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rdx + 8]
mov qword [rbx + 8], rax
mov qword [rdx + 8], rcx
mov rcx, qword [rbx + 0x10]
mov rax, qword [rdx + 0x10]
mov qword [rbx + 0x10], rax
mov qword [rdx + 0x10], rcx
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14128f3c8
mov eax, edi
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14128f3c8
mov edx, 1
mov r8d, 8
mov rcx, qword [rsp + 0x40]
call fcn.1411dba10
nop
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14128f3f0
lock xadd dword [rax], edi
cmp edi, 1
jne 0x14128f3f0
mov edx, 1
mov r8d, 8
mov rcx, qword [rsp + 0x60]
call fcn.1411dba10
mov rax, rbx
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1413164a0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret