joyce8/EMBER2024-capa huggingface dataset:
Function at 0x142021058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1420211df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x142021089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14202106f
add dl, dl
jne 0x142021096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1420210f6
xor eax, eax
add dl, dl
jne 0x1420210a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1420211ad
add dl, dl
jne 0x1420210b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420210c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420210d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1420210dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1420210ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14202107e
mov eax, 1
add dl, dl
jne 0x142021106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x142021113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1420210fb
sub eax, ebx
mov ebx, 1
jne 0x14202114c
mov ecx, 1
add dl, dl
jne 0x14202112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14202113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x142021123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14202107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x142021168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x142021175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14202115d
cmp eax, 0x7d00
jae 0x14202119b
cmp eax, 0x500
jb 0x142021196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14202107e
cmp eax, 0x7f
ja 0x14202119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14202107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1420211d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14202107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14005d170
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14005d17d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14005d18d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14005d175
lea eax, [rcx + 1]
jmp 0x14005d19b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14005d1ae
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14005d194
sub eax, 3
jb 0x14005d1ce
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14005d21d
sar eax, 1
movsxd rbp, eax
jb 0x14005d204
jmp 0x14005d1dc
add ebx, ebx
jne 0x14005d1da
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005d204
inc ecx
add ebx, ebx
jne 0x14005d1ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14005d204
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14005d1fd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14005d1ec
add ecx, 2
jmp 0x14005d209
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14005d132
jmp 0x14005d17d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x22e00
mov dl, reloc.COMCTL32.dll_InitCommonControls
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14005d269
cmp rsi, rcx
jae 0x14005d271
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14005d250
cmp al, 0x8f
ja 0x14005d250
cmp byte [rsi - 2], 0xf
je 0x14005d256
sub al, 0xe8
cmp al, 1
ja 0x14005d23a
cmp rsi, rcx
jae 0x14005d271
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14005d240
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14005d271
lodsb al, byte [rsi]
jmp 0x14005d250
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x5b000]
mov eax, dword [rdi]
or eax, eax
je 0x14005d2da
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x85d84]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14005d27e
jns 0x14005d2b3
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14005d2bd
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14005d2d4
mov qword [rbx], rax
add rbx, 8
jmp 0x14005d29e
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14005d332
sub rsp, 0xffffffffffffff80
jmp 0x140023590
Function at 0x140006b30
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006b60
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
je 0x140006b60
cmp dword [rax], 0x4550
jne 0x140006b60
lea rcx, [rax + 4]
test rcx, rcx
je 0x140006b60
mov edx, 0x14c
cmp word [rcx], dx
sete al
ret
xor eax, eax
ret

Function at 0x140006b70
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140006ba0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
je 0x140006ba0
cmp dword [rax], 0x4550
jne 0x140006ba0
lea rcx, [rax + 4]
test rcx, rcx
je 0x140006ba0
mov edx, 0x8664
cmp word [rcx], dx
sete al
ret
xor eax, eax
ret

Function at 0x140006bb0
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, qword [rdx + 0x10]
mov rbx, r8
mov rdi, rdx
mov dword [rsp + 0x20], 4
add r14, r14
xor edx, edx
mov r9d, 0x3000
mov rsi, rcx
lea r8, [r14 + 4]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140006c09
test rbx, rbx
je 0x140006cf5
lea rax, str.Failed_to_remotely_allocate_page_with_VirtualAllocEx__
jmp 0x140006cf2
cmp qword [rdi + 0x18], 7
mov qword [rsp + 0x68], 0
jbe 0x140006c1c
mov rdi, qword [rdi]
lea rax, [rsp + 0x68]
mov r9, r14
mov r8, rdi
mov qword [rsp + 0x20], rax
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x140006cd1
cmp qword [rsp + 0x68], r14
jb 0x140006cd1
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryW]
xor r8d, r8d
mov qword [rsp + 0x30], 0
xor edx, edx
mov dword [rsp + 0x28], 0
mov rcx, rsi
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov rdi, rax
test rax, rax
jne 0x140006ca1
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140006cf5
lea rax, str.Failed_to_create_run_remote_thread_with_CreateRemoteThread__
jmp 0x140006cf2
mov edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
xor eax, eax
jmp 0x140006cfb
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbp
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
test rbx, rbx
je 0x140006cf5
lea rax, str.Failed_to_remotely_write_dll_path_with_WriteProcessMemory__
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14000b210
Capabilities:
Delete registry key
Persist via default file association registry key
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e7d3], 0
je 0x14000b3be
lea rcx, str.restoring_registry_entries__HKCS__1
call fcn.140006140
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.steamShellOpenCommand
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b2b7
mov eax, dword [0x14004d15c]
mov dword [rsp + 0x28], eax
lea rax, [0x14005a7e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, [0x14003a444]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000b3be
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rsp + 0x95]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000b2d0
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140006d10
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKCS__2__error_
lea rcx, [rsp + 0x40]
call fcn.140006fb0
nop
mov rcx, rax
call fcn.140005ed0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b372
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b36d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b405
call fcn.140015d80
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b3be
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b3b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b3ff
call fcn.140015d80
cmp byte [0x14004e7d2], 0
jne 0x14000b3e7
lea rcx, str.removing_registry_entries__HKCS__2__added_by_loader_
call fcn.140006140
lea rdx, str.steam
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f00
add rsp, 0xa8
ret
call fcn.14001bbf4
nop
call fcn.14001bbf4
nop
int3
Function at 0x14000b410
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e7d0], 0
je 0x14000b5fa
lea rcx, str.restoring_registry_entries__HKCU_
call fcn.140006140
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.SoftwareValveSteamActiveProcess
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b4ff
mov eax, dword [0x14004d150]
mov dword [rsp + 0x28], eax
lea rax, [0x14004e7e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamClientDll
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x14004d154]
mov dword [rsp + 0x28], eax
lea rax, [0x1400527e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.SteamClientDll64
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f00
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rsp + 0x95]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000b510
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140006d10
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKCU___error_
lea rcx, [rsp + 0x40]
call fcn.140006fb0
nop
mov rcx, rax
call fcn.140005ed0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b5ae
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b5a9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b618
call fcn.140015d80
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b5fa
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b5f5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b612
call fcn.140015d80
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f00
add rsp, 0xa8
ret
call fcn.14001bbf4
nop
call fcn.14001bbf4
nop
int3
Function at 0x14000b620
Capabilities:
Set registry value

Disassembly:
sub rsp, 0xa8
mov rax, qword [0x14004d2c0]
xor rax, rsp
mov qword [rsp + 0x98], rax
cmp byte [0x14004e7d1], 0
je 0x14000b7ea
lea rcx, str.restoring_registry_entries__HKLM_
call fcn.140006140
mov qword [rsp + 0x38], 0
lea rdx, [0x14005e7e8]
cmp qword [0x14005e800], 7
cmova rdx, qword [0x14005e7e8]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000b6ea
mov eax, dword [0x14004d158]
mov dword [rsp + 0x28], eax
lea rax, [0x1400567e0]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
lea rdx, str.InstallPath
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f00
add rsp, 0xa8
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea r10, [rsp + 0x95]
nop dword [rax + rax]
dec r10
mov eax, 0xcccccccd
mul r8d
shr edx, 3
movzx ecx, dl
shl cl, 2
lea eax, [rcx + rdx]
add al, al
sub r8b, al
add r8b, 0x30
mov byte [r10], r8b
mov r8d, edx
test edx, edx
jne 0x14000b700
lea r9, [rsp + 0x30]
lea r8, [rsp + 0x95]
mov rdx, r10
lea rcx, [rsp + 0x60]
call fcn.140006d10
nop
lea r8, [rsp + 0x60]
lea rdx, str.Unable_to_restore_the_original_registry_entry__HKLM___error_
lea rcx, [rsp + 0x40]
call fcn.140006fb0
nop
mov rcx, rax
call fcn.140005ed0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000b79e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b799
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b808
call fcn.140015d80
movdqa xmm0, xmmword [0x140039980]
movdqu xmmword [rsp + 0x50], xmm0
mov byte [rsp + 0x40], 0
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x14000b7ea
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000b7e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b802
call fcn.140015d80
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
call fcn.140015f00
add rsp, 0xa8
ret
call fcn.14001bbf4
nop
call fcn.14001bbf4
nop
int3
Function at 0x14000ddb0
Capabilities:
Read .ini file

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x88
mov rsi, r9
mov qword [rsp + 0x60], r9
mov rbx, r8
mov qword [rsp + 0x58], rbx
mov r13, rdx
mov r15, rcx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], rcx
xor eax, eax
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], rax
mov ecx, 0x10025
call fcn.140015d44
test rax, rax
je 0x14000dfd9
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
mov qword [rsp + 0x38], r14
lea rbp, [r14 + 0xfffe]
mov qword [rsp + 0x48], rbp
xor edx, edx
mov r8d, 0xfffe
mov rcx, r14
call fcn.140036800
mov rdi, rbp
mov qword [rsp + 0x40], rbp
lea rax, [0x14004d160]
cmp qword [0x14004d178], 7
cmova rax, qword [0x14004d160]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x7fff
mov r9, r14
mov r8, rsi
mov rdx, rbx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r9d, eax
mov r12d, 3
mov rsi, r14
cmp eax, 0x7ffe
jne 0x14000df68
mov rdx, r14
mov r8, r14
mov r15, rbx
test r12d, r12d
jle 0x14000df63
mov rax, rdi
sub rax, rdx
sar rax, 1
add rax, rax
mov rdx, rdi
sub rdx, r8
sar rdx, 1
cmp rax, rdx
jae 0x14000debb
lea rdi, [r8 + rax*2]
jmp 0x14000df05
jbe 0x14000df0a
mov rcx, rbp
sub rcx, r8
sar rcx, 1
cmp rax, rcx
jbe 0x14000deee
lea r8, [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x38]
call fcn.140007ca0
mov rbp, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x38]
jmp 0x14000df0a
sub rax, rdx
lea rbx, [rax + rax]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.140036800
add rdi, rbx
mov qword [rsp + 0x40], rdi
lea rax, [0x14004d160]
cmp qword [0x14004d178], 7
cmova rax, qword [0x14004d160]
mov rbx, rdi
sub rbx, r14
sar rbx, 1
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ebx
mov r9, r14
mov r8, qword [rsp + 0x60]
mov rdx, r15
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov r9d, eax
dec r12d
mov rdx, r14
mov rsi, r14
mov r8, r14
lea rcx, [rbx - 1]
cmp r9, rcx
je 0x14000de92
mov r15, qword [rsp + 0x68]
xorps xmm0, xmm0
movups xmmword [r15], xmm0
xor eax, eax
mov qword [r15 + 0x10], rax
mov qword [r15 + 0x18], rax
mov r8d, r9d
mov rdx, r14
mov rcx, r15
call fcn.140001450
nop
test rsi, rsi
je 0x14000dfc2
sub rbp, rsi
sar rbp, 1
add rbp, rbp
cmp rbp, 0x1000
jb 0x14000dfb7
add rbp, 0x27
mov rdx, qword [rsi - 8]
sub rsi, rdx
lea rcx, [rsi - 8]
cmp rcx, 0x1f
ja 0x14000dfd9
mov rsi, rdx
mov rdx, rbp
mov rcx, rsi
call fcn.140015d80
mov rax, r15
add rsp, 0x88
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
call fcn.14001bbf4
int3
Function at 0x140010840
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x20
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x140010864
xor eax, eax
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], rdi
je 0x1400108f2
mov rdi, r15
mov qword [rsp + 0x40], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400108c0
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x1400108c0
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.140036160
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x1400108dd
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x1400108e5
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x140010881
mov rbp, qword [rsp + 0x40]
sub r15, rdi
jmp 0x1400109d0
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140010909
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001090b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001093d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.140036160
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x1400109cd
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140010978
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x1400109ae
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.1400206ec
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x1400109cd
cmp rsi, rax
ja 0x140010981
test rsi, rsi
je 0x1400109cd
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400206ec
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x48]
mov rax, r15
mov rdi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rbx
ret
Function at 0x140013ec8
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 0x140013f02
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140013f07
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 0x140013f50
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003b840]
cmp byte [rcx + rax], 0
je 0x140013f50
dec r8
sub rdx, 1
jne 0x140013f36
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140016b2c
Capabilities:
Parse pe header

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

Function at 0x140022cdc
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 0x140022d4b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140022d4b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140022d4b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140022d4b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140022d4b
cmp dword [rcx + 0x84], 0xe
jbe 0x140022d4b
cmp dword [rcx + 0xf8], 0
je 0x140022d4b
mov ecx, ebx
call fcn.140022dfc
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.140022bd8
nop
cmp dword [rbp + 0x20], 0
je 0x140022d99
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140022da4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140022cdc

Function at 0x140022ee0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140022cdc
Function at 0x140028340
Capabilities:
Get file size

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