joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14007d040
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 0x14007d1ca
cmp dword [rax + 0xa0], esi
jne 0x14007d19e
cmp qword [rax + 0x78], 0
jne 0x14007d19e
lea rcx, [rax + 0x20]
mov rax, qword [rcx]
cmp dword [rax + 4], 0
jne 0x14007d0a3
mov rax, qword [rcx + 8]
cmp dword [rax + 4], 0
je 0x14007d217
lea rdx, [rsp + 0x80]
call fcn.140059030
nop
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.140013670
nop
mov rcx, qword [rsp + 0x80]
mov eax, dword [rcx]
or esi, 0xffffffff
test eax, eax
je 0x14007d0ec
cmp eax, esi
je 0x14007d0fa
mov eax, esi
lock xadd dword [rcx], eax
mov rbx, qword [rsp + 0x78]
cmp eax, 1
jne 0x14007d0fa
mov rcx, qword [rsp + 0x80]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
mov dword [rsp + 0x70], 3
mov edx, 3
lea rcx, [rsp + 0x28]
call fcn.140014180
test al, al
je 0x14007d192
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140014f70
movzx ebx, al
test al, al
jne 0x14007d180
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x28]
call fcn.140034990
nop
mov r8, rax
mov edx, 0xc
mov rcx, rdi
call fcn.140058d30
nop
mov rcx, qword [rsp + 0x88]
mov eax, dword [rcx]
test eax, eax
je 0x14007d171
cmp eax, 0xffffffff
je 0x14007d180
lock xadd dword [rcx], esi
cmp esi, 1
jne 0x14007d180
mov rcx, qword [rsp + 0x88]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
nop
lea rcx, [rsp + 0x28]
call fcn.140013740
movzx eax, bl
jmp 0x14007d219
lea rcx, [rsp + 0x28]
call fcn.140013740
jmp 0x14007d217
cmp rsi, 0xffffffffffffffff
jne 0x14007d1ca
mov rcx, qword [rax + 0x78]
test rcx, rcx
je 0x14007d1b6
call fcn.140139b2c
mov ecx, eax
jmp 0x14007d1bc
mov ecx, dword [rax + 0xa0]
call fcn.1401393ac
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x14007d217
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 0x14007d20b
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x14007d20b
mov rax, qword [rdi]
cmp rbp, rbx
cmovl rbx, rbp
mov rdx, rbx
mov rcx, rdi
call qword [rax + 0x38]
mov al, 1
jmp 0x14007d219
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 0x140084b60
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
cmp qword [rcx + 0x1f8], 0
mov rdi, rdx
mov rbx, rcx
je 0x140084b9a
mov rcx, qword [rcx + 0x1f8]
mov qword [rsp + 0x60], rdx
test rcx, rcx
je 0x140084c51
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 + 0x120]
test eax, eax
setne dil
cmp rcx, 0xffffffffffffffff
je 0x140084c06
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x120], 0xffffffffffffffff
mov rcx, qword [rbx + 0x160]
cmp rcx, 0xffffffffffffffff
je 0x140084c24
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x160], 0xffffffffffffffff
mov rcx, qword [rbx + 0x198]
cmp rcx, 0xffffffffffffffff
je 0x140084c42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x198], 0xffffffffffffffff
movzx eax, dil
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.140108694
int3
Function at 0x140086230
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 [0x14042b130]
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.1400b6220
lea r8, [rsp + 0x44]
mov rcx, rax
lea rdx, [rsp + 0x40]
call fcn.1400b6050
mov ebx, dword [rsp + 0x40]
call fcn.14003ae40
mov r9, rax
mov dword [rsp + 0x20], ebx
lea r8, str..pipeqt__lX__X
mov edx, 0x100
lea rcx, [rsp + 0x80]
call fcn.140087c00
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 0x14008634a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x140086337
add edi, 0xffffffff
jne 0x1400862a0
lea rdx, str.QProcess:_CreateNamedPipe_failed.
mov ecx, eax
call fcn.140010f80
jmp 0x14008645d
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 0x1400863b0
lea rcx, str.QProcess:_CreateFile_failed.
call fcn.140011130
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14008645d
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 0x14008643d
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x14008643d
cmp eax, 0x3e5
je 0x14008642f
lea rdx, str.QProcess:_ConnectNamedPipe_failed.
mov ecx, eax
call fcn.140010f80
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 0x14008645d
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 0x140086456
mov qword [rsi], rdi
mov qword [rsi + 8], rbx
jmp 0x14008645d
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14010b650
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 0x140088220
Capabilities:
Terminate process

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rdi, qword [rcx + 8]
movzx esi, dl
mov rbp, rcx
cmp byte [rdi + 0x84], dl
je 0x140088315
mov rax, qword [rdi + 0x38]
mov qword [rsp + 0x70], r14
mov byte [rdi + 0x84], dl
mov r14, qword [rax + 0x48]
test r14, r14
jne 0x14008827c
test dl, dl
jne 0x140088310
cmp qword [rdi + 0x78], r14
je 0x140088310
mov rcx, rdi
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
jmp fcn.140088320
mov qword [rsp + 0x60], rbx
call fcn.1400581a0
mov rbx, rax
call fcn.14004cb40
cmp rbx, rax
mov rbx, qword [rsp + 0x60]
je 0x1400882d4
xorps xmm0, xmm0
mov qword [rsp + 0x20], 2
lea rax, [0x1402dd7d0]
lea rdx, str.QWinEventNotifier:_Event_notifiers_cannot_be_enabled_or_disabled_from_another_thread
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.140013420
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov rdx, rbp
mov rcx, r14
test sil, sil
je 0x140088307
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x68]
mov dword [rdi + 0x80], eax
mov rax, qword [r14]
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
jmp qword [rax + 0xa0]
mov rax, qword [r14]
call qword [rax + 0xa8]
mov r14, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140088320
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
or rdx, 0xffffffffffffffff
mov rcx, qword [rcx + 0x78]
call qword [sym.imp.KERNEL32.dll_UnregisterWaitEx]
test eax, eax
je 0x140088349
mov qword [rbx + 0x78], 0
add rsp, 0x20
pop rbx
ret
lea rcx, str.QWinEventNotifier:_UnregisterWaitEx_failed.
add rsp, 0x20
pop rbx
jmp fcn.140011130
Function at 0x14008ce70
Capabilities:
Encode data using add xor sub operations

