joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ae30
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [rcx + 8]
test rax, rax
je 0x14000af4e
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rbp - 0x20], rcx
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x20]
lea rdx, [rbp - 0x58]
call fcn.14000ab40
xor edi, edi
test eax, eax
js 0x14000af50
movzx eax, word [rbp - 0x52]
and eax, 0xf000
movzx eax, ax
cmp eax, 0x8000
jne 0x14000af50
mov rax, qword [rsi]
mov qword [rbp - 0x10], rax
mov rax, qword [rsi + 8]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x58]
lea rdx, [rbp - 0x10]
call fcn.140018250
mov rcx, qword [rbp - 0x58]
test rcx, rcx
lea rdi, [0x1401413f6]
cmove rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov ebx, eax
test eax, eax
jns 0x14000af0a
mov rcx, qword [0x14018ad98]
test rcx, rcx
jne 0x14000aee6
call fcn.14000a1d0
lea rcx, [0x14018ac78]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x170]
mov rax, qword [rbp - 0x58]
test rax, rax
cmovne rdi, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov ebx, eax
test ebx, ebx
je 0x14000af3d
cmp dword [0x14018ae30], 0
jns 0x14000af3d
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
lea rdx, str.C:_buildbot_src_android_emu_32_release_external_qemu_android_android_emu_base_android_base_system_System.cpp
lea r9, str.Failed_to_delete_file___s_
mov ecx, 0xffffffff
mov r8d, 0x846
call fcn.14001fe10
test ebx, ebx
sete dil
lea rcx, [rbp - 0x58]
call fcn.140018490
jmp 0x14000af50
xor edi, edi
mov eax, edi
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret

Function at 0x14000af90
Capabilities:
Get disk size

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x70
lea rbp, [rsp + 0x70]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
movups xmm0, xmmword [rcx]
movups xmmword [rbp - 0x48], xmm0
mov byte [rbp - 0x38], 0
mov qword [rbp - 0x30], 0
lea rcx, [rbp - 0x48]
call fcn.14000f7d0
lea rdx, [rbp - 0x10]
mov rcx, rax
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov edi, eax
cmp byte [rbp - 0x38], 0
je 0x14000b019
mov rax, qword [rbp - 0x18]
cmp rax, 0x10
jb 0x14000b019
mov rcx, qword [rbp - 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14000b014
mov r8, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, r8
cmp rcx, 0x20
jae 0x14000b031
add rax, 0x28
mov rdx, rax
mov rcx, r8
call fcn.1400651e0
test edi, edi
je 0x14000b024
mov rax, qword [rbp - 0x10]
mov qword [rsi], rax
test edi, edi
setne al
add rsp, 0x70
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140010b90
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [rsp + 0x40]
test ecx, ecx
mov eax, 1
cmovne eax, ecx
add rsp, 0x58
ret

Function at 0x140010bd0
Capabilities:
Get memory capacity

Disassembly:
push rsi
sub rsp, 0xc0
movaps xmmword [rsp + 0xb0], xmm6
mov rsi, rdx
xorps xmm6, xmm6
movups xmmword [rdx + 0x20], xmm6
movups xmmword [rdx + 0x10], xmm6
movups xmmword [rdx], xmm6
mov qword [rdx + 0x30], 0
movaps xmmword [rsp + 0x20], xmm6
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
movaps xmmword [rsp + 0x30], xmm6
mov dword [rsp + 0x20], 0x50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x20]
mov rcx, rax
mov r8d, 0x50
call sub.KERNEL32.dll_K32GetProcessMemoryInfo
test eax, eax
je 0x140010c62
mov rax, qword [rsp + 0x58]
test rax, rax
jne 0x140010c46
mov rax, qword [rsp + 0x68]
movdqu xmm0, xmmword [rsp + 0x28]
pshufd xmm0, xmm0, 0x4e
movdqu xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x18], rax
movaps xmmword [rsp + 0x70], xmm6
movaps xmmword [rsp + 0xa0], xmm6
movaps xmmword [rsp + 0x90], xmm6
movaps xmmword [rsp + 0x80], xmm6
mov dword [rsp + 0x70], 0x40
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x140010cad
movdqu xmm0, xmmword [rsp + 0x78]
movdqu xmmword [rsi + 0x20], xmm0
mov rax, qword [rsp + 0x88]
mov qword [rsi + 0x30], rax
mov rax, rsi
movaps xmm6, xmmword [rsp + 0xb0]
add rsp, 0xc0
pop rsi
ret
Function at 0x140012350
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x260
lea rsi, [rcx + 0x100]
cmp qword [rcx + 0x110], 0
jne 0x140012470
mov rdi, rcx
lea rbx, [rsp + 0x50]
mov r8d, 0x208
mov rcx, rbx
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x20], rbx
xor ecx, ecx
mov edx, 0x1a
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x1400123b2
lea rbx, [rsp + 0x30]
lea rdx, [rsp + 0x50]
mov rcx, rbx
jmp 0x1400123d3
lea rcx, str.APPDATA
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll__wgetenv]
test rax, rax
je 0x140012470
lea rbx, [rsp + 0x30]
mov rcx, rbx
mov rdx, rax
mov r8d, 0xffffffff
call fcn.1400186a0
cmp rbx, rsi
je 0x140012433
mov rax, qword [rdi + 0x118]
cmp rax, 0x10
jb 0x140012420
mov rcx, qword [rsi]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001241b
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14001247e
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400651e0
movups xmm0, xmmword [rsp + 0x30]
movups xmm1, xmmword [rsp + 0x40]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140012470
mov rax, qword [rsp + 0x48]
cmp rax, 0x10
jb 0x140012470
mov rcx, qword [rsp + 0x30]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x14001246b
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x14001247e
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.1400651e0
mov rax, rsi
add rsp, 0x260
pop rbx
pop rdi
pop rsi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3

Function at 0x140012490
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x40
mov rsi, rdx
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
js 0x140012501
mov ebx, eax
add ebx, 1
mov edx, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
mov rdi, rax
mov ecx, ebx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x1400124d2
mov word [rdi], 0x30
lea rcx, [rsp + 0x20]
mov rdx, rdi
mov r8d, 0xffffffff
call fcn.1400186a0
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
movups xmm0, xmmword [rsp + 0x20]
movups xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
jmp 0x140012516
mov qword [rsi], 0
movaps xmm0, xmmword [0x14013f230]
movups xmmword [rsi + 0x10], xmm0
mov byte [rsi], 0
mov rax, rsi
add rsp, 0x40
pop rbx
pop rdi
pop rsi
ret

Function at 0x140012530
Capabilities:
Set current directory

Disassembly:
push rsi
push rbx
sub rsp, 0x48
mov rax, qword [rdx]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x30], rax
lea rsi, [rsp + 0x38]
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.140018250
mov rax, qword [rsp + 0x38]
test rax, rax
lea rcx, [0x1401413f6]
cmovne rcx, rax
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
setne bl
mov rcx, rsi
call fcn.140018490
mov eax, ebx
add rsp, 0x48
pop rbx
pop rsi
ret
Function at 0x140012590
Capabilities:
Create directory
Get common file path

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
lea rdi, [rbp - 0x18]
mov edx, 0x104
mov rcx, rdi
call fcn.140018280
mov rcx, rdi
call fcn.140018660
mov ecx, dword [rbp - 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov edx, eax
cmp qword [rbp - 0x10], rdx
jae 0x1400125f2
lea rcx, [rbp - 0x18]
call fcn.1400182d0
lea rcx, [rbp - 0x18]
call fcn.140018660
mov ecx, dword [rbp - 0x10]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x140012637
mov edx, eax
lea rcx, [rbp - 0x18]
call fcn.1400182d0
lea rdx, str.AndroidEmulator
lea rcx, [rbp - 0x18]
call fcn.1400189c0
mov rax, qword [rbp - 0x18]
test rax, rax
lea rcx, [0x1401413f6]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wmkdir]
lea rcx, [rbp - 0x18]
mov rdx, rsi
call fcn.140018680
jmp 0x140012653
movaps xmm0, xmmword [0x14013fd50]
movups xmmword [rsi + 0x10], xmm0
mov dword [rsi], 0x545c3a43
mov dword [rsi + 3], 0x706d6554
mov byte [rsi + 7], 0
lea rcx, [rbp - 0x18]
call fcn.140018490
mov rax, rsi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140031e70
Capabilities:
Get file size

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rdx
lea rax, [0x14013faa2]
test rcx, rcx
cmovne rax, rcx
mov qword [rsp + 0x40], rax
je 0x140031e96
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
jmp 0x140031e98
xor eax, eax
mov qword [rsp + 0x48], rax
lea rcx, [rsp + 0x50]
lea rdx, [rsp + 0x40]
call fcn.140018250
mov rax, qword [rsp + 0x50]
test rax, rax
lea rcx, [0x1401413f6]
cmovne rcx, rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor edi, edi
mov edx, 0x80000000
mov r8d, 3
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x140031f10
mov rbx, rax
lea rdx, [rsp + 0x38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140031f23
mov rax, qword [rsp + 0x38]
jmp 0x140031f25
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov dword [rax], 2
mov edi, 0xffffffff
jmp 0x140031f31
xor eax, eax
mov qword [rsi], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140018490
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
Function at 0x140031f50
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x2d0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x248], 0xfffffffffffffffe
mov r14, r8
mov rbx, rdx
mov r8, rcx
lea rcx, [rbp - 0x40]
mov esi, 0xffffffff
mov edx, 0x105
mov r9d, 0xffffffff
call fcn.140018970
test eax, eax
js 0x1400320ee
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x40]
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
je 0x14003209b
mov qword [rbp + 0x240], rax
lea rcx, [rbp - 0x40]
mov esi, 0xffffffff
mov edx, 0x105
mov r8, rbx
mov r9d, 0xffffffff
call fcn.140018970
test eax, eax
js 0x1400320b1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x2000000
mov dword [rsp + 0x20], 3
lea rcx, [rbp - 0x40]
xor edx, edx
mov r8d, 7
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov rdi, qword [rbp + 0x240]
je 0x1400320c1
mov rbx, rax
lea rdx, [rbp + 0x1d0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400320ba
lea rdx, [rbp + 0x208]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
je 0x1400320ba
mov ecx, dword [rbp + 0x1ec]
xor esi, esi
mov eax, 0
cmp ecx, dword [rbp + 0x224]
jne 0x1400320d9
mov eax, dword [rbp + 0x1fc]
cmp eax, dword [rbp + 0x234]
jne 0x1400320d7
mov eax, dword [rbp + 0x200]
cmp eax, dword [rbp + 0x238]
sete al
jmp 0x1400320d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
cmp eax, 2
jne 0x1400320ee
mov byte [r14], 0
xor esi, esi
jmp 0x1400320ee
mov rdi, qword [rbp + 0x240]
jmp 0x1400320e5
mov esi, 0xffffffff
jmp 0x1400320dc
call qword [sym.imp.KERNEL32.dll_GetLastError]
and eax, 0xfffffffe
cmp eax, 2
jne 0x1400320e5
mov byte [r14], 0
xor esi, esi
jmp 0x1400320e5
xor eax, eax
mov byte [r14], al
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
add rsp, 0x2d0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x140032160
Capabilities:
Copy file

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp], 0xfffffffffffffffe
mov r15, rdx
mov r14, rcx
mov byte [rbp - 1], 0
lea r8, [rbp - 1]
mov rcx, rdx
mov rdx, r14
call fcn.140031f50
mov ebx, eax
test eax, eax
jne 0x140032317
cmp byte [rbp - 1], 0
jne 0x140032317
mov rcx, r15
mov edx, 4
call fcn.14004abe0
test eax, eax
js 0x1400321de
lea rbx, [0x14013faa2]
mov rax, r14
test r14, r14
cmove rax, rbx
mov qword [rbp - 0x48], rax
je 0x14003224f
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
jmp 0x140032251
test byte [0x14018ae28], 1
je 0x140032216
mov qword [rsp + 0x28], r15
lea rax, str.path_copy_file
mov qword [rsp + 0x20], rax
lea rdx, str.C:_buildbot_src_android_emu_32_release_external_qemu_android_android_emu_base_android_utils_path.cpp
lea r9, str._s:_source_file_is_un_readable:__s_n
mov ecx, 0xffffffff
mov r8d, 0x1b9
call fcn.14001fe10
mov rcx, r15
xor edx, edx
call fcn.14004abe0
mov ebx, 0xffffffff
test eax, eax
jne 0x140032317
mov rcx, r14
mov edx, 0x80
call fcn.14004acc0
test eax, eax
js 0x140032317
mov ecx, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
jmp 0x140032317
xor eax, eax
mov qword [rbp - 0x40], rax
lea rcx, [rbp - 0x18]
lea rdx, [rbp - 0x48]
call fcn.140018250
mov rsi, qword [rbp - 0x18]
test rsi, rsi
lea rdi, [0x1401413f6]
cmove rsi, rdi
test r15, r15
cmovne rbx, r15
mov qword [rbp - 0x28], rbx
je 0x14003228b
mov rcx, r15
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
jmp 0x14003228d
xor eax, eax
mov qword [rbp - 0x20], rax
lea rcx, [rbp - 0x38]
lea rdx, [rbp - 0x28]
call fcn.140018250
mov rax, qword [rbp - 0x38]
test rax, rax
cmovne rdi, rax
xor ebx, ebx
mov rcx, rdi
mov rdx, rsi
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_CopyFileW]
mov esi, eax
lea rcx, [rbp - 0x38]
call fcn.140018490
lea rcx, [rbp - 0x18]
call fcn.140018490
test esi, esi
jne 0x140032317
mov ebx, 0xffffffff
test byte [0x14018ae28], 1
je 0x140032317
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
lea rdx, str.C:_buildbot_src_android_emu_32_release_external_qemu_android_android_emu_base_android_utils_path.cpp
lea r9, str.Failed_to_copy__s_to__s:__u
mov ebx, 0xffffffff
mov ecx, 0xffffffff
mov r8d, 0x1c7
call fcn.14001fe10
mov eax, ebx
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x1400323a0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x668
mov r15, rdx
mov r14, rcx
lea rcx, [rsp + 0x260]
mov ebx, 0xffffffff
mov edx, 0x105
mov r8, r15
mov r9d, 0xffffffff
call fcn.140018970
test eax, eax
js 0x14003252a
lea rcx, [rsp + 0x50]
mov esi, 0xffffffff
mov edx, 0x105
mov r8, r14
mov r9d, 0xffffffff
call fcn.140018970
test eax, eax
js 0x14003252a
lea rdi, [rsp + 0x4c]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
mov rbp, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__wsopen_dispatch]
lea rcx, [rsp + 0x260]
mov edx, 0x8000
mov r8d, 0x40
xor r9d, r9d
call rbp
neg eax
sbb ebx, ebx
or ebx, dword [rsp + 0x4c]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 0
lea rcx, [rsp + 0x50]
mov edx, 0x8302
mov r8d, 0x40
xor r9d, r9d
call rbp
neg eax
sbb ebp, ebp
or ebp, dword [rsp + 0x4c]
test ebx, ebx
js 0x140032510
test ebp, ebp
js 0x140032510
lea rdi, [rsp + 0x260]
mov r12, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__read]
mov r13, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__write]
nop
mov ecx, ebx
mov rdx, rdi
mov r8d, 0x400
call r12
test eax, eax
je 0x14003250e
mov esi, eax
mov ecx, ebp
mov rdx, rdi
mov r8d, eax
call r13
cmp eax, esi
je 0x140032490
mov esi, 0xffffffff
test byte [0x14018ae28], 1
je 0x140032510
mov rsi, qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call rsi
mov edi, dword [rax]
call rsi
mov ecx, dword [rax]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_strerror]
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
lea rdx, str.C:_buildbot_src_android_emu_32_release_external_qemu_android_android_emu_base_android_utils_path.cpp
lea r9, str.Failed_to_copy__s_to__s:__s___d_
mov esi, 0xffffffff
mov ecx, 0xffffffff
mov r8d, 0x19f
call fcn.14001fe10
jmp 0x140032510
xor esi, esi
test ebx, ebx
js 0x14003251c
mov ecx, ebx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
test ebp, ebp
js 0x140032528
mov ecx, ebp
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__close]
mov ebx, esi
mov eax, ebx
add rsp, 0x668
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140034430
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x88
cmp edx, 0xffffffff
je 0x14003454d
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x14003447c
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x14003447c
add ecx, 0xffffffff
mov dword [rax], ecx
mov rax, qword [rdi + 0x40]
mov rcx, qword [rax]
lea rdx, [rcx + 1]
mov qword [rax], rdx
mov byte [rcx], sil
jmp 0x140034592
cmp qword [rdi + 0x80], 0
je 0x140034551
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x1400344b6
mov ecx, dword [rdi + 0x90]
mov rdx, qword [rdi + 0x88]
mov qword [rax], rdx
mov rax, qword [rdi + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rdi + 0x50]
mov dword [rax], ecx
mov rcx, qword [rdi + 0x68]
test rcx, rcx
je 0x140034558
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov rbp, qword [rcx]
lea rbx, [rsp + 0x50]
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rax
lea r15, [rsp + 0x60]
mov qword [rsp + 0x28], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r14, [rsp + 0x4f]
mov r8, r14
call qword [rbp + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x140034571
mov rbx, qword [rsp + 0x50]
sub rbx, r15
je 0x14003453d
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x60]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140034590
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], r14
mov eax, 0xffffffff
jmp 0x14003458b
xor esi, esi
jmp 0x140034592
mov esi, 0xffffffff
jmp 0x140034592
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
jmp 0x140034592
cmp eax, 3
jne 0x140034590
mov rdx, qword [rdi + 0x80]
movsx ecx, byte [rsp + 0x4f]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, 0xffffffff
cmove esi, eax
mov ebp, esi
mov esi, ebp
mov eax, esi
add rsp, 0x88
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140034a20
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140034a5b
mov r14, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140034a63
mov rcx, rbx
mov rdx, rdi
mov r8, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor r14d, r14d
jmp 0x140034b58
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140034ab6
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140034ab6
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140034ac7
jmp 0x140034b55
mov rsi, r14
cmp qword [rbx + 0x80], 0
je 0x140034b55
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x140034af3
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
mov r15, qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
nop word [rax + rax]
cmp rsi, 0x1000
jb 0x140034b31
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x140034b00
jmp 0x140034b55
test rsi, rsi
je 0x140034b53
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rsi, rax
jmp 0x140034b55
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140034b70
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov r14, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140034ba6
mov rcx, rbx
mov rdx, r14
mov r8, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rbx + 0x40]
mov rcx, qword [rax]
test rcx, rcx
je 0x140034bf7
test rsi, rsi
jle 0x140034bf7
mov rax, qword [rbx + 0x58]
mov eax, dword [rax]
test eax, eax
jle 0x140034bf7
movsxd r15, eax
cmp r15, rsi
cmova r15, rsi
mov rdx, r14
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add r14, r15
mov rdi, rsi
sub rdi, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
movsxd rcx, r15d
add qword [rax], rcx
test rdi, rdi
jg 0x140034bff
jmp 0x140034c1f
mov rdi, rsi
test rdi, rdi
jle 0x140034c1f
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x140034c1f
mov edx, 1
mov rcx, r14
mov r8, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rdi, rax
sub rsi, rdi
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140034fc0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov al, 1
cmp qword [rcx + 0x68], 0
je 0x14003505b
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x14003505b
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140035059
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea rbx, [rsp + 0x28]
mov qword [rsp + 0x20], rbx
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x140035063
cmp eax, 1
je 0x140035027
test eax, eax
jne 0x140035059
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140035050
mov r9, qword [rsi + 0x80]
lea rcx, [rsp + 0x30]
mov edx, 1
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140035059
cmp byte [rsi + 0x71], 0
sete al
jmp 0x14003505b
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov al, 1
jmp 0x14003505b

Function at 0x140035610
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x140035655
mov rdx, rcx
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_calloc]
test rax, rax
jne 0x140035657
lea rdx, str.C:_buildbot_src_android_emu_32_release_external_qemu_android_android_emu_base_android_utils_system.c
lea r9, str.PANIC:_not_enough_memory
mov ecx, 3
mov r8d, 0x46
call fcn.14001fe10
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
xor eax, eax
add rsp, 0x28
ret