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

Disassembly:
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x48
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rbx, rdx
mov rdi, rcx
mov rax, qword [rcx + 8]
mov rsi, qword [rax + 0x80]
cmp rsi, 0xffffffffffffffff
jne 0x140083b4a
cmp dword [rax + 0xa0], esi
jne 0x140083b1e
cmp qword [rax + 0x78], 0
jne 0x140083b1e
lea rcx, [rax + 0x20]
mov rax, qword [rcx]
cmp dword [rax + 4], 0
jne 0x140083a23
mov rax, qword [rcx + 8]
cmp dword [rax + 4], 0
je 0x140083b97
lea rdx, [rsp + 0x80]
call fcn.14005bb80
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140013850
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or esi, 0xffffffff
test eax, eax
je 0x140083a6c
cmp eax, esi
je 0x140083a7a
mov eax, esi
lock xadd dword [rcx], eax
mov rbx, qword [rsp + 0x78]
cmp eax, 1
jne 0x140083a7a
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov dword [rsp + 0x70], 3
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.140014410
test al, al
je 0x140083b12
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.1400150b0
movzx ebx, al
test al, al
jne 0x140083b00
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.140034640
nop
mov r8, rax
mov edx, 0xc
mov rcx, rdi
call fcn.14005b880
nop
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x140083af1
cmp eax, 0xffffffff
je 0x140083b00
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x140083b00
mov rcx, qword [rsp + 0x88]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
lea rcx, [rsp + 0x28]
call fcn.140013920
movzx eax, bl
jmp 0x140083b99
lea rcx, [rsp + 0x28]
call fcn.140013920
jmp 0x140083b97
cmp rsi, 0xffffffffffffffff
jne 0x140083b4a
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x140083b36
call fcn.14018a6ec
mov ecx, eax
jmp 0x140083b3c
mov ecx, dword [rax + 0xa0]
call fcn.140189e54
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140083b97
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x30]
mov rbp, rax
mov r8, qword [rdi]
mov rdx, rbx
mov rcx, rdi
call qword [r8 + 0x38]
test al, al
je 0x140083b8b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x140083b8b
mov rax, qword [rdi]
cmp rbp, rbx
cmovl rbx, rbp
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x38]
mov al, 1
jmp 0x140083b99
mov rax, qword [rdi]
mov rdx, rbp
mov rcx, rdi
call qword [rax + 0x38]
xor al, al
add rsp, 0x48
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x1400895c0
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
test r8, r8
je 0x1400895f6
nop dword [rax]
movzx eax, word [r9]
lea r9, [r9 + 2]
shl edx, 4
add edx, eax
mov eax, edx
shr edx, 0x17
and edx, 0x1e0
xor edx, eax
and edx, 0xfffffff
sub r8, 1
jne 0x1400895d0
mov eax, edx
ret
Function at 0x14008a090
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rsi, rcx
xor edi, edi
mov rcx, qword [rcx]
mov rbx, rdx
test rcx, rcx
jne 0x14008a0b9
mov dword [rdx], edi
mov rax, rdx
mov byte [rdx + 4], dil
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov qword [rsp + 0x68], rbp
lea r9, [rsp + 0x78]
mov rbp, qword [r8 + 8]
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008a138
cmp dword [rsp + 0x78], 4
jne 0x14008a138
mov rcx, qword [rsi]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x60]
mov dword [rsp + 0x60], edi
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov dword [rsp + 0x30], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rbp, qword [rsp + 0x68]
test eax, eax
mov eax, dword [rsp + 0x60]
sete cl
mov dword [rbx], eax
mov byte [rbx + 4], cl
mov rax, rbx
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
mov rbp, qword [rsp + 0x68]
mov rax, rbx
mov dword [rbx], edi
mov byte [rbx + 4], dil
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x14008a150
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rdi, rdx
mov rbx, rcx
xor r14d, r14d
mov dword [rsp + 0x34], r14d
lea rbp, [0x1401e6610]
mov qword [rax - 0x28], rbp
mov rcx, qword [rcx]
test rcx, rcx
jne 0x14008a194
mov qword [rdx], rbp
jmp 0x14008a30f
mov rsi, qword [r8 + 8]
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14008a30c
mov eax, dword [rsp + 0x30]
dec eax
cmp eax, 1
ja 0x14008a30c
mov edx, dword [rsp + 0x98]
cmp edx, 2
jbe 0x14008a30c
shr edx, 1
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.140017f90
nop
mov rax, qword [rsp + 0x38]
cmp dword [rax], 1
ja 0x14008a203
cmp qword [rax + 0x10], 0x18
je 0x14008a21a
mov edx, dword [rax + 4]
inc edx
xor r8d, r8d
lea rcx, [rsp + 0x38]
call fcn.14001f090
mov rax, qword [rsp + 0x38]
mov r8, qword [rax + 0x10]
add r8, rax
lea rax, [rsp + 0x98]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r8
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, rsi
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
or ebx, 0xffffffff
test eax, eax
jne 0x14008a27c
mov word [rsp + 0x80], r14w
lea r8d, [rbx + 2]
movzx edx, r14w
lea rcx, [rsp + 0x38]
call fcn.14001bbe0
test al, al
je 0x14008a2b9
lea edx, [rbx + 2]
lea rcx, [rsp + 0x38]
call fcn.14001aee0
jmp 0x14008a2b9
mov rcx, qword [rsp + 0x38]
cmp rcx, rbp
je 0x14008a2b9
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rbp
mov eax, dword [rcx]
test eax, eax
je 0x14008a2ab
cmp eax, 0xffffffff
je 0x14008a2b9
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x14008a2b9
mov rcx, qword [rsp + 0x40]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
mov rax, qword [rsp + 0x38]
mov qword [rdi], rax
mov rcx, rbp
mov qword [rsp + 0x38], rcx
mov eax, dword [0x1401e6610]
test eax, eax
je 0x14008a2ec
cmp eax, 0xffffffff
je 0x14008a2fb
mov eax, ebx
lock xadd dword [0x1401e6610], eax
cmp eax, 1
jne 0x14008a2fb
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
mov eax, dword [0x1401e6610]
test eax, eax
je 0x14008a32e
cmp eax, 0xffffffff
je 0x14008a340
jmp 0x14008a321
mov qword [rdi], rbp
mov eax, dword [0x1401e6610]
test eax, eax
je 0x14008a32e
cmp eax, 0xffffffff
je 0x14008a340
or ebx, 0xffffffff
lock xadd dword [0x1401e6610], ebx
cmp ebx, 1
jne 0x14008a340
mov r8d, 8
lea edx, [r8 - 6]
mov rcx, rbp
call fcn.14002cfa0
mov rax, rdi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14008bcf0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x1e0], 0
mov rdi, rdx
mov rbx, rcx
je 0x14008bd2a
mov rcx, qword [rcx + 0x1e0]
mov qword [rsp + 0x60], rdx
test rcx, rcx
je 0x14008bde1
mov rax, qword [rcx]
lea rdx, [rsp + 0x60]
call qword [rax + 0x10]
mov rax, qword [rdi + 0x40]
movzx ecx, byte [rdi + 0x20]
mov r9, qword [rdi + 0x18]
mov r8, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov qword [rsp + 0x48], rax
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x40], rax
mov rax, qword [rdi + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rdi + 0x28]
mov qword [rsp + 0x30], rax
mov eax, dword [rdi + 0x24]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], ecx
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov rcx, qword [rbx + 0x108]
test eax, eax
setne dil
cmp rcx, 0xffffffffffffffff
je 0x14008bd96
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x108], 0xffffffffffffffff
mov rcx, qword [rbx + 0x148]
cmp rcx, 0xffffffffffffffff
je 0x14008bdb4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x148], 0xffffffffffffffff
mov rcx, qword [rbx + 0x180]
cmp rcx, 0xffffffffffffffff
je 0x14008bdd2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x180], 0xffffffffffffffff
movzx eax, dil
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.140159158
int3
Function at 0x14008d420
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x290
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor r13d, r13d
mov dword [rsp + 0x68], 0x18
test dl, dl
mov qword [rsp + 0x70], r13
mov rsi, rcx
mov dword [rsp + 0x78], r13d
mov ecx, 0x100000
mov r15d, r13d
cmove r15d, ecx
movzx eax, dl
neg al
mov r14d, r13d
movzx ebp, dl
mov edi, 0x3e8
sbb r12d, r12d
and r12d, ecx
test dl, dl
setne r14b
nop dword [rax + rax]
call fcn.1400bebc0
lea r8, [rsp + 0x44]
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400bea30
mov ebx, dword [rsp + 0x40]
call fcn.14003b830
mov r9, rax
mov dword [rsp + 0x20], ebx
lea r8, [0x14023b0b0]
mov edx, 0x100
lea rcx, [rsp + 0x80]
call fcn.14008edf0
mov r9d, 1
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea edx, [r14 + 0x40000001]
mov dword [rsp + 0x30], r13d
lea rcx, [rsp + 0x80]
mov dword [rsp + 0x28], r15d
lea r8d, [r9 + 7]
mov dword [rsp + 0x20], r12d
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x14008d53a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x14008d527
add edi, 0xffffffff
jne 0x14008d490
lea rdx, [0x14023b0d8]
mov ecx, eax
call fcn.140010d50
jmp 0x14008d64d
mov edx, 0x40000000
mov qword [rsp + 0x30], r13
mov eax, 0x80000100
mov dword [rsp + 0x28], 0x40000000
test bpl, bpl
mov dword [rsp + 0x78], 1
lea r9, [rsp + 0x68]
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 0x14008d5a0
lea rcx, [0x14023b100]
call fcn.140010f00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14008d64d
xor eax, eax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
xor ecx, ecx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
lea edx, [rax + 1]
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea rdx, [rsp + 0x48]
mov rcx, rbx
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
jne 0x14008d62d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14008d62d
cmp eax, 0x3e5
je 0x14008d61f
lea rdx, [0x14023b120]
mov ecx, eax
call fcn.140010d50
mov rcx, qword [rsp + 0x60]
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]
jmp 0x14008d64d
mov rcx, qword [rsp + 0x60]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test bpl, bpl
je 0x14008d646
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
jmp 0x14008d64d
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14015c110
mov rbx, qword [rsp + 0x2e0]
add rsp, 0x290
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x14008f710
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
or rdx, 0xffffffffffffffff
mov rcx, qword [rcx + 0x60]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x14008f739
mov qword [rbx + 0x60], 0
add rsp, 0x20
pop rbx
ret
lea rcx, [0x14023b838]
add rsp, 0x20
pop rbx
jmp fcn.140010f00
Function at 0x1400a8840
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
cmp qword [rcx + 0x68], 0
je 0x1400a8889
mov edx, 1
xor eax, eax
lock cmpxchg dword [rcx + 0x80], edx
jne 0x1400a8889
mov rcx, qword [rcx + 0x68]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x401
call qword [sym.imp.USER32.dll_PostMessageW]
test eax, eax
jne 0x1400a8889
lea rcx, [0x140244d50]
add rsp, 0x28
jmp fcn.140010f00
add rsp, 0x28
ret

