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

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov rdi, qword [rdx]
mov ebx, dword [rdx + 8]
test ebx, ebx
jne 0x140078735
xor eax, eax
jmp 0x140078858
mov qword [rbp - 0x40], rdi
test r8b, r8b
je 0x1400787b7
lea r14, [rbp - 0x44]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov qword [rbp - 0x54], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, r14
mov qword [rbp - 0x64], r9
lea rcx, [rbp - 0x90]
call fcn.140004560
mov rcx, qword [rbp - 0x54]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x64]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x90]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
call fcn.140002f80
mov dword [rax + 8], esi
xor esi, esi
test ebx, ebx
setne sil
jmp 0x140078839
mov r14d, ebx
shr r14d, 0x1f
add ebx, r14d
sar ebx, 1
lea r14, [rbp - 0x48]
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
xor ecx, ecx
mov qword [rsp + 0x20], rcx
mov rcx, rsi
mov qword [rbp - 0x64], rcx
mov rdx, rdi
mov qword [rbp - 0x5c], rdx
mov r8d, ebx
mov dword [rbp - 0x4c], r8d
mov r9, r14
mov qword [rbp - 0x54], r9
lea rcx, [rbp - 0x90]
call fcn.140004560
mov rcx, qword [rbp - 0x64]
mov rdx, qword [rbp - 0x5c]
mov r8d, dword [rbp - 0x4c]
mov r9, qword [rbp - 0x54]
call sub.KERNEL32.dll_WriteConsoleW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.1400045b0
call sub.KERNEL32.dll_GetLastError
mov edi, eax
test esi, esi
setne sil
movzx esi, sil
call fcn.140002f80
mov dword [rax + 8], edi
xor edx, edx
mov qword [rbp - 0x40], rdx
test esi, esi
je 0x140078847
xor eax, eax
jmp 0x140078858
mov eax, dword [rax + 8]
cmp eax, 0xe8
je 0x140078856
cmp eax, 0x6d
jne 0x140078858
xor eax, eax
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x14007b4f0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0xc0]
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp + 0x10], rcx
mov rsi, rdx
mov rdi, r8
mov rbx, r9
xor edx, edx
mov dword [rbp - 0x40], edx
lea rdx, [rbp - 0x40]
cmp dword [rcx], ecx
call fcn.140135c30
mov rcx, qword [rbp + 0x10]
mov rdx, qword [rcx + 8]
test rsi, rsi
je 0x14007b541
add rsi, 0xc
jmp 0x14007b543
xor esi, esi
mov qword [rbp - 0x48], rsi
mov r14, qword [rbp + 0x30]
mov qword [rsp + 0x20], r14
mov r14, qword [rbp + 0x38]
mov qword [rsp + 0x28], r14
mov rcx, rdx
mov qword [rbp - 0x50], rcx
mov rdx, rsi
mov qword [rbp - 0x58], rdx
mov r8, rdi
mov qword [rbp - 0x60], r8
mov r9, rbx
mov qword [rbp - 0x68], r9
lea rcx, [rbp - 0x90]
call fcn.140004560
mov rcx, qword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
mov r8, qword [rbp - 0x60]
mov r9, qword [rbp - 0x68]
call sub.ADVAPI32.dll_RegQueryValueExW
mov esi, eax
lea rcx, [rbp - 0x90]
call fcn.1400045b0
nop
xor ecx, ecx
mov qword [rbp - 0x48], rcx
cmp byte [rbp - 0x40], 0
je 0x14007b5bc
mov rcx, qword [rbp + 0x10]
xor edx, edx
call fcn.140135ca0
mov eax, esi
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x14007f290
Capabilities:
Set registry value

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x18], rdx
mov rsi, rcx
mov edi, r8d
mov ebx, r9d
mov r14, qword [rbp + 0x30]
test rdx, rdx
je 0x14007f308
mov r8d, dword [rdx + 8]
lea rcx, [rdx + 0xc]
mov qword [rbp - 0x50], rcx
mov rcx, qword [rbp - 0x50]
mov dword [rsp + 0x20], 1
xor r9d, r9d
mov dword [rsp + 0x28], r9d
mov edx, r8d
xor r8d, r8d
mov r9d, 1
call fcn.1401347c0
mov r15, rax
jmp 0x14007f30b
xor r15d, r15d
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x48], r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov qword [rsp + 0x20], r14
mov r14d, dword [rbp + 0x38]
mov dword [rsp + 0x28], r14d
mov rcx, rsi
mov qword [rbp - 0x68], rcx
mov rdx, r15
mov qword [rbp - 0x70], rdx
mov r8d, edi
mov dword [rbp - 0x54], r8d
mov r9d, ebx
mov dword [rbp - 0x58], r9d
lea rcx, [rbp - 0x98]
call fcn.140004560
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x70]
mov r8d, dword [rbp - 0x54]
mov r9d, dword [rbp - 0x58]
call sub.ADVAPI32.dll_RegSetValueExA
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.1400045b0
call fcn.140002f80
mov rdi, rax
mov qword [rbp - 0x60], rdi
call sub.KERNEL32.dll_GetLastError
mov rcx, qword [rbp - 0x60]
mov dword [rcx + 8], eax
cmp qword [rbp + 0x18], 0
je 0x14007f3aa
mov rcx, qword [rbp - 0x40]
test rcx, 0xffffffffffff0000
je 0x14007f3aa
call fcn.14015ef90
mov eax, esi
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x140080db0
Capabilities:
Create process on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x48]
test rcx, rcx
jne 0x140080de5
xor ecx, ecx
jmp 0x140080df1
add rcx, 0xc
mov qword [rbp - 0x40], rcx
mov rcx, qword [rbp - 0x40]
test rdx, rdx
jne 0x140080dfa
xor edx, edx
jmp 0x140080e06
add rdx, 0xc
mov qword [rbp - 0x48], rdx
mov rdx, qword [rbp - 0x48]
xor r10d, r10d
cmp byte [rbp + 0x30], 0
setne r10b
test rax, rax
jne 0x140080e1b
xor r11d, r11d
jmp 0x140080e27
add rax, 0xc
mov qword [rbp - 0x50], rax
mov r11, qword [rbp - 0x50]
mov dword [rsp + 0x20], r10d
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x28], eax
mov rax, qword [rbp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], r11
mov rax, qword [rbp + 0x50]
mov qword [rsp + 0x40], rax
mov rax, qword [rbp + 0x58]
mov qword [rsp + 0x48], rax
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x68], r8
mov qword [rbp - 0x70], r9
lea rcx, [rbp - 0x98]
call fcn.140004560
mov rcx, qword [rbp - 0x58]
mov rdx, qword [rbp - 0x60]
mov r8, qword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
call sub.KERNEL32.dll_CreateProcessW
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.1400045b0
xor eax, eax
test esi, esi
setne al
movzx eax, al
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140082520
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xb8
lea rbp, [rsp + 0xf0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0x30]
mov r10, qword [rbp + 0x40]
mov r11, qword [rbp + 0x50]
test rdx, rdx
je 0x14008256b
cmp dword [rdx + 8], 0
je 0x14008256b
add rdx, 0x10
mov qword [rbp - 0x40], rdx
mov rdx, qword [rbp - 0x40]
test rax, rax
je 0x140082582
cmp dword [rax + 8], 0
je 0x140082582
add rax, 0x10
mov qword [rbp - 0x48], rax
mov rax, qword [rbp - 0x48]
test r10, r10
je 0x14008259a
cmp dword [r10 + 8], 0
je 0x14008259a
add r10, 0x10
mov qword [rbp - 0x50], r10
mov r10, qword [rbp - 0x50]
mov qword [rbp - 0x58], r11
mov esi, dword [rbp + 0x38]
mov edi, dword [rbp + 0x48]
mov ebx, dword [rbp + 0x58]
mov dword [rsp + 0x48], ebx
mov qword [rbp - 0x64], rcx
mov qword [rbp - 0x6c], rdx
mov dword [rbp - 0x5c], r8d
mov qword [rbp - 0x74], r9
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], r10
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x40], r11
lea rcx, [rbp - 0xa0]
call fcn.140004560
mov rcx, qword [rbp - 0x64]
mov rdx, qword [rbp - 0x6c]
mov r8d, dword [rbp - 0x5c]
mov r9, qword [rbp - 0x74]
call sub.bcrypt.dll_BCryptDecrypt
mov esi, eax
lea rcx, [rbp - 0xa0]
call fcn.1400045b0
mov eax, esi
add rsp, 0xb8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400a71a0
Capabilities:
Hash data using murmur3

Disassembly:
push r14
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x20
mov esi, ecx
cmp edx, 0xffffffff
jne 0x1400a71bb
mov edi, 0xd5313557
jmp 0x1400a726b
mov ecx, edx
call fcn.1400a70a0
mov rdi, rax
test rdi, rdi
je 0x1400a7288
mov ebx, dword [rdi + 8]
test ebx, ebx
je 0x1400a7288
lea edx, [rbx + 0x14]
lea rcx, [0x14022f118]
call fcn.1400041b0
mov rbp, rax
mov r14d, dword [rbp + 8]
cmp r14d, 0x12
jl 0x1400a72f0
lea rcx, [rbp + 0xc]
lea rdx, [0x1402f7fe8]
add rdx, 0xc
mov r8d, 0x24
call fcn.1400b0c60
lea r8d, [r14 - 0x12]
cmp ebx, r8d
jg 0x1400a730f
lea rcx, [rbp + 0x30]
lea rdx, [rdi + 0xc]
mov r8d, ebx
add r8, r8
call fcn.1400b0c60
add ebx, 0x12
sub r14d, ebx
cmp r14d, 2
jl 0x1400a732e
movsxd rcx, ebx
lea rcx, [rbp + rcx*2 + 0xc]
lea rdx, [0x1402faf88]
add rdx, 0xc
mov r8d, 4
call fcn.1400b0c60
mov rcx, rbp
call fcn.1400a7030
mov edi, eax
mov eax, edi
rol eax, 0xd
add eax, edi
mov edi, eax
xor edi, esi
mov eax, edi
rol eax, 0xf
add eax, edi
add rsp, 0x20
pop rbx
pop rbp
pop rsi
pop rdi
pop r14
ret
lea rcx, [0x14022f118]
mov edx, 0x14
call fcn.1400041b0
mov rbx, rax
mov edi, dword [rbx + 8]
cmp edi, 0x12
jl 0x1400a734d
lea rcx, [rbx + 0xc]
lea rdx, [0x1402f7fe8]
add rdx, 0xc
mov r8d, 0x24
call fcn.1400b0c60
sub edi, 0x12
cmp edi, 2
jl 0x1400a736c
lea rcx, [rbx + 0x30]
lea rdx, [0x1402faf88]
add rdx, 0xc
mov r8d, 4
call fcn.1400b0c60
mov rcx, rbx
jmp 0x1400a7264
lea rcx, [0x140230bf0]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400cf420
mov rcx, rsi
call fcn.140005510
lea rcx, [0x140230bf0]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400cf420
mov rcx, rsi
call fcn.140005510
lea rcx, [0x140230bf0]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400cf420
mov rcx, rsi
call fcn.140005510
lea rcx, [0x140230bf0]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400cf420
mov rcx, rsi
call fcn.140005510
lea rcx, [0x140230bf0]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400cf420
mov rcx, rsi
call fcn.140005510
int3

Function at 0x1400af680
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.140004560
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov esi, eax
lea rcx, [rbp - 0x78]
call fcn.1400045b0
test esi, esi
jne 0x1400af6f4
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp esi, 0xc0000017
jne 0x1400af71b
lea rcx, [0x140231a00]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400dcf60
mov rcx, rsi
call fcn.140005510
lea rcx, [0x1402311e8]
call fcn.1400040f0
mov rsi, rax
mov rcx, rsi
call fcn.1400d0810
mov rcx, rsi
call fcn.140005510
int3
Function at 0x1400afca0
Capabilities:
Inspect section memory permissions

Disassembly:
push rbp
push rsi
sub rsp, 0x48
lea rbp, [rsp + 0x50]
mov rsi, rcx
mov eax, dword [rsi + 0x40]
cmp eax, 0xffffffff
je 0x1400afcbd
add rsp, 0x48
pop rsi
pop rbp
ret
mov dword [rsp + 0x20], 0x10
lea r8, [rbp - 0x10]
lea rdx, [rbp - 0x20]
mov rcx, rsi
mov r9d, 4
call fcn.14015fe10
mov ecx, eax
test ecx, ecx
jne 0x1400afd35
xor eax, eax
test byte [rbp - 0x10], 0x30
jne 0x1400afcee
mov eax, 0x40000000
test byte [rbp - 0x10], 2
je 0x1400afcf9
or eax, 0x80000000
test dword [rbp - 0x10], 0x800
je 0x1400afd07
or eax, 0x10000000
test byte [rbp - 0x10], 4
je 0x1400afd12
or eax, 0x8000000
test dword [rbp - 0x10], 0x1000
je 0x1400afd20
or eax, 0x4000000
test byte [rbp - 0x10], 8
je 0x1400afd2b
or eax, 0x20000000
mov dword [rsi + 0x40], eax
add rsp, 0x48
pop rsi
pop rbp
ret
call fcn.14015fda0
mov ecx, eax
lea rdx, [0x1402e7008]
call fcn.14012be70
mov rcx, rax
call fcn.140005510
int3

Function at 0x1400b9a50
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r12
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x20]
xor eax, eax
mov qword [rbp + 8], rax
xorps xmm4, xmm4
movaps xmmword [rbp + 0x10], xmm4
movaps xmmword [rbp + 0x20], xmm4
mov rax, qword [0x140308240]
mov qword [rbp], rax
mov rsi, rcx
mov edi, dword [rsi + 8]
xor ebx, ebx
cmp edi, 0x40
jae 0x1400b9aa3
test dword [rsp], esp
sub rsp, 0x80
lea r14, [rsp + 0x20]
mov r15d, 0x40
jmp 0x1400b9acd
call fcn.1400028b9
mov rcx, qword [rax + 8]
lea edx, [rdi + 1]
mov rax, qword [rcx]
call qword [rax + 0x30]
mov rbx, rax
test rbx, rbx
jne 0x1400b9ac5
xor r14d, r14d
xor r15d, r15d
jmp 0x1400b9acd
lea r14, [rbx + 0x10]
mov r15d, dword [rbx + 8]
lea rcx, [rsi + 0xc]
mov edx, dword [rsi + 8]
mov edx, edi
mov qword [rbp + 0x18], rcx
mov dword [rbp + 0x20], edx
mov qword [rbp + 8], r14
mov dword [rbp + 0x10], r15d
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 8]
call fcn.1400ffb60
cmp edi, r15d
jae 0x1400b9bbc
mov eax, edi
mov word [r14 + rax*2], 0
mov esi, 0x15051505
mov r12d, 0x15051505
xor eax, eax
test r15d, r15d
je 0x1400b9b19
mov rax, r14
mov qword [rbp + 0x28], rax
cmp edi, 2
jle 0x1400b9b54
add edi, 0xfffffffc
mov edx, esi
rol edx, 5
add esi, edx
mov edx, dword [rax]
or edx, 0x200020
xor esi, edx
mov edx, r12d
rol edx, 5
add r12d, edx
mov edx, dword [rax + 4]
or edx, 0x200020
xor r12d, edx
add rax, 8
cmp edi, 2
jg 0x1400b9b22
test edi, edi
jle 0x1400b9b6e
mov edx, r12d
rol edx, 5
add edx, r12d
mov r12d, dword [rax]
or r12d, 0x200020
xor r12d, edx
xor eax, eax
mov qword [rbp + 0x28], rax
test rbx, rbx
je 0x1400b9b8e
call fcn.1400028b9
mov rcx, qword [rax + 8]
mov rdx, rbx
xor r8d, r8d
mov rax, qword [rcx]
call qword [rax + 0x38]
imul eax, r12d, 0x5d588b65
add eax, esi
lea rcx, [0x140308240]
mov rcx, qword [rcx]
cmp qword [rbp], rcx
je 0x1400b9bac
call fcn.140004930
nop
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rdi
pop r12
pop r14
pop r15
pop rbp
ret
call fcn.14015c610
int3
Function at 0x1400bfbb0
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rdx
mov edi, dword [rcx + 4]
call fcn.140159480
test rax, rax
jne 0x1400bfbcb
xor ebx, ebx
jmp 0x1400bfbec
mov rcx, rax
mov edx, 2
xor r8d, r8d
call fcn.14016e7d0
mov edx, eax
and edx, 7
and eax, 0xffffff00
shr eax, 5
or edx, eax
mov ebx, edx
add ebx, 0x10
sub edi, ebx
xor eax, eax
xor edx, edx
mov ecx, edi
sar ecx, 0x1f
and ecx, 3
add ecx, edi
sar ecx, 2
test ecx, ecx
jle 0x1400bfc1a
mov r8d, edx
shl r8d, 2
movsxd r8, r8d
xor eax, dword [rsi + r8]
inc edx
cmp ecx, edx
jg 0x1400bfc06
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x1400e9480
Capabilities:
Hash data using sha1

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
cmp qword [rsi], 0
jne 0x1400e94aa
lea rcx, [0x140277f20]
mov edx, 0x55
call fcn.140004210
mov rdx, rax
mov rcx, rsi
call fcn.140004430
xor eax, eax
mov qword [rsi + 8], rax
mov dword [rsi + 0x10], eax
mov rax, qword [rsi]
cmp dword [rax + 8], 0x50
jbe 0x1400e9518
mov dword [rax + 0x150], 0x67452301
mov rax, qword [rsi]
cmp dword [rax + 8], 0x51
jbe 0x1400e9518
mov dword [rax + 0x154], 0xefcdab89
mov rax, qword [rsi]
cmp dword [rax + 8], 0x52
jbe 0x1400e9518
mov dword [rax + 0x158], 0x98badcfe
mov rax, qword [rsi]
cmp dword [rax + 8], 0x53
jbe 0x1400e9518
mov dword [rax + 0x15c], 0x10325476
mov rax, qword [rsi]
cmp dword [rax + 8], 0x54
jbe 0x1400e9518
mov dword [rax + 0x160], 0xc3d2e1f0
add rsp, 0x20
pop rsi
ret
call fcn.14015c610
int3
Function at 0x1400ec1e0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0xd0]
xor eax, eax
mov qword [rbp - 0x58], rax
xorps xmm4, xmm4
movaps xmmword [rbp - 0x50], xmm4
mov qword [rbp - 0x40], rax
mov qword [rbp + 0x18], rdx
mov dword [rbp + 0x20], r8d
mov rsi, rcx
call fcn.14000120b
cmp byte [rax], 0
je 0x1400ec23a
mov r8d, dword [rbp + 0x20]
movzx r8d, r8w
mov rcx, rsi
mov rdx, qword [rbp + 0x18]
call fcn.1400ec520
jmp 0x1400ec409
mov r8d, dword [rbp + 0x20]
movzx r8d, r8w
mov rcx, rsi
mov rdx, qword [rbp + 0x18]
call fcn.1400eaf00
mov edi, eax
test edi, edi
je 0x1400ec407
cmp byte [rsi + 0x90], 0
je 0x1400ec407
mov ecx, dword [rbp + 0x20]
movzx eax, cx
add eax, 0xfffffff3
cmp eax, 8
ja 0x1400ec28b
mov edx, 0x1fd
bt edx, eax
jb 0x1400ec285
mov word [rbp + 0x20], 3
jmp 0x1400ec28b
mov word [rbp + 0x20], 2
lea rcx, [rbp + 0x20]
lea rdx, [rbp + 0x18]
call fcn.1400ec7f0
mov rcx, qword [rbp + 0x18]
mov edx, dword [rbp + 0x20]
movzx edx, dx
mov qword [rbp + 0x10], rsi
lea r8, [rsi + 0x88]
test rcx, rcx
je 0x1400ec2b8
add rcx, 0xc
jmp 0x1400ec2ba
xor ecx, ecx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x48], r8
xor r9d, r9d
mov qword [rsp + 0x20], r9
mov dword [rsp + 0x28], r9d
mov qword [rbp - 0x68], rcx
mov dword [rbp - 0x5c], edx
mov qword [rsp + 0x30], r8
xor r8d, r8d
mov qword [rbp - 0x70], r8
mov r9d, 0x20000030
mov dword [rbp - 0x60], r9d
lea rcx, [rbp - 0x98]
call fcn.140004560
mov rcx, qword [rbp - 0x68]
mov edx, dword [rbp - 0x5c]
mov r8, qword [rbp - 0x70]
mov r9d, dword [rbp - 0x60]
call sub.KERNEL32.dll_GetCalendarInfoEx
mov esi, eax
lea rcx, [rbp - 0x98]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp - 0x48], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x40], rcx
mov qword [rbp - 0x48], rcx
xor ecx, ecx
test esi, esi
setne cl
and edi, ecx
mov rcx, qword [rbp + 0x18]
xor r8d, r8d
mov dword [rbp - 0x50], r8d
test rcx, rcx
je 0x1400ec34b
add rcx, 0xc
jmp 0x1400ec34d
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x70], rcx
lea r8, [rbp - 0x50]
mov qword [rbp - 0x68], r8
mov edx, 0x20001009
mov dword [rbp - 0x60], edx
mov r9d, 4
mov dword [rbp - 0x5c], r9d
lea rcx, [rbp - 0x98]
call fcn.140004560
mov rcx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x68]
mov edx, dword [rbp - 0x60]
mov r9d, dword [rbp - 0x5c]
call sub.KERNEL32.dll_GetLocaleInfoEx
lea rcx, [rbp - 0x98]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x58], rcx
mov ecx, dword [rbp - 0x50]
movzx ecx, cx
mov edx, dword [rbp + 0x20]
movzx edx, dx
cmp ecx, edx
jne 0x1400ec407
mov rcx, qword [rbp + 0x18]
mov edx, 0x1f
call fcn.1400f4c20
mov rcx, rax
call fcn.1400f4e00
mov rsi, rax
mov rcx, qword [rbp + 0x18]
mov edx, 0x20
call fcn.1400f4c20
mov rcx, rax
call fcn.1400f4e00
mov rbx, rax
mov rdx, qword [rbp + 0x10]
add rdx, 0x10
mov rcx, rsi
call fcn.1400ec420
mov rsi, qword [rbp + 0x10]
lea rdx, [rsi + 0x20]
mov rcx, rbx
call fcn.1400ec420
mov eax, edi
movzx eax, al
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x1400ec8b0
Capabilities:
Get geographical location

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0xa8
lea rbp, [rsp + 0xe0]
xorps xmm4, xmm4
movaps xmmword [rbp - 0x60], xmm4
movaps xmmword [rbp - 0x50], xmm4
xor eax, eax
mov qword [rbp - 0x40], rax
mov rsi, rcx
mov r14d, edx
mov edi, r8d
mov ebx, r9d
lea rcx, [0x14024be08]
call fcn.1400040f0
mov r15, rax
call fcn.140002780
mov rdx, qword [rax + 8]
lea rcx, [r15 + 8]
call fcn.140004400
mov qword [rbp - 0x40], r15
test ebx, ebx
je 0x1400eca03
test ebx, 0x80000000
jne 0x1400eca03
xor ecx, ecx
mov dword [rbp - 0x50], ecx
test rsi, rsi
je 0x1400ec935
mov qword [rbp + 0x10], rsi
lea rcx, [rsi + 0xc]
jmp 0x1400ec93b
xor ecx, ecx
mov qword [rbp + 0x10], rsi
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x70], rcx
lea r8, [rbp - 0x50]
mov qword [rbp - 0x78], r8
mov edx, 0x20001009
mov dword [rbp - 0x64], edx
mov r9d, 4
mov dword [rbp - 0x68], r9d
lea rcx, [rbp - 0xa8]
call fcn.140004560
mov rcx, qword [rbp - 0x70]
mov r8, qword [rbp - 0x78]
mov edx, dword [rbp - 0x64]
mov r9d, dword [rbp - 0x68]
call sub.KERNEL32.dll_GetLocaleInfoEx
lea rcx, [rbp - 0xa8]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp - 0x58], rcx
mov qword [rbp - 0x58], rcx
mov ecx, dword [rbp - 0x50]
movzx ecx, cx
movzx edx, r14w
cmp ecx, edx
jne 0x1400ec9f1
mov rcx, qword [rbp + 0x10]
mov edx, ebx
call fcn.1400f4c20
test rax, rax
je 0x1400ec9eb
mov qword [rbp - 0x48], rax
mov rcx, qword [rbp - 0x40]
inc dword [rcx + 0x14]
mov rdx, qword [rcx + 8]
mov r8d, dword [rcx + 0x10]
mov r9d, dword [rdx + 8]
cmp r9d, r8d
jbe 0x1400ec9f7
lea r9d, [r8 + 1]
mov dword [rcx + 0x10], r9d
mov ecx, r8d
lea rcx, [rdx + rcx*8 + 0x10]
mov rdx, rax
call fcn.140004400
mov rsi, qword [rbp + 0x10]
jmp 0x1400eca03
mov rsi, qword [rbp + 0x10]
jmp 0x1400eca03
mov rsi, qword [rbp + 0x10]
jmp 0x1400eca03
mov rdx, rax
call fcn.1401a67e0
mov rsi, qword [rbp + 0x10]
lea rdx, [rbp - 0x48]
test rsi, rsi
je 0x1400eca12
add rsi, 0xc
jmp 0x1400eca14
xor esi, esi
mov qword [rbp - 0x60], rsi
movzx r8d, r14w
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x28], rdx
mov rdx, rsi
mov qword [rbp - 0x78], rdx
mov dword [rbp - 0x68], r8d
mov qword [rbp - 0x70], r9
lea rcx, [0x1400ec080]
mov qword [rbp - 0x80], rcx
lea rcx, [rbp - 0xa8]
call fcn.140004560
mov rdx, qword [rbp - 0x78]
mov r8d, dword [rbp - 0x68]
mov r9, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x80]
call sub.KERNEL32.dll_EnumCalendarInfoExEx
lea rcx, [rbp - 0xa8]
call fcn.1400045b0
xor ecx, ecx
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x60], rcx
mov rcx, qword [rbp - 0x40]
cmp dword [rcx + 0x10], 0
jne 0x1400eca8e
xor ecx, ecx
mov rsi, qword [rbp + 0x30]
mov qword [rsi], rcx
jmp 0x1400ecace
mov rsi, qword [rbp + 0x30]
mov rcx, qword [rbp - 0x40]
call fcn.1401a6df0
mov rbx, rax
cmp edi, 0x39
je 0x1400ecaa8
cmp edi, 4
jne 0x1400ecabe
mov r9d, dword [rbx + 8]
mov rdx, rbx
lea rcx, [0x1402172d8]
xor r8d, r8d
call fcn.1401ba520
mov rcx, rsi
mov rdx, rbx
call fcn.140004430
mov ecx, 1
movzx eax, cl
add rsp, 0xa8
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret