joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000cee0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x20
movsxd rbp, r9d
mov r14, r8
test r8, r8
je 0x14000cefb
mov qword [r8], 0
call fcn.14000d040
mov rbx, rax
test rax, rax
jne 0x14000cf11
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret
mov qword [rsp + 0x40], rsi
mov rcx, rbx
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov esi, eax
cmp eax, 0xffffffff
je 0x14000d01b
xor edx, edx
mov r8d, 2
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d01b
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x14000d01b
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000d01b
cmp rdi, 0xffffffffffffffff
je 0x14000d01b
mov rax, qword [0x14055d560]
test rax, rax
je 0x14000cf94
inc dword [rax + 0xf4]
mov rdx, qword [0x14055d570]
lea rcx, [rdi + rbp]
call qword [0x140263008]
mov rsi, rax
test rax, rax
je 0x14000d01b
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp rax, rdi
je 0x14000cff3
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14055d560]
test rax, rax
je 0x14000cfe1
dec dword [rax + 0xf4]
mov rdx, qword [0x14055d570]
mov rcx, rsi
call qword [0x140263010]
jmp 0x14000d024
test ebp, ebp
jle 0x14000d005
lea rcx, [rdi + rsi]
mov r8, rbp
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test r14, r14
je 0x14000d016
mov qword [r14], rdi
mov rax, rsi
jmp 0x14000d026
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rbp
pop rbx
ret

Function at 0x14000d3e0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000d43d
lea rbx, [0x1401f92a0]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x14000d424
cmp r10, 2
jb 0x14000d424
cmp byte [r9], r8b
jne 0x14000d424
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x14000d400
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000d47f
lea rbx, [0x1401f92a0]
cmp r8b, 0x23
jne 0x14000d463
cmp byte [r9], r8b
jne 0x14000d463
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x14000d450
mov rbx, qword [rsp + 8]
not eax
ret
Function at 0x14000f000
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 + 0x5c50], 0
lea rbx, [rcx + 0x5c58]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x14000f0a7
mov r9d, dword [rbx + 4]
mov qword [rsp + 0x30], r14
xor r14d, r14d
test r9d, r9d
jns 0x14000f05a
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.14001cf00
mov r8, rsi
mov dword [rbx], r14d
mov rdx, rbp
mov rcx, rbx
call fcn.14001c9b0
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c50]
test eax, eax
lea ecx, [rax - 1]
mov rax, qword [rdi + 0x5c60]
cmove ecx, r14d
test rax, rax
movsxd r8, ecx
lea rcx, [0x14055d568]
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r14, qword [rsp + 0x30]
jmp 0x14000f0af
mov rcx, rbx
call fcn.14001c9b0
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
Function at 0x1400174e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword [0x14055d560]
mov rbx, rcx
xor ecx, ecx
mov dword [rax + 0x5bb4], ecx
test rbx, rbx
je 0x14001754f
mov qword [rsp + 0x30], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rdi
call fcn.140017560
lea rdx, [0x1401fa9d0]
mov rcx, rbx
mov rdi, rax
call fcn.14000d040
mov rbx, rax
test rax, rax
je 0x14001754a
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14001b4e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push r14
sub rsp, 0x20
mov rbx, qword [0x14055d560]
cmp byte [rbx + 0x5bb1], 0
jne 0x14001b63c
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001b635
lea rdx, [0x1401fa9cc]
mov qword [rsp + 0x40], rdi
call fcn.14000d040
mov rdi, rax
test rax, rax
je 0x14001b630
mov qword [rsp + 0x30], rbp
mov rcx, rax
mov qword [rsp + 0x38], rsi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x14001b61d
xor edx, edx
mov r8d, 2
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001b61d
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14001b61d
xor r8d, r8d
mov edx, ebp
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14001b61d
cmp rsi, 0xffffffffffffffff
je 0x14001b61d
mov rax, qword [0x14055d560]
test rax, rax
je 0x14001b5a7
inc dword [rax + 0xf4]
mov rdx, qword [0x14055d570]
mov rcx, rsi
call qword [0x140263008]
mov rbp, rax
test rax, rax
je 0x14001b61d
mov r9, rdi
mov r8, rsi
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
cmp rax, rsi
je 0x14001b5e3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
jmp 0x14001b5f9
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x14001b5f9
mov rdx, rsi
mov rcx, rbp
call fcn.14000eaf0
mov rax, qword [0x14055d560]
test rax, rax
je 0x14001b60b
dec dword [rax + 0xf4]
mov rdx, qword [0x14055d570]
mov rcx, rbp
call qword [0x140263010]
jmp 0x14001b626
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x40]
mov byte [rbx + 0x5bb1], 1
movss xmm0, dword [rbx + 0x5bb4]
xorps xmm1, xmm1
comiss xmm0, xmm1
jbe 0x14001b67f
subss xmm0, dword [rbx + 0x18]
comiss xmm1, xmm0
movss dword [rbx + 0x5bb4], xmm0
jb 0x14001b67f
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x14001b66e
call fcn.1400174e0
jmp 0x14001b675
mov byte [rbx + 0xdc], 1
mov dword [rbx + 0x5bb4], 0
mov rbx, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140030b10
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
xor edx, edx
jmp 0x140030b20
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x14055c7c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rcx
call fcn.14000c710
mov qword [rsp + 0x30], 2
lea rcx, str.1.89.2
mov qword [rsp + 0x28], reloc.WS2_32.dll_sendto
mov edx, 0x37b8
mov r9d, 8
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r8d, 0x434
mov rsi, rax
call fcn.140009bb0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140030d1e
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140030d1e
mov qword [rsp + 0xa0], rbx
mov ecx, 0x50
mov qword [rsp + 0xa8], rdi
call fcn.14000f0f0
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140030bec
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x140030bef
mov rdi, rbx
or dword [rsi + 4], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
call fcn.14000c340
test rax, rax
je 0x140030c3f
call fcn.14000c710
mov rsi, qword [rax + 0x90]
jmp 0x140030c42
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140030c6d
mov dword [rsi + 0x2c], ebx
call fcn.14000c8e0
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x70], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140030cde
inc rbx
cmp rbx, 5
jl 0x140030cc0
jmp 0x140030d0a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0xa8]
mov al, 1
mov rbx, qword [rsp + 0xa0]
jmp 0x140030d20
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140165ad0
mov rbp, qword [rsp + 0xb0]
add rsp, 0x90
pop rsi
ret
Function at 0x140030b20
Capabilities:
Get geographical location
Get keyboard layout

Disassembly:
xor edx, edx
jmp 0x140030b20
mov qword [rsp + 0x18], rbp
push rsi
sub rsp, 0x90
mov rax, qword [0x14055c7c0]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rbp, rcx
call fcn.14000c710
mov qword [rsp + 0x30], 2
lea rcx, str.1.89.2
mov qword [rsp + 0x28], reloc.WS2_32.dll_sendto
mov edx, 0x37b8
mov r9d, 8
mov qword [rsp + 0x20], reloc.WS2_32.dll_recv
mov r8d, 0x434
mov rsi, rax
call fcn.140009bb0
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x140030d1e
lea rcx, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x140030d1e
mov qword [rsp + 0xa0], rbx
mov ecx, 0x50
mov qword [rsp + 0xa8], rdi
call fcn.14000f0f0
xor ebx, ebx
mov qword [rsp + 0x48], rax
mov rdi, rax
test rax, rax
je 0x140030bec
xorps xmm0, xmm0
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
jmp 0x140030bef
mov rdi, rbx
or dword [rsi + 4], 6
lea rax, str.imgui_impl_win32
mov qword [rsi + 0x80], rax
mov qword [rsi + 0x90], rdi
mov qword [rdi], rbp
mov rax, qword [rsp + 0x78]
mov qword [rdi + 0x20], rax
mov rax, qword [rsp + 0x80]
mov qword [rdi + 0x18], rax
mov dword [rdi + 0x28], 9
call fcn.14000c340
test rax, rax
je 0x140030c3f
call fcn.14000c710
mov rsi, qword [rax + 0x90]
jmp 0x140030c42
mov rsi, rbx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayout]
shr rax, 0x10
mov r9d, 4
movzx ecx, ax
lea r8, [rsi + 0x2c]
mov edx, 0x20001004
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140030c6d
mov dword [rsi + 0x2c], ebx
call fcn.14000c8e0
mov qword [rax + 0x28], rbp
lea rax, str.xinput1_4.dll
mov qword [rsp + 0x50], rax
lea rax, str.xinput1_3.dll
mov qword [rsp + 0x58], rax
lea rax, str.xinput9_1_0.dll
mov qword [rsp + 0x60], rax
lea rax, str.xinput1_2.dll
mov qword [rsp + 0x68], rax
lea rax, str.xinput1_1.dll
mov qword [rsp + 0x70], rax
mov byte [rdi + 0x31], 1
nop word [rax + rax]
mov rcx, qword [rsp + rbx*8 + 0x50]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
jne 0x140030cde
inc rbx
cmp rbx, 5
jl 0x140030cc0
jmp 0x140030d0a
lea rdx, str.XInputGetCapabilities
mov qword [rdi + 0x38], rsi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.XInputGetState
mov rcx, rsi
mov qword [rdi + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rdi + 0x48], rax
mov rdi, qword [rsp + 0xa8]
mov al, 1
mov rbx, qword [rsp + 0xa0]
jmp 0x140030d20
xor al, al
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140165ad0
mov rbp, qword [rsp + 0xb0]
add rsp, 0x90
pop rsi
ret
Function at 0x140032130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14055d560]
mov rcx, qword [rax + 0x4b18]
mov r10, qword [rax + 0x3ed0]
movsxd rax, dword [rcx + 0x7c]
movups xmm0, xmmword [rcx + 0x170]
movss xmm4, dword [rcx + 0x170]
movss xmm3, dword [rcx + 0x174]
movss xmm2, dword [rcx + 0x178]
movss xmm1, dword [rcx + 0x17c]
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
imul r9, rax, 0x68
mov rax, qword [r10 + 0x290]
add r9, qword [rcx + 0x18]
movups xmmword [r10 + 0x230], xmm0
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r10 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [r9 + 0x57]
mov rdx, qword [r10 + 0x290]
mov rcx, qword [rcx + 0x1a0]
add rsp, 0x38
jmp 0x1400274c0

Function at 0x140032200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14055d560]
mov rcx, qword [rax + 0x4b18]
mov r9, qword [rax + 0x3ed0]
movups xmm0, xmmword [r9 + 0x230]
movups xmmword [rcx + 0x170], xmm0
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rcx + 0x150]
movss xmm4, dword [rcx + 0x150]
movss xmm3, dword [rcx + 0x154]
movss xmm2, dword [rcx + 0x158]
movss xmm1, dword [rcx + 0x15c]
movups xmmword [r9 + 0x230], xmm0
movss dword [rsp + 0x20], xmm4
movss dword [rsp + 0x24], xmm3
movss dword [rsp + 0x28], xmm2
movss dword [rsp + 0x2c], xmm1
movss dword [rax + 0x88], xmm4
movss dword [rax + 0x8c], xmm3
movss dword [rax + 0x90], xmm2
movss dword [rax + 0x94], xmm1
mov rax, qword [r9 + 0x290]
movups xmm0, xmmword [rsp + 0x20]
movsxd r8, dword [rax + 0x58]
mov rdx, qword [rax + 0x60]
add r8, r8
movups xmmword [rdx + r8*8 - 0x10], xmm0
movzx r8d, byte [rcx + 0x20f]
mov rcx, qword [rcx + 0x1a0]
mov rdx, qword [r9 + 0x290]
add rsp, 0x38
jmp 0x1400274c0
Function at 0x14004ceb0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14055c7c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14004cf83
cmp byte [rcx + 0x71], 0
je 0x14004cf83
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + Ordinal_26]
cmp eax, 0xffffffff
je 0x14004cf7f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14004cf44
sub eax, 1
je 0x14004cf48
cmp eax, 2
jne 0x14004cf7f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140165ad0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14004cf76
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14004cf7f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14004cf2c
xor al, al
jmp 0x14004cf2c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140165ad0
add rsp, 0x60
pop rbx
ret
Function at 0x14005aca0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14055c7c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov esi, edx
mov rdi, rcx
cmp edx, 0xffffffff
jne 0x14005accd
xor eax, eax
jmp 0x14005ae36
mov qword [rsp + 0xa0], rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x14005ad0d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
cmp rax, rbx
jae 0x14005ad0d
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], sil
mov eax, esi
jmp 0x14005ae2e
cmp qword [rdi + 0x80], 0
je 0x14005ae29
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
lea rcx, [rdi + 0x70]
cmp rax, rcx
jne 0x14005ad47
mov rdx, qword [rdi + 0x88]
mov rcx, rdi
mov r9, qword [rdi + 0x90]
mov r8, rdx
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setg_char____ptr64__char____ptr64__char____ptr64____ptr64]
mov rcx, qword [rdi + 0x68]
test rcx, rcx
jne 0x14005ad72
mov rdx, qword [rdi + 0x80]
movsx ecx, sil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14005ae2e
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], sil
mov qword [rsp + 0x38], rax
lea rdx, [rdi + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14005ade1
sub eax, 1
je 0x14005ade1
cmp eax, 2
jne 0x14005ae29
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rdi + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, esi
mov eax, ecx
jmp 0x14005ae2e
mov rbx, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rbx, rax
je 0x14005ae0f
mov r9, qword [rdi + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rbx
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rbx, rax
jne 0x14005ae29
lea rax, [rsp + 0x50]
mov byte [rdi + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, esi
mov eax, ecx
jmp 0x14005ae2e
mov eax, 0xffffffff
mov rbx, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140165ad0
mov rsi, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140066ec0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rsi, r8
mov r14, rdx
mov rbp, rcx
test r8, r8
jg 0x140066ee2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140066ef1
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x28], rbx
mov rbx, rsi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
test rax, rax
je 0x140066f42
cmp rax, rsi
mov rdi, rsi
mov rcx, rbp
cmovb rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, rdi
mov rcx, r14
mov rdx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, edi
mov rcx, rbp
add r14, rdi
sub rbx, rdi
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
cmp qword [rbp + 0x80], 0
mov rdi, rbx
je 0x140066fb1
mov rcx, rbp
call int.14004da70
cmp rbx, 0xfff
jbe 0x140066f91
mov r9, qword [rbp + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
add r14, rax
mov rdi, rbx
cmp rax, 0xfff
jne 0x140066fca
cmp rbx, rax
ja 0x140066f60
test rdi, rdi
je 0x140066fb1
mov r9, qword [rbp + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rdi, rax
sub rsi, rdi
mov rbx, qword [rsp + 0x28]
mov rax, rsi
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
sub rsi, rbx
jmp 0x140066fb4
nop
adc eax, 0x678ec21f
fistp word [rcx + 0x38]
sbb al, 0xcc
mov ecx, 0xcffcfd6d
invalid
Function at 0x140066fd0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je case.default.0x140066ff1
add rsp, 0x20
pop r14
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov rbp, rax
test rbx, rbx
jle 0x14006706c
test rax, rax
jle 0x14006704c
cmp rbx, rax
mov rcx, rdi
cmovl rbp, rbx
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, rbp
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
mov rcx, rdi
add r14, rbp
sub rbx, rbp
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
test rbx, rbx
jle 0x14006706c
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14006706c
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x40]
sub rsi, rbx
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rbx
ret
mov dword [rbx], ecx
invalid
Function at 0x14006e970
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x136], 0
je 0x14006e998
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 6]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x135
jb 0x14006e980
mov byte [rcx + 0x136], 0
mov rax, rcx
ret

Function at 0x14006e9c0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x44], 0
je 0x14006e9e3
xor eax, eax
nop dword [rax + rax]
lea edx, [rax - 6]
xor byte [rcx + rax], dl
inc rax
cmp rax, 0x43
jb 0x14006e9d0
mov byte [rcx + 0x44], 0
mov rax, rcx
ret

Function at 0x14006e9f0
Capabilities:
Encode data using xor

Disassembly:
cmp byte [rcx + 0x47], 0
mov r8, rcx
je 0x14006ea78
mov r9, 0xfffffffffffffffe
lea rax, [rcx + 2]
sub r9, rcx
nop word [rax + rax]
lea edx, [r9 + rax]
xor byte [rax + 4], dl
lea ecx, [rdx - 6]
xor byte [rax - 2], cl
lea rax, [rax + 0xe]
lea ecx, [rdx - 5]
xor byte [rax - 0xf], cl
lea ecx, [rdx - 4]
xor byte [rax - 0xe], cl
lea ecx, [rdx - 3]
xor byte [rax - 0xd], cl
lea ecx, [rdx - 2]
xor byte [rax - 0xc], cl
lea ecx, [rdx - 1]
xor byte [rax - 0xb], cl
lea ecx, [rdx + 1]
xor byte [rax - 9], cl
lea ecx, [rdx + 2]
xor byte [rax - 8], cl
lea ecx, [rdx + 3]
xor byte [rax - 7], cl
lea ecx, [rdx + 4]
xor byte [rax - 6], cl
lea ecx, [rdx + 5]
xor byte [rax - 5], cl
lea ecx, [rdx + 6]
xor byte [rax - 4], cl
add dl, 7
xor byte [rax - 3], dl
lea rcx, [rax + r9]
cmp rcx, 0x46
jb 0x14006ea10
mov byte [r8 + 0x47], 0
mov rax, r8
ret