joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140223d40
Capabilities:
Move file

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0x18], 0
jne 0x140223d87
xor r9d, r9d
mov r8d, 0x142
lea rdx, str.D:devwinmerge_stableBuildTmpSrcExternalspocoFoundation_srcFile_WIN32U.cpp
lea rcx, str.__path.empty__
call fcn.140221710
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [0x1403a9d70]
movdqu xmmword [rsp + 0x30], xmm0
xor ebp, ebp
mov word [rsp + 0x20], bp
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1402227a0
lea rdx, [rsp + 0x20]
lea rcx, [rbx + 0x28]
test dil, 1
je 0x140223e62
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
cmp qword [rcx + 0x18], 7
jbe 0x140223de3
mov rcx, qword [rcx]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140223e93
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140223e32
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140223e2d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140223e8d
call fcn.14000e3f0
movdqa xmm0, xmmword [0x1403a9d70]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402194b0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
cmp qword [rsp + 0x38], 7
cmova rdx, qword [rsp + 0x20]
cmp qword [rcx + 0x18], 7
jbe 0x140223e78
mov rcx, qword [rcx]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x140223e93
jmp 0x140223df4
call fcn.140287130
nop
lea rcx, [rbx + 8]
call fcn.140223380
int3

Function at 0x140227270
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x30], xmm1
movdqa xmm0, xmmword [0x1403a9d70]
movdqu xmmword [rsp + 0x30], xmm0
xor edi, edi
mov word [rsp + 0x20], di
lea rdx, [rsp + 0x20]
call fcn.14021e2c0
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 7
cmova rcx, qword [rsp + 0x20]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
setne bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 7
jbe 0x140227318
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140227313
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140227346
call fcn.14000e3f0
movdqa xmm0, xmmword [0x1403a9d70]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], di
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402194b0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
call fcn.140287130
int3
Function at 0x140227350
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140227360
sub rsp, 0x68
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x68
ret

Function at 0x140227360
Capabilities:
Get system information on windows

Disassembly:
jmp 0x140227360
sub rsp, 0x68
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x68
ret

Function at 0x14022b560
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x38], 0x7fff
mov qword [rsp + 0x40], 0x7fff
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x50], 1
mov ecx, 0xfffe
call fcn.14000e3e0
mov rdi, rax
mov qword [rsp + 0x48], rax
mov edx, 0x7fff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x14022b6d2
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14022b696
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov dword [rsp + 0x30], 1
mov rdx, rbx
mov rcx, rdi
call fcn.14021e4c0
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14022b623
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + rax - 1], 0x5c
je 0x14022b676
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14022b656
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14022b64e
mov rax, qword [rbx]
mov word [rax + rcx], 0x5c
jmp 0x14022b676
mov qword [rsp + 0x20], 1
lea r9, [0x14036f0fc]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14004a2d0
nop
mov rcx, rdi
call fcn.14000e3f0
mov rax, rbx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.Cannot_get_system_directory_long_path_name
lea rcx, [rsp + 0x58]
call fcn.14004b6a0
nop
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14021f550
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x80]
call fcn.140279de0
nop
lea rdx, str.Cannot_get_temporary_directory_path
lea rcx, [rsp + 0x58]
call fcn.14004b6a0
nop
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14021f550
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x80]
call fcn.140279de0
int3
Function at 0x14022b740
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov rbx, rcx
xor esi, esi
mov dword [rsp + 0x30], esi
xorps xmm0, xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
mov qword [rsp + 0x38], 0x7fff
mov qword [rsp + 0x40], 0x7fff
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x50], 1
mov ecx, 0xfffe
call fcn.14000e3e0
mov rdi, rax
mov qword [rsp + 0x48], rax
mov rdx, rax
mov ecx, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14022b8b2
mov r8d, 0x7fff
mov rdx, rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x14022b876
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], reloc.OLEAUT32.dll_SafeArrayDestroy
mov byte [rbx], sil
mov dword [rsp + 0x30], 1
mov rdx, rbx
mov rcx, rdi
call fcn.14021e4c0
mov rax, rbx
mov rdx, qword [rbx + 0x18]
cmp rdx, 0xf
jbe 0x14022b803
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x10]
cmp byte [rcx + rax - 1], 0x5c
je 0x14022b856
mov rax, rdx
sub rax, rcx
cmp rax, 1
jb 0x14022b836
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp rdx, 0xf
jbe 0x14022b82e
mov rax, qword [rbx]
mov word [rax + rcx], 0x5c
jmp 0x14022b856
mov qword [rsp + 0x20], 1
lea r9, [0x14036f0fc]
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14004a2d0
nop
mov rcx, rdi
call fcn.14000e3f0
mov rax, rbx
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
lea rdx, str.Cannot_get_temporary_directory_long_path_name
lea rcx, [rsp + 0x58]
call fcn.14004b6a0
nop
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14021f550
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x80]
call fcn.140279de0
nop
lea rdx, str.Cannot_get_temporary_directory_path
lea rcx, [rsp + 0x58]
call fcn.14004b6a0
nop
xor r8d, r8d
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14021f550
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x80]
call fcn.140279de0
int3
Function at 0x140230850
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x120
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x118], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov qword [rsp + 0x40], rcx
call fcn.14024e450
nop
lea rax, vtable.Poco::SharedMemoryImpl.0
mov qword [rsi], rax
lea rdx, [rdi + 8]
lea rcx, [rsi + 0x10]
call fcn.14004b660
nop
mov qword [rsi + 0x30], 0xffffffffffffffff
mov qword [rsi + 0x38], 0xffffffffffffffff
mov dword [rsi + 0x48], 2
xor r14d, r14d
mov qword [rsi + 0x50], r14
mov edx, 0x80000000
cmp ebx, 1
jne 0x1402308d7
mov dword [rsi + 0x48], 4
mov edx, 0xc0000000
lea rcx, [rdi + 0x28]
cmp qword [rcx + 0x18], 7
jbe 0x1402308e5
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsi + 0x38], rax
cmp rax, 0xffffffffffffffff
jne 0x140230928
call qword [sym.imp.KERNEL32.dll_GetLastError]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140230a64
jmp 0x140230aa4
mov qword [rsp + 0x110], r14
lea rdx, [rsp + 0x110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov rax, qword [rsi + 0x40]
mov r9, qword [rsp + 0x110]
test rax, rax
je 0x140230964
cmp rax, r9
jg 0x140230964
mov r9, rax
mov qword [rsp + 0x110], rax
jmp 0x140230968
mov qword [rsi + 0x40], r9
shr r9, 0x20
mov qword [rsp + 0x28], r14
mov eax, dword [rsp + 0x110]
mov dword [rsp + 0x20], eax
mov r8d, dword [rsi + 0x48]
xor edx, edx
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov qword [rsi + 0x30], rax
test rax, rax
je 0x1402309c9
mov rcx, rsi
call fcn.140230d80
nop
mov rax, rsi
mov rcx, qword [rsp + 0x118]
xor rcx, rsp
call fcn.1402194b0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov edi, eax
mov rcx, qword [rsi + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x38], 0xffffffffffffffff
lea rax, [rsp + 0x58]
mov qword [rsp + 0x48], rax
mov edx, edi
lea rcx, [rsp + 0x58]
call fcn.14024eae0
mov rbx, rax
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x50], rax
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0xd0]
call fcn.14004b660
nop
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8, rax
lea rdx, str.Cannot_map_file_into_shared_memory__s__Error__d:__s_
lea rcx, [rsp + 0xf0]
call fcn.1402304f0
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.14021f550
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x80]
call fcn.140279de0
nop
lea rdx, str.Cannot_open_memory_mapped_file
lea rcx, [rsp + 0x58]
call fcn.14004b6a0
nop
xor r9d, r9d
lea r8, [rsi + 0x10]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x80]
call fcn.14021f100
lea rdx, [0x14040af40]
lea rcx, [rsp + 0x80]
call fcn.140279de0
nop
xor r8d, r8d
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0x80]
call fcn.14021ed40
lea rdx, [0x14040acc0]
lea rcx, [rsp + 0x80]
call fcn.140279de0
int3
Function at 0x140230d80
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xe0
mov rsi, rcx
mov edx, 2
mov eax, 4
cmp dword [rcx + 0x48], eax
cmovne edx, eax
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x140230e35
cmp qword [rsi + 0x40], 1
jl 0x140230dd9
mov rcx, rax
call fcn.140230c50
test al, al
je 0x140230df2
mov qword [rsi + 0x50], rbx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rdx, str.Cannot_map_shared_memory_object
lea rcx, [rsp + 0x30]
call fcn.14004b6a0
nop
lea r8, [rsi + 0x10]
xor r9d, r9d
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.14021f520
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x70]
call fcn.140279de0
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, [rsp + 0x50]
mov qword [rsp + 0xf0], rax
mov edx, edi
lea rcx, [rsp + 0x50]
call fcn.14024eae0
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0xf8], rax
lea rdx, [rsi + 0x10]
lea rcx, [rsp + 0x30]
call fcn.14004b660
nop
mov qword [rsp + 0x20], rbx
mov r9d, edi
mov r8, rax
lea rdx, str.Cannot_map_shared_memory_object__s__Error__d:__s_
lea rcx, [rsp + 0xc0]
call fcn.1402304f0
nop
xor r8d, r8d
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14021f550
lea rdx, [0x14040bba8]
lea rcx, [rsp + 0x70]
call fcn.140279de0
int3

Function at 0x140231e20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [rcx + 0xa8], 0xffffffffffffffff
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
je 0x140231e9e
mov eax, dword [rcx + 0x80]
test al, 1
je 0x140231e9e
test al, 2
je 0x140231e5e
mov rax, qword [rcx]
call qword [rax + 0x68]
mov rcx, qword [rbx + 0xa8]
lea r9, [rsp + 0x30]
xor eax, eax
mov r8d, esi
mov rdx, rdi
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140231e91
lea rcx, [rbx + 0x88]
call fcn.140223370
mov eax, dword [rsp + 0x30]
add qword [rbx + 0xb0], rax
jmp 0x140231ea3
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x40
pop rdi
pop rsi
pop rbx
ret
Function at 0x1402322a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rsi, r8
mov rcx, qword [rcx + 0xa8]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x140232370
mov eax, dword [rbx + 0x80]
test al, 2
je 0x140232370
test al, 8
je 0x14023232a
mov r9d, 2
mov qword [rsp + 0x38], 0
lea r8, [rsp + 0x3c]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x38], eax
cmp eax, 0xffffffff
jne 0x14023231e
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x14023231e
lea rcx, [rbx + 0x88]
call fcn.140223370
mov rax, qword [rsp + 0x38]
mov qword [rbx + 0xb0], rax
mov rcx, qword [rbx + 0xa8]
lea r9, [rsp + 0x30]
mov r8d, esi
mov dword [rsp + 0x30], 0
mov rdx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140232363
lea rcx, [rbx + 0x88]
call fcn.140223370
mov eax, dword [rsp + 0x30]
add qword [rbx + 0xb0], rax
jmp 0x140232375
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402194b0
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret

Function at 0x140269710
Capabilities:
Encode data using xor

Disassembly:
mov r8, rcx
test edx, edx
jle 0x140269779
mov r9, qword [rcx + 8]
mov r11, qword [rcx]
mov r10, qword [rcx + 0x18]
mov rcx, qword [rcx + 0x10]
mov edx, edx
add r11, r9
add rcx, r10
ror r9, 0x33
ror r10, 0x30
mov rax, r9
mov r9, r11
ror r11, 0x20
xor r9, rax
mov rax, r10
mov r10, rcx
add rcx, r9
xor r10, rax
ror r9, 0x2f
add r11, r10
xor r9, rcx
ror r10, 0x2b
xor r10, r11
ror rcx, 0x20
sub rdx, 1
jne 0x140269728
mov qword [r8 + 8], r9
mov qword [r8], r11
mov qword [r8 + 0x18], r10
mov qword [r8 + 0x10], rcx
ret

Function at 0x14028f9e0
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 0x14028f84b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14028f84b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14028f84b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14028f84b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14028f84b
cmp dword [rcx + 0x84], 0xe
jbe 0x14028f84b
cmp dword [rcx + 0xf8], 0
je 0x14028f84b
mov ecx, ebx
call fcn.14028f8fc
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.14028f6d8
nop
cmp dword [rbp + 0x20], 0
je 0x14028f899
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14028f8a4
int3
xor r8d, r8d
xor edx, edx
jmp 0x14028f7dc
Function at 0x1402904e8
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140445a80]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14029053f
cmp word [rdx], r13w
jne 0x14029053f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140290544
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140290669
mov r11d, InitCommonControls
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14029068a
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14029057d
mov rdx, r9
mov word [rbx], cx
jmp 0x1402905a4
cmp r9, r8
jae 0x1402905b4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14029055e
jmp 0x140290669
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14029065e
cmp dword [rsp + 0x80], esi
je 0x14029065e
lea r8, [0x140445a80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140290636
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140290606
mov word [rbx], r13w
jmp 0x140290666
mov ecx, InitCommonControls
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140290613
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140290666
cmp word [rsp + 0x70], r13w
jne 0x140290643
cmp rbx, r14
je 0x140290600
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1402acc2c
cmp word [rsp + 0x70], r13w
je 0x140290669
mov ecx, InitCommonControls
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140445a80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140290663
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140290669
Function at 0x140293530
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140293567
call fcn.14028727c
mov dword [rax], SafeArrayGetElement
call fcn.140287108
xor eax, eax
jmp 0x1402935f5
mov rdx, r9
mov rcx, r8
call fcn.1402934c4
mov rbx, rax
test rax, rax
je 0x1402935f2
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1402933f0]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1402935df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1402871f0
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1402935c6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1402935d5
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1402a9a5c
jmp 0x1402935f2
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1402935ef
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1402a48d8
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.14021a050
sub rsp, rax
mov rax, qword [0x140412700]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1402a5858
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1402a4927
mov rax, rbp
jmp 0x1402a4a2f
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 + 0x445a80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1402acc24
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x445a80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1402a4a2b
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 0x1402a4a2b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1402acc24
test rax, rax
js 0x1402a4a2b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1402a4a2b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1402a4a1d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1402a4a1d
cmp byte [rcx], 0xd
jne 0x1402a4a03
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1402a4a12
cmp byte [rcx + 1], 0xa
jne 0x1402a4a12
inc rcx
jmp 0x1402a4a12
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x412c00]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1402a49e5
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1402a4a2f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1402194b0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1402acdc8
Capabilities:
Get file size

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