Disassembly:
mov r8, qword [rcx]
mov r9, qword [rcx + 8]
test r8, r8
je 0x14008cea6
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 0x14008ce80
mov eax, edx
ret

Function at 0x14009f8f0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
mov rdi, rdx
mov rsi, rcx
test rdx, rdx
jne 0x14009f93f
xorps xmm0, xmm0
mov qword [rsp + 0x20], 2
lea rax, [0x1402dd7d0]
lea rdx, str.QWinEventNotifier:_Internal_error
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.140013420
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
mov qword [rsp + 0x50], rbx
call fcn.1400581a0
mov rcx, rsi
mov rbx, rax
call fcn.1400581a0
cmp rbx, rax
jne 0x14009fa1b
mov rcx, rsi
call fcn.1400581a0
mov rbx, rax
call fcn.14004cb40
cmp rbx, rax
jne 0x14009fa1b
mov rbx, qword [rsi + 8]
mov r8, qword [rbx + 0xe0]
movsxd rcx, dword [r8 + 0xc]
movsxd r9, dword [r8 + 8]
mov eax, ecx
sub eax, r9d
test eax, eax
jle 0x14009fa4a
lea rdx, [rcx + 2]
lea rcx, [r8 + 0x10]
lea rcx, [rcx + r9*8]
lea rdx, [r8 + rdx*8]
cmp rcx, rdx
je 0x14009fa4a
cmp qword [rcx], rdi
je 0x14009f9d0
add rcx, 8
cmp rcx, rdx
jne 0x14009f9b2
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
lea rax, [r9*8 + 0x10]
sub rcx, rax
sub rcx, r8
sar rcx, 3
cmp ecx, 0xffffffff
je 0x14009fa4a
mov edx, ecx
lea rcx, [rbx + 0xe0]
call fcn.14009f890
mov byte [rbx + 0xe8], 1
mov rcx, qword [rdi + 8]
cmp qword [rcx + 0x78], 0
je 0x14009fa4a
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
jmp fcn.140088320
xorps xmm0, xmm0
mov qword [rsp + 0x20], 2
lea rax, [0x1402dd7d0]
lea rdx, str.QWinEventNotifier:_event_notifiers_cannot_be_disabled_from_another_thread
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x20]
movdqu xmmword [rsp + 0x28], xmm0
call fcn.140013420
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x1400b5d40
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 0x1400b5d70
mov rcx, rbx
mov dword [rbx], 0x270
call fcn.1400b5e20
mov rax, rbx
add rsp, 0x20
pop rbx
ret
Function at 0x1400b5ec0
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 0x1400b5f1b
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 0x1400b5ee0
jmp 0x1400b5f27
cmp eax, 0x4e0
jb 0x1400b5f27
call fcn.1400b5f70
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 0x1400b5f70
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 0x1400b5f80
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 0x1400b5fd0
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 0x1400b6050
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 0x1400b60ea
mov qword [rsp + 0x30], rbp
mov ebp, 1
mov qword [rsp + 0x38], r14
lea r14, [0x140431640]
cmp rcx, r14
jne 0x1400b60a1
xor eax, eax
lock cmpxchg qword [0x140431600], rbp
je 0x1400b60a1
lea rcx, [0x140431600]
call fcn.1400429d0
mov r8, rbx
mov rdx, rdi
mov rcx, rsi
call fcn.1400b5db0
cmp rbx, r14
mov r14, qword [rsp + 0x38]
jne 0x1400b60d5
xor edx, edx
mov rax, rbp
lock cmpxchg qword [0x140431600], rdx
je 0x1400b60d5
lea rcx, [0x140431600]
call fcn.140042db0
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x14043160c]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
jmp fcn.1400b6110
Function at 0x1400b6110
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 rsi, r8
mov r14, rdx
sub rsi, rdx
sar rsi, 2
xor ebp, ebp
mov ebx, ebp
mov rax, qword [0x140432ac0]
test rax, rax
jne 0x1400b6156
call fcn.1400dfbf0
nop
mov rax, qword [0x140432ac0]
bt rax, 0xc
jae 0x1400b619c
mov rbx, r14
lea rcx, [r14 + rsi*4]
lea rax, [r14 + 8]
cmp rax, rcx
ja 0x1400b6185
nop dword [rax]
rdrand rdx
mov qword [rbx], rdx
jae 0x1400b6195
mov rbx, rax
add rax, 8
cmp rax, rcx
jbe 0x1400b6170
cmp rbx, rcx
je 0x1400b6195
rdrand eax
mov dword [rbx], eax
jb 0x1400b6195
add rbx, 4
sub rbx, r14
sar rbx, 2
cmp rbx, rsi
je 0x1400b61ff
mov rdi, rsi
sub rdi, rbx
shl rdi, 2
lea rcx, [r14 + rbx*4]
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
nop
test al, al
cmovne rbp, rdi
mov rax, rbp
cqo
and edx, 3
add rax, rdx
sar rax, 2
add rbx, rax
cmp rbx, rsi
je 0x1400b61ff
lea rdi, [r14 + rbx*4]
sub rsi, rbx
lea rbx, [rdi + rsi*4]
cmp rdi, rbx
je 0x1400b61ff
lea rcx, [rsp + 0x58]
call fcn.140139b54
nop
mov eax, dword [rsp + 0x58]
mov dword [rdi], eax
add rdi, 4
cmp rdi, rbx
jne 0x1400b61e5
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret

Function at 0x1400bccd0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x80], rbx
mov rax, qword [0x14042b130]
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 0x1400bcd66
or edi, 0xffffffff
mov r8d, edi
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400090f0
nop
mov rdx, rax
mov rcx, rbx
call fcn.1400b1160
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400bcd56
cmp eax, edi
je 0x1400bcd70
lock xadd dword [rcx], edi
cmp edi, 1
jne 0x1400bcd70
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400bcd70
mov dword [rbx + 8], 0x80000000
mov qword [rbx], rdi
mov rax, rbx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14010b650
mov rbx, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret
Function at 0x1400bcd90
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x18]
sub rsp, 0x110
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rbp], rax
mov rdi, rdx
mov rbx, rcx
mov dword [rsp + 0x40], 0
test r8d, r8d
je 0x1400bcf6f
sub r8d, 1
je 0x1400bcefb
cmp r8d, 1
jne 0x1400bcfd7
mov dword [rsp + 0x54], 0x40
lea rax, [rsp + 0x60]
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x50], 0x40
lea r9d, [r8 + 0x3f]
lea r8, [rsp + 0x60]
mov edx, 0x1008
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400bce90
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1400bce45
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x1400bcfd7
call fcn.14012ef24
jmp 0x1400bcfd7
mov dword [rsp + 0x20], 0xff
lea rax, [rsp + 0x50]
lea rcx, [rsp + 0x20]
cmp dword [rsp + 0x50], 0xff
cmovle rax, rcx
mov r8d, dword [rax]
mov edx, 0xff
lea rcx, [rsp + 0x50]
call fcn.14005fdd0
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x58]
mov edx, 0x1008
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400bce28
or ebx, 0xffffffff
mov r8d, ebx
mov rdx, qword [rsp + 0x58]
lea rcx, [rsp + 0x28]
call fcn.1400090f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400b1160
nop
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx]
test eax, eax
je 0x1400bcecf
cmp eax, ebx
je 0x1400bcede
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400bcede
mov rcx, qword [rsp + 0x28]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
nop
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x1400bcfe5
call fcn.14012ef24
jmp 0x1400bcfe5
mov r9d, 0xd
lea r8, [rbp - 0x20]
lea edx, [r9 + 7]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400bcfd7
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x30]
call fcn.1400090f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400b1160
nop
mov rcx, qword [rsp + 0x30]
mov eax, dword [rcx]
test eax, eax
je 0x1400bcf5f
cmp eax, ebx
je 0x1400bcfe5
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400bcfe5
mov rcx, qword [rsp + 0x30]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400bcfe5
mov r9d, 9
lea r8, [rbp - 0x20]
lea edx, [r9 + 0xc]
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400bcfd7
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rbp - 0x20]
lea rcx, [rsp + 0x38]
call fcn.1400090f0
nop
mov rdx, rax
mov rcx, rdi
call fcn.1400b1160
nop
mov rcx, qword [rsp + 0x38]
mov eax, dword [rcx]
test eax, eax
je 0x1400bcfc7
cmp eax, ebx
je 0x1400bcfe5
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400bcfe5
mov rcx, qword [rsp + 0x38]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400bcfe5
mov dword [rdi + 8], 0x80000000
mov qword [rdi], 0
mov rax, rdi
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.14010b650
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x1400bd5a0
Capabilities:
Get geographical location

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x14042b130]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rdi, rdx
mov dword [rsp + 0x28], 0
mov r9d, 4
lea r8, [rsp + 0x38]
mov edx, 0x100c
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x1400bd647
or ebx, 0xffffffff
mov r8d, ebx
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.1400090f0
nop
xor edx, edx
lea r8d, [rbx + 0xb]
mov rcx, rax
call fcn.140021760
lea edx, [rax + 1]
mov rcx, rdi
call fcn.1400b1340
nop
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx]
test eax, eax
je 0x1400bd637
cmp eax, ebx
je 0x1400bd654
lock xadd dword [rcx], ebx
cmp ebx, 1
jne 0x1400bd654
mov rcx, qword [rsp + 0x20]
mov edx, 2
lea r8d, [rdx + 6]
call fcn.14002d570
jmp 0x1400bd654
mov edx, 1
mov rcx, rdi
call fcn.1400b1290
mov rax, rdi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14010b650
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret

Function at 0x1400bd670
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp + 0x47], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov edi, r8d
mov rbx, rdx
mov rsi, rcx
mov dword [rbp - 0x59], 0
mov eax, 0x40
test r9d, r9d
cmovne eax, r9d
mov dword [rbp - 0x45], eax
cmp eax, 0x40
jle 0x1400bd6df
movsxd rcx, eax
add rcx, rcx
call fcn.140130010
mov r8, rax
mov qword [rbp - 0x41], rax
test rax, rax
jne 0x1400bd6d7
call fcn.1400315a0
mov r8, qword [rbp - 0x41]
mov eax, dword [rbp - 0x45]
mov dword [rbp - 0x49], eax
jmp 0x1400bd6ee
lea r8, [rbp - 0x39]
mov qword [rbp - 0x41], r8
mov dword [rbp - 0x49], 0x40
mov r9d, eax
mov edx, edi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400bd70b
lea rax, [0x140193080]
mov qword [rbx], rax
jmp 0x1400bd789
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1400bd778
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov edx, eax
test eax, eax
jne 0x1400bd738
lea rax, [0x140193080]
mov qword [rbx], rax
jmp 0x1400bd789
mov dword [rbp + 0x7f], edx
lea rax, [rbp - 0x49]
lea rcx, [rbp + 0x7f]
cmp edx, dword [rbp - 0x49]
cmovge rax, rcx
mov r8d, dword [rax]
lea rcx, [rbp - 0x49]
call fcn.14005fdd0
mov r9d, dword [rbp - 0x45]
mov r8, qword [rbp - 0x41]
mov edx, edi
mov ecx, dword [rsi]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400bd778
lea rax, [0x140193080]
mov qword [rbx], rax
jmp 0x1400bd789
or r8d, 0xffffffff
mov rdx, qword [rbp - 0x41]
mov rcx, rbx
call fcn.1400090f0
nop
lea rax, [rbp - 0x39]
mov rcx, qword [rbp - 0x41]
cmp rcx, rax
je 0x1400bd79b
call fcn.14012ef24
mov rax, rbx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret