joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140007da0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
sub rsp, 0x20
cmp dword [rcx + 0x100], 0
mov rsi, rcx
movsxd rdi, edx
jg 0x140007ddc
mov r8d, 0x792
lea rdx, [0x140047840]
lea rcx, str.Size___0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rax, qword [rsi + 0x108]
lea rdx, [0x14004d2a0]
movsxd r8, dword [rsi + 0x100]
mov ebx, dword [rax + r8*4 - 4]
not ebx
movzx eax, dil
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x39]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3a]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
movzx eax, byte [rsp + 0x3b]
xor ebx, dword [rdx + rcx*4]
movzx ecx, bl
xor rcx, rax
shr ebx, 8
xor ebx, dword [rdx + rcx*4]
mov rcx, qword [rsi]
not ebx
cmp dword [rcx + 0x404c], ebx
jne 0x140007e57
mov r8, rdi
mov edx, 4
mov ecx, ebx
call fcn.14001ed90
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140017c80
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x140061800]
mov edi, ecx
cmp byte [rbx + 0x4d4d], 0
jne 0x140017cd2
cmp byte [rbx + 0x4d4e], 0
jne 0x140017cd2
movsx r9d, word [rbx + 0x5eb8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400039c0
test dil, 2
je 0x140017dff
jmp 0x140017d5d
movss xmm1, dword [rbx + 0x39bc]
lea r8, str.Tooltip__02d
movaps xmm0, xmm1
lea rcx, [rsp + 0x20]
mulss xmm0, dword [0x140056388]
xor eax, eax
mov edx, 0x10
mulss xmm1, dword [0x140056378]
addss xmm0, dword [rbx + 0xe40]
addss xmm1, dword [rbx + 0xe44]
mov qword [rbx + 0x4a18], rax
mov dword [rbx + 0x4a04], 1
movss dword [rbx + 0x4a10], xmm0
movss dword [rbx + 0x4a14], xmm1
movss xmm0, dword [rbx + 0x3a18]
mulss xmm0, dword [0x1400562e0]
or dword [rbx + 0x4a00], 0x41
movss dword [rbx + 0x4a60], xmm0
movsx r9d, word [rbx + 0x5eb8]
call fcn.1400039c0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140017db0
lea r11, [0x14004d2a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x140017d93
cmp byte [r8], r9b
jne 0x140017d93
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140017d80
not ecx
call fcn.14000bd40
test rax, rax
je 0x140017dff
cmp byte [rax + 0xbe], 0
je 0x140017dff
mov byte [rax + 0xc3], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xc5], 1
lea rcx, [rsp + 0x20]
mov byte [rax + 0xe4], 1
mov edx, 0x10
inc word [rbx + 0x5eb8]
movsx r9d, word [rbx + 0x5eb8]
call fcn.1400039c0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x2030347
call fcn.14000eeb0
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x30
pop rdi
ret
Function at 0x14001d580
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x6010], 0
lea rbx, [rcx + 0x6018]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14001d627
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14001d5da
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
mov edx, r14d
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.1400200c0
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.1400045c0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x6010]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x6020]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x1400617f8]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14001d62f
mov rcx, rbx
call fcn.1400045c0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x14001d970
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x20
mov rbx, qword [0x140061800]
xor ebp, ebp
cmp byte [rbx + 0x5f68], bpl
jne 0x14001da6c
cmp dword [rbx + 0x5f90], ebp
je 0x14001d9b7
mov r8d, 0x346b
lea rdx, [0x140047a50]
lea rcx, str.g.SettingsWindows.empty__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001da65
lea r8, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
call fcn.140003e10
mov rdi, rax
test rax, rax
je 0x14001da65
mov rdx, qword [rsp + 0x30]
test rdx, rdx
je 0x14001d9f1
mov rcx, rax
call fcn.14001dbc0
mov r8, qword [0x140061800]
test r8, r8
je 0x14001da5c
movsx rdx, word [r8 + 0x60f0]
lea rcx, [r8 + 0x60f4]
mov r9d, dword [r8 + 0x3f58]
lea rcx, [rcx + rdx*8]
cmp dword [rcx], r9d
je 0x14001da51
lea ecx, [rdx + 1]
mov eax, 0x2aaaaaab
imul ecx
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [rdx + rdx*2]
add eax, eax
sub ecx, eax
mov word [r8 + 0x60f0], cx
movsx rax, cx
lea rcx, [r8 + 0x60f4]
lea rcx, [rcx + rax*8]
mov dword [rcx], r9d
mov dword [rcx + 4], ebp
inc word [rcx + 6]
inc dword [r8 + 0x60ec]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov byte [rbx + 0x5f68], 1
movss xmm0, dword [rbx + 0x5f6c]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001db09
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5f6c], xmm0
jb 0x14001db09
mov rdi, qword [rbx + 0x20]
mov qword [rsp + 0x38], rsi
test rdi, rdi
je 0x14001daf7
mov rax, qword [0x140061800]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rbp
mov dword [rax + 0x5f6c], ebp
call fcn.14001de40
lea rdx, [0x14004ca8c]
mov rcx, rdi
mov rsi, rax
call fcn.140003c70
mov rdi, rax
test rax, rax
je 0x14001dafe
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001dafe
mov byte [rbx + 0xce], 1
mov rsi, qword [rsp + 0x38]
mov dword [rbx + 0x5f6c], ebp
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret

Function at 0x14001db20
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 8
movzx r9d, byte [rcx]
lea r8, [rcx + 1]
mov r10, qword [0x140061800]
mov r11d, 0xffffffff
mov eax, r11d
test r9b, r9b
je 0x14001db83
mov qword [rsp], rbx
lea rbx, [0x14004d2a0]
nop dword [rax]
cmp r9b, 0x23
jne 0x14001db63
cmp byte [r8], r9b
jne 0x14001db63
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rbx + rdx*4]
test r9b, r9b
jne 0x14001db50
mov rbx, qword [rsp]
movsxd rcx, dword [r10 + 0x5f80]
not eax
mov r8, qword [r10 + 0x5f88]
lea rdx, [rcx + rcx*8]
lea rcx, [r8 + rdx*8]
cmp r8, rcx
je 0x14001dbaf
cmp dword [r8 + 8], eax
je 0x14001dbb6
add r8, 0x48
cmp r8, rcx
jne 0x14001dba0
xor eax, eax
add rsp, 8
ret
mov rax, r8
add rsp, 8
ret
Function at 0x140041c90
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140041cf1
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x140041cb0
mov ecx, dword [r9]
jmp 0x140041ddb
cmp ecx, 0x4e0
jb 0x140041ddb
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140041d10
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140041d60
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x140045694
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400456de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400456de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400456de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400456de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400456de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400456e0
xor al, al
add rsp, 0x28
ret
Function at 0x140002930
Capabilities:
Accept command line arguments

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov qword [rsp + 0x30], rax
lea rdx, [rsp + 0x20]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x140002a9c
cmp dword [rsp + 0x20], 2
jl 0x140002a9c
lea rcx, [rsp + 0x38]
call fcn.140003230
nop
mov dword [rsp + 0x40], 1
jmp 0x14000299c
mov eax, dword [rsp + 0x40]
add eax, 1
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x40], eax
jge 0x140002a56
movsxd rax, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + rax*8]
lea rcx, [rsp + 0x48]
call fcn.140003250
nop
lea rdx, [0x140064afc]
lea rcx, [rsp + 0x48]
call fcn.140003510
mov dword [rsp + 0x44], eax
cmp dword [rsp + 0x44], 0xffffffff
je 0x140002a19
lea rdx, [0x140064b00]
lea rcx, [rsp + 0x48]
call fcn.140003450
movsxd r11, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x28]
mov rdx, qword [rdx + r11*8]
lea rcx, [rsp + 0x48]
call fcn.1400034d0
lea rdx, [0x140064b04]
lea rcx, [rsp + 0x48]
call fcn.1400034d0
mov eax, dword [rsp + 0x40]
add eax, 1
cmp eax, dword [rsp + 0x20]
jge 0x140002a37
lea rdx, [0x140064b08]
lea rcx, [rsp + 0x48]
call fcn.1400034d0
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.140003490
nop
lea rcx, [rsp + 0x48]
call fcn.1400038a0
jmp 0x140002991
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea rcx, [rsp + 0x38]
call fcn.140011190
mov r8, rax
mov edx, 0x410
lea rcx, [0x14007c2b0]
call fcn.140003f30
lea rax, [0x14007c2b0]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x38]
call fcn.1400038a0
mov rax, qword [rsp + 0x50]
jmp 0x140002ab1
cmp qword [rsp + 0x28], 0
je 0x140002aaf
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor eax, eax
add rsp, 0x68
ret
Function at 0x1400049b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x40], rax
movzx edx, word [rsp + 0x68]
lea r8, [0x140064e58]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x1400049ff
xor eax, eax
jmp 0x140004abd
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
jne 0x140004a21
xor eax, eax
jmp 0x140004abd
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x140004a42
xor eax, eax
jmp 0x140004abd
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rsp + 0x20], rax
mov rdx, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x28], eax
cmp qword [rsp + 0x20], 0
je 0x140004a75
cmp dword [rsp + 0x28], 0
jne 0x140004a79
xor eax, eax
jmp 0x140004abd
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.1400040f0
test eax, eax
jne 0x140004a95
xor eax, eax
jmp 0x140004abd
mov r8d, dword [rsp + 0x28]
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x70]
mov rcx, qword [rcx]
call fcn.14004c610
mov r11, qword [rsp + 0x78]
mov eax, dword [rsp + 0x28]
mov dword [r11], eax
mov eax, 1
add rsp, 0x58
ret
Function at 0x140005410
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x2c0
mov qword [rsp + 0x2b0], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x2b8], rax
mov dword [rsp + 0x68], 0
mov rcx, qword [rsp + 0x2d0]
call fcn.14000c420
test rax, rax
jne 0x140005466
xor eax, eax
jmp 0x14000568b
lea rdi, [rsp + 0x80]
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
mov r8, qword [rsp + 0x2d8]
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140003f30
lea r8, str.Baymax64.Ini
mov edx, 0x104
lea rcx, [rsp + 0x80]
call fcn.140003fa0
cmp dword [rsp + 0x2e0], 0
jne 0x1400054d0
lea rcx, [rsp + 0x80]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x1400054d0
mov eax, 1
jmp 0x14000568b
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 7
mov edx, 0xc0000000
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0xffffffffffffffff
jne 0x140005519
xor eax, eax
jmp 0x14000568b
mov byte [rsp + 0x60], 0xff
mov byte [rsp + 0x61], 0xfe
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, 2
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, str._BAYMAX64__r_n
lea rcx, [rsp + 0x50]
call fcn.140003250
nop
lea rcx, [rsp + 0x50]
call fcn.1400064a0
movsxd rdi, eax
shl rdi, 1
lea rcx, [rsp + 0x50]
call fcn.140011190
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, edi
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x2d0]
call fcn.14001bc00
lea rdx, [rsp + 0x298]
mov rcx, qword [rsp + 0x2d0]
call fcn.140028e30
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140013e00
movzx eax, al
test eax, eax
je 0x140005664
lea rcx, [rsp + 0x290]
call fcn.140003230
nop
lea rcx, [rsp + 0x40]
call fcn.140006700
mov r8, qword [rax]
lea rdx, str._s_r_n
lea rcx, [rsp + 0x290]
call fcn.140005730
lea rcx, [rsp + 0x290]
call fcn.1400064a0
movsxd rdi, eax
shl rdi, 1
lea rcx, [rsp + 0x290]
call fcn.140011190
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, edi
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea rcx, [rsp + 0x40]
call fcn.14001de70
nop
lea rcx, [rsp + 0x290]
call fcn.1400038a0
jmp 0x1400055ac
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x68]
mov dword [rsp + 0x2a8], eax
lea rcx, [rsp + 0x50]
call fcn.1400038a0
mov eax, dword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x2b8]
xor rcx, rsp
call fcn.14004c9e0
add rsp, 0x2c0
pop rdi
ret
Function at 0x14000a990
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.14000abc0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0x98]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0xffffffffffffffff
jne 0x14000a9fc
xor eax, eax
jmp 0x14000ab62
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockFile]
mov dword [rsp + 0x50], 0
mov dword [rsp + 0x40], 0
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x54], eax
cmp qword [rsp + 0xa0], 0
je 0x14000aa57
mov rcx, qword [rsp + 0xa0]
mov eax, dword [rsp + 0x54]
mov dword [rcx], eax
cmp dword [rsp + 0x40], 0
jne 0x14000ab35
cmp dword [rsp + 0x54], 0xa00000
jge 0x14000ab35
cmp dword [rsp + 0x54], 6
jle 0x14000ab35
mov eax, dword [rsp + 0x54]
add eax, 4
mov dword [rsp + 0x60], eax
movsxd rcx, dword [rsp + 0x60]
call fcn.14004d1f8
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
je 0x14000ab35
movsxd r8, dword [rsp + 0x60]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call fcn.14004dcb0
mov dword [rsp + 0x64], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x64]
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14000ab18
mov eax, dword [rsp + 0x54]
cmp dword [rsp + 0x64], eax
jne 0x14000ab18
mov r8d, dword [rsp + 0x54]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x90]
call fcn.14000acf0
mov dword [rsp + 0x50], eax
mov dword [rsp + 0x50], 1
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov rcx, qword [rsp + 0x70]
call fcn.14004ca00
mov qword [rsp + 0x58], 0
mov dword [rsp + 0x20], 0xffffffff
mov r9d, 0xffffffff
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnlockFile]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x50]
add rsp, 0x88
ret
Function at 0x1400109d0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x620
mov qword [rsp + 0x5f8], 0xfffffffffffffffe
mov rax, qword [0x14007a9b0]
xor rax, rsp
mov qword [rsp + 0x610], rax
lea rdi, [rsp + 0x60]
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rcx, [rsp + 0x480]
call fcn.140001000
mov rcx, qword [rsp + 0x638]
call fcn.140011190
lea rdx, [0x140065d64]
mov rcx, rax
call fcn.14004e338
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x140010a6d
mov dword [rsp + 0x4e0], 0
mov rcx, qword [rsp + 0x638]
call fcn.1400038a0
mov eax, dword [rsp + 0x4e0]
jmp 0x140010b79
mov r9, qword [rsp + 0x58]
mov r8d, 0x400
mov edx, 1
lea rcx, [rsp + 0x80]
call fcn.14004e1dc
mov dword [rsp + 0x70], eax
cmp dword [rsp + 0x70], 0
je 0x140010ab1
mov r8d, dword [rsp + 0x70]
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x480]
call fcn.140001060
jmp 0x140010a6d
mov rcx, qword [rsp + 0x58]
call fcn.14004de48
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x480]
call fcn.1400027f0
lea rdi, [rsp + 0x28]
xor eax, eax
mov ecx, 0x21
rep stosb byte [rdi], al
mov dword [rsp + 0x50], 0x20
mov r9d, dword [rsp + 0x50]
lea r8, [rsp + 0x28]
mov edx, 0x10
lea rcx, [rsp + 0x60]
call fcn.140010830
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x4e8]
call fcn.140011140
mov qword [rsp + 0x600], rax
mov rax, qword [rsp + 0x600]
mov qword [rsp + 0x608], rax
mov rcx, qword [rsp + 0x608]
call fcn.140011190
mov rdx, rax
mov rcx, qword [rsp + 0x640]
call fcn.140003450
nop
lea rcx, [rsp + 0x4e8]
call fcn.140031b60
mov dword [rsp + 0x5f0], 1
mov rcx, qword [rsp + 0x638]
call fcn.1400038a0
mov eax, dword [rsp + 0x5f0]
mov rcx, qword [rsp + 0x610]
xor rcx, rsp
call fcn.14004c9e0
add rsp, 0x620
pop rdi
ret
Function at 0x140010ba0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
sub rsp, 0xb0
mov qword [rsp + 0xa0], 0xfffffffffffffffe
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov r8d, 1
mov edx, 0x80000000
mov rcx, qword [rsp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0xffffffffffffffff
jne 0x140010c11
mov eax, dword [rsp + 0x5c]
jmp 0x140010d68
mov dword [rsp + 0x58], 0
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x68], eax
cmp dword [rsp + 0x68], 0x19000
jae 0x140010c3e
cmp dword [rsp + 0x58], 0
je 0x140010c52
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rsp + 0x5c]
jmp 0x140010d68
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140003230
nop
lea rax, [rsp + 0x70]
mov qword [rsp + 0x78], rax
mov rdx, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x78]
call fcn.140003250
mov qword [rsp + 0xa8], rax
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0xc0]
call fcn.1400109d0
test eax, eax
jne 0x140010ccb
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x80], eax
lea rcx, [rsp + 0x50]
call fcn.1400038a0
mov eax, dword [rsp + 0x80]
jmp 0x140010d68
lea rcx, [rsp + 0x50]
call fcn.140011190
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0xc0]
call fcn.140011080
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0xc0]
call fcn.140013f70
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.1400319e0
movzx eax, al
test eax, eax
je 0x140010d4c
lea rcx, [rsp + 0x50]
call fcn.140011190
mov rbx, rax
lea rcx, [rsp + 0x40]
call fcn.140014020
mov rdx, rbx
mov rcx, rax
call fcn.140010ee0
test eax, eax
jne 0x140010d40
mov dword [rsp + 0x5c], 1
jmp 0x140010d4c
lea rcx, [rsp + 0x40]
call fcn.1400111a0
jmp 0x140010ce7
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x98], eax
lea rcx, [rsp + 0x50]
call fcn.1400038a0
mov eax, dword [rsp + 0x98]
add rsp, 0xb0
pop rbx
ret