joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400176f0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
mov rax, qword [0x140184020]
xor rax, rsp
mov qword [rsp + 0x38], rax
cmp qword [0x140206328], 0
lea rax, str.libOSMesa.dll
lea rcx, str.OSMesa.dll
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
je 0x140017745
mov eax, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b310
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
nop dword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140206328], rax
test rax, rax
jne 0x140017788
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x140017750
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.14000e770
jmp 0x1400178ad
lea rdx, str.OSMesaCreateContextExt
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140206328]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x140206330], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140206328]
lea rdx, str.OSMesaDestroyContext
mov qword [0x140206338], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140206328]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x140206340], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140206328]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x140206348], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140206328]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x140206350], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140206328]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x140206358], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x140206330], 0
mov qword [0x140206360], rax
je 0x14001787f
cmp qword [0x140206340], 0
je 0x14001787f
cmp qword [0x140206348], 0
je 0x14001787f
cmp qword [0x140206350], 0
je 0x14001787f
cmp qword [0x140206358], 0
je 0x14001787f
test rax, rax
je 0x14001787f
mov eax, 1
jmp 0x1400178af
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.14000e770
mov rcx, qword [0x140206328]
test rcx, rcx
je 0x1400178ad
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140206328], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14000b310
add rsp, 0x48
ret

Function at 0x1400213a4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400211a0
Function at 0x140021aac
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rbx, rcx
test rcx, rcx
jne 0x140021acb
call fcn.140033bdc
jmp 0x140021b80
and qword [rbp - 0x30], 0
lea rcx, [rbp - 0x50]
and qword [rbp - 0x28], 0
xor edx, edx
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
and qword [rbp - 0x10], 0
mov byte [rbp - 8], 0
call fcn.140021a10
mov rax, qword [rbp - 0x48]
mov r9d, 0xfde9
cmp dword [rax + 0xc], r9d
jne 0x140021b16
cmp byte [rbp - 0x38], 0
je 0x140021b4b
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140021b4b
call fcn.14002f110
test eax, eax
jne 0x140021b37
cmp byte [rbp - 0x38], al
je 0x140021b2f
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140021b4b
cmp byte [rbp - 0x38], 0
je 0x140021b48
mov rax, qword [rbp - 0x50]
and dword [rax + 0x3a8], 0xfffffffd
xor r9d, r9d
lea r8, [rbp + 0x10]
mov rcx, rbx
lea rdx, [rbp - 0x30]
call fcn.140021894
test eax, eax
je 0x140021b64
or ebx, 0xffffffff
jmp 0x140021b6f
mov rcx, qword [rbp - 0x20]
call fcn.140033bdc
mov ebx, eax
cmp byte [rbp - 8], 0
je 0x140021b7e
mov rcx, qword [rbp - 0x20]
call fcn.14002ee0c
mov eax, ebx
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x140034330
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.14000bce0
sub rsp, rax
mov rax, qword [0x140184020]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140030e14
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003437f
mov rax, rbp
jmp 0x140034487
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 + 0x206ea0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140035450
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x206ea0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140034483
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 0x140034483
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140035450
test rax, rax
js 0x140034483
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140034483
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140034475
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140034475
cmp byte [rcx], 0xd
jne 0x14003445b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003446a
cmp byte [rcx + 1], 0xa
jne 0x14003446a
inc rcx
jmp 0x14003446a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x1853c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003443d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140034487
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000b310
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 0x1400346a8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400346be
mov al, 1
jmp 0x14003471e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400346cf
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003471c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140032aac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003471c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003471c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003471c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003471e
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400347f0
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, [0x140206ea0]
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 0x140034847
cmp word [rdx], r13w
jne 0x140034847
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003484c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140034971
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140034992
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140034885
mov rdx, r9
mov word [rbx], cx
jmp 0x1400348ac
cmp r9, r8
jae 0x1400348bc
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 0x140034866
jmp 0x140034971
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 0x140034966
cmp dword [rsp + 0x80], esi
je 0x140034966
lea r8, [0x140206ea0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003493e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003490e
mov word [rbx], r13w
jmp 0x14003496e
mov ecx, 0xd
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 0x14003491b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003496e
cmp word [rsp + 0x70], r13w
jne 0x14003494b
cmp rbx, r14
je 0x140034908
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140035458
cmp word [rsp + 0x70], r13w
je 0x140034971
mov ecx, 0xd
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, [0x140206ea0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003496b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140034971
Function at 0x140038384
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1400383b4
xor eax, eax
jmp 0x140038477
mov rbp, rbx
cmp word [rax], si
je 0x1400383d9
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400383c0
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400383bc
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.140036ad0
movsxd r14, eax
test eax, eax
jne 0x140038417
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400383ad
mov rcx, r14
call fcn.14002fb14
mov rdi, rax
test rax, rax
jne 0x140038430
xor ecx, ecx
call fcn.14002ee0c
jmp 0x14003840c
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140036ad0
test eax, eax
jne 0x140038461
mov rcx, rdi
call fcn.14002ee0c
jmp 0x14003846b
xor ecx, ecx
call fcn.14002ee0c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14003ac80
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140031320
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14003ad21
cmp ebx, dword [rsp + 0x30]
je 0x14003ad1a
test esi, esi
je 0x14003ad1a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003acf5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003ad02
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003acdf
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003ad06
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003ad23
mov eax, 1
jmp 0x14003ad23
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003f67c
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.140035458
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140035458
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003f7cc
cmp rax, 0xffffffffffffffff
je 0x14003f7cc
xor edi, edi
test rbp, rbp
jle 0x14003f777
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002ed94
mov rbx, rax
test rax, rax
jne 0x14003f704
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003f76d
mov edx, 0x8000
mov ecx, r14d
call fcn.14002aa6c
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.1400334e4
cmp eax, 0xffffffff
je 0x14003f74d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003f714
mov edx, r15d
mov ecx, r14d
call fcn.14002aa6c
jmp 0x14003f76d
cmp byte [rsi + 0x38], dil
je 0x14003f764
cmp dword [rsi + 0x34], 5
jne 0x14003f764
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003f76d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002ee0c
jmp 0x14003f7e0
jns 0x14003f7e0
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140035458
cmp rax, 0xffffffffffffffff
jne 0x14003f798
cmp byte [rsi + 0x30], dil
je 0x14003f7e0
mov edi, dword [rsi + 0x2c]
jmp 0x14003f7e0
mov ecx, r14d
call fcn.140032aac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003f7e0
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 0x14003f7e0
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003f7d9
mov eax, dword [rsi + 0x2c]
jmp 0x14003f7de
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140035458
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 0x401c40
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x58
mov eax, 1
xchg byte [0x00ec01e0], al
test al, al
je 0x401c5f
lea rcx, [0x00ec01e0]
call fcn.00438d60
movzx eax, byte [0x00ec01e1]
test al, al
je 0x401c80
mov byte [0x00ec01e0], 0
add rsp, 0x58
ret
lea rdx, [0x00f41228]
lea rcx, [0x00f41250]
mov rax, rdx
mov byte [rax], 0
add rax, 1
cmp rax, rcx
jne 0x401c91
lea rax, [0x00f41228]
xor ecx, ecx
pxor xmm0, xmm0
mov qword [0x00f41228], rax
mov qword [0x00f41230], rax
lea rax, [0x00ec0220]
mov r8, rax
add rcx, 1
movaps xmmword [r8], xmm0
add r8, 0x10
cmp rcx, 0x4000
jne 0x401cc2
mov byte [0x00f00220], 0
xor ecx, ecx
pxor xmm0, xmm0
add rcx, 1
movaps xmmword [rax + 0x40040], xmm0
add rax, 0x10
cmp rcx, 0xd8
jne 0x401ce4
lea rax, [0x00f00fe0]
mov byte [rax], 0
add rax, 1
cmp rax, rdx
jne 0x401d03
mov rax, qword [0x006881d8]
test rax, rax
jne 0x401d31
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x24]
mov qword [0x006881d8], rax
mov qword [0x00f00fe0], rax
lea rax, [0x00f00ff0]
mov qword [0x00f00fe8], rax
mov byte [0x00ec01e1], 1
mov byte [0x00ec01e0], 0
add rsp, 0x58
ret
Function at 0x408630
Capabilities:
Read file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x48
test edx, edx
mov rsi, r8
je 0x408580
cmp edx, 1
jne 0x408604
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], 0
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.kernel32.dll_CreateFileA]
mov rbx, rax
cmp rbx, 1
je 0x4085b6
cmp rbx, 2
je 0x4085e0
cmp rbx, 0xffffffffffffffff
jne 0x408576
test rsi, rsi
je 0x408576
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsi], eax
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
ret
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov r8d, 7
mov edx, 0x80000000
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
mov rbx, rax
cmp rbx, 1
jne 0x408559
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2564
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop word [rax + rax]
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2565
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
lea r8, str.__0___unimplemented_______0_
xor r9d, r9d
mov edx, 0x2562
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop
nop dword [rax]
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x20], 0
cmp rcx, 0xffffffffffffffff
mov rbx, r9
je 0x408692
lea r9, [rsp + 0x3c]
call qword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
setne sil
jne 0x408666
cmp qword [rsp + 0x80], 0
jne 0x408680
test rbx, rbx
je 0x408672
mov eax, dword [rsp + 0x3c]
mov qword [rbx], rax
mov eax, esi
add rsp, 0x48
pop rbx
pop rsi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdx, qword [rsp + 0x80]
mov dword [rdx], eax
jmp 0x408666
lea r8, str.__fd_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2571
lea rcx, str.gotsan.cpp
call fcn.00406990
nop
nop

Function at 0x4086b0
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x58
mov rsi, qword [rsp + 0x90]
cmp rcx, 0xffffffffffffffff
mov rbx, r9
je 0x408765
lea rax, [rsp + 0x40]
test rsi, rsi
cmove rsi, rax
test r9, r9
lea rax, [rsp + 0x48]
mov dword [rsi], 0
cmove rbx, rax
lea rax, [rcx - 1]
mov qword [rbx], 0
cmp rax, 1
ja 0x408729
cmp rcx, 1
mov qword [rsp + 0x38], r8
sete cl
mov qword [rsp + 0x30], rdx
movzx ecx, cl
sub ecx, 0xc
call qword [sym.imp.kernel32.dll_GetStdHandle]
mov rdx, qword [rsp + 0x30]
test rax, rax
mov rcx, rax
mov r8, qword [rsp + 0x38]
je 0x408790
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
call qword [sym.imp.kernel32.dll_WriteFile]
test eax, eax
je 0x408754
mov eax, dword [rsp + 0x44]
mov qword [rbx], rax
mov eax, 1
add rsp, 0x58
pop rbx
pop rsi
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsi], eax
xor eax, eax
add rsp, 0x58
pop rbx
pop rsi
ret
lea r8, str.__fd_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2586
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop dword [rax]
mov dword [rsi], 6
xor eax, eax
jmp 0x40874d
Function at 0x40b400
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, 1
mov rsi, qword [rcx]
mov rbx, rcx
mov rdi, rdx
xchg byte [rsi], al
test al, al
je 0x40b42d
mov rcx, rsi
mov qword [rsp + 0x38], r8
call fcn.00438d60
mov r8, qword [rsp + 0x38]
mov rax, qword [rbx]
movzx r9d, byte [rax]
cmp r9, 1
jne 0x40b490
mov rcx, qword [rbx + 8]
lea rax, [rcx - 1]
cmp rax, 1
jbe 0x40b45e
mov rcx, rbx
mov qword [rsp + 0x38], r8
call fcn.0040bf30
mov rcx, qword [rbx + 8]
mov r8, qword [rsp + 0x38]
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rdx, rdi
call fcn.004086b0
test al, al
jne 0x40b47f
mov rcx, rdi
call qword [sym.imp.kernel32.dll_OutputDebugStringA]
mov byte [rsi], 0
add rsp, 0x40
pop rbx
pop rsi
pop rdi
ret
mov qword [rsp + 0x20], 1
lea r8, str.__atomic_load_state___memory_order_relaxed_______1__
mov edx, 0x2b
lea rcx, str....._sanitizer_common_sanitizer_mutex.h
call fcn.00406990
nop
nop word cs:[rax + rax]

Function at 0x40d6b0
Capabilities:
Get system information on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rax, qword [0x00637840]
mov rsi, rcx
lea rcx, [rax - 1]
test rax, rcx
jne 0x40d784
lea rbx, [rdx + rcx]
neg rax
mov rdx, qword [rsi]
and rbx, rax
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rdx, rbx
jge 0x40d74b
mov rax, qword [0x006881d8]
test rax, rax
je 0x40d790
lea rdi, [rax - 1]
test rdi, rax
jne 0x40d784
lea rdx, str.Allocate
neg rax
add rdi, rbx
and rdi, rax
mov rcx, rdi
call fcn.0040d590
mov r8, qword [0x00eb29b0]
lea rdx, [rax + rdi]
mov qword [rsi + 8], rax
mov qword [rsi], rdx
test r8, r8
je 0x40d743
mov rdx, rdi
mov rcx, rax
call r8
mov rdx, qword [rsi]
mov rax, qword [rsi + 8]
sub rdx, rax
cmp rbx, rdx
jg 0x40d760
add rbx, rax
mov qword [rsi + 8], rbx
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
lea r8, str.__allocated_end____allocated_current_____sptr_size______0_
xor r9d, r9d
mov edx, 0x1b33
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
call fcn.0040b4c0
nop dword [rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x34]
mov qword [0x006881d8], rax
jmp 0x40d6f7
Function at 0x40e930
Capabilities:
Get system information on windows
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
mov rbx, qword [0x006881d8]
mov r12, qword [rsp + 0xf0]
test rbx, rbx
mov qword [rsp + 0xd0], rcx
mov rbp, rdx
mov rsi, r9
mov qword [rsp + 0xe0], r8
je 0x40eb30
mov r13, qword [sym.imp.kernel32.dll_ReadFile]
lea r14, [rsp + 0x50]
cmp r12, rbx
cmovbe rbx, r12
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor ecx, ecx
mov r9d, 4
mov rdx, rbx
mov r8d, 0x3000
call qword [sym.imp.kernel32.dll_VirtualAlloc]
test rax, rax
je 0x40ebb7
mov qword [rbp], rax
mov rax, qword [rsp + 0xe0]
xor r9d, r9d
mov r8d, 7
mov edx, 0x80000000
mov rcx, qword [rsp + 0xd0]
mov qword [rax], rbx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.kernel32.dll_CreateFileA]
cmp rax, 1
mov rdi, rax
je 0x40eb50
cmp rax, 2
je 0x40eb74
cmp qword [rsp + 0xf8], 0
setne r15b
cmp rax, 0xffffffffffffffff
sete al
test al, r15b
jne 0x40eae1
cmp rdi, 0xffffffffffffffff
je 0x40eaf1
mov qword [rsi], 0
xor ecx, ecx
jmp 0x40ea6b
test eax, eax
mov r8d, dword [rsp + 0x50]
je 0x40eaac
mov rcx, r8
add rcx, qword [rsi]
cmp r12, rcx
mov qword [rsi], rcx
sete dl
test r8, r8
sete al
or al, dl
jne 0x40eba0
cmp rbx, rcx
jbe 0x40eb10
mov r8d, ebx
mov rdx, rcx
mov r9, r14
add rdx, qword [rbp]
mov qword [rsp + 0x20], 0
sub r8d, ecx
mov rcx, rdi
call r13
test eax, eax
jne 0x40ea45
test r15b, r15b
je 0x40ea45
call qword [sym.imp.kernel32.dll_GetLastError]
mov rsi, qword [rsp + 0xf8]
mov dword [rsi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
xor edx, edx
mov eax, edx
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.kernel32.dll_GetLastError]
mov rdi, qword [rsp + 0xf8]
mov dword [rdi], eax
mov rax, qword [rsp + 0xe0]
mov rcx, qword [rbp]
mov rdx, qword [rax]
call fcn.0040e7f0
xor edx, edx
jmp 0x40eacb
add rbx, rbx
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
cmp r12, rbx
cmovbe rbx, r12
jmp 0x40e984
lea rcx, [rsp + 0x50]
call qword [sym.imp.kernel32.dll_GetSystemInfo]
mov ebx, dword [rsp + 0x54]
mov qword [0x006881d8], rbx
jmp 0x40e971
lea r8, str.__res_____fd_t_1_____fd_t_1_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2564
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
lea r8, str.__res_____fd_t_2_____fd_t_2_____fd_t__1_______0_
xor r9d, r9d
mov edx, 0x2565
mov qword [rsp + 0x20], 0
lea rcx, str.gotsan.cpp
call fcn.00406990
nop dword [rax + rax]
mov byte [rsp + 0x4f], al
mov rcx, rdi
call qword [sym.imp.kernel32.dll_CloseHandle]
movzx edx, byte [rsp + 0x4f]
jmp 0x40eacb
call qword [sym.imp.kernel32.dll_GetLastError]
mov dword [rsp + 0x20], 0
lea r8, str.allocate
mov rcx, rbx
lea rdx, str.ReadFileToBuffer
mov r9d, eax
call fcn.0040d4f0
nop
nop