joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1401a6e20
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xd8
call fcn.140247970
sub rsp, rax
mov rax, qword [0x140309440]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov r14, qword [rsp + 0x140]
xor r12d, r12d
mov rax, qword [rcx]
mov rbp, r9
movsxd rbx, r8d
mov rsi, rdx
mov qword [rsp + 0x20], r14
mov rdi, rcx
lea r15d, [r12 + 1]
mov r13d, r12d
test r9, r9
je 0x1401a6e8f
cmp r9, rax
je 0x1401a6e87
test rdx, rdx
je 0x1401a6f00
test r8d, r8d
js 0x1401a6f00
mov r13d, r15d
mov qword [rcx], r9
jmp 0x1401a6e97
test rax, rax
je 0x1401a6f00
mov rbp, rax
mov rcx, rbp
call fcn.14011dcb0
test al, 2
jne 0x1401a6f00
test rsi, rsi
je 0x1401a6f68
mov rcx, rbp
mov r13d, r15d
call fcn.14014aa60
cmp eax, 0x90
jg 0x1401a6f00
cmp eax, ebx
jge 0x1401a6f26
mov rcx, qword [rdi + 8]
mov r8, r14
mov rdx, rbp
call fcn.14012dba0
test eax, eax
je 0x1401a6f00
mov rcx, qword [rdi + 8]
mov r8, rbx
mov rdx, rsi
call fcn.14012de00
test eax, eax
je 0x1401a6f00
mov rcx, qword [rdi + 8]
lea rsi, [rdi + 0x20]
mov r8, rsi
lea rdx, [rdi + 0x24]
call fcn.14012dac0
test eax, eax
jne 0x1401a6f43
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140246e90
add rsp, 0xd8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp ebx, 0x90
ja 0x1401a6f00
mov r8, rbx
lea rcx, [rdi + 0x24]
mov rdx, rsi
call sub.VCRUNTIME140.dll_memcpy
lea rsi, [rdi + 0x20]
mov dword [rsi], ebx
mov ecx, dword [rsi]
cmp ecx, 0x90
je 0x1401a6f71
mov eax, ecx
mov r8d, 0x90
sub r8d, ecx
xor edx, edx
lea rcx, [rdi + 0x24]
add rcx, rax
call sub.VCRUNTIME140.dll_memset
jmp 0x1401a6f71
test r13d, r13d
je 0x1401a7046
lea r14, [rsp + 0x30]
mov esi, 0x48
sub r14, rdi
lea rbx, [rdi + 0x25]
lea r15, [rsp + 0x31]
mov rcx, rbx
sub r15, rdi
mov edx, esi
nop
movzx eax, byte [rcx - 1]
lea rcx, [rcx + 2]
xor al, 0x36
mov byte [r14 + rcx - 0x27], al
movzx eax, byte [rcx - 2]
xor al, 0x36
mov byte [r15 + rcx - 0x27], al
sub rdx, 1
jne 0x1401a6f90
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x10]
call fcn.14012dba0
test eax, eax
je 0x1401a7059
mov rcx, rbp
call fcn.14014aa60
mov rcx, qword [rdi + 0x10]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.14012de00
test eax, eax
je 0x1401a7059
nop word [rax + rax]
movzx eax, byte [rbx - 1]
lea rbx, [rbx + 2]
xor al, 0x5c
mov byte [rbx + r14 - 0x27], al
movzx eax, byte [rbx - 2]
xor al, 0x5c
mov byte [rbx + r15 - 0x27], al
sub rsi, 1
jne 0x1401a6ff0
mov r8, qword [rsp + 0x20]
mov rdx, rbp
mov rcx, qword [rdi + 0x18]
call fcn.14012dba0
test eax, eax
je 0x1401a7059
mov rcx, rbp
call fcn.14014aa60
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x30]
movsxd r8, eax
call fcn.14012de00
test eax, eax
je 0x1401a7059
lea r15d, [rsi + 1]
mov rdx, qword [rdi + 0x10]
mov rcx, qword [rdi + 8]
call fcn.14012de70
test eax, eax
cmovne r12d, r15d
test r13d, r13d
je 0x1401a706d
mov edx, 0x90
lea rcx, [rsp + 0x30]
call fcn.140001240
mov eax, r12d
jmp 0x1401a6f02
Function at 0x1401edfa0
Capabilities:
Encode data using xor

Disassembly:
mov eax, gethostname
call fcn.140247970
sub rsp, rax
cmp dword [rsp + 0x68], 0
je 0x1401edfc9
lea rax, [0x1401ec610]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401e5550
lea rax, [0x1401eb7d0]
mov qword [rsp + 0x68], rax
add rsp, 0x38
jmp fcn.1401e52a0

Function at 0x140247d10
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 0x20], rbx
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rcx, str.kernel32
mov r12d, edx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r14, rax
xor ebx, ebx
movsxd rcx, dword [rax + 0x3c]
mov ebp, dword [rcx + rax + 0x88]
add rbp, rax
mov r13d, dword [rbp + 0x1c]
mov r15d, dword [rbp + 0x20]
add r13, rax
add r15, rax
mov eax, dword [rbp + 0x24]
add rax, r14
mov qword [rsp + 0x50], rax
cmp dword [rbp + 0x14], ebx
jbe 0x140001b04
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov edi, dword [r15 + rbx*4]
add rdi, r14
jne 0x140001a94
lea edx, [rdi + 0x35]
jmp 0x140001ac3
mov edx, 0x32
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strnlen]
xor ecx, ecx
mov edx, 0x35
test rax, rax
je 0x140001ac3
nop
movsx r8d, byte [rcx + rdi]
inc rcx
imul edx, edx, 0x21
xor edx, r8d
cmp rcx, rax
jb 0x140001ab0
cmp edx, r12d
je 0x140001ad1
inc ebx
cmp ebx, dword [rbp + 0x14]
jb 0x140001a86
jmp 0x140001afa
mov rax, qword [rsp + 0x50]
lea rcx, str._s_:_0x_x_:__p_n
mov r8d, edx
mov rdx, rdi
movzx eax, word [rax + rbx*2]
mov ebx, dword [r13 + rax*4]
add rbx, r14
mov r9, rbx
call fcn.1400013d0
mov rax, rbx
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140002b70
Capabilities:
Parse pe header

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

Function at 0x140001040
Capabilities:
Terminate process

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ecx, 1
call sym._configure_narrow_argv
call sym._initialize_narrow_environment
call sym.__p___argc
mov esi, dword [rax]
call sym.__p___argv
mov rdi, qword [rax]
call sym._get_initial_narrow_environment
xor ecx, ecx
mov rbx, rax
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x10]
mov edx, dword [rax + 0x3c]
cmp word [rax + rdx + 0x5c], 2
sete cl
add ecx, 1
call sym._set_app_type
mov ecx, esi
mov r8, rbx
mov rdx, rdi
call dbg.main
mov ecx, eax
call sym.exit
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x140001180
Capabilities:
Accept command line arguments

Disassembly:
push rsi
push rbx
sub rsp, 0x98
call dbg.__main
call qword [sym.imp.kernel32.dll_GetCommandLineA]
mov rbx, rax
movzx eax, byte [rax]
test al, al
je 0x1400011df
xor ecx, ecx
xor edx, edx
jmp 0x1400011bb
cmp al, 0x5c
jne 0x140001220
add edx, 1
movzx eax, byte [rbx + 1]
add rbx, 1
test al, al
je 0x1400011d4
cmp al, 9
je 0x1400011c3
cmp al, 0x20
jne 0x1400011a8
test ecx, ecx
je 0x1400011d4
xor edx, edx
jmp 0x1400011af
add rbx, 1
movzx eax, byte [rbx]
cmp al, 9
je 0x1400011d0
cmp al, 0x20
je 0x1400011d0
lea rcx, [rsp + 0x20]
call qword [sym.imp.kernel32.dll_GetStartupInfoA]
test byte [rsp + 0x5c], 1
jne 0x1400011f8
mov word [rsp + 0x60], 1
movzx esi, word [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.kernel32.dll_GetModuleHandleA]
mov r8, rbx
xor edx, edx
mov rcx, rax
mov r9d, esi
call dbg.WinMain
add rsp, 0x98
pop rbx
pop rsi
ret
cmp al, 0x22
jne 0x1400011c7
and edx, 1
jne 0x1400011c7
xor ecx, 1
jmp 0x1400011af
Function at 0x140002930
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13c0
call fcn.14001f690
sub rsp, rax
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x13b0], rax
mov edi, edx
mov ebx, ecx
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [rsp + 0x13a4], 0xffffffff
mov r9d, 1
mov dword [rsp + 0x24], eax
mov r10d, 0x270
mov r8d, eax
shr r8d, 0x1e
xor r8d, eax
imul eax, r8d, 0x6c078965
add eax, r9d
mov dword [rsp + r9*4 + 0x24], eax
inc r9
cmp r9, r10
jb 0x140002984
lea eax, [rbx - 0x80000000]
mov dword [rsp + 0x20], r10d
mov ebp, 0x80000000
cmp ebx, ebp
lea esi, [rbx + rbp]
cmovae esi, eax
lea ebx, [rdi + rbp]
cmp edi, ebp
lea eax, [rdi - 0x80000000]
cmovae ebx, eax
sub ebx, esi
cmp ebx, 0xffffffff
jne 0x140002a50
lea r8, [rsp + 0x28]
nop word [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 0x1400029e0
mov eax, dword [rsp + 0x20]
mov edx, dword [rsp + rax*4 + 0x24]
mov eax, edx
shr eax, 0xb
and eax, dword [rsp + 0x13a4]
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 ecx, edx
shr ecx, 0x12
xor ecx, edx
jmp 0x140002a8e
lea rcx, [rsp + 0x20]
inc ebx
call fcn.14000c150
mov ecx, eax
mov edi, ebx
imul rcx, rdi
cmp ecx, ebx
jae 0x140002a8a
mov eax, ebx
xor edx, edx
neg eax
div ebx
mov ebx, edx
cmp ecx, edx
jae 0x140002a8a
lea rcx, [rsp + 0x20]
call fcn.14000c150
mov ecx, eax
imul rcx, rdi
cmp ecx, ebx
jb 0x140002a76
shr rcx, 0x20
lea edx, [rsi + rcx]
cmp edx, ebp
lea ecx, [rdx - 0x80000000]
lea eax, [rdx + rbp]
cmovae eax, ecx
mov rcx, qword [rsp + 0x13b0]
xor rcx, rsp
call fcn.14001e600
lea r11, [rsp + 0x13c0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140004310
Capabilities:
Check if file exists
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x78], rax
xor ebx, ebx
mov qword [rsp + 0xa8], rdi
mov dword [rsp + 0x74], ebx
mov rdi, rcx
call fcn.14001de50
lea rdx, [rsp + 0x74]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov rdi, qword [rsp + 0xa8]
test eax, eax
jne 0x14000453e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x140030088], 2
mov r9d, eax
movups xmm0, xmmword [0x1400213b0]
movzx ecx, byte [0x1400213e0]
movups xmm1, xmmword [0x1400213c0]
mov byte [rsp + 0x50], cl
movups xmmword [rsp + 0x20], xmm0
movups xmm0, xmmword [0x1400213d0]
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm0
jl 0x1400044ea
movdqa xmm0, xmmword [0x14002b0d0]
lea rcx, [rsp + 0x24]
movdqa xmm5, xmmword [0x14002b000]
movdqa xmm4, xmmword [0x14002b100]
movdqa xmmword [rsp + 0x60], xmm0
mov edx, dword [rsp + 0x60]
movaps xmmword [rsp + 0x80], xmm6
movdqa xmm6, xmmword [0x14002b030]
nop dword [rax + rax]
movd xmm2, ebx
lea eax, [rbx + 4]
pshufd xmm2, xmm2, 0
lea rcx, [rcx + 8]
paddd xmm2, xmm5
movd xmm3, eax
movdqa xmm1, xmm2
pshufd xmm3, xmm3, 0
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
paddd xmm3, xmm5
pmuldq xmm0, xmm4
add ebx, 8
pmuldq xmm1, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
movdqa xmm1, xmm3
andps xmm2, xmmword [0x14002b0b0]
packuswb xmm2, xmm2
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 0xc]
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
movd dword [rcx - 0xc], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, edx
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x14002b0b0]
packuswb xmm2, xmm2
paddb xmm2, xmm0
movd xmm0, dword [rcx - 8]
xorps xmm2, xmm0
movd dword [rcx - 8], xmm2
cmp ebx, 0x30
jl 0x1400043e0
movaps xmm6, xmmword [rsp + 0x80]
cmp ebx, 0x31
jge 0x14000452d
movsxd rax, ebx
lea r8, [rsp + 0x20]
add r8, rax
nop word [rax + rax]
mov eax, 0x4bda12f7
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x36
movzx eax, bl
inc ebx
sub al, cl
add al, 0x32
xor byte [r8 - 1], al
cmp ebx, 0x31
jl 0x140004500
mov edx, r9d
lea rcx, [rsp + 0x20]
call fcn.140002630
xor al, al
jmp 0x140004561
mov dword [rsp + 0x70], ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rsp + 0x70]
cmp dword [rsp + 0x74], eax
sete al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e600
add rsp, 0x90
pop rbx
ret
Function at 0x14000c150
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 0x14000c1b1
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 0x14000c170
mov ecx, dword [r9]
jmp 0x14000c29b
cmp ecx, 0x4e0
jb 0x14000c29b
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 0x14000c1d0
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 0x14000c220
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 0x14000d520
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000d5bf
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x14000d5bf
mov r8d, dword [rax + rcx + 0xd8]
test r8d, r8d
je 0x14000d5b2
mov rdi, qword [r8 + rcx + 0x58]
test rdi, rdi
je 0x14000d5b2
sub rcx, rdx
movabs rsi, 0x2b992ddfa232
add rdi, rcx
cmp qword [rdi], rsi
jne 0x14000d5bf
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
movabs rax, 0x2b992ddfa233
xor rcx, rbx
mov rbx, qword [rsp + 0x30]
xor rcx, rsi
cmp rcx, rsi
cmove rcx, rax
mov al, 1
mov qword [rdi], rcx
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov al, 1
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rsi, qword [rsp + 0x38]
xor al, al
add rsp, 0x20
pop rdi
ret
Function at 0x1400108a0
Capabilities:
Enumerate pe sections

Disassembly:
push rbx
push rbp
push r13
push r14
mov eax, 0x1078
call fcn.14001f690
sub rsp, rax
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov r14, rdx
mov qword [rsp + 0x38], r9
mov rdx, qword [rsp + 0x10c0]
xor ebp, ebp
mov qword [rsp + 0x30], rdx
mov r13, r8
mov qword [rsp + 0x40], rcx
test r8, r8
jne 0x1400108f2
mov rdx, rbp
jmp 0x1400109bb
mov r9d, 0x1000
lea rdx, [rsp + 0x50]
call fcn.14000f120
test al, al
je 0x1400108ea
mov qword [rsp + 0x10a8], rsi
mov qword [rsp + 0x1070], rdi
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x1068], r12
mov qword [rsp + 0x1060], r15
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140010930
movsxd rax, dword [rsp + 0x8c]
lea rcx, [rsp + 0x50]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140010998
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140010991
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140010983
cmp rdi, rax
je 0x1400109f5
inc esi
cmp esi, r15d
jb 0x140010960
mov rdx, rbp
mov r12, qword [rsp + 0x1068]
mov rdi, qword [rsp + 0x1070]
mov rsi, qword [rsp + 0x10a8]
mov r15, qword [rsp + 0x1060]
mov rax, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov r8d, ebp
mov qword [rsp + 0x20], rax
call fcn.140010790
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.14001e600
add rsp, 0x1078
pop r14
pop r13
pop rbp
pop rbx
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140010998
mov ecx, dword [rbx + 8]
lea rdx, [rsp + 0x50]
add rdx, rax
je 0x140010998
test ecx, ecx
je 0x140010998
lea rax, [rsp + 0x50]
mov ebp, ecx
sub rdx, rax
add rdx, r13
jmp 0x14001099b
Function at 0x140011460
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x140011481
add rsp, 0x20
pop r15
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 rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400114ae
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400114b0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140011509
test ecx, ecx
jle 0x1400114e9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140011509
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140011509
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
lea eax, [0x140303130]
mov edx, 0xc
mov qword [r11 - 0x78], rax
lea rcx, [0x14043b5d8]
lea rax, [0x140303138]
mov qword [r11 - 0x70], rax
lea rax, [0x140303144]
mov qword [r11 - 0x68], rax
lea rax, [0x14030314c]
mov qword [r11 - 0x60], rax
lea rax, [0x140303150]
mov qword [r11 - 0x58], rax
lea rax, [0x140303158]
mov qword [r11 - 0x50], rax
lea rax, [0x140303168]
test byte [rcx + 0x2b], 0
Function at 0x140011530
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140011552
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140011561
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 rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140011584
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140011586
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400115c2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001165e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400115fd
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001163e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001165e
cmp rbx, rax
ja 0x140011610
test rbx, rbx
je 0x14001165e
mov r9, qword [rsi + 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 rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
and byte [rax], al
lea rax, [rbx + 0x20]
lea rcx, [0x140271480]
mov qword [0x14043b678], rax
call 0x14025b7c4
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call 0x14025b410
add rsp, 0x50
pop rbx
ret
Function at 0x140011ac0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140030040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140011aed
xor eax, eax
jmp 0x140011c59
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140011b27
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140011b27
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140011c59
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140011c4c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140011b6a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140011b95
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140011c51
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 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 0x140011c04
sub eax, 1
je 0x140011c04
cmp eax, 2
jne 0x140011c4c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140011c51
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140011c32
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140011c4c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140011c51
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001e600
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret