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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r8, qword [0x1800f62f0]
mov rbx, rdx
mov rsi, rcx
test r8, r8
jne 0x180067db1
mov rax, qword gs:[0x60]
xor ebp, ebp
mov r12d, 0x99d1d96b
mov r8, qword [rax + 0x18]
mov rax, qword [r8 + 0x10]
mov rax, qword [rax]
mov qword [rsp + 0x70], rax
mov r8, rax
mov eax, dword [r8 + 0x58]
sub ax, 8
test ebp, ebp
je 0x180067c7b
mov r9, qword [r8 + 0x60]
mov r10d, 0x464548cb
movzx eax, ax
shr rax, 1
lea r11, [r9 + rax*2]
jmp 0x180067c6d
movsx eax, byte [r9]
mov ecx, eax
sub al, 0x41
mov edx, ecx
or edx, 0x20
cmp al, 0x19
cmova edx, ecx
xor edx, r10d
imul r10d, edx, 0x1000193
add r9, 2
cmp r9, r11
jne 0x180067c4d
cmp r10d, ebp
jne 0x180067d8a
mov r9, qword [r8 + 0x30]
movsxd rax, dword [r9 + 0x3c]
mov rax, qword [rax + r9 + 0x88]
mov r10d, eax
add r10, r9
shr rax, 0x20
cmp r10, r9
je 0x180067d8a
mov ebx, dword [r10 + 0x18]
test ebx, ebx
je 0x180067d8a
mov r13d, dword [r10 + 0x20]
dec ebx
mov r14d, 0x464548cb
lea rcx, [rbx*4]
add rcx, r13
mov r11d, dword [rcx + r9]
add r11, r9
jmp 0x180067ce8
movsx ecx, dil
sub dil, 0x41
mov edx, ecx
or edx, 0x20
cmp dil, 0x19
cmova edx, ecx
xor edx, r14d
imul r14d, edx, 0x1000193
mov dil, byte [r11]
inc r11
test dil, dil
jne 0x180067cca
cmp r14d, r12d
je 0x180067d01
test ebx, ebx
jne 0x180067cae
jmp 0x180067d8a
mov edx, dword [r10 + 0x24]
add rdx, r9
movzx r8d, word [rdx + rbx*2]
mov edx, dword [r10 + 0x1c]
add rdx, r9
mov r8d, dword [rdx + r8*4]
add r8, r9
cmp r8, r10
jbe 0x180067da5
lea rcx, [rax + r10]
cmp r8, rcx
jae 0x180067da5
mov ebp, 0x464548cb
mov r12d, ebp
jmp 0x180067d53
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
cmova ecx, eax
xor ecx, ebp
imul ebp, ecx, 0x1000193
inc r8
mov dl, byte [r8]
cmp dl, 0x2e
jne 0x180067d37
jmp 0x180067d78
movsx eax, dl
sub dl, 0x41
mov ecx, eax
or ecx, 0x20
cmp dl, 0x19
cmova ecx, eax
xor ecx, r12d
imul r12d, ecx, 0x1000193
inc r8
mov dl, byte [r8]
test dl, dl
jne 0x180067d5d
mov rax, qword [rsp + 0x70]
mov r8, qword [rax]
mov rax, qword [r8]
mov r8, rax
cmp rax, qword [rsp + 0x70]
je 0x180067da2
cmp qword [rax + 0x30], 0
jne 0x180067c2b
xor r8d, r8d
mov rbx, qword [rsp + 0x68]
mov qword [0x1800f62f0], r8
mov ecx, dword [0x1800f61b0]
call r8
test al, 1
je 0x180067dd0
cmp byte [0x1800f61af], 0
sete al
mov byte [0x1800f61af], al
jmp 0x180067dd6
mov al, byte [0x1800f61af]
test al, al
je 0x180067dfe
cmp byte [0x1800f61b4], 0
je 0x180067dea
mov byte [0x1800f61b4], 0
mov rax, qword [rbx + 0xd88]
mov dword [rax + 8], 0x4079999a
mov byte [rsi + 0xb], 0
jmp 0x180067e16
cmp byte [rsi + 0xb], 0
jne 0x180067e16
mov rax, qword [rbx + 0xd88]
mov dword [rax + 8], 0x3fd0a3d7
mov byte [rsi + 0xb], 1
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180067e2c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x40
cmp byte [0x1800f61a1], 0
mov rbx, rdx
je 0x180067f6f
xor eax, eax
mov dword [rbp - 0x20], 0xdecdc7ec
mov byte [rbp - 0x12], al
xor edx, edx
mov dword [rbp - 0x1c], 0xdfd1cdc6
mov dword [rbp - 0x18], 0xdce0ecd5
mov word [rbp - 0x14], 0xd2db
movsxd rcx, edx
lea eax, [rdx - 0x56]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0xe
jb 0x180067e6b
mov rax, qword [rbx]
lea rdx, [rbp - 0x20]
mov r9b, 1
mov byte [rbp - 0x12], 0
xorps xmm2, xmm2
mov rcx, rbx
call qword [rax + 0x498]
movdqa xmm0, xmmword [0x1800a3430]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 0x10], al
xor edx, edx
movsxd rcx, edx
lea eax, [rdx - 0x56]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0x10
jb 0x180067eaa
mov rax, qword [rbx]
lea rdx, [rbp - 0x20]
mov r9b, 1
mov byte [rbp - 0x10], 0
xorps xmm2, xmm2
mov rcx, rbx
call qword [rax + 0x498]
movdqa xmm0, xmmword [0x1800a3440]
xor edx, edx
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0xd3c9d4d7
mov word [rbp - 0xc], 0xca
movsxd rcx, edx
lea eax, [rdx - 0x56]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0x15
jb 0x180067ef1
mov rax, qword [rbx]
lea rdx, [rbp - 0x20]
mov r9b, 1
mov byte [rbp - 0xb], 0
xorps xmm2, xmm2
mov rcx, rbx
call qword [rax + 0x498]
movdqa xmm0, xmmword [0x1800a3420]
xor eax, eax
movdqu xmmword [rbp - 0x20], xmm0
mov byte [rbp - 6], al
xor edx, edx
mov dword [rbp - 0x10], 0xd3d3d2ce
mov dword [rbp - 0xc], 0xb4afd2ff
mov word [rbp - 8], 0xb7ac
movsxd rcx, edx
lea eax, [rdx - 0x56]
inc edx
xor byte [rbp + rcx - 0x20], al
cmp edx, 0x1a
jb 0x180067f44
mov rax, qword [rbx]
lea rdx, [rbp - 0x20]
mov r9b, 1
mov byte [rbp - 6], 0
xorps xmm2, xmm2
mov rcx, rbx
call qword [rax + 0x498]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret
Function at 0x1800686cc
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov rax, qword [0x1800f6110]
xor r15d, r15d
mov rbp, rcx
mov rbx, qword [rax]
test rbx, rbx
je 0x1800688f0
cmp byte [0x1800f6130], r15b
je 0x180068728
cmp byte [0x1800f6131], r15b
jne 0x18006874a
mov rcx, qword [rbx + 0xc8]
lea r8d, [r15 + 1]
mov dl, r8b
mov rax, qword [rcx]
call qword [rax + 0x68]
mov byte [0x1800f6131], 1
jmp 0x18006874a
cmp byte [0x1800f6131], r15b
je 0x18006874a
mov rcx, qword [rbx + 0xc8]
xor r8d, r8d
xor edx, edx
mov rax, qword [rcx]
call qword [rax + 0x68]
mov byte [0x1800f6131], r15b
mov rsi, qword [rbx + 0xd0]
test rsi, rsi
je 0x1800688f0
mov r14, qword [rsi + 0x148]
test r14, r14
je 0x1800688f0
mov r12, qword [rbx + 0x100]
test r12, r12
je 0x1800688f0
mov r13, qword [rbx + 0xe0]
test r13, r13
je 0x1800688f0
mov rax, qword [rsi]
mov rcx, rsi
mov rdx, qword [rax + 0x68]
call rdx
mov rdi, rax
test rax, rax
je 0x1800688f0
mov rcx, qword [rax]
mov rdx, qword [rcx + 0xc8]
mov rcx, rax
call rdx
mov qword [rsp + 0x70], rax
test rax, rax
je 0x1800688f0
mov r15, qword [rbx + 0x40]
test r15, r15
je 0x1800688f0
mov ecx, 0x72
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800687fc
mov rcx, qword [rdi]
mov rax, qword [rcx + 0x2f8]
mov rcx, rdi
call rax
mov rdx, rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x68], rax
mov rcx, rdi
mov rax, qword [rdi]
mov r9, qword [rax + 0x470]
call r9
test al, al
je 0x1800688f0
mov rdx, qword [rsp + 0x68]
mov r8, rsi
mov rcx, rbp
call fcn.180067fb4
mov r8, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, rbp
call fcn.180068028
mov rdx, r15
mov rcx, rbp
call fcn.180068908
mov rdx, r15
mov rcx, rbp
call fcn.180068968
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.180068444
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.180067bd8
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.180067944
mov rdx, r12
mov rcx, rbp
call fcn.180067e2c
mov rdx, r14
mov rcx, rbp
call fcn.180067bb0
mov rdx, r14
mov rcx, rbp
call fcn.180067788
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.180067f7c
mov rdx, r14
mov rcx, rbp
call fcn.180067b98
mov rdx, rbx
mov rcx, rbp
call fcn.1800680c4
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.1800677ac
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.180068120
mov r9, qword [rsp + 0x70]
mov r8, r13
mov rdx, qword [rsp + 0x68]
mov rcx, rbp
call fcn.1800677d0
mov rbx, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180068968
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
cmp byte [0x1800f61ad], 0
mov rbx, rdx
je 0x180068a54
movdqa xmm0, xmmword [0x1800a3410]
mov r8d, 0x8e
movdqa xmm1, xmmword [0x1800a3400]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [0x1800f61ad], 0
mov rax, qword [rdx]
movdqa xmm0, xmmword [0x1800a33e0]
movdqu xmmword [rbp - 0x29], xmm1
mov dword [rbp + 0x47], 0x44620917
movdqa xmm1, xmmword [0x1800a33f0]
mov r10, qword [rax + 0x30]
xor eax, eax
movdqu xmmword [rbp - 0x19], xmm0
xor edx, edx
mov dword [rbp + 0x4b], 0x505e444d
movdqa xmm0, xmmword [0x1800a33d0]
movdqu xmmword [rbp - 9], xmm1
mov dword [rbp + 0x4f], 0x4816565f
movdqa xmm1, xmmword [0x1800a33c0]
movdqu xmmword [rbp + 7], xmm0
mov word [rbp + 0x53], 0xc1f
movdqa xmm0, xmmword [0x1800a33b0]
movdqu xmmword [rbp + 0x17], xmm1
mov byte [rbp + 0x55], al
movdqa xmm1, xmmword [0x1800a33a0]
movdqu xmmword [rbp + 0x27], xmm0
movdqu xmmword [rbp + 0x37], xmm1
movsxd rcx, edx
lea eax, [rdx - 0x56]
inc edx
xor byte [rbp + rcx - 0x39], al
cmp edx, r8d
jb 0x180068a28
and qword [rsp + 0x20], 0
lea r9, [0x18009e095]
lea rdx, [rbp - 0x39]
mov byte [rbp + 0x55], 0
mov rcx, rbx
call r10
cmp byte [0x1800f61ae], 0
je 0x180068a87
and qword [rsp + 0x20], 0
lea r9, [0x18009e095]
mov byte [0x1800f61ae], 0
lea rdx, str.function_GetPlayerLook__local_aSystem.GetViewCameraPos__local_bSystem.GetViewCameraDir__local_cScaleVector_b_100_local_dDifferenceVectors_a_c_local_elocal_fPhysics.RayWorldIntersection_a_c_1_ent_terrainent_staticent_rigident_sleeping_rigident_living_g_localActor.id_NULL_ENTITY_e_return_e_1_end_function_SpawnHelper3_g_local_hGetPlayerLook__if_h_then_if_LastHelpers_then_LastHelpers:DeleteThis__end_local_ih.pos_local_jclass_RigidBodyEx__positioni_scalex1_y1_z1_name_Nickname__propertiesobject_Model_objects_props_toy_duck_toy_duck_cap.cgf_local_kSystem.SpawnEntity_j_k:SetAngles_g_localActor:GetAngles___LastHelpersk_end_end_SpawnHelper3__
mov rax, qword [rbx]
mov r8d, 0x2a0
mov rcx, rbx
call qword [rax + 0x30]
mov rbx, qword [rsp + 0xd0]
add rsp, 0xc0
pop rbp
ret
Function at 0x180068dcc
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov rdi, rdx
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1800f6110]
lea rdx, [rbp - 9]
mov rbx, r9
mov r14, r8
mov rcx, qword [rax]
mov rsi, qword [rcx + 0x48]
mov rcx, rdi
call fcn.1800020c0
mov r8, rbx
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.1800020c0
movsd xmm0, qword [rbp - 9]
lea r8, [rbp + 7]
mov r15d, dword [rbp - 1]
lea rdx, [rbp - 0x19]
mov rcx, rsi
movsd qword [rbp - 0x19], xmm0
mov dword [rbp - 0x11], r15d
call fcn.18000274c
test al, al
je 0x180068fe5
movsd xmm0, qword [rbp - 0x29]
lea r8, [rbp + 0x17]
mov eax, dword [rbp - 0x21]
lea rdx, [rbp - 0x19]
mov rcx, rsi
movsd qword [rbp - 0x19], xmm0
mov dword [rbp - 0x11], eax
call fcn.18000274c
test al, al
je 0x180068fe5
call fcn.180027228
movss xmm0, dword [0x1800ba2a8]
lea rcx, [rbp + 0x27]
movss xmm1, dword [0x1800ba2ac]
mov rbx, rax
movss dword [rbp + 0x27], xmm0
movss xmm0, dword [0x1800ba2b0]
movss dword [rbp + 0x2f], xmm0
movss dword [rbp + 0x2b], xmm1
mov dword [rbp + 0x33], 0x3f800000
call fcn.180025344
movss xmm0, dword [rbp + 0x17]
lea r8, [rbp - 0x29]
movss xmm1, dword [rbp + 0x1b]
lea rdx, [rbp - 0x19]
movss xmm6, dword [0x18009fad8]
mov r9d, eax
movss dword [rbp - 0x29], xmm0
mov rcx, rbx
movss xmm0, dword [rbp + 7]
movss dword [rbp - 0x25], xmm1
movss xmm1, dword [rbp + 0xb]
movss dword [rbp - 0x19], xmm0
movss dword [rbp - 0x15], xmm1
movss dword [rsp + 0x20], xmm6
call fcn.1800374c4
xor eax, eax
mov dword [rbp - 0x19], 0x9ddcc2e8
mov byte [rbp - 0xf], al
xor edx, edx
mov dword [rbp - 0x15], 0xd4f88f9f
mov word [rbp - 0x11], 0xd7d3
movsxd rcx, edx
lea eax, [rdx - 0x56]
inc edx
xor byte [rbp + rcx - 0x19], al
cmp edx, 0xa
jb 0x180068f16
lea rdx, [rbp - 0x19]
mov byte [rbp - 0xf], 0
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jne 0x180068fe5
movdqa xmm0, xmmword [0x1800a2800]
lea rcx, [rbp + 0x27]
movups xmmword [rbp + 0x27], xmm0
call fcn.1800273f8
mov ebx, eax
call fcn.180027228
movsd xmm0, qword [rsi + 0x17c0]
mov rdi, rax
movss xmm2, dword [rsi + 0x17c8]
movsd qword [rbp - 0x29], xmm0
movss xmm3, dword [rbp - 0x29]
movss xmm0, dword [rbp - 0x25]
subss xmm0, dword [rbp - 5]
subss xmm3, dword [rbp - 9]
movd xmm1, r15d
subss xmm2, xmm1
mulss xmm0, xmm0
mulss xmm3, xmm3
mulss xmm2, xmm2
addss xmm0, xmm3
addss xmm0, xmm2
call fcn.1800768ec
movss xmm2, dword [0x1800a3454]
lea rdx, [rbp - 0x19]
movss xmm1, dword [rbp + 0xb]
mov r9d, ebx
divss xmm2, xmm0
mov rcx, rdi
mov dword [rsp + 0x20], 0x3c
movss xmm0, dword [rbp + 7]
subss xmm1, xmm6
movss dword [rbp - 0x19], xmm0
movss dword [rbp - 0x15], xmm1
call fcn.1800364f4
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x18007fa68
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.1800700c0
sub rsp, rax
mov rax, qword [0x1800f4bb8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008c6f4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18007fab7
mov rax, rbp
jmp 0x18007fbbf
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xf74e0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18008e910
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xf74e0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18007fbbb
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 0x18007fbbb
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18008e910
test rax, rax
js 0x18007fbbb
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18007fbbb
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18007fbad
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18007fbad
cmp byte [rcx], 0xd
jne 0x18007fb93
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18007fba2
cmp byte [rcx + 1], 0xa
jne 0x18007fba2
inc rcx
jmp 0x18007fba2
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xf4fa0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18007fb75
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18007fbbf
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.180070500
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 0x18008db68
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008db7e
mov al, 1
jmp 0x18008dbde
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008db8f
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008dbdc
mov ecx, dword [rcx + 0x18]
nop
call fcn.180097920
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008dbdc
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008dbdc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008dbdc
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008dbde
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x18008dcb0
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, [0x1800f74e0]
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 0x18008dd07
cmp word [rdx], r13w
jne 0x18008dd07
or byte [rax + rdi*8 + 0x38], cl
jmp 0x18008dd0c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x18008de31
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x18008de52
lea r9, [rdx + 2]
cmp cx, r11w
je 0x18008dd45
mov rdx, r9
mov word [rbx], cx
jmp 0x18008dd6c
cmp r9, r8
jae 0x18008dd7c
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 0x18008dd26
jmp 0x18008de31
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 0x18008de26
cmp dword [rsp + 0x80], esi
je 0x18008de26
lea r8, [0x1800f74e0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x18008ddfe
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x18008ddce
mov word [rbx], r13w
jmp 0x18008de2e
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 0x18008dddb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x18008de2e
cmp word [rsp + 0x70], r13w
jne 0x18008de0b
cmp rbx, r14
je 0x18008ddc8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.18008e918
cmp word [rsp + 0x70], r13w
je 0x18008de31
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, [0x1800f74e0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x18008de2b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x18008de31
Function at 0x1800942ec
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 0x18009431c
xor eax, eax
jmp 0x1800943df
mov rbp, rbx
cmp word [rax], si
je 0x180094341
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180094328
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180094324
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.1800929d4
movsxd r14, eax
test eax, eax
jne 0x18009437f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180094315
mov rcx, r14
call fcn.18008eb7c
mov rdi, rax
test rax, rax
jne 0x180094398
xor ecx, ecx
call fcn.18008b714
jmp 0x180094374
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.1800929d4
test eax, eax
jne 0x1800943c9
mov rcx, rdi
call fcn.18008b714
jmp 0x1800943d3
xor ecx, ecx
call fcn.18008b714
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 0x180096c30
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.180089788
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 0x180096cd1
cmp ebx, dword [rsp + 0x30]
je 0x180096cca
test esi, esi
je 0x180096cca
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x180096ca5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x180096cb2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x180096c8f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x180096cb6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x180096cd3
mov eax, 1
jmp 0x180096cd3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x18009b7d4
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.18008e918
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18008e918
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x18009b924
cmp rax, 0xffffffffffffffff
je 0x18009b924
xor edi, edi
test rbp, rbp
jle 0x18009b8cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18008b9b0
mov rbx, rax
test rax, rax
jne 0x18009b85c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x18009b8c5
mov edx, 0x8000
mov ecx, r14d
call fcn.18009b658
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.18008d600
cmp eax, 0xffffffff
je 0x18009b8a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x18009b86c
mov edx, r15d
mov ecx, r14d
call fcn.18009b658
jmp 0x18009b8c5
cmp byte [rsi + 0x38], dil
je 0x18009b8bc
cmp dword [rsi + 0x34], 5
jne 0x18009b8bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x18009b8c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.18008b714
jmp 0x18009b938
jns 0x18009b938
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18008e918
cmp rax, 0xffffffffffffffff
jne 0x18009b8f0
cmp byte [rsi + 0x30], dil
je 0x18009b938
mov edi, dword [rsi + 0x2c]
jmp 0x18009b938
mov ecx, r14d
call fcn.180097920
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x18009b938
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 0x18009b938
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x18009b931
mov eax, dword [rsi + 0x2c]
jmp 0x18009b936
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18008e918
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