joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140037f30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x60
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
xor r14d, r14d
mov dword [rbp + 0x20], r14d
cmp qword [r8 + 0x18], 8
jb 0x140037f5f
mov r8, qword [r8]
lea rax, [rbp + 0x20]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
xor edx, edx
lea r9d, [rdx + 2]
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140037f90
mov dword [rbx], eax
mov byte [rbx + 0x20], r14b
jmp 0x140038117
mov edx, dword [rbp + 0x20]
shr rdx, 1
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x10], r14
mov qword [rbp - 8], 7
mov word [rbp - 0x20], r14w
mov r8d, 0x20
lea rcx, [rbp - 0x20]
call fcn.140052400
nop
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
cmp qword [rdi + 0x18], 8
jb 0x140037fd3
mov rdi, qword [rdi]
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
mov r9d, 2
mov r8, rdi
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
test eax, eax
je 0x140038049
mov dword [rbx], eax
mov byte [rbx + 0x20], 0
mov rax, qword [rbp - 8]
cmp rax, 8
jb 0x140038117
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rdx, rcx
cmp rax, 0x1000
jb 0x14003803e
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14003812f
call fcn.14000d9d0
nop
jmp 0x140038117
mov ecx, dword [rbp + 0x20]
shr rcx, 1
dec rcx
mov r8, qword [rbp - 0x10]
cmp rcx, r8
ja 0x140038074
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
mov qword [rbp - 0x10], rcx
mov word [rax + rcx*2], r14w
jmp 0x1400380cf
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 8]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x1400380b8
mov qword [rbp - 0x10], rcx
lea r9, [rbp - 0x20]
cmp rdi, 8
cmovae r9, qword [rbp - 0x20]
lea rdi, [r9 + r8*2]
test rdx, rdx
je 0x1400380ad
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x1400380cf
mov word [rsp + 0x20], r14w
mov r9, rdx
movzx r8d, byte [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140056f20
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.14004fde0
mov byte [rbx + 0x20], 1
mov rax, qword [rbp - 8]
cmp rax, 8
jb 0x140038117
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rdx, rcx
cmp rax, 0x1000
jb 0x140038111
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x14003812f
call fcn.14000d9d0
nop
mov rax, rbx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.140080484
int3
Function at 0x14003ae10
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rsi, rdx
movabs rax, 0x397a9e19b9d82f9d
mov qword [rsp + 0x30], rax
movabs rax, 0x35fae148278a2caa
mov qword [rsp + 0x38], rax
movabs rax, 0x39149e76b99e2fc1
mov qword [rsp + 0x20], rax
movabs rax, 0x35fae11427f92cde
mov qword [rsp + 0x28], rax
movdqa xmm0, xmmword [rsp + 0x30]
pxor xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
xor edx, edx
mov r8d, 0x200
lea rcx, [rsp + 0x40]
call fcn.14007c620
lea rax, [rsp + 0x40]
mov qword [rbp + 0x140], rax
mov edx, 0x7ffe0030
mov rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp word [rdx + rdi*2], 0
jne 0x14003aeb0
add rdi, rdi
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.14007bf70
mov rcx, qword [rbp + 0x140]
add rcx, rdi
mov qword [rbp + 0x140], rcx
lea rax, [rsp + 0x20]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14003aee0
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.14007bf70
mov rcx, qword [rbp + 0x140]
add rcx, rbx
mov qword [rbp + 0x140], rcx
mov rbx, qword [rsi + 0x10]
mov rdx, rsi
cmp qword [rsi + 0x18], 8
jb 0x14003af1c
mov rdx, qword [rsi]
add rbx, rbx
mov r8, rbx
call fcn.14007bf70
add qword [rbp + 0x140], rbx
xor edi, edi
mov qword [rbp + 0x170], rdi
mov qword [rbp + 0x180], rdi
mov r9b, 1
lea r8, [rbp + 0x180]
lea rdx, [rbp + 0x170]
lea rcx, [rsp + 0x40]
call fcn.14002d9d0
test al, al
je 0x14003af6a
mov rcx, qword [rbp + 0x170]
call fcn.14000d9d0
nop
cmp qword [rbp + 0x170], 0
setne bl
mov rax, qword [rsi + 0x18]
cmp rax, 8
jb 0x14003afac
mov rcx, qword [rsi]
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x14003afa6
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14003afd1
mov rcx, rdx
call fcn.14000d9d0
nop
mov qword [rsi + 0x10], rdi
mov qword [rsi + 0x18], 7
mov word [rsi], di
movzx eax, bl
mov rbx, qword [rsp + 0x288]
add rsp, 0x250
pop rdi
pop rsi
pop rbp
ret
call fcn.140080484
int3
Function at 0x140055cc0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r14, rdx
mov rsi, qword [0x1401c01b8]
xor edi, edi
cmp qword [rsi + 0x10], 0x80
jne 0x140055d51
mov rbp, qword [rsi]
lea rax, [rbp + 1]
and eax, 0x7f
mov qword [rsi], rax
mov qword [rsi + 0x10], 0x7f
lea rbx, [rbp + 1]
shl rbx, 5
add rbx, rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x140055d5b
mov rax, qword [rbx + 0x10]
sub rax, rcx
cmp rax, 0x1000
jb 0x140055d3e
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140055e8c
mov rcx, rdx
call fcn.14000d9d0
nop
mov qword [rbx], rdi
mov qword [rbx + 8], rdi
mov qword [rbx + 0x10], rdi
jmp 0x140055d5b
mov rbp, qword [rsi + 8]
inc rbp
and ebp, 0x7f
mov rax, rbp
shl rax, 5
lea r15, [rsi + 0x18]
add r15, rax
mov qword [rsp + 0x90], r15
mov dword [r15], edi
mov qword [r15 + 8], rdi
mov qword [r15 + 0x10], rdi
mov qword [r15 + 0x18], rdi
mov rbx, r14
cmp byte [r14], 0
je 0x140055d98
nop dword [rax]
inc rbx
cmp byte [rbx], 0
jne 0x140055d90
sub rbx, r14
mov dword [rsp + 0x20], edi
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x28], xmm0
mov qword [rsp + 0x38], rdi
lea rdx, [rbx + 1]
test rdx, rdx
je 0x140055dc0
lea rcx, [rsp + 0x28]
call fcn.140002010
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x80], rax
mov dword [rsp + 0x20], eax
mov r8, qword [rsp + 0x30]
mov r13, qword [rsp + 0x28]
sub r8, r13
xor edx, edx
mov rcx, r13
call fcn.14007c620
test rbx, rbx
je 0x140055e1d
mov r8, rdi
mov rcx, qword [rsp + 0x80]
nop dword [rax]
movzx eax, dil
add al, al
lea edx, [rax + rdi]
add dl, cl
xor dl, byte [r8 + r14]
mov byte [r8 + r13], dl
inc edi
movsxd r8, edi
cmp r8, rbx
jb 0x140055e00
lea rdx, [rsp + 0x28]
lea rcx, [r15 + 8]
call fcn.140001f70
mov eax, dword [rsp + 0x20]
mov dword [r15], eax
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x140055e66
mov rax, qword [rsp + 0x38]
sub rax, rcx
mov rdx, rcx
cmp rax, 0x1000
jb 0x140055e60
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x140055e86
call fcn.14000d9d0
nop
mov qword [rsi + 8], rbp
inc qword [rsi + 0x10]
mov rbx, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140080484
nop
call fcn.140080484
int3
Function at 0x140064fc0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
rdtsc
shl rdx, 0x20
lea r9, [0x1401bb9ec]
or rax, rdx
imul ecx, eax, 0xa69e7
imul eax, ecx, 0x42e194
mov dword [0x1401bb9e0], ecx
mov dword [0x1401bb9e4], eax
imul eax, ecx, 0x9b551bdc
xor r8d, r8d
mov dword [0x1401bb9e8], eax
nop word [rax + rax]
mov eax, r8d
lea r9, [r9 + 4]
mov ecx, r8d
shr ecx, 1
mov edx, ecx
xor edx, 0xedb88320
and al, 1
cmove edx, ecx
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov eax, edx
shr eax, 1
mov ecx, eax
xor ecx, 0xedb88320
and dl, 1
cmove ecx, eax
mov eax, ecx
shr eax, 1
mov edx, eax
xor edx, 0xedb88320
and cl, 1
cmove edx, eax
mov ecx, edx
shr ecx, 1
mov eax, ecx
xor eax, 0xedb88320
and dl, 1
cmove eax, ecx
inc r8d
mov dword [r9 - 4], eax
cmp r8d, 0x100
jb 0x140065000
ret

Function at 0x1400650b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
mov ebp, edx
mov rdi, rcx
shr ebp, 0xb
mov r11d, dword [0x1401bb9e8]
mov esi, dword [0x1401bb9e4]
mov ebx, dword [0x1401bb9e0]
nop
mov byte [rsp + 0x40], 0
xor r8d, r8d
lea r9, [rsp + 0x20]
nop dword [rax]
mov ecx, ebx
shl ecx, 0x10
xor ecx, ebx
mov eax, ecx
shr eax, 5
xor eax, ecx
lea ecx, [rax + rax]
xor ecx, eax
mov ebx, esi
mov esi, r11d
xor r11d, ebx
xor r11d, ecx
mov eax, 0xae4c415d
mul r11d
shr edx, 6
movsx eax, dl
imul ecx, eax, 0x5e
movzx eax, r11b
sub al, cl
add al, 0x20
mov byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x20
jb 0x1400650f0
mov dword [0x1401bb9e8], r11d
mov dword [0x1401bb9e0], ebx
mov dword [0x1401bb9e4], esi
lea rcx, [rsp + 0x20]
call fcn.140064d30
shr eax, 0xb
cmp ebp, eax
jne 0x1400650e0
mov qword [rdi], 0
mov qword [rdi + 0x10], 0
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140065181
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.14002b8a0
mov rax, rdi
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
Function at 0x14006b9c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r13, rcx
cmp byte [rcx], 0
je 0x14006b9f4
mov byte [rcx], 0
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
call fcn.14006be60
mov rax, qword [r13 + 0x18]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14006bbf3
xor r14d, r14d
mov edi, 0x8285aca5
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop
movups xmm0, xmmword [rax + 0x58]
movups xmmword [rsp + 0x20], xmm0
movd ecx, xmm0
sub cx, 8
test r14d, r14d
je 0x14006ba83
mov r9, qword [rsp + 0x28]
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
mov r10d, 0x811c9dc5
cmp r9, r11
je 0x14006ba7a
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
xor r8d, r10d
imul r10d, r8d, 0x1000193
add r9, 2
cmp r9, r11
jne 0x14006ba50
cmp r10d, r14d
jne 0x14006bbda
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x14006bbe2
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
shr r12, 0x20
mov esi, edx
add rsi, rbx
cmp rsi, rbx
je 0x14006bbda
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x14006bbda
mov r15d, dword [rsi + 0x20]
dec r11d
lea rcx, [rbx + r11*4]
mov r8d, dword [rcx + r15]
add r8, rbx
mov r10d, 0x811c9dc5
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x14006bb0d
movsx ecx, r9b
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
movzx r9d, byte [r8]
lea r8, [r8 + 1]
test r9b, r9b
jne 0x14006bae2
cmp r10d, edi
je 0x14006bb1f
test r11d, r11d
jne 0x14006bac2
mov rax, qword [rax]
jmp 0x14006ba20
mov ecx, dword [rsi + 0x24]
add rcx, rbx
movzx edx, word [rcx + r11*2]
mov ecx, dword [rsi + 0x1c]
add rcx, rbx
mov eax, dword [rcx + rdx*4]
add rax, rbx
cmp rax, rsi
jbe 0x14006bbe4
lea rcx, [r12 + rsi]
cmp rax, rcx
jae 0x14006bbe4
mov edi, 0x811c9dc5
mov r14d, edi
movzx r8d, byte [rax]
cmp r8b, 0x2e
je 0x14006bb8b
nop
movsx ecx, r8b
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
cmova edx, ecx
xor edx, r14d
imul r14d, edx, 0x1000193
inc rax
movzx r8d, byte [rax]
cmp r8b, 0x2e
jne 0x14006bb60
inc rax
movzx r8d, byte [rax]
test r8b, r8b
je 0x14006bbc9
nop word [rax + rax]
movsx ecx, r8b
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
cmova edx, ecx
xor edx, edi
imul edi, edx, 0x1000193
lea rax, [rax + 1]
movzx r8d, byte [rax]
test r8b, r8b
jne 0x14006bba0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x14006ba20
xor eax, eax
mov rcx, qword [rsp + 0x60]
call rax
mov qword [r13 + 0x18], 0
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140073b50
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword [rcx + 0x18]
test rcx, rcx
jne 0x140073b5c
xor eax, eax
ret
jmp fcn.14006c880
Function at 0x140083e4c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140083e83
call fcn.140087660
mov dword [rax], 0x16
call fcn.140080464
xor eax, eax
jmp 0x140083f11
mov rdx, r9
mov rcx, r8
call fcn.140083de8
mov rbx, rax
test rax, rax
je 0x140083f0e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x140083d14]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x140083efb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400875d4
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140083ee2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x140083ef1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14009053c
jmp 0x140083f0e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140083f0b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x14008ce50
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008cc4c

Function at 0x14009357c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140093592
mov al, 1
jmp 0x1400935f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400935a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400935f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400990a8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400935f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400935f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400935f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400935f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140094e28
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.14007a540
sub rsp, rax
mov rax, qword [0x1400d0068]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400921b0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140094e77
mov rax, rbp
jmp 0x140094f7f
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1bdb70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140095d74
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x1bdb70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140094f7b
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 0x140094f7b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140095d74
test rax, rax
js 0x140094f7b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140094f7b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140094f6d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140094f6d
cmp byte [rcx], 0xd
jne 0x140094f53
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140094f62
cmp byte [rcx + 1], 0xa
jne 0x140094f62
inc rcx
jmp 0x140094f62
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd0470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140094f35
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140094f7f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14007a510
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 0x140095114
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, [0x1401bdb70]
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 0x14009516b
cmp word [rdx], r13w
jne 0x14009516b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140095170
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140095295
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x1400952b6
lea r9, [rdx + 2]
cmp cx, r11w
je 0x1400951a9
mov rdx, r9
mov word [rbx], cx
jmp 0x1400951d0
cmp r9, r8
jae 0x1400951e0
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 0x14009518a
jmp 0x140095295
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 0x14009528a
cmp dword [rsp + 0x80], esi
je 0x14009528a
lea r8, [0x1401bdb70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140095262
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140095232
mov word [rbx], r13w
jmp 0x140095292
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 0x14009523f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140095292
cmp word [rsp + 0x70], r13w
jne 0x14009526f
cmp rbx, r14
je 0x14009522c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140095d7c
cmp word [rsp + 0x70], r13w
je 0x140095295
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, [0x1401bdb70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14009528f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140095295
Function at 0x14009b5fc
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.14008fb04
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 0x14009b69d
cmp ebx, dword [rsp + 0x30]
je 0x14009b696
test esi, esi
je 0x14009b696
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14009b671
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14009b67e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14009b65b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14009b682
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14009b69f
mov eax, 1
jmp 0x14009b69f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14009fcc0
Capabilities:
Clear file content

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 r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140095d7c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140095d7c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14009fe10
cmp rax, 0xffffffffffffffff
je 0x14009fe10
xor edi, edi
test rbp, rbp
jle 0x14009fdbb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140090178
mov rbx, rax
test rax, rax
jne 0x14009fd48
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14009fdb1
mov edx, 0x8000
mov ecx, r14d
call fcn.14008dba8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.1400941a4
cmp eax, 0xffffffff
je 0x14009fd91
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14009fd58
mov edx, r15d
mov ecx, r14d
call fcn.14008dba8
jmp 0x14009fdb1
cmp byte [rsi + 0x38], dil
je 0x14009fda8
cmp dword [rsi + 0x34], 5
jne 0x14009fda8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14009fdb1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14009053c
jmp 0x14009fe24
jns 0x14009fe24
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140095d7c
cmp rax, 0xffffffffffffffff
jne 0x14009fddc
cmp byte [rsi + 0x30], dil
je 0x14009fe24
mov edi, dword [rsi + 0x2c]
jmp 0x14009fe24
mov ecx, r14d
call fcn.1400990a8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14009fe24
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x14009fe24
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14009fe1d
mov eax, dword [rsi + 0x2c]
jmp 0x14009fe22
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140095d7c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x100001b54
Capabilities:
Terminate process

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and qword [r11 - 0x18], 0
and qword [r11 - 0x10], 0
lea rax, [0x1000012d0]
xor r9d, r9d
mov qword [r11 - 0x28], rax
lea rax, [0x10000141c]
lea ebx, [r9 + 1]
xor r8d, r8d
xor ecx, ecx
mov edx, ebx
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_HeapSetInformation]
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x100004710], rax
test rax, rax
jne 0x100001bb5
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
int3
xor edx, edx
lea rcx, [0x100004800]
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
xor r9d, r9d
xor r8d, r8d
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x100004818], rax
test rax, rax
jne 0x100001bf9
mov rcx, qword [0x100004710]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.msvcrt.dll_exit]
int3
lea rcx, [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_StartServiceCtrlDispatcherA]
mov rcx, qword [0x100004710]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x100004818]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
add rsp, 0x40
pop rbx
ret