joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140087090
Capabilities:
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movss xmm1, dword [rdx + 8]
xorps xmm0, xmm0
ucomiss xmm1, xmm0
mov r10, rdx
jp 0x1400870b4
jne 0x1400870b4
xorps xmm1, xmm1
movd edx, xmm1
movabs rdi, 0x100000001b3
movss xmm1, dword [r10 + 4]
movabs rsi, 0xcbf29ce484222325
mov eax, edx
shr eax, 8
movzx r8d, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor r8, rax
mov eax, edx
imul r8, rdi
shr eax, 0x10
movzx ecx, al
xor r8, rcx
mov eax, edx
imul r8, rdi
shr rax, 0x18
xor r8, rax
imul r8, rdi
ucomiss xmm1, xmm0
jp 0x140087112
jne 0x140087112
xorps xmm1, xmm1
movd edx, xmm1
movss xmm1, dword [r10]
mov eax, edx
shr eax, 8
movzx r9d, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor r9, rax
mov eax, edx
imul r9, rdi
shr eax, 0x10
movzx ecx, al
xor r9, rcx
mov eax, edx
imul r9, rdi
shr rax, 0x18
xor r9, rax
imul r9, rdi
ucomiss xmm1, xmm0
jp 0x14008715b
jne 0x14008715b
xorps xmm1, xmm1
movd edx, xmm1
movss xmm1, dword [r10 + 0x14]
mov eax, edx
shr eax, 8
movzx ebx, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor rbx, rax
mov eax, edx
imul rbx, rdi
shr eax, 0x10
movzx ecx, al
xor rbx, rcx
mov eax, edx
imul rbx, rdi
shr rax, 0x18
xor rbx, rax
imul rbx, rdi
xor rbx, r9
xor rbx, r8
ucomiss xmm1, xmm0
jp 0x1400871aa
jne 0x1400871aa
xorps xmm1, xmm1
movd edx, xmm1
movss xmm1, dword [r10 + 0x10]
mov eax, edx
shr eax, 8
movzx r8d, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor r8, rax
mov eax, edx
imul r8, rdi
shr eax, 0x10
movzx ecx, al
xor r8, rcx
mov eax, edx
imul r8, rdi
shr rax, 0x18
xor r8, rax
imul r8, rdi
ucomiss xmm1, xmm0
jp 0x1400871f4
jne 0x1400871f4
xorps xmm1, xmm1
movd edx, xmm1
movss xmm1, dword [r10 + 0xc]
mov eax, edx
shr eax, 8
movzx r9d, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor r9, rax
mov eax, edx
imul r9, rdi
shr eax, 0x10
movzx ecx, al
xor r9, rcx
mov eax, edx
imul r9, rdi
shr rax, 0x18
xor r9, rax
imul r9, rdi
ucomiss xmm1, xmm0
jp 0x14008723e
jne 0x14008723e
xorps xmm1, xmm1
movd edx, xmm1
movss xmm1, dword [r10 + 0x1c]
mov eax, edx
shr eax, 8
movzx r11d, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor r11, rax
mov eax, edx
imul r11, rdi
shr eax, 0x10
movzx ecx, al
xor r11, rcx
mov eax, edx
imul r11, rdi
shr rax, 0x18
xor r11, rax
imul r11, rdi
xor r11, r9
xor r11, r8
ucomiss xmm1, xmm0
jp 0x14008728e
jne 0x14008728e
xorps xmm1, xmm1
movd edx, xmm1
movss xmm1, dword [r10 + 0x18]
mov eax, edx
shr eax, 8
movzx r9d, al
movzx eax, dl
xor rax, rsi
imul rax, rdi
xor r9, rax
mov eax, edx
imul r9, rdi
shr eax, 0x10
movzx ecx, al
xor r9, rcx
mov eax, edx
imul r9, rdi
shr rax, 0x18
xor r9, rax
imul r9, rdi
ucomiss xmm1, xmm0
jp 0x1400872d5
je 0x1400872d8
movaps xmm0, xmm1
movd edx, xmm0
mov eax, edx
shr eax, 8
movzx r8d, al
movzx eax, dl
xor rax, rsi
mov rsi, qword [rsp + 0x10]
imul rax, rdi
xor r8, rax
mov eax, edx
imul r8, rdi
shr eax, 0x10
movzx ecx, al
xor r8, rcx
mov eax, edx
imul r8, rdi
shr rax, 0x18
xor r8, rax
imul r8, rdi
mov rdi, qword [rsp + 0x18]
xor r8, r9
add r8, r8
xor r8, r11
lea rax, [r8 + r8]
xor rax, rbx
mov rbx, qword [rsp + 8]
ret
Function at 0x140094760
Capabilities:
Register raw input devices

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov qword [0x1400e13b8], rcx
lea rcx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
test eax, eax
je 0x1400947b9
mov rcx, qword [rbx + 0x360]
lea rdx, [rsp + 0x40]
call qword [sym.imp.USER32.dll_ScreenToClient]
movd xmm0, dword [rsp + 0x40]
movd xmm1, dword [rsp + 0x44]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
movsd qword [0x1400e13a8], xmm0
movsd qword [0x1400e13b0], xmm1
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x1400947d6
cmp eax, 0x34004
je 0x1400947d6
mov rcx, qword [0x1400e13d8]
jmp 0x1400947f5
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400947e5
mov rcx, qword [rcx + 8]
jmp 0x1400947f5
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
call qword [sym.imp.USER32.dll_SetCursor]
mov rcx, rbx
call fcn.14008db70
mov rcx, rbx
call fcn.140093d80
cmp dword [rbx + 0x208], 0
je 0x140094852
mov rax, qword [rbx + 0x360]
lea rcx, [rsp + 0x20]
mov edx, 1
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140094852
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140097c80
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x140094860
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x1400948a2
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140097c80
add rsp, 0x38
ret
Function at 0x1400948b0
Capabilities:
Register raw input devices

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [rcx + 0x208], 0
mov rbx, rcx
je 0x140094900
mov edx, 1
mov dword [rsp + 0x20], 0x20001
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x24], edx
mov qword [rsp + 0x28], 0
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140094900
lea rdx, str.Win32:_Failed_to_remove_raw_input_device
mov ecx, 0x10008
call fcn.140097c80
xor ecx, ecx
mov qword [0x1400e13b8], 0
call qword [sym.imp.USER32.dll_ClipCursor]
cvttsd2si ecx, qword [0x1400e13a8]
mov qword [0x1400e13c0], 0
lea rdx, [rsp + 0x40]
cvttsd2si eax, qword [0x1400e13b0]
mov dword [rsp + 0x40], ecx
mov dword [rbx + 0x3a0], ecx
mov rcx, qword [rbx + 0x360]
mov dword [rsp + 0x44], eax
mov dword [rbx + 0x3a4], eax
call qword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x40]
call qword [sym.imp.USER32.dll_SetCursorPos]
mov eax, dword [rbx + 0x8c]
cmp eax, 0x34001
je 0x140094989
cmp eax, 0x34004
je 0x140094989
mov rcx, qword [0x1400e13d8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1400949a2
mov rcx, qword [rcx + 8]
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]
mov edx, 0x7f00
xor ecx, ecx
call qword [sym.imp.USER32.dll_LoadCursorW]
mov rcx, rax
add rsp, 0x30
pop rbx
jmp qword [sym.imp.USER32.dll_SetCursor]

Function at 0x1400949c0
Capabilities:
Register raw input devices

Disassembly:
sub rsp, 0x38
mov rax, qword [rcx + 0x360]
mov edx, 1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0x20001
mov qword [rsp + 0x28], rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.USER32.dll_RegisterRawInputDevices]
test eax, eax
jne 0x140094a02
lea rdx, str.Win32:_Failed_to_register_raw_input_device
mov ecx, 0x10008
call fcn.140097c80
add rsp, 0x38
ret

Function at 0x140094ab0
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov ecx, 0x10
call qword [sym.imp.USER32.dll_GetKeyState]
movzx ebx, ax
mov ecx, 0x11
shr ebx, 0xf
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, ebx
mov ecx, 0x12
or edi, 2
test ax, ax
cmovns edi, ebx
call qword [sym.imp.USER32.dll_GetKeyState]
mov esi, edi
mov ecx, 0x5c
or esi, 4
test ax, ax
cmovns esi, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x5b
movzx ebx, ax
call qword [sym.imp.USER32.dll_GetKeyState]
mov edi, esi
mov ecx, 0x14
or edi, 8
or bx, ax
cmovns edi, esi
call qword [sym.imp.USER32.dll_GetKeyState]
mov ebx, edi
mov ecx, 0x90
or ebx, 0x10
test al, 1
cmove ebx, edi
call qword [sym.imp.USER32.dll_GetKeyState]
mov rsi, qword [rsp + 0x38]
mov ecx, ebx
or ecx, 0x20
test al, 1
cmove ecx, ebx
mov rbx, qword [rsp + 0x30]
mov eax, ecx
add rsp, 0x20
pop rdi
ret
Function at 0x140096f10
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x140096f40
lea rdx, str.Win32:_Failed_to_allocate_TLS_index
mov ecx, 0x10008
call fcn.140091000
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret

Function at 0x140098030
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r12
push r14
push r15
sub rsp, 0x1b0
mov rax, qword [0x1400ddfc0]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
xor edx, edx
lea rcx, [rsp + 0xa0]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xor edx, edx
lea rcx, [0x1400e0cd2]
mov r8d, 0x6d1
call sub.VCRUNTIME140.dll_memset
lea r14, [rsp + 0x40]
mov qword [rsp + 0x1d0], rdi
sub r14, 0x480
lea rbp, [0x1400e0a58]
xor r12d, r12d
lea r15, [0x1400e0d72]
mov ebx, 0x20
movsx esi, word [rbp]
cmp esi, 0xffffffff
je 0x1400981e8
cmp ebx, 0x140
jb 0x14009814f
cmp ebx, 0x14e
ja 0x14009814f
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x44], 0x61
mov dword [rsp + 0x48], 0x62
mov dword [rsp + 0x4c], 0x63
mov dword [rsp + 0x50], 0x64
mov dword [rsp + 0x54], 0x65
mov dword [rsp + 0x58], 0x66
mov dword [rsp + 0x5c], 0x67
mov dword [rsp + 0x60], 0x68
mov dword [rsp + 0x64], 0x69
mov dword [rsp + 0x68], 0x6e
mov dword [rsp + 0x6c], 0x6f
mov dword [rsp + 0x70], 0x6a
mov dword [rsp + 0x74], 0x6d
mov dword [rsp + 0x78], 0x6b
mov edi, dword [r14]
jmp 0x14009815e
mov edx, 1
mov ecx, esi
call qword [sym.imp.USER32.dll_MapVirtualKeyW]
mov edi, eax
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 0xffffffff
jne 0x1400981b1
mov dword [rsp + 0x28], r12d
lea r9, [rsp + 0x80]
lea r8, [rsp + 0xa0]
mov dword [rsp + 0x20], 0x10
mov edx, esi
mov ecx, edi
call qword [sym.imp.USER32.dll_ToUnicode]
cmp eax, 1
jl 0x1400981e8
mov qword [rsp + 0x38], r12
lea r8, [rsp + 0x80]
mov qword [rsp + 0x30], r12
mov r9d, 1
mov dword [rsp + 0x28], 5
xor edx, edx
mov ecx, 0xfde9
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
inc ebx
add r15, 5
add r14, 4
add rbp, 2
cmp ebx, 0x15c
jle 0x1400980b1
mov rdi, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.14009f750
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
Function at 0x14009c400
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x48
cmp qword [0x1400e0550], 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 0x14009c439
mov eax, 1
add rsp, 0x48
ret
mov qword [rsp + 0x40], rbx
xor ebx, ebx
mov rcx, rax
call sub.KERNEL32.dll_LoadLibraryA
mov qword [0x1400e0550], rax
mov rcx, rax
test rax, rax
jne 0x14009c464
mov rax, qword [rsp + rbx*8 + 0x28]
inc rbx
test rax, rax
jne 0x14009c440
mov rbx, qword [rsp + 0x40]
test rcx, rcx
jne 0x14009c486
lea rdx, str.OSMesa:_Library_not_found
mov ecx, 0x10006
call fcn.140091000
xor eax, eax
add rsp, 0x48
ret
lea rdx, str.OSMesaCreateContextExt
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e0550]
lea rdx, str.OSMesaCreateContextAttribs
mov qword [0x1400e0558], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e0550]
lea rdx, str.OSMesaDestroyContext
mov qword [0x1400e0560], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e0550]
lea rdx, str.OSMesaMakeCurrent
mov qword [0x1400e0568], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e0550]
lea rdx, str.OSMesaGetColorBuffer
mov qword [0x1400e0570], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e0550]
lea rdx, str.OSMesaGetDepthBuffer
mov qword [0x1400e0578], rax
call sub.KERNEL32.dll_GetProcAddress
mov rcx, qword [0x1400e0550]
lea rdx, str.OSMesaGetProcAddress
mov qword [0x1400e0580], rax
call sub.KERNEL32.dll_GetProcAddress
cmp qword [0x1400e0558], 0
mov qword [0x1400e0588], rax
je 0x14009c570
cmp qword [0x1400e0568], 0
je 0x14009c570
cmp qword [0x1400e0570], 0
je 0x14009c570
cmp qword [0x1400e0578], 0
je 0x14009c570
cmp qword [0x1400e0580], 0
je 0x14009c570
test rax, rax
jne 0x14009c42f
lea rdx, str.OSMesa:_Failed_to_load_required_entry_points
mov ecx, 0x10008
call fcn.140091000
mov rcx, qword [0x1400e0550]
test rcx, rcx
je 0x14009c59d
call fcn.14009ce30
mov qword [0x1400e0550], 0
xor eax, eax
add rsp, 0x48
ret

Function at 0x14009f508
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14009f542
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14009f547
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x14009f590
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x1400bf940]
cmp byte [rcx + rax], 0
je 0x14009f590
dec r8
sub rdx, 1
jne 0x14009f576
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400a0704
Capabilities:
Parse pe header

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

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

Function at 0x14000730c
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 0x14000737b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000737b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000737b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000737b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000737b
cmp dword [rcx + 0x84], 0xe
jbe 0x14000737b
cmp dword [rcx + 0xf8], 0
je 0x14000737b
mov ecx, ebx
call fcn.14000742c
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.140007208
nop
cmp dword [rbp + 0x20], 0
je 0x1400073c9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400073d4
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000730c

Function at 0x140007510
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14000730c
Function at 0x14000c9c0
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 0x14000c9f0
xor eax, eax
jmp 0x14000cab3
mov rbp, rbx
cmp word [rax], si
je 0x14000ca15
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000c9fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000c9f8
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.14000c8e0
movsxd r14, eax
test eax, eax
jne 0x14000ca53
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000c9e9
mov rcx, r14
call fcn.14000900c
mov rdi, rax
test rax, rax
jne 0x14000ca6c
xor ecx, ecx
call fcn.140008394
jmp 0x14000ca48
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.14000c8e0
test eax, eax
jne 0x14000ca9d
mov rcx, rdi
call fcn.140008394
jmp 0x14000caa7
xor ecx, ecx
call fcn.140008394
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 0x140010ddc
Capabilities:
Get file size

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

Function at 0x140010f84
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, [0x140023080]
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 0x140010fdb
cmp word [rdx], r13w
jne 0x140010fdb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140010fe0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140011105
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140011126
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140011019
mov rdx, r9
mov word [rbx], cx
jmp 0x140011040
cmp r9, r8
jae 0x140011050
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 0x140010ffa
jmp 0x140011105
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 0x1400110fa
cmp dword [rsp + 0x80], esi
je 0x1400110fa
lea r8, [0x140023080]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400110d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400110a2
mov word [rbx], r13w
jmp 0x140011102
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 0x1400110af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140011102
cmp word [rsp + 0x70], r13w
jne 0x1400110df
cmp rbx, r14
je 0x14001109c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140013024
cmp word [rsp + 0x70], r13w
je 0x140011105
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, [0x140023080]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400110ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140011105
Function at 0x1400128f0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000b9b0
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001297a
cmp byte [rbp - 0x21], r15b
je 0x140012975
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400129b0
call fcn.1400085e4
test eax, eax
jne 0x14001299c
cmp byte [rbp - 0x21], r15b
je 0x140012994
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400129b0
cmp byte [rbp - 0x21], r15b
je 0x1400129ad
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000af90
test eax, eax
jne 0x140012a50
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000b9b0
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400129ef
cmp byte [rbp - 0x21], r15b
je 0x140012a24
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140012a24
call fcn.1400085e4
test eax, eax
jne 0x140012a10
cmp byte [rbp - 0x21], r15b
je 0x140012a09
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140012a24
cmp byte [rbp - 0x21], r15b
je 0x140012a21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000af90
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012a50
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012a53
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012a61
mov rcx, rdi
call fcn.140008394
cmp byte [rbp + 0x3f], r15b
je 0x140012a70
mov rcx, qword [rbp + 0x27]
call fcn.140008394
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015020
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015048
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015048
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret