joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7ff70b5071c0
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push rdi
push r13
push r14
push r15
sub rsp, 0x30
mov rax, qword [0x7ff70b6921c8]
mov r13d, edx
mov qword [rsp + 0x60], rax
xor r14d, r14d
mov rax, qword gs:[0x60]
mov edi, 0x89eabb08
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r12
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax + rax]
movups xmm0, xmmword [rax + 0x58]
movd ecx, xmm0
movups xmmword [rsp + 0x20], xmm0
sub cx, 8
test r14d, r14d
je 0x7ff70b507273
mov r9, qword [rsp + 0x28]
mov r10d, 0x811c9dc5
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
cmp r9, r11
je 0x7ff70b50726a
movsx ecx, byte [r9]
mov edx, ecx
sub cl, 0x41
mov r8d, edx
or r8d, 0x20
cmp cl, 0x19
cmova r8d, edx
add r9, 2
xor r8d, r10d
imul r10d, r8d, 0x1000193
cmp r9, r11
jne 0x7ff70b507240
cmp r10d, r14d
jne 0x7ff70b5073ca
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x7ff70b5073d2
movsxd rcx, dword [rbx + 0x3c]
mov rdx, qword [rcx + rbx + 0x88]
mov r12, rdx
mov esi, edx
shr r12, 0x20
add rsi, rbx
cmp rsi, rbx
je 0x7ff70b5073ca
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x7ff70b5073ca
mov r15d, dword [rsi + 0x20]
dec r11d
mov r10d, 0x811c9dc5
lea rcx, [r15 + r11*4]
mov r8d, dword [rcx + rbx]
add r8, rbx
movzx r9d, byte [r8]
inc r8
test r9b, r9b
je 0x7ff70b5072fe
movsx ecx, r9b
lea r8, [r8 + 1]
sub r9b, 0x41
mov edx, ecx
or edx, 0x20
cmp r9b, 0x19
movzx r9d, byte [r8 - 1]
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
test r9b, r9b
jne 0x7ff70b5072d2
cmp r10d, edi
je 0x7ff70b507310
test r11d, r11d
jne 0x7ff70b5072b2
mov rax, qword [rax]
jmp 0x7ff70b507210
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 0x7ff70b5073d4
lea rcx, [r12 + rsi]
cmp rax, rcx
jae 0x7ff70b5073d4
movzx r8d, byte [rax]
mov edi, 0x811c9dc5
mov r14d, edi
cmp r8b, 0x2e
je 0x7ff70b50737c
nop
movsx ecx, r8b
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rax + 1]
cmova edx, ecx
inc rax
xor edx, r14d
imul r14d, edx, 0x1000193
cmp r8b, 0x2e
jne 0x7ff70b507350
movzx r8d, byte [rax + 1]
inc rax
test r8b, r8b
je 0x7ff70b5073b9
nop dword [rax]
movsx ecx, r8b
lea rax, [rax + 1]
sub r8b, 0x41
mov edx, ecx
or edx, 0x20
cmp r8b, 0x19
movzx r8d, byte [rax]
cmova edx, ecx
xor edx, edi
imul edi, edx, 0x1000193
test r8b, r8b
jne 0x7ff70b507390
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x7ff70b507210
xor eax, eax
mov ecx, r13d
call rax
mov rax, qword [rsp + 0x60]
mov r12, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x78]
mov byte [rax + 0x3f8], 1
add rsp, 0x30
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x7ff70b5082b0
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [r9 + 0x18], 8
mov r10, r8
mov eax, dword [r9 + 0x10]
mov rbx, rdx
lea eax, [rax*2 + 2]
jb 0x7ff70b5082d1
mov r9, qword [r9]
cmp qword [r8 + 0x18], 8
jb 0x7ff70b5082db
mov r10, qword [r8]
mov rcx, qword [rcx]
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov rdx, r10
mov qword [rsp + 0x20], r9
mov r9d, 1
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [rbx], eax
mov rax, rbx
add rsp, 0x30
pop rbx
ret

Function at 0x7ff70b508310
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, r8
mov rbx, rdx
mov r8d, dword [r9 + 8]
sub r8d, dword [r9]
mov rdx, qword [r9]
cmp qword [rax + 0x18], 8
jb 0x7ff70b508330
mov rax, qword [rax]
mov rcx, qword [rcx]
mov r9d, 3
mov dword [rsp + 0x28], r8d
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov dword [rbx], eax
mov rax, rbx
add rsp, 0x30
pop rbx
ret
Function at 0x7ff70b508700
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 0x7ff70b50872f
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 0x7ff70b508760
mov dword [rbx], eax
mov byte [rbx + 0x20], r14b
jmp 0x7ff70b5088e7
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.7ff70b523230
nop
lea rax, [rbp - 0x20]
cmp qword [rbp - 8], 8
cmovae rax, qword [rbp - 0x20]
cmp qword [rdi + 0x18], 8
jb 0x7ff70b5087a3
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 0x7ff70b508819
mov dword [rbx], eax
mov byte [rbx + 0x20], 0
mov rax, qword [rbp - 8]
cmp rax, 8
jb 0x7ff70b5088e7
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rdx, rcx
cmp rax, 0x1000
jb 0x7ff70b50880e
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x7ff70b5088ff
call fcn.7ff70b4dd700
nop
jmp 0x7ff70b5088e7
mov ecx, dword [rbp + 0x20]
shr rcx, 1
dec rcx
mov r8, qword [rbp - 0x10]
cmp rcx, r8
ja 0x7ff70b508844
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 0x7ff70b50889f
mov rdx, rcx
sub rdx, r8
mov rdi, qword [rbp - 8]
mov rax, rdi
sub rax, r8
cmp rdx, rax
ja 0x7ff70b508888
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 0x7ff70b50887d
movzx eax, r14w
mov rcx, rdx
rep stosw word [rdi], ax
lea rax, [r8 + rdx]
mov word [r9 + rax*2], r14w
jmp 0x7ff70b50889f
mov word [rsp + 0x20], r14w
mov r9, rdx
movzx r8d, byte [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.7ff70b527a00
lea rdx, [rbp - 0x20]
mov rcx, rbx
call fcn.7ff70b520c00
mov byte [rbx + 0x20], 1
mov rax, qword [rbp - 8]
cmp rax, 8
jb 0x7ff70b5088e7
lea rax, [rax*2 + 2]
mov rcx, qword [rbp - 0x20]
mov rdx, rcx
cmp rax, 0x1000
jb 0x7ff70b5088e1
mov rcx, qword [rcx - 8]
sub rdx, rcx
lea rax, [rdx - 8]
cmp rax, 0x1f
ja 0x7ff70b5088ff
call fcn.7ff70b4dd700
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.7ff70b5526b4
int3
Function at 0x7ff70b50c3e0
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, 0x38cc65d113fc5965
mov qword [rsp + 0x30], rax
movabs rax, 0x4d822a44244df00e
mov qword [rsp + 0x38], rax
movabs rax, 0x38a265be13ba5939
mov qword [rsp + 0x20], rax
movabs rax, 0x4d822a18243ef07a
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.7ff70b54e850
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 0x7ff70b50c480
add rdi, rdi
mov r8, rdi
lea rcx, [rsp + 0x40]
call fcn.7ff70b54e1a0
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 0x7ff70b50c4b0
add rbx, rbx
mov r8, rbx
lea rdx, [rsp + 0x20]
call fcn.7ff70b54e1a0
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 0x7ff70b50c4ec
mov rdx, qword [rsi]
add rbx, rbx
mov r8, rbx
call fcn.7ff70b54e1a0
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.7ff70b4fdb70
test al, al
je 0x7ff70b50c53a
mov rcx, qword [rbp + 0x170]
call fcn.7ff70b4dd700
nop
cmp qword [rbp + 0x170], 0
setne bl
mov rax, qword [rsi + 0x18]
cmp rax, 8
jb 0x7ff70b50c57c
mov rcx, qword [rsi]
lea rax, [rax*2 + 2]
cmp rax, 0x1000
jb 0x7ff70b50c576
mov rdx, qword [rcx - 8]
sub rcx, rdx
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x7ff70b50c5a1
mov rcx, rdx
call fcn.7ff70b4dd700
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.7ff70b5526b4
int3
Function at 0x7ff70b535b50
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 [0x7ff70b68d9e8]
mov esi, dword [0x7ff70b68d9e4]
mov ebx, dword [0x7ff70b68d9e0]
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 0x7ff70b535b90
mov dword [0x7ff70b68d9e8], r11d
mov dword [0x7ff70b68d9e0], ebx
mov dword [0x7ff70b68d9e4], esi
lea rcx, [rsp + 0x20]
call fcn.7ff70b5357d0
shr eax, 0xb
cmp ebp, eax
jne 0x7ff70b535b80
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 0x7ff70b535c21
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.7ff70b4fb8e0
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 0x7ff70b53c2c0
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 0x7ff70b53c2f4
mov byte [rcx], 0
mov r8d, dword [rcx + 0x10]
mov rdx, qword [rcx + 8]
call fcn.7ff70b53c760
mov rax, qword [r13 + 0x18]
mov qword [rsp + 0x60], rax
test rax, rax
je 0x7ff70b53c4f3
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 0x7ff70b53c383
mov r9, qword [rsp + 0x28]
movzx ecx, cx
shr rcx, 1
lea r11, [r9 + rcx*2]
mov r10d, 0x811c9dc5
cmp r9, r11
je 0x7ff70b53c37a
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 0x7ff70b53c350
cmp r10d, r14d
jne 0x7ff70b53c4da
mov rbx, qword [rax + 0x30]
test rbx, rbx
je 0x7ff70b53c4e2
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 0x7ff70b53c4da
mov r11d, dword [rsi + 0x18]
test r11d, r11d
je 0x7ff70b53c4da
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 0x7ff70b53c40d
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 0x7ff70b53c3e2
cmp r10d, edi
je 0x7ff70b53c41f
test r11d, r11d
jne 0x7ff70b53c3c2
mov rax, qword [rax]
jmp 0x7ff70b53c320
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 0x7ff70b53c4e4
lea rcx, [r12 + rsi]
cmp rax, rcx
jae 0x7ff70b53c4e4
mov edi, 0x811c9dc5
mov r14d, edi
movzx r8d, byte [rax]
cmp r8b, 0x2e
je 0x7ff70b53c48b
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 0x7ff70b53c460
inc rax
movzx r8d, byte [rax]
test r8b, r8b
je 0x7ff70b53c4c9
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 0x7ff70b53c4a0
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
jmp 0x7ff70b53c320
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 0x7ff70b544b40
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 0x7ff70b544b4c
xor eax, eax
ret
jmp fcn.7ff70b53d180
Function at 0x7ff70b55607c
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 0x7ff70b5560b3
call fcn.7ff70b559890
mov dword [rax], 0x16
call fcn.7ff70b552694
xor eax, eax
jmp 0x7ff70b556141
mov rdx, r9
mov rcx, r8
call fcn.7ff70b556018
mov rbx, rax
test rax, rax
je 0x7ff70b55613e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x7ff70b555f44]
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 0x7ff70b55612b
call qword [sym.imp.kernel32.dll_GetLastError]
mov ecx, eax
call fcn.7ff70b559804
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x7ff70b556112
call qword [sym.imp.kernel32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x7ff70b556121
call qword [sym.imp.kernel32.dll_FreeLibrary]
mov rcx, rbx
call fcn.7ff70b5628cc
jmp 0x7ff70b55613e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x7ff70b55613b
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 0x7ff70b55f1e0
Capabilities:
Parse pe header

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

Function at 0x7ff70b56590c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x7ff70b565922
mov al, 1
jmp 0x7ff70b565982
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x7ff70b565933
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x7ff70b565980
mov ecx, dword [rcx + 0x18]
nop
call fcn.7ff70b56b438
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x7ff70b565980
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetFilePointerEx]
test eax, eax
je 0x7ff70b565980
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.kernel32.dll_GetFileSizeEx]
test eax, eax
je 0x7ff70b565980
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x7ff70b565982
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x7ff70b5671b8
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.7ff70b54c770
sub rsp, rax
mov rax, qword [0x7ff70b5a2068]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.7ff70b564540
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x7ff70b567207
mov rax, rbp
jmp 0x7ff70b56730f
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, [0x7ff70b4d0000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x1bfb70]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.7ff70b568104
mov r13, rax
lea rax, [0x7ff70b4d0000]
mov rcx, qword [rax + rbx*8 + 0x1bfb70]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x7ff70b56730b
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 0x7ff70b56730b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.7ff70b568104
test rax, rax
js 0x7ff70b56730b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x7ff70b56730b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x7ff70b5672fd
lea r8, [0x7ff70b4d0000]
cmp rcx, rdx
jae 0x7ff70b5672fd
cmp byte [rcx], 0xd
jne 0x7ff70b5672e3
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x7ff70b5672f2
cmp byte [rcx + 1], 0xa
jne 0x7ff70b5672f2
inc rcx
jmp 0x7ff70b5672f2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xd2470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x7ff70b5672c5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x7ff70b56730f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.7ff70b54c740
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 0x7ff70b5674a4
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, [0x7ff70b68fb70]
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 0x7ff70b5674fb
cmp word [rdx], r13w
jne 0x7ff70b5674fb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x7ff70b567500
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x7ff70b567625
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x7ff70b567646
lea r9, [rdx + 2]
cmp cx, r11w
je 0x7ff70b567539
mov rdx, r9
mov word [rbx], cx
jmp 0x7ff70b567560
cmp r9, r8
jae 0x7ff70b567570
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 0x7ff70b56751a
jmp 0x7ff70b567625
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 0x7ff70b56761a
cmp dword [rsp + 0x80], esi
je 0x7ff70b56761a
lea r8, [0x7ff70b68fb70]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x7ff70b5675f2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x7ff70b5675c2
mov word [rbx], r13w
jmp 0x7ff70b567622
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 0x7ff70b5675cf
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x7ff70b567622
cmp word [rsp + 0x70], r13w
jne 0x7ff70b5675ff
cmp rbx, r14
je 0x7ff70b5675bc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.7ff70b56810c
cmp word [rsp + 0x70], r13w
je 0x7ff70b567625
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, [0x7ff70b68fb70]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x7ff70b56761f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x7ff70b567625
Function at 0x7ff70b56ab60
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 0x7ff70b56abe7
mov rsi, rbx
cmp word [rax], bp
je 0x7ff70b56aba6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x7ff70b56ab90
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x7ff70b56ab8c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.7ff70b5633bc
mov rdi, rax
test rax, rax
je 0x7ff70b56abd4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.7ff70b54e1a0
mov rbp, rdi
xor ecx, ecx
call fcn.7ff70b5628cc
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 0x7ff70b56d98c
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.7ff70b561e94
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 0x7ff70b56da2d
cmp ebx, dword [rsp + 0x30]
je 0x7ff70b56da26
test esi, esi
je 0x7ff70b56da26
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x7ff70b56da01
sub r8w, 0x61
cmp r8w, 0x19
ja 0x7ff70b56da0e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x7ff70b56d9eb
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x7ff70b56da12
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x7ff70b56da2f
mov eax, 1
jmp 0x7ff70b56da2f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x7ff70b572050
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.7ff70b56810c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.7ff70b56810c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x7ff70b5721a0
cmp rax, 0xffffffffffffffff
je 0x7ff70b5721a0
xor edi, edi
test rbp, rbp
jle 0x7ff70b57214b
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.7ff70b562508
mov rbx, rax
test rax, rax
jne 0x7ff70b5720d8
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x7ff70b572141
mov edx, 0x8000
mov ecx, r14d
call fcn.7ff70b55ff38
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.7ff70b566534
cmp eax, 0xffffffff
je 0x7ff70b572121
cdqe
sub rbp, rax
test rbp, rbp
jg 0x7ff70b5720e8
mov edx, r15d
mov ecx, r14d
call fcn.7ff70b55ff38
jmp 0x7ff70b572141
cmp byte [rsi + 0x38], dil
je 0x7ff70b572138
cmp dword [rsi + 0x34], 5
jne 0x7ff70b572138
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x7ff70b572141
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.7ff70b5628cc
jmp 0x7ff70b5721b4
jns 0x7ff70b5721b4
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.7ff70b56810c
cmp rax, 0xffffffffffffffff
jne 0x7ff70b57216c
cmp byte [rsi + 0x30], dil
je 0x7ff70b5721b4
mov edi, dword [rsi + 0x2c]
jmp 0x7ff70b5721b4
mov ecx, r14d
call fcn.7ff70b56b438
mov rcx, rax
call qword [sym.imp.kernel32.dll_SetEndOfFile]
test eax, eax
jne 0x7ff70b5721b4
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 0x7ff70b5721b4
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x7ff70b5721ad
mov eax, dword [rsi + 0x2c]
jmp 0x7ff70b5721b2
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.7ff70b56810c
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