Function at 0x1400be720
Capabilities:
Encode data using add xor sub operations
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov dword [rcx + 0x1384], 0xffffffff
lea r10, [rcx + 8]
mov r8d, 0x1571
mov rbx, rcx
mov dword [rcx + 4], r8d
mov r9d, 1
mov ecx, 0x26f
nop dword [rax]
mov eax, r8d
lea r10, [r10 + 4]
shr eax, 0x1e
xor eax, r8d
imul r8d, eax, 0x6c078965
add r8d, r9d
inc r9d
mov dword [r10 - 4], r8d
sub rcx, 1
jne 0x1400be750
mov rcx, rbx
mov dword [rbx], 0x270
call fcn.1400be800
mov rax, rbx
add rsp, 0x20
pop rbx
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx]
mov r9d, 0x270
mov rbx, rcx
cmp eax, r9d
jne 0x1400be8fb
lea r8, [rcx + 8]
nop word [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 r9, 1
jne 0x1400be8c0
jmp 0x1400be907
cmp eax, 0x4e0
jb 0x1400be907
call fcn.1400be950
mov eax, dword [rbx]
mov edx, dword [rbx + rax*4 + 4]
inc eax
mov dword [rbx], eax
mov ecx, edx
mov eax, dword [rbx + 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, 0x20
pop rbx
ret

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

Disassembly:
mov r10, rcx
lea r9, [rcx + 0x9c4]
mov r11d, 0xe3
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x630]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x1400be960
lea r9, [r10 + 0xd50]
mov r11d, 0x18c
nop word [rax + rax]
mov edx, dword [r9]
xor edx, dword [r9 + 4]
lea r9, [r9 + 4]
btr edx, 0x1f
xor edx, dword [r9 - 4]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 - 0xd50]
xor ecx, edx
mov dword [r9 - 0x9c4], ecx
sub r11, 1
jne 0x1400be9b0
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
mov dword [r10], r11d
ret
Function at 0x1400bea30
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp dword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x1400beaca
mov qword [rsp + 0x30], rbp
mov ebp, 1
mov qword [rsp + 0x38], r14
lea r14, [0x1410d2e40]
cmp rcx, r14
jne 0x1400bea81
xor eax, eax
lock cmpxchg qword [0x1410d2e00], rbp
je 0x1400bea81
lea rcx, [0x1410d2e00]
call fcn.140043bf0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400be790
cmp rbx, r14
mov r14, qword [rsp + 0x38]
jne 0x1400beab5
xor edx, edx
mov rax, rbp
lock cmpxchg qword [0x1410d2e00], rdx
je 0x1400beab5
lea rcx, [0x1410d2e00]
call fcn.140043fd0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x1410d2e0c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400beaf0

Function at 0x1400beaf0
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x60], rbp
mov rdi, r8
mov r14, rdx
sub rdi, rdx
sar rdi, 2
xor ebp, ebp
mov esi, ebp
mov rax, qword [0x1410d4240]
test rax, rax
jne 0x1400beb2f
call fcn.1400cc820
nop
bt rax, 0xc
jae 0x1400beb45
mov rdx, rdi
mov rcx, r14
call fcn.1400cca20
nop
mov rsi, rax
cmp rsi, rdi
je 0x1400bebaa
mov rbx, rdi
sub rbx, rsi
shl rbx, 2
lea rcx, [r14 + rsi*4]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
nop
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 0x1400bebaa
lea rbx, [r14 + rsi*4]
sub rdi, rsi
lea rdi, [rbx + rdi*4]
cmp rbx, rdi
je 0x1400bebaa
nop
lea rcx, [rsp + 0x58]
call fcn.14018a714
nop
mov eax, dword [rsp + 0x58]
mov dword [rbx], eax
add rbx, 4
cmp rbx, rdi
jne 0x1400beb90
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x1400c5700
Capabilities:
Get geographical location

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0xd0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rsp + 0xf8], rbx
mov ebx, r8d
mov rsi, rdx
mov rdi, rcx
mov dword [rbp - 0x61], 0
lea rdx, [rbp - 0x69]
lea rcx, [rbp + 0x7f]
call fcn.1400c5bb0
nop
mov edx, 0x40
test r9d, r9d
cmovne edx, r9d
mov dword [rbp - 0x55], edx
cmp edx, 0x40
jle 0x1400c5777
movsxd rcx, edx
add rcx, rcx
call fcn.1401844dc
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x1400c576f
call fcn.140031300
mov rax, qword [rbp - 0x51]
mov edx, dword [rbp - 0x55]
mov dword [rbp - 0x59], edx
jmp 0x1400c5786
lea rax, [rbp - 0x49]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x59], 0x40
mov r9d, edx
mov r8, rax
mov edx, ebx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400c5891
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x50
jne 0x1400c5802
test eax, eax
jne 0x1400c5802
mov rbx, qword [rbp - 0x69]
mov qword [rsi], rbx
mov eax, dword [rbx]
inc eax
cmp eax, 1
jbe 0x1400c57c4
lock inc dword [rbx]
mov rbx, qword [rbp - 0x69]
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
cmp rcx, rax
je 0x1400c57d7
call fcn.14017f9d4
nop
mov eax, dword [rbx]
test eax, eax
je 0x1400c57fa
cmp eax, 0xffffffff
je 0x1400c591d
or edi, 0xffffffff
lock xadd dword [rbx], edi
cmp edi, 1
jne 0x1400c591d
mov rbx, qword [rbp - 0x69]
mov rcx, rbx
jmp 0x1400c590e
cmp eax, 0x7a
je 0x1400c5843
lea rax, [0x1401e6610]
mov qword [rsi], rax
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
cmp rcx, rax
je 0x1400c5824
call fcn.14017f9d4
nop
mov rcx, qword [rbp - 0x69]
mov eax, dword [rcx]
test eax, eax
je 0x1400c590e
cmp eax, 0xffffffff
je 0x1400c591d
or edi, 0xffffffff
jmp 0x1400c5901
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
test eax, eax
je 0x1400c5807
mov dword [rbp + 0x67], eax
lea rax, [rbp - 0x59]
lea rcx, [rbp + 0x67]
cmp edx, dword [rbp - 0x59]
cmovge rax, rcx
mov r8d, dword [rax]
lea rcx, [rbp - 0x59]
call fcn.140063720
mov r9d, dword [rbp - 0x55]
mov r8, qword [rbp - 0x51]
mov edx, ebx
mov ecx, dword [rdi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c5807
mov rdx, qword [rbp - 0x51]
cmp ebx, 0x50
jne 0x1400c58d0
cmp word [rdx], 0
jne 0x1400c58d0
mov rbx, qword [rbp - 0x69]
mov qword [rsi], rbx
mov eax, dword [rbx]
inc eax
cmp eax, 1
jbe 0x1400c58bb
lock inc dword [rbx]
mov rbx, qword [rbp - 0x69]
mov rdx, qword [rbp - 0x51]
lea rax, [rbp - 0x49]
cmp rdx, rax
je 0x1400c57d7
mov rcx, rdx
jmp 0x1400c57d1
or edi, 0xffffffff
mov r8d, edi
mov rcx, rsi
call fcn.1400091b0
nop
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
cmp rcx, rax
je 0x1400c58f2
call fcn.14017f9d4
nop
mov rcx, qword [rbp - 0x69]
mov eax, dword [rcx]
test eax, eax
je 0x1400c590e
cmp eax, 0xffffffff
je 0x1400c591d
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400c591d
mov rcx, qword [rbp - 0x69]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cfa0
mov rax, rsi
mov rbx, qword [rsp + 0xf8]
add rsp, 0xd0
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400c5940
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov qword [rbp + 0x37], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp - 0x69], r14d
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 0x7f]
call fcn.1400c5bc0
nop
mov edx, 0x40
test r9d, r9d
cmovne edx, r9d
mov dword [rbp - 0x55], edx
cmp edx, 0x40
jle 0x1400c59b9
movsxd rcx, edx
add rcx, rcx
call fcn.1401844dc
mov qword [rbp - 0x51], rax
test rax, rax
jne 0x1400c59b1
call fcn.140031300
mov rax, qword [rbp - 0x51]
mov edx, dword [rbp - 0x55]
mov dword [rbp - 0x59], edx
jmp 0x1400c59c8
lea rax, [rbp - 0x49]
mov qword [rbp - 0x51], rax
mov dword [rbp - 0x59], 0x40
mov r9d, edx
mov r8, rax
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400c5aa4
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, 0x50
jne 0x1400c5a2e
test eax, eax
jne 0x1400c5a2e
lea rdx, [rbp - 0x79]
mov rcx, rdi
call fcn.1400b9ad0
nop
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
cmp rcx, rax
je 0x1400c5a0f
call fcn.14017f9d4
nop
mov rcx, qword [rbp - 0x79]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5b2e
cmp eax, 0xffffffff
je 0x1400c5b3d
or ebx, 0xffffffff
jmp 0x1400c5b21
cmp eax, 0x7a
je 0x1400c5a3f
mov dword [rdi + 8], 0x80000000
mov qword [rdi], r14
jmp 0x1400c59fc
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
test eax, eax
jne 0x1400c5a61
mov dword [rdi + 8], 0x80000000
mov qword [rdi], r14
jmp 0x1400c59fc
mov dword [rbp + 0x67], edx
lea rax, [rbp - 0x59]
lea rcx, [rbp + 0x67]
cmp edx, dword [rbp - 0x59]
cmovge rax, rcx
mov r8d, dword [rax]
lea rcx, [rbp - 0x59]
call fcn.140063720
mov r9d, dword [rbp - 0x55]
mov r8, qword [rbp - 0x51]
mov edx, ebx
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400c5aa4
mov dword [rdi + 8], 0x80000000
mov qword [rdi], r14
jmp 0x1400c59fc
mov rdx, qword [rbp - 0x51]
cmp ebx, 0x50
jne 0x1400c5ab7
cmp word [rdx], 0
je 0x1400c59ef
or ebx, 0xffffffff
mov r8d, ebx
lea rcx, [rbp - 0x71]
call fcn.1400091b0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400b9ad0
nop
mov rcx, qword [rbp - 0x71]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5af0
cmp eax, ebx
je 0x1400c5aff
mov eax, ebx
lock xadd dword [rcx], eax
cmp eax, 1
jne 0x1400c5aff
mov rcx, qword [rbp - 0x71]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
nop
lea rax, [rbp - 0x49]
mov rcx, qword [rbp - 0x51]
cmp rcx, rax
je 0x1400c5b12
call fcn.14017f9d4
nop
mov rcx, qword [rbp - 0x79]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5b2e
cmp eax, 0xffffffff
je 0x1400c5b3d
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400c5b3d
mov rcx, qword [rbp - 0x79]
mov r8d, 8
lea edx, [r8 - 6]
call fcn.14002cfa0
mov rax, rdi
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1400c5bd0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x1410cc870]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, rdx
xor edi, edi
mov dword [rsp + 0x28], edi
lea r9d, [rdi + 0xf]
lea r8, [rsp + 0x38]
lea edx, [rdi + 0x28]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400c5c66
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400091b0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400b9ad0
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400c5c56
cmp eax, edi
je 0x1400c5c70
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400c5c70
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002cfa0
jmp 0x1400c5c70
mov dword [rbx + 8], 0x80000000
mov qword [rbx], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14015c110
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret