joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff6bcc139b0
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x7ff6bccbe500]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x7ff6bcc13a48
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x7ff6bcc13a48
mov dword [rsp + 0x20], 0x28
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x7ff6bcc13a6c
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.7ff6bcc49ca0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.7ff6bcbd8990
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.7ff6bcc13b20
lea rdx, [0x7ff6bccbc840]
lea rcx, [rsp + 0x50]
call fcn.7ff6bcc4bef8
int3

Function at 0x7ff6bcc13f20
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x7ff6bccbe500]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x7ff6bccc78d0]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x7ff6bccc57e0], ecx
jg 0x7ff6bcc13fff
mov eax, ebx
cmp rbx, rax
jne 0x7ff6bcc13fc1
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x7ff6bcc13fc1
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x7ff6bccc57d8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x7ff6bcc14042
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.7ff6bcc49ca0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.7ff6bcbd8990
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.7ff6bcc13b20
lea rdx, [0x7ff6bccbc840]
lea rcx, [rsp + 0x40]
call fcn.7ff6bcc4bef8
nop
lea rcx, [0x7ff6bccc57e0]
call fcn.7ff6bcc4a708
cmp dword [0x7ff6bccc57e0], 0xffffffff
jne 0x7ff6bcc13f6c
lea rcx, [0x7ff6bccc57d8]
call fcn.7ff6bcc139b0
lea rcx, [0x7ff6bcc85f30]
call fcn.7ff6bcc49ffc
nop
lea rcx, [0x7ff6bccc57e0]
call fcn.7ff6bcc4a69c
jmp 0x7ff6bcc13f6c
lea rdx, [0x7ff6bcc8dec8]
lea rcx, [rsp + 0x20]
call fcn.7ff6bcbd8990
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.7ff6bcc13b20
lea rdx, [0x7ff6bccbc840]
lea rcx, [rsp + 0x40]
call fcn.7ff6bcc4bef8
int3
Function at 0x7ff6bcc18e80
Capabilities:
Hash data using sha1

Disassembly:
mov rcx, qword [rcx + 0xc8]
jmp 0x7ff6bcc18e80
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp byte [0x7ff6bccc6cb8], 0
mov rbx, rdx
mov rdi, rcx
jne 0x7ff6bcc18e9e
call fcn.7ff6bcc226a0
cmp byte [0x7ff6bccc6cc2], 0
mov rdx, rbx
mov rcx, rdi
je 0x7ff6bcc18ec5
xor r9d, r9d
mov r8d, 0x40
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.7ff6bcc230c0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.7ff6bcc16b00

Function at 0x7ff6bcc1b130
Capabilities:
Encode data using xor

Disassembly:
mov r9, r8
xor r11d, r11d
mov r10, rdx
mov r8d, r11d
cmp r9, 8
jb 0x7ff6bcc1b167
mov rdx, r9
shr rdx, 3
imul rax, rdx, 0xfffffffffffffff8
add r9, rax
mov rax, qword [rcx]
add rcx, 8
xor rax, qword [r10]
add r10, 8
or r8, rax
sub rdx, 1
jne 0x7ff6bcc1b150
mov rdx, r8
shr rdx, 0x20
or edx, r8d
mov r8d, edx
mov eax, edx
shr r8d, 8
or r8d, edx
shr eax, 0x10
and r8d, 0xff00
or r8d, eax
movzx eax, dl
shr r8d, 8
or r8d, eax
test r9, r9
je 0x7ff6bcc1b258
sub rcx, r10
cmp r9, 8
jb 0x7ff6bcc1b239
mov rax, r9
lea rdx, [r10 + 4]
and rax, 0xfffffffffffffff8
xorps xmm4, xmm4
xorps xmm3, xmm3
nop dword [rax + rax]
movd xmm2, dword [rcx + rdx - 4]
xorps xmm0, xmm0
movd xmm1, dword [rdx - 4]
lea rdx, [rdx + 8]
punpcklbw xmm2, xmm0
add r11, 8
punpcklwd xmm2, xmm0
punpcklbw xmm1, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
movd xmm1, dword [rdx - 8]
punpcklbw xmm1, xmm0
orps xmm4, xmm2
movd xmm2, dword [rcx + rdx - 8]
punpcklbw xmm2, xmm0
punpcklwd xmm2, xmm0
punpcklwd xmm1, xmm0
xorps xmm2, xmm1
orps xmm3, xmm2
cmp r11, rax
jb 0x7ff6bcc1b1c0
orps xmm3, xmm4
movdqa xmm0, xmm3
psrldq xmm0, 8
orps xmm3, xmm0
movdqa xmm0, xmm3
psrldq xmm0, 4
orps xmm3, xmm0
movd eax, xmm3
or r8d, eax
cmp r11, r9
jae 0x7ff6bcc1b258
add r10, r11
sub r9, r11
nop
movzx edx, byte [rcx + r10]
movzx eax, byte [r10]
lea r10, [r10 + 1]
xor edx, eax
or r8d, edx
sub r9, 1
jne 0x7ff6bcc1b240
test r8d, r8d
sete al
ret
Function at 0x7ff6bcc1b260
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r9, r9
je 0x7ff6bcc1b3f6
cmp r9, 4
jb 0x7ff6bcc1b29a
mov r10, r9
shr r10, 2
imul rax, r10, 0xfffffffffffffffc
add r9, rax
mov eax, dword [rdx]
add rdx, 4
xor eax, dword [r8]
add r8, 4
mov dword [rcx], eax
add rcx, 4
sub r10, 1
jne 0x7ff6bcc1b281
xor r11d, r11d
test r9, r9
je 0x7ff6bcc1b3f6
cmp r9, 8
jb 0x7ff6bcc1b3cd
lea r10, [rcx - 1]
lea rax, [r8 - 1]
add r10, r9
add rax, r9
cmp rcx, rax
ja 0x7ff6bcc1b2cc
cmp r10, r8
jae 0x7ff6bcc1b3cd
lea rax, [rdx - 1]
add rax, r9
cmp rcx, rax
ja 0x7ff6bcc1b2e1
cmp r10, rdx
jae 0x7ff6bcc1b3cd
mov qword [rsp + 0x10], rbx
mov qword [rsp], rdi
cmp r9, 0x40
jb 0x7ff6bcc1b387
mov r10, r9
mov qword [rsp + 0x18], rsi
and r10d, 0x3f
mov rbx, r9
sub rbx, r10
mov rdi, rdx
lea rax, [r8 + 0x10]
sub rdi, r8
mov rsi, rcx
sub rsi, r8
nop word [rax + rax]
movdqu xmm0, xmmword [rdi + rax - 0x10]
add r11, 0x40
movdqu xmm1, xmmword [rax - 0x10]
movdqu xmm2, xmmword [rdi + rax]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmmword [rsi + rax - 0x50], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x30]
movdqu xmm1, xmmword [rax - 0x30]
movdqu xmmword [rsi + rax - 0x40], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [rdi + rax - 0x20]
movdqu xmm2, xmmword [rax - 0x20]
movdqu xmmword [rsi + rax - 0x30], xmm1
xorps xmm2, xmm0
movdqu xmmword [rsi + rax - 0x20], xmm2
cmp r11, rbx
jb 0x7ff6bcc1b320
mov rsi, qword [rsp + 0x18]
cmp r10, 8
jb 0x7ff6bcc1b3bf
mov r10, r9
and r10, 0xfffffffffffffff8
mov rbx, rdx
lea rax, [r11 + r8]
sub rbx, r8
mov rdi, rcx
sub rdi, r8
nop
movq xmm1, qword [rax + rbx]
add r11, 8
movq xmm0, qword [rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rdi + rax - 8], xmm1
cmp r11, r10
jb 0x7ff6bcc1b3a0
mov rdi, qword [rsp]
mov rbx, qword [rsp + 0x10]
cmp r11, r9
jae 0x7ff6bcc1b3f6
sub rdx, r8
lea r10, [r11 + r8]
sub rcx, r8
sub r9, r11
nop word [rax + rax]
movzx eax, byte [r10 + rdx]
xor al, byte [r10]
mov byte [rcx + r10], al
lea r10, [r10 + 1]
sub r9, 1
jne 0x7ff6bcc1b3e0
add rsp, 8
ret
Function at 0x7ff6bcc1b400
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 8
test r8, r8
je 0x7ff6bcc1b562
cmp r8, 4
jb 0x7ff6bcc1b442
mov r9, r8
shr r9, 2
imul rax, r9, 0xfffffffffffffffc
add r8, rax
nop dword [rax]
nop word [rax + rax]
mov eax, dword [rdx]
add rdx, 4
xor dword [rcx], eax
add rcx, 4
sub r9, 1
jne 0x7ff6bcc1b430
xor r10d, r10d
test r8, r8
je 0x7ff6bcc1b562
cmp r8, 8
jb 0x7ff6bcc1b544
lea r9, [rcx - 1]
lea rax, [rdx - 1]
add r9, r8
add rax, r8
cmp rcx, rax
ja 0x7ff6bcc1b474
cmp r9, rdx
jae 0x7ff6bcc1b544
cmp r8, 0x40
jb 0x7ff6bcc1b503
mov r9, r8
mov qword [rsp], rbx
and r9d, 0x3f
mov r11, r8
sub r11, r9
mov rbx, rdx
lea rax, [rcx + 0x10]
sub rbx, rcx
nop dword [rax]
movdqu xmm0, xmmword [rax - 0x10]
add r10, 0x40
movdqu xmm1, xmmword [rax + rbx - 0x10]
lea rax, [rax + 0x40]
xorps xmm1, xmm0
movdqu xmm0, xmmword [rax + rbx - 0x40]
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm2, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rax + rbx - 0x30]
xorps xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
movdqu xmm1, xmmword [rax + rbx - 0x20]
xorps xmm1, xmm0
movdqu xmmword [rax - 0x20], xmm1
cmp r10, r11
jb 0x7ff6bcc1b4a0
mov rbx, qword [rsp]
cmp r9, 8
jb 0x7ff6bcc1b53f
mov r9, r8
and r9, 0xfffffffffffffff8
mov r11, rdx
lea rax, [r10 + rcx]
sub r11, rcx
nop dword [rax]
nop dword [rax + rax]
movq xmm0, qword [rax]
add r10, 8
movq xmm1, qword [r11 + rax]
lea rax, [rax + 8]
xorps xmm1, xmm0
movq qword [rax - 8], xmm1
cmp r10, r9
jb 0x7ff6bcc1b520
cmp r10, r8
jae 0x7ff6bcc1b562
sub rdx, rcx
lea r9, [r10 + rcx]
sub r8, r10
nop
movzx eax, byte [rdx + r9]
xor byte [r9], al
lea r9, [r9 + 1]
sub r8, 1
jne 0x7ff6bcc1b550
add rsp, 8
ret
Function at 0x7ff6bcc28ac0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x7ff6bcc28afa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x7ff6bcc28aff
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x7ff6bcc28b48
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x7ff6bcc94710]
cmp byte [rcx + rax], 0
je 0x7ff6bcc28b48
dec r8
sub rdx, 1
jne 0x7ff6bcc28b2e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x7ff6bcc3eff4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x7ff6bcc2b752
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x7ff6bcc2b735
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x7ff6bcc2b720

Function at 0x7ff6bcc4932c
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.7ff6bcc64f0c
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x7ff6bcc4937e
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x7ff6bcc4937e
sub ecx, 1
je 0x7ff6bcc49377
cmp ecx, 1
je 0x7ff6bcc49370
xor eax, eax
jmp 0x7ff6bcc49383
mov eax, 3
jmp 0x7ff6bcc49383
mov eax, 1
jmp 0x7ff6bcc49383
mov eax, 2
add rsp, 0x28
ret

Function at 0x7ff6bcc4ac84
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff6bcc4acce
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6bcc4acce
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff6bcc4acce
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6bcc4acce
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff6bcc4acce
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x7ff6bcc4acd0
xor al, al
add rsp, 0x28
ret
Function at 0x7ff6bcc5a184
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x7ff6bcc5a1f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff6bcc5a1f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6bcc5a1f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff6bcc5a1f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6bcc5a1f3
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff6bcc5a1f3
cmp dword [rcx + 0xf8], 0
je 0x7ff6bcc5a1f3
mov ecx, ebx
call fcn.7ff6bcc5a2a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.7ff6bcc5a080
nop
cmp dword [rbp + 0x20], 0
je 0x7ff6bcc5a241
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.7ff6bcc5a24c
int3
xor r8d, r8d
xor edx, edx
jmp 0x7ff6bcc5a184

Function at 0x7ff6bcc5a388
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x7ff6bcc5a1f3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x7ff6bcc5a1f3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x7ff6bcc5a1f3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x7ff6bcc5a1f3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x7ff6bcc5a1f3
cmp dword [rcx + 0x84], 0xe
jbe 0x7ff6bcc5a1f3
cmp dword [rcx + 0xf8], 0
je 0x7ff6bcc5a1f3
mov ecx, ebx
call fcn.7ff6bcc5a2a4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.7ff6bcc5a080
nop
cmp dword [rbp + 0x20], 0
je 0x7ff6bcc5a241
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.7ff6bcc5a24c
int3
xor r8d, r8d
xor edx, edx
jmp 0x7ff6bcc5a184
Function at 0x7ff6bcc6b7cc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff6bcc6b7e2
mov al, 1
jmp 0x7ff6bcc6b842
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff6bcc6b7f3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff6bcc6b840
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff6bcc772c8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff6bcc6b840
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff6bcc6b840
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff6bcc6b840
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff6bcc6b842
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x7ff6bcc6e7e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.7ff6bcc4aad0
sub rsp, rax
mov rax, qword [0x7ff6bccbe500]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.7ff6bcc6b6ac
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x7ff6bcc6e837
mov rax, rbp
jmp 0x7ff6bcc6e93f
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x7ff6bcbd0000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xf7e90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.7ff6bcc6f734
mov r13, rax
lea rax, [0x7ff6bcbd0000]
mov rcx, qword [rax + rbx*8 + 0xf7e90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x7ff6bcc6e93b
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7ff6bcc6e93b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.7ff6bcc6f734
test rax, rax
js 0x7ff6bcc6e93b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x7ff6bcc6e93b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x7ff6bcc6e92d
lea r8, [0x7ff6bcbd0000]
cmp rcx, rdx
jae 0x7ff6bcc6e92d
cmp byte [rcx], 0xd
jne 0x7ff6bcc6e913
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x7ff6bcc6e922
cmp byte [rcx + 1], 0xa
jne 0x7ff6bcc6e922
inc rcx
jmp 0x7ff6bcc6e922
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xee950]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x7ff6bcc6e8f5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x7ff6bcc6e93f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.7ff6bcc49ca0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x7ff6bcc6ead4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x7ff6bccc7e90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x7ff6bcc6eb2b
cmp word [rdx], r13w
jne 0x7ff6bcc6eb2b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x7ff6bcc6eb30
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x7ff6bcc6ec55
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x7ff6bcc6ec76
lea r9, [rdx + 2]
cmp cx, r11w
je 0x7ff6bcc6eb69
mov rdx, r9
mov word [rbx], cx
jmp 0x7ff6bcc6eb90
cmp r9, r8
jae 0x7ff6bcc6eba0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x7ff6bcc6eb4a
jmp 0x7ff6bcc6ec55
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x7ff6bcc6ec4a
cmp dword [rsp + 0x80], esi
je 0x7ff6bcc6ec4a
lea r8, [0x7ff6bccc7e90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x7ff6bcc6ec22
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x7ff6bcc6ebf2
mov word [rbx], r13w
jmp 0x7ff6bcc6ec52
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x7ff6bcc6ebff
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x7ff6bcc6ec52
cmp word [rsp + 0x70], r13w
jne 0x7ff6bcc6ec2f
cmp rbx, r14
je 0x7ff6bcc6ebec
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.7ff6bcc6f73c
cmp word [rsp + 0x70], r13w
je 0x7ff6bcc6ec55
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x7ff6bccc7e90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x7ff6bcc6ec4f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x7ff6bcc6ec55
Function at 0x7ff6bcc760bc
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x7ff6bcc760ec
xor eax, eax
jmp 0x7ff6bcc761af
mov rbp, rbx
cmp word [rax], si
je 0x7ff6bcc76111
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x7ff6bcc760f8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x7ff6bcc760f4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.7ff6bcc708b4
movsxd r14, eax
test eax, eax
jne 0x7ff6bcc7614f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x7ff6bcc760e5
mov rcx, r14
call fcn.7ff6bcc6f7e0
mov rdi, rax
test rax, rax
jne 0x7ff6bcc76168
xor ecx, ecx
call fcn.7ff6bcc6d048
jmp 0x7ff6bcc76144
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.7ff6bcc708b4
test eax, eax
jne 0x7ff6bcc76199
mov rcx, rdi
call fcn.7ff6bcc6d048
jmp 0x7ff6bcc761a3
xor ecx, ecx
call fcn.7ff6bcc6d048
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x7ff6bcc761cc
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x7ff6bcc76253
mov rsi, rbx
cmp word [rax], bp
je 0x7ff6bcc76212
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x7ff6bcc761fc
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x7ff6bcc761f8
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.7ff6bcc6f7e0
mov rdi, rax
test rax, rax
je 0x7ff6bcc76240
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.7ff6bcc7fde0
mov rbp, rdi
xor ecx, ecx
call fcn.7ff6bcc6d048
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff6bcc7981c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.7ff6bcc6bc8c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x7ff6bcc798bd
cmp ebx, dword [rsp + 0x30]
je 0x7ff6bcc798b6
test esi, esi
je 0x7ff6bcc798b6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x7ff6bcc79891
sub r8w, 0x61
cmp r8w, 0x19
ja 0x7ff6bcc7989e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x7ff6bcc7987b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x7ff6bcc798a2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x7ff6bcc798bf
mov eax, 1
jmp 0x7ff6bcc798bf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret