joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078360
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14009b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140078433
cmp byte [rcx + 0x71], 0
je 0x140078433
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14007842f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400783f4
sub eax, 1
je 0x1400783f8
cmp eax, 2
jne 0x14007842f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140078426
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14007842f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400783dc
xor al, al
jmp 0x1400783dc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14007fac0
add rsp, 0x60
pop rbx
ret

Function at 0x14007f890
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea r12, [r8 - 1]
mov rbp, rcx
mov rsi, r12
mov r14, r9
sar rsi, 1
mov r13, r8
mov rdi, rdx
mov r15, rdx
mov rcx, rdx
cmp rdx, rsi
jge 0x14007f91a
nop word [rax + rax]
lea rbx, [rcx + rcx]
lea rdx, [rbx + 2]
shl rdx, 5
add rdx, rbp
lea r8, [rdx - 0x20]
call fcn.14007cbb0
shl rdi, 5
movzx ecx, al
xor rcx, 1
inc rcx
add rcx, rbx
mov rax, rcx
shl rax, 5
movups xmm0, xmmword [rax + rbp]
movups xmmword [rdi + rbp], xmm0
movups xmm1, xmmword [rax + rbp + 0x10]
movups xmmword [rdi + rbp + 0x10], xmm1
mov rdi, rcx
cmp rcx, rsi
jl 0x14007f8d0
mov rbx, rcx
cmp rcx, rsi
jne 0x14007f948
test r13b, 1
jne 0x14007f948
shl r13, 5
mov rbx, r12
shl rcx, 5
movups xmm0, xmmword [rbp + r13 - 0x20]
movups xmmword [rcx + rbp], xmm0
movups xmm1, xmmword [rbp + r13 - 0x10]
movups xmmword [rcx + rbp + 0x10], xmm1
cmp r15, rbx
jge 0x14007f98c
nop dword [rax]
lea rdi, [rbx - 1]
mov r8, r14
sar rdi, 1
mov rsi, rdi
shl rsi, 5
add rsi, rbp
mov rdx, rsi
call fcn.14007cbb0
test al, al
je 0x14007f98c
movups xmm0, xmmword [rsi]
shl rbx, 5
movups xmmword [rbx + rbp], xmm0
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rbx + rbp + 0x10], xmm1
mov rbx, rdi
cmp r15, rdi
jl 0x14007f950
movups xmm0, xmmword [r14]
shl rbx, 5
movups xmmword [rbx + rbp], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rbx + rbp + 0x10], xmm1
mov rbx, qword [rsp + 0x78]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140080744
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14008078e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14008078e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14008078e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14008078e
cmp dword [rcx + 0x84], 0xe
jbe 0x14008078e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140080790
xor al, al
add rsp, 0x28
ret
Function at 0x140004000
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
cld
and rsp, 0xfffffffffffffff0
call fcn.1400040d6
push r9
push r8
push rdx
push rcx
xor rdx, rdx
mov rdx, qword gs:[rdx + 0x60]
mov rdx, qword [rdx + 0x18]
push rsi
mov rdx, qword [rdx + 0x20]
xor r9, r9
movzx rcx, word [rdx + 0x4a]
mov rsi, qword [rdx + 0x50]
xor rax, rax
lodsb al, byte [rsi]
cmp al, 0x61
jl 0x140004037
sub al, 0x20
ror r9d, 0xd
add r9d, eax
loop 0x14000402d
push rdx
push r9
mov rdx, qword [rdx + 0x20]
mov eax, dword [rdx + 0x3c]
add rax, rdx
cmp word [rax + 0x18], 0x20b
jne 0x1400040cb
mov eax, dword [rax + 0x88]
test rax, rax
je 0x1400040cb
add rax, rdx
mov ecx, dword [rax + 0x18]
mov r8d, dword [rax + 0x20]
push rax
add r8, rdx
jrcxz 0x1400040ca
dec rcx
mov esi, dword [r8 + rcx*4]
add rsi, rdx
xor r9, r9
xor rax, rax
lodsb al, byte [rsi]
ror r9d, 0xd
add r9d, eax
cmp al, ah
jne 0x140004081
add r9, qword [rsp + 8]
cmp r9d, r10d
jne 0x140004072
pop rax
mov r8d, dword [rax + 0x24]
add r8, rdx
mov cx, word [r8 + rcx*2]
mov r8d, dword [rax + 0x1c]
add r8, rdx
mov eax, dword [r8 + rcx*4]
add rax, rdx
pop r8
pop r8
pop rsi
pop rcx
pop rdx
pop r8
pop r9
pop r10
sub rsp, 0x20
push r10
jmp rax
pop rax
pop r9
pop rdx
mov rdx, qword [rdx]
jmp 0x140004021
Function at 0x140002b18
Capabilities:
Parse pe header

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

Function at 0x180876058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1808761df
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 0x180876089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18087606f
add dl, dl
jne 0x180876096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808760f6
xor eax, eax
add dl, dl
jne 0x1808760a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1808761ad
add dl, dl
jne 0x1808760b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808760c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808760d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1808760dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1808760ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18087607e
mov eax, 1
add dl, dl
jne 0x180876106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180876113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1808760fb
sub eax, ebx
mov ebx, 1
jne 0x18087614c
mov ecx, 1
add dl, dl
jne 0x18087612e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18087613b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180876123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18087607e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180876168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180876175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18087615d
cmp eax, 0x7d00
jae 0x18087619b
cmp eax, 0x500
jb 0x180876196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18087607e
cmp eax, 0x7f
ja 0x18087619e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18087607e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1808761d2
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 0x18087607e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140005690
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r14
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor r14d, r14d
xor eax, eax
lock cmpxchg qword [0x1400085e0], rbx
je 0x1400056e2
cmp rax, rbx
jne 0x1400056d5
mov ebx, 1
mov r14d, ebx
jmp 0x1400056e7
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x1400056b9
mov ebx, 1
mov eax, dword [0x1400085e8]
cmp eax, ebx
jne 0x1400056fd
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140005766
mov eax, dword [0x1400085e8]
test eax, eax
jne 0x140005760
mov dword [0x1400085e8], ebx
lea r12, [0x1400062e0]
lea rdi, [0x1400062c8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r12
jae 0x140005752
test eax, eax
jne 0x140005756
mov rsi, qword [rdi]
test rsi, rsi
je 0x140005747
mov rcx, rsi
mov rax, qword [0x1400062a0]
call rax
call rsi
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140005724
test eax, eax
je 0x140005766
mov eax, 0xff
jmp 0x140005847
mov dword [0x140008024], ebx
mov eax, dword [0x1400085e8]
cmp eax, ebx
jne 0x14000578d
lea rdx, [0x1400062c0]
lea rcx, [0x1400062b0]
call sub.msvcrt.dll__initterm
mov dword [0x1400085e8], 2
test r14d, r14d
jne 0x14000579b
xor eax, eax
xchg qword [0x1400085e0], rax
cmp qword [0x140008600], 0
je 0x1400057d3
lea rcx, [0x140008600]
call fcn.140005ab0
test eax, eax
je 0x1400057d3
mov rbx, qword [0x140008600]
mov rcx, rbx
mov rax, qword [0x1400062a0]
call rax
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call rbx
mov r8, qword [0x140008038]
mov rdx, qword [0x140008030]
mov ecx, dword [0x140008028]
call fcn.140001008
mov dword [0x140008020], eax
cmp dword [0x140008040], 0
jne 0x140005803
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140008024], 0
jne 0x140005818
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140008020]
jmp 0x140005847
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
sub rsp, 0x28
call fcn.140177000
add rsp, 0x28
jmp 0x140005690

Function at 0x1400059ac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400059f8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400059f0
cmp dword [rcx + 0x3c], edx
jl 0x1400059f0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400059f0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400059f8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140070330
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14007033d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14007034d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140070335
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140070365
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140070352
sub eax, 3
jb 0x14007037f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400703b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x1400703a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400703a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140070393
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400702f2
jmp 0x14007033d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x3ca00
mov dl, 0x11
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140070402
cmp rsi, rcx
jae 0x14007040a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400703e9
cmp al, 0x8f
ja 0x1400703e9
cmp byte [rsi - 2], 0xf
je 0x1400703ef
sub al, 0xe8
cmp al, 1
ja 0x1400703d3
cmp rsi, rcx
jae 0x14007040a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400703d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14007040a
lodsb al, byte [rsi]
jmp 0x1400703e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x6e000]
mov eax, dword [rdi]
or eax, eax
je 0x140070473
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x70000]
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 0x140070417
jns 0x14007044c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140070456
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 0x14007046d
mov qword [rbx], rax
add rbx, 8
jmp 0x140070437
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 + 0x217]
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 0x1400704cb
sub rsp, 0xffffffffffffff80
jmp 0x140025648
Function at 0x14000e410
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov r14, rcx
mov rdi, qword [rdx]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x40], 0xf
mov byte [rsp + 0x28], 0
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rsi, rax
cmp rax, 0x10
jb 0x14000e48c
test rsi, rsi
js 0x14000e66b
mov rax, rsi
or rax, 0xf
cmp rax, 0x17
mov r15d, 0x16
cmovae r15, rax
cmp r15, 0xfff
jb 0x14000e4da
lea rcx, [r15 + 0x28]
call fcn.1400fa374
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x14000e4e6
mov qword [rsp + 0x38], rsi
lea rbx, [rsp + 0x28]
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsp + rsi + 0x28], 0
mov rdi, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x38]
mov r15, qword [rsp + 0x40]
cmp r15, 0x10
setae bpl
cmovae rbx, rdi
test rsi, rsi
jne 0x14000e50d
movabs rax, 0xcbf29ce484222325
xor esi, esi
jmp 0x14000e5b4
lea rcx, [r15 + 1]
call fcn.1400fa374
mov rbx, rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r15
mov rcx, rbx
mov rdx, rdi
mov r8, rsi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rsi], 0
mov qword [rsp + 0x28], rbx
mov bpl, 1
mov rdi, rbx
lea rax, [rsi - 1]
mov ecx, esi
and ecx, 3
movabs rdx, 0x100000001b3
cmp rax, 3
jae 0x14000e535
movabs rax, 0xcbf29ce484222325
xor r8d, r8d
jmp 0x14000e58c
mov r9, rsi
and r9, 0xfffffffffffffffc
movabs rax, 0xcbf29ce484222325
xor r8d, r8d
nop dword [rax]
movzx r10d, byte [rbx + r8]
xor r10, rax
imul r10, rdx
movzx eax, byte [rbx + r8 + 1]
xor rax, r10
imul rax, rdx
movzx r10d, byte [rbx + r8 + 2]
xor r10, rax
imul r10, rdx
movzx eax, byte [rbx + r8 + 3]
xor rax, r10
imul rax, rdx
add r8, 4
cmp r9, r8
jne 0x14000e550
test rcx, rcx
je 0x14000e5b4
add r8, rbx
xor r9d, r9d
nop word [rax + rax]
movzx r10d, byte [r8 + r9]
xor rax, r10
imul rax, rdx
inc r9
cmp rcx, r9
jne 0x14000e5a0
and rax, qword [r14 + 0x30]
mov r12, qword [r14 + 8]
mov rcx, qword [r14 + 0x18]
mov rdx, rax
shl rdx, 4
mov r14, qword [rcx + rdx + 8]
cmp r14, r12
je 0x14000e614
add rax, rax
mov r13, qword [rcx + rax*8]
cmp rsi, qword [r14 + 0x20]
jne 0x14000e603
nop
cmp qword [r14 + 0x28], 0x10
jb 0x14000e5f0
mov rdx, qword [r14 + 0x10]
jmp 0x14000e5f4
lea rdx, [r14 + 0x10]
mov rcx, rbx
mov r8, rsi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14000e617
cmp r14, r13
je 0x14000e614
mov r14, qword [r14 + 8]
cmp rsi, qword [r14 + 0x20]
je 0x14000e5e0
jmp 0x14000e603
xor r14d, r14d
test bpl, bpl
je 0x14000e64c
lea rdx, [r15 + 1]
cmp rdx, 0x1000
jb 0x14000e644
mov rax, qword [rdi - 8]
add rdi, 0xfffffffffffffff8
sub rdi, rax
cmp rdi, 0x20
jae 0x14000e670
add r15, 0x28
mov rdx, r15
mov rdi, rax
mov rcx, rdi
call fcn.1400fa3b8
test r14, r14
setne cl
cmp r14, r12
setne al
and al, cl
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.1400067d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140010190
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov rsi, rdx
mov rdi, rcx
mov rbx, qword [r8]
mov r14, qword [r8 + 8]
lea rcx, [0x140102bf8]
mov rdx, rbx
mov r8, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
mov bpl, 1
test eax, eax
je 0x1400101f1
lea rcx, str.true
mov rdx, rbx
mov r8, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
je 0x1400101f1
lea rcx, [0x1401007f2]
mov rdx, rbx
mov r8, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strnicmp]
test eax, eax
sete bpl
mov rcx, rdi
mov rdx, rsi
mov r8d, ebp
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
jmp fcn.14000fdd0
Function at 0x140011f30
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 0x14001204b
mov esi, edx
mov rdi, rcx
mov rax, qword [rcx + 0x40]
cmp qword [rax], 0
je 0x140011f7b
mov rax, qword [rdi + 0x58]
mov ecx, dword [rax]
test ecx, ecx
jle 0x140011f7b
dec ecx
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 0x140012090
cmp qword [rdi + 0x80], 0
je 0x14001204f
mov rax, qword [rdi + 0x18]
lea rcx, [rdi + 0x70]
cmp qword [rax], rcx
jne 0x140011fb5
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 0x140012056
mov byte [rsp + 0x4f], sil
lea rax, [rsp + 0x80]
lea r9, [rsp + 0x50]
lea rdx, [rdi + 0x74]
mov r10, qword [rcx]
lea r8, [rsp + 0x50]
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rax
lea r14, [rsp + 0x60]
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea rbx, [rsp + 0x4f]
mov r8, rbx
call qword [r10 + 0x38]
mov ebp, 0xffffffff
cmp eax, 2
jae 0x14001206f
mov r15, qword [rsp + 0x50]
sub r15, r14
je 0x14001203b
mov r9, qword [rdi + 0x80]
mov edx, 1
mov rcx, r14
mov r8, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp r15, rax
jne 0x14001208e
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x58], rbx
mov eax, 0xffffffff
jmp 0x140012089
xor esi, esi
jmp 0x140012090
mov esi, 0xffffffff
jmp 0x140012090
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 0x140012090
cmp eax, 3
jne 0x14001208e
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 0x1400124e0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x14001251b
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140012522
mov rcx, rbx
mov rdx, rdi
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__::xsgetn_char____ptr64__long_long___int64_____ptr64]
xor esi, esi
jmp 0x140012619
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140012575
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140012575
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, 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 0x140012586
jmp 0x140012616
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140012616
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x1400125b2
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 dword [rax]
cmp r14, 0x1000
jb 0x1400125f1
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call r15
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x1400125c0
jmp 0x140012616
test r14, r14
je 0x140012613
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub r14, rax
jmp 0x140012616
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x140012630
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140012666
mov rcx, rbx
mov rdx, rdi
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 0x1400126b3
test rsi, rsi
jle 0x1400126b3
mov rax, qword [rbx + 0x58]
mov r15d, dword [rax]
test r15d, r15d
jle 0x1400126b3
cmp r15, rsi
cmovae r15, rsi
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x58]
sub dword [rax], r15d
mov rax, qword [rbx + 0x40]
add qword [rax], r15
test r14, r14
jg 0x1400126bb
jmp 0x1400126db
mov r14, rsi
test r14, r14
jle 0x1400126db
mov r9, qword [rbx + 0x80]
test r9, r9
je 0x1400126db
mov edx, 1
mov rcx, rdi
mov r8, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub r14, rax
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140012a70
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x50
mov al, 1
cmp qword [rcx + 0x68], 0
je 0x140012b09
mov rsi, rcx
cmp byte [rcx + 0x71], 0
je 0x140012b09
mov rax, qword [rsi]
mov rcx, rsi
mov edx, 0xffffffff
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140012b07
mov rcx, qword [rsi + 0x68]
lea r9, [rsp + 0x50]
lea rdx, [rsi + 0x74]
mov rax, qword [rcx]
lea r8, [rsp + 0x28]
mov qword [rsp + 0x20], r8
lea rdi, [rsp + 0x30]
mov r8, rdi
call qword [rax + 0x40]
cmp eax, 3
je 0x140012b11
cmp eax, 1
je 0x140012ad7
test eax, eax
jne 0x140012b07
mov byte [rsi + 0x71], 0
mov rbx, qword [rsp + 0x28]
sub rbx, rdi
je 0x140012afe
mov r9, qword [rsi + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x140012b07
cmp byte [rsi + 0x71], 0
sete al
jmp 0x140012b09
xor eax, eax
add rsp, 0x50
pop rbx
pop rdi
pop rsi
ret
mov byte [rsi + 0x71], 0
mov al, 1
jmp 0x140012b09
Function at 0x140021c20
Capabilities:
Delete file

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0x70]
mov qword [rbp], 0xfffffffffffffffe
mov rax, qword [rcx + 8]
test rax, rax
je 0x140021d28
mov rsi, rcx
mov rcx, qword [rcx]
mov qword [rbp - 0x10], rcx
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x10]
lea rdx, [rbp - 0x48]
call fcn.1400215d0
xor edi, edi
test eax, eax
js 0x140021d2a
movzx eax, word [rbp - 0x42]
and eax, 0xf000
movzx eax, ax
cmp eax, 0x8000
jne 0x140021d2a
mov rdx, qword [rsi]
lea rcx, [rbp - 0x48]
call fcn.140042450
mov rcx, qword [rbp - 0x48]
test rcx, rcx
lea rdi, [0x140102f6e]
cmove rcx, rdi
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll__wremove]
mov ebx, eax
test eax, eax
jns 0x140021ce4
mov rcx, qword [0x14014a4a0]
test rcx, rcx
jne 0x140021cc0
call fcn.140020b40
lea rcx, [0x14014a380]
mov rax, qword [rcx]
mov edx, 1
call qword [rax + 0x190]
mov rax, qword [rbp - 0x48]
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 0x140021d17
cmp dword [0x14014a578], 0
jns 0x140021d17
mov rax, qword [rsi]
mov qword [rsp + 0x20], rax
lea rdx, str.C:_buildbot_src_android_emu_33_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, 0x8ca
call fcn.1400385d0
test ebx, ebx
sete dil
lea rcx, [rbp - 0x48]
call fcn.140042730
jmp 0x140021d2a
xor edi, edi
mov eax, edi
add rsp, 0x78
pop rbx
pop rdi
pop rsi
pop rbp
ret