joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14016c190
Capabilities:
Check if file exists

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x14016c1dc
mov rsi, rdx
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rax, qword [rdi]
inc rax
cmp rax, 2
jae 0x14016c1e7
lea rax, [rsi + 1]
cmp rax, 2
jb 0x14016c1ca
mov qword [rdi], rsi
call fcn.140105b90
mov ecx, ebx
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
call fcn.140105b90
mov r14, qword [rdi]
cmp qword [0x1402a45d0], 0
je 0x14016c218
mov rcx, qword [0x1402a45d0]
mov rax, qword [rcx]
mov rax, qword [rax]
mov rdx, r14
call qword [case.0x1401e7f70.0]
mov qword [rdi], 0
jmp 0x14016c1b8
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, [0x14027d081]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14016c259
lea rcx, [sym.Maxthon.exe_GetHandleVerifier]
cmp rax, rcx
je 0x14016c253
call qword [case.0x1401e7f70.0]
mov rcx, rax
xor edx, edx
call fcn.140005a10
jmp 0x14016c1f9
xor ecx, ecx
mov dl, 1
jmp 0x14016c24c
xor ecx, ecx
jmp 0x14016c24a

Function at 0x14016e6c0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov dword [rcx], edx
mov rax, rcx
mov byte [rcx + 0xc8], 0
add rax, 8
mov qword [rcx + 0xd0], rax
mov qword [rcx + 0xf0], rax
je 0x14016e81c
mov byte [rsi + 0xc8], 1
lea rcx, [rax + 0xc0]
mov qword [rsi + 0xd8], rax
mov qword [rsi + 0xe0], rax
mov qword [rsi + 0xe8], rcx
mov rax, rsi
mov byte [rsi + 0x138], 0
add rax, 0xf8
mov qword [rsi + 0x140], rax
mov qword [rsi + 0x160], rax
je 0x14016e82b
mov byte [rsi + 0x138], 1
lea rcx, [rax + 0x40]
mov qword [rsi + 0x148], rax
mov qword [rsi + 0x150], rax
mov qword [rsi + 0x158], rcx
mov rdi, qword [0x14029f558]
cmp rdi, 1
jbe 0x14016e7d9
mov qword [rsi + 0x168], rdi
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14016e791
mov rcx, qword [rdi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rdi + 8]
jne 0x14016e791
cmp qword [rax + rcx], 0
jne 0x14016e7c3
mov rdi, qword [rsi + 0x168]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x14016e7cd
mov rcx, qword [rdi]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [rdi + 8]
mov rdx, qword [rdi]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
test rsi, rsi
je 0x14016e7c3
call fcn.140002990
jmp 0x14016e7aa
lea rcx, [0x14029f558]
call fcn.140008ab0
test al, al
je 0x14016e83a
mov qword [0x14029f568], 0
lea rdi, [0x14029f560]
mov qword [0x14029f560], 0xffffffffffffffff
mov rcx, rdi
xor edx, edx
call fcn.140002850
mov qword [0x14029f558], rdi
jmp 0x14016e761
mov ecx, 0xc0
call fcn.14017b1d8
jmp 0x14016e6f4
mov ecx, 0x40
call fcn.14017b1d8
jmp 0x14016e73b
mov rdi, qword [0x14029f558]
jmp 0x14016e761
Function at 0x14016e850
Capabilities:
Access peb ldr_data

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rdi, r8
mov rsi, rcx
mov r12, qword [rsp + 0xa0]
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp r12, 8
jb 0x14016e9df
mov r14, r9
mov r13d, dword [r9 + 4]
cmp r13, r12
ja 0x14016e9df
cmp dword [r14], 0x100000
ja 0x14016e9df
mov r15, rdx
lea rbp, [r14 + r13]
sub r12, r13
mov ecx, 0x88
call fcn.14017b1d8
mov rbx, rax
mov rax, qword [rdi]
mov qword [rdi], 0
lea rcx, [0x140272431]
mov qword [rbx + 8], rcx
lea rcx, [0x14026d250]
mov qword [rbx], rcx
mov qword [rbx + 0x10], r15
xorps xmm0, xmm0
movups xmmword [rbx + 0x18], xmm0
mov qword [rbx + 0x28], 0
mov qword [rbx + 0x30], rax
mov word [rbx + 0x38], 0x100
mov byte [rbx + 0x3a], 1
mov qword [rbx + 0x40], r14
mov qword [rbx + 0x48], r13
mov qword [rbx + 0x50], rbp
mov qword [rbx + 0x58], r12
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm0
mov qword [rbx + 0x80], 0
mov eax, dword [0x14029f580]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x14016e97d
lock inc dword [0x14029f570]
mov qword [rsi], rbx
mov rcx, qword [rdi]
mov qword [rdi], 0
test rcx, rcx
jne 0x14016e9e6
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x14029f580]
call fcn.14017b2bc
cmp dword [0x14029f580], 0xffffffff
jne 0x14016e93f
lea rax, [0x14026e0e0]
mov qword [0x14029f578], rax
lea r14, [0x14029f578]
call fcn.140003150
lea rcx, [rsp + 0x28]
mov byte [rcx], 1
mov qword [rsp + 0x20], rcx
lea r8, str.MojoMessages
mov rcx, rax
mov rdx, r14
xor r9d, r9d
call fcn.140151290
lea rcx, [0x14029f580]
call fcn.14017b25c
jmp 0x14016e93f
xor ebx, ebx
jmp 0x14016e946
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
jmp 0x14016e95c

Function at 0x140170bf0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402a4570]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140170c4b
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140170c92
mov rcx, qword [0x1402a4560]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a4568]
jne 0x140170c92
cmp qword [rax + rcx], 0
setne al
add rsp, 0x28
ret
lea rcx, [0x1402a4570]
call fcn.14017b2bc
cmp dword [0x1402a4570], 0xffffffff
jne 0x140170c15
mov qword [0x1402a4568], 0
lea rcx, [0x1402a4560]
mov qword [0x1402a4560], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a4570]
call fcn.14017b25c
jmp 0x140170c15
xor eax, eax
jmp 0x140170c46
Function at 0x1401713c0
Capabilities:
Encode data using base64

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
mov rbx, qword [rdi + 8]
sub rbx, rcx
sar rbx, 3
lea rdx, [rbx + 1]
mov rax, rdx
shr rax, 0x3d
jne 0x14017155c
movabs rax, 0x1fffffffffffffff
mov r8, qword [rdi + 0x10]
sub r8, rcx
mov r14, r8
sar r14, 2
cmp r14, rdx
cmovbe r14, rdx
movabs rcx, 0x7ffffffffffffff8
cmp r8, rcx
cmovae r14, rax
test r14, r14
je 0x140171555
cmp r14, rax
ja 0x140171561
lea rcx, [r14*8]
call fcn.14017b1d8
shl rbx, 3
add rbx, rax
je 0x140171566
lea rax, [rax + r14*8]
mov rcx, qword [rsi]
mov qword [rsi], 0
mov qword [rbx], rcx
lea rcx, [rbx + 8]
mov rsi, qword [rdi]
mov rdx, qword [rdi + 8]
cmp rdx, rsi
jne 0x140171485
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rax
test rsi, rsi
jne 0x1401714e6
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
mov r8, qword [rdx - 8]
mov qword [rdx - 8], 0
lea r9, [rdx - 8]
mov qword [rbx - 8], r8
add rbx, 0xfffffffffffffff8
mov rdx, r9
cmp r9, rsi
jne 0x140171485
mov rsi, qword [rdi]
mov r14, qword [rdi + 8]
mov qword [rdi], rbx
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rax
cmp r14, rsi
je 0x140171476
add r14, 0xfffffffffffffff8
test r14, r14
je 0x140171592
mov rdi, qword [r14]
mov qword [r14], 0
test rdi, rdi
jne 0x1401714f7
lea rax, [r14 - 8]
cmp r14, rsi
mov r14, rax
je 0x140171476
jmp 0x1401714c0
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
jmp fcn.14017b254
lea rax, fcn.140171290
mov qword [rdi], rax
mov rcx, qword [rdi + 0x70]
mov qword [rdi + 0x70], 0
test rcx, rcx
je 0x140171523
mov rax, qword [rcx]
mov rax, qword [rax]
mov edx, 1
call qword [case.0x1401e7f70.0]
mov rcx, qword [rdi + 0x58]
test rcx, rcx
jne 0x14017154a
mov rcx, qword [rdi + 0x40]
test rcx, rcx
jne 0x14017153f
mov rcx, rdi
call fcn.14017b254
jmp 0x1401714d8
mov qword [rdi + 0x48], rcx
call fcn.14017b254
jmp 0x140171535
mov qword [rdi + 0x60], rcx
call fcn.14017b254
jmp 0x14017152c
xor eax, eax
jmp 0x14017143d
call fcn.14017b5a8
call fcn.1401be9c0
lea rax, str.null_pointer_given_to_construct_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__location___nullptr
mov r8d, 0x23
call fcn.1401bdbc0
lea rax, str.null_pointer_given_to_destroy_at
mov qword [rsp + 0x20], rax
lea rcx, str._s:_d:_assertion__s_failed:__s
lea rdx, str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
lea r9, str.__loc___nullptr
mov r8d, 0x3f
call fcn.1401bdbc0
int3
Function at 0x140178450
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov eax, dword [0x1402a61f0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401784c1
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, 0xffffffff
and rax, 0xfffffffffffffffc
je 0x1401784b2
mov rdx, qword [0x1402a61e0]
shl rdx, 4
mov r8d, dword [rax + rdx + 8]
cmp r8d, dword [0x1402a61e8]
jne 0x1401784b2
mov rax, qword [rax + rdx]
test rax, rax
jne 0x1401784bd
mov dword [rsi], ecx
mov rax, rsi
add rsp, 0x20
pop rsi
ret
mov ecx, dword [rax]
jmp 0x1401784b2
lea rcx, [0x1402a61f0]
call fcn.14017b2bc
cmp dword [0x1402a61f0], 0xffffffff
jne 0x140178479
mov qword [0x1402a61e8], 0
lea rcx, [0x1402a61e0]
mov qword [0x1402a61e0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a61f0]
call fcn.14017b25c
jmp 0x140178479

Function at 0x140178510
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov rsi, rcx
mov eax, dword [rdx]
mov dword [rcx], eax
mov eax, 1
lock xadd dword [0x1402a61f4], eax
mov dword [rcx + 4], eax
mov eax, dword [0x1402a61f0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401785f9
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140178695
mov rcx, qword [0x1402a61e0]
shl rcx, 4
mov qword [rax + rcx], rsi
mov ecx, dword [0x1402a61e8]
mov rdx, qword [0x1402a61e0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1402a6208]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140178647
lea rdi, [rsi + 4]
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x1401786a8
mov rcx, qword [0x1402a61f8]
shl rcx, 4
mov qword [rax + rcx], rdi
mov ecx, dword [0x1402a6200]
mov rdx, qword [0x1402a61f8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov rax, rsi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1402a61f0]
call fcn.14017b2bc
cmp dword [0x1402a61f0], 0xffffffff
jne 0x140178552
mov qword [0x1402a61e8], 0
lea rcx, [0x1402a61e0]
mov qword [0x1402a61e0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a61f0]
call fcn.14017b25c
jmp 0x140178552
lea rcx, [0x1402a6208]
call fcn.14017b2bc
cmp dword [0x1402a6208], 0xffffffff
jne 0x1401785b1
mov qword [0x1402a6200], 0
lea rcx, [0x1402a61f8]
mov qword [0x1402a61f8], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a6208]
call fcn.14017b25c
jmp 0x1401785b1
test rsi, rsi
je 0x14017858c
call fcn.140002990
jmp 0x140178568
test rdi, rdi
je 0x1401785ef
call fcn.140002990
jmp 0x1401785cb
Function at 0x1401786c0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x1402a61f0]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140178787
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140178723
mov rcx, qword [0x1402a61e0]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1402a61e8]
mov rdx, qword [0x1402a61e0]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
mov eax, dword [0x1402a6208]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x1401787d5
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140178782
mov rcx, qword [0x1402a61f8]
shl rcx, 4
mov qword [rax + rcx], 0
mov ecx, dword [0x1402a6200]
mov rdx, qword [0x1402a61f8]
shl rdx, 4
mov dword [rax + rdx + 8], ecx
add rsp, 0x28
ret
lea rcx, [0x1402a61f0]
call fcn.14017b2bc
cmp dword [0x1402a61f0], 0xffffffff
jne 0x1401786e9
mov qword [0x1402a61e8], 0
lea rcx, [0x1402a61e0]
mov qword [0x1402a61e0], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a61f0]
call fcn.14017b25c
jmp 0x1401786e9
lea rcx, [0x1402a6208]
call fcn.14017b2bc
cmp dword [0x1402a6208], 0xffffffff
jne 0x140178748
mov qword [0x1402a6200], 0
lea rcx, [0x1402a61f8]
mov qword [0x1402a61f8], 0xffffffffffffffff
xor edx, edx
call fcn.140002850
lea rcx, [0x1402a6208]
call fcn.14017b25c
jmp 0x140178748

Function at 0x140179940
Capabilities:
Get thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140179974
mov rcx, qword [rsi]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [rsi + 8]
jne 0x140179974
mov rax, qword [rax + rcx]
add rsp, 0x20
pop rsi
ret
xor eax, eax
jmp 0x14017996e
Function at 0x140179980
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x28], rax
test byte [0x14029c020], 0x19
jne 0x140179a68
mov eax, dword [0x1402a4558]
mov ecx, dword [0x14029dfe4]
mov rdx, qword gs:[0x58]
mov rcx, qword [rdx + rcx*8]
cmp eax, dword [rcx + 4]
jg 0x140179a2a
mov ecx, dword [0x14029bf80]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
and rax, 0xfffffffffffffffc
je 0x140179a12
mov rcx, qword [0x1402a4548]
shl rcx, 4
mov edx, dword [rax + rcx + 8]
cmp edx, dword [0x1402a4550]
jne 0x140179a12
mov rdi, qword [rax + rcx]
test rdi, rdi
je 0x140179a12
cmp qword [rdi + 8], 0
jne 0x140179a84
movabs rax, 0x4000000000000000
lock or qword [rdi], rax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
lea rcx, [0x1402a4558]
call fcn.14017b2bc
cmp dword [0x1402a4558], 0xffffffff
jne 0x1401799c7
xorps xmm0, xmm0
movups xmmword [0x1402a4548], xmm0
lea rcx, [0x1402a4548]
xor edx, edx
call fcn.14001e9c0
lea rcx, [0x1402a4558]
call fcn.14017b25c
jmp 0x1401799c7
lea rax, [rsp + 0x20]
mov qword [rax], rdx
lea rcx, str.ScopedAllowBaseSyncPrimitivesOutsideBlockingScope
mov rdx, rax
call fcn.1401e6bd0
jmp 0x1401799a6
lea rcx, [rdi + 8]
mov rbx, qword [rdi]
call fcn.1401ba590
movabs rcx, 0xff00000000000000
and rcx, rbx
or rcx, rax
mov qword [rdi], rcx
jmp 0x140179a04

Function at 0x14017af90
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x30
mov esi, ecx
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rax, [0x1400d6e80]
mov qword [rsp + 0x20], rax
lea rcx, [0x1402a52c0]
lea rdx, [0x1400d6e60]
lea r8, [rsp + 0x20]
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_InitOnceExecuteOnce]
test eax, eax
je 0x14017b024
cmp dword [0x1402a52c8], 0
jne 0x14017b020
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, dword [0x1402a52cc]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, rax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rdi, rdi
je 0x14017b020
movsxd rax, esi
mov rsi, qword [rdi + rax*8]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14017e7b0
mov rax, rsi
add rsp, 0x30
pop rbx
pop rdi
pop rsi
ret
xor esi, esi
jmp 0x14017b008
call fcn.14017b5a8
int3

Function at 0x14018fdf4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14018ff48
Function at 0x140190224
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.140194dc4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140194dc4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140190374
cmp rax, 0xffffffffffffffff
je 0x140190374
xor edi, edi
test rbp, rbp
jle 0x14019031f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1401a8ca0
mov rbx, rax
test rax, rax
jne 0x1401902ac
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140190315
mov edx, 0x8000
mov ecx, r14d
call fcn.140195ea8
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.140199e50
cmp eax, 0xffffffff
je 0x1401902f5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1401902bc
mov edx, r15d
mov ecx, r14d
call fcn.140195ea8
jmp 0x140190315
cmp byte [rsi + 0x38], dil
je 0x14019030c
cmp dword [rsi + 0x34], 5
jne 0x14019030c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140190315
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1401a8d18
jmp 0x140190388
jns 0x140190388
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140194dc4
cmp rax, 0xffffffffffffffff
jne 0x140190340
cmp byte [rsi + 0x30], dil
je 0x140190388
mov edi, dword [rsi + 0x2c]
jmp 0x140190388
mov ecx, r14d
call fcn.14017c6e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140190388
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 0x140190388
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140190381
mov eax, dword [rsi + 0x2c]
jmp 0x140190386
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140194dc4
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
Function at 0x140193554
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x240
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x230], rax
lea rdx, [0x14025d4e0]
mov rbp, rcx
call fcn.1401adeb4
xor edi, edi
test rax, rax
je 0x14019363a
mov ebx, edi
call fcn.14017b234
mov r14d, dword [rax]
call fcn.14017b234
mov r8d, 0x104
lea rcx, [rsp + 0x20]
mov rdx, rbp
mov dword [rax], edi
call fcn.14017ceb8
mov rsi, rax
test rax, rax
je 0x1401935cb
call fcn.14017b234
mov dword [rax], r14d
jmp 0x1401935f5
call fcn.14017b234
cmp dword [rax], 0x22
jne 0x140193632
call fcn.14017b234
xor r8d, r8d
mov rdx, rbp
xor ecx, ecx
mov dword [rax], r14d
call fcn.14017ceb8
mov rbx, rax
mov rsi, rax
test rax, rax
je 0x140193632
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], di
jne 0x1401935f9
cmp rax, 3
je 0x140193614
mov rcx, rsi
call fcn.1401934b0
test al, al
je 0x140193625
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x140193625
mov dil, 1
mov rcx, rbx
call fcn.14017b220
mov al, dil
jmp 0x14019363c
mov rcx, rbx
call fcn.14017b220
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.14017e7b0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140195a34
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14029eef0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140195a92
cmp word [rdx], r12w
jne 0x140195a92
or byte [rax + r8*8 + 0x38], cl
jmp 0x140195a98
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140195bf3
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140195bce
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140195ad1
mov rcx, r9
jmp 0x140195af4
cmp r9, rdx
jae 0x140195b0b
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140195ab5
jmp 0x140195bf3
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140195bc8
cmp dword [rsp + 0x80], edi
je 0x140195bc8
mov rdx, r14
lea r11, [0x14029eef0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140195ba1
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140195b74
mov word [rbx], r12w
jmp 0x140195bef
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140195b7d
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140195bef
cmp word [rsp + 0x70], r12w
jne 0x140195bae
cmp rbx, rsi
je 0x140195b6e
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140194dc4
cmp word [rsp + 0x70], r12w
je 0x140195bf3
mov word [rbx], r13w
jmp 0x140195bef
lea r11, [0x14029eef0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140195beb
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140195bf3
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14019df30
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.14017e750
sub rsp, rax
mov rax, qword [0x14029a038]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14017c660
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14019df7f
mov rax, rbp
jmp 0x14019e087
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, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x29eef0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140194e68
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x29eef0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14019e083
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 0x14019e083
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140194e68
test rax, rax
js 0x14019e083
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14019e083
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14019e075
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14019e075
cmp byte [rcx], 0xd
jne 0x14019e05b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14019e06a
cmp byte [rcx + 1], 0xa
jne 0x14019e06a
inc rcx
jmp 0x14019e06a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x29a320]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14019e03d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14019e087
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14017e7b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret