joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4d3ff0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d50d0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d49f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4a8a
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4a6e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4a62
cmp qword [rbp - 0x10], 0
je 0x2fc4d4a62
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4a28
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4a8b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4b90
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4bb8
mov eax, 0
jmp 0x2fc4d4c06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4be1
mov eax, 0
jmp 0x2fc4d4c06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4c01
mov eax, 0
jmp 0x2fc4d4c06
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4c0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d4c8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4c81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d4c81
mov rax, qword [rbp - 8]
jmp 0x2fc4d4c9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4c54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140005580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rdi, rdx
test eax, eax
movd edx, xmm3
mov r11d, 6
mov rbp, r8
mov r10d, r11d
mov r14, rcx
cmovns r10d, eax
mov eax, edx
and eax, 0x7fffff
shr edx, 0x17
lea r9d, [rax + rax]
test edx, edx
jne 0x1400055e0
neg eax
sbb ecx, ecx
and ecx, 0xffffff82
jmp 0x1400055e3
lea ecx, [rdx - 0x7f]
mov eax, r9d
mov r15d, Ordinal_50
bts eax, 0x18
test edx, edx
cmovne r9d, eax
mov eax, ecx
cdq
mov esi, eax
mov eax, 0x2b
xor esi, edx
sub esi, edx
test ecx, ecx
cmovns r15d, eax
cmp esi, 0xa
jae 0x140005614
lea edx, [rax - 0x27]
jmp 0x14000561d
cmp esi, 0x64
sbb rdx, rdx
add rdx, r11
mov rcx, rbp
movsxd r8, r10d
sub rcx, rdi
cmp rcx, r8
jge 0x14000563b
mov qword [r14], rbp
mov dword [r14 + 8], 0x84
jmp 0x140005787
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x14000562b
mov qword [rsp + 0x70], rbx
cmp r10d, r11d
jge 0x14000567d
lea r8d, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea eax, [r8 - 1]
or eax, r9d
movzx ecx, r11b
mov edx, 1
shl edx, cl
and edx, eax
and edx, r8d
add r9d, edx
mov eax, r9d
and r9d, 0xffffff
shr eax, 0x18
add al, 0x30
mov byte [rdi], al
inc rdi
test r10d, r10d
jle 0x140005704
mov byte [rdi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov eax, r9d
lea r8d, [r10 - 1]
shr rax, 0x14
mov ecx, 0x14
movzx eax, byte [rax + r11]
mov byte [rdi + 1], al
add rdi, 2
test r8d, r8d
je 0x140005704
mov edx, 0x100000
test ecx, ecx
je 0x1400056ee
lea eax, [rdx - 1]
sub ecx, 4
and r9d, eax
ror edx, 4
mov eax, r9d
shr rax, cl
movzx eax, byte [rax + r11]
mov byte [rdi], al
inc rdi
sub r8d, 1
jne 0x1400056c6
jmp 0x140005704
movsxd rbx, r8d
mov edx, Ordinal_50
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memset
add rdi, rbx
mov byte [rdi], 0x70
lea r9, [rsp + 0x40]
mov byte [rdi + 1], r15b
add rdi, 2
nop dword [rax]
nop dword [rax + rax]
dec r9
mov eax, 0xcccccccd
mul esi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub sil, cl
add sil, 0x30
mov byte [r9], sil
mov esi, edx
test edx, edx
jne 0x140005720
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rdi
cmp rax, rbx
jge 0x140005765
mov dword [r14 + 8], 0x84
jmp 0x14000577f
mov r8, rbx
mov rdx, r9
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rdi]
mov qword [r14], rbp
mov rbx, qword [rsp + 0x70]
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014ce80
lea r11, [rsp + 0x50]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140005ba0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x90]
mov rsi, rdx
test eax, eax
movq rdx, xmm3
mov r9, rdx
mov r11d, Ordinal_17
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x140005c13
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x140005c19
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, Ordinal_50
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, 0x2b
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x140005c53
lea edx, [rax - 0x27]
jmp 0x140005c6c
cmp edi, 0x64
jae 0x140005c5f
mov edx, 5
jmp 0x140005c6c
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x140005dab
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x140005dab
cmp r10d, r11d
jge 0x140005cc1
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x140005d52
mov byte [rsi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, Ordinal_50
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x140005d52
movabs rdx, 0x1000000000000
nop dword [rax]
test ecx, ecx
je 0x140005d3c
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x140005d10
jmp 0x140005d52
movsxd rbx, r8d
mov edx, Ordinal_50
mov r8, rbx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
add rsi, rbx
mov byte [rsi], 0x70
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x140005d70
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x140005db5
mov dword [r14 + 8], 0x84
jmp 0x140005dcf
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14014ce80
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x140007460
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov rbx, rcx
mov eax, dword [rcx + 0x40]
cmp eax, 4
setle r15b
movzx edi, byte [rcx + 0xd8]
jle 0x1400074b5
test dil, dil
je 0x14000762e
xorps xmm0, xmm0
movups xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x28], Ordinal_17
mov byte [rbp - 0x40], 0
mov rax, qword [rbp + 0x80]
mov rcx, qword [rax]
mov qword [rbp - 0x18], rcx
movabs rax, 0xb000000000000000
mov qword [rbp - 0x20], rax
mov qword [rsp + 0x20], 1
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
movaps xmm0, xmmword [rsp + 0x20]
movdqa xmmword [rsp + 0x20], xmm0
movaps xmm1, xmmword [r9]
movdqa xmmword [rsp + 0x50], xmm1
lea r9, [rsp + 0x20]
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140007660
mov r12, qword [rbp - 0x30]
lea r14, [rbp - 0x40]
cmp qword [rbp - 0x28], 0x10
cmovae r14, qword [rbp - 0x40]
lea rcx, [rbx + 8]
cmp qword [rbx + 0x20], 0x10
jb 0x14000754c
mov rcx, qword [rbx + 8]
mov rax, qword [rbx + 0x18]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x38], rax
movaps xmm6, xmmword [rsi]
movsd xmm7, qword [rsi + 0x10]
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
movups xmm0, xmmword [rsp + 0x30]
movaps xmmword [rsp + 0x60], xmm0
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x58]
mov rsi, qword [rax]
mov ecx, 0x138
mov eax, dword [rcx + rsi]
mov r13d, 0x130
test al, 1
jne 0x1400075b4
or eax, 1
mov dword [rcx + rsi], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov eax, eax
lea rcx, [rsi + r13]
mov qword [rcx], rax
jmp 0x1400075b8
lea rcx, [rsi + r13]
mov rax, qword [rcx]
mov qword [rbp - 0x80], rax
xor eax, eax
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], rax
movups xmmword [rbp - 0x68], xmm6
movsd qword [rbp - 0x58], xmm7
mov qword [rbp - 0x50], r14
mov qword [rbp - 0x48], r12
movzx r9d, dil
movzx r8d, r15b
lea rdx, [rsp + 0x60]
mov rcx, rbx
call fcn.1400797b0
nop
mov rdx, qword [rbp - 0x28]
cmp rdx, 0x10
jb 0x14000762e
inc rdx
mov rcx, qword [rbp - 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007629
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007629
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14014d400
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14014ce80
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x48]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022830
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 0x140022858
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 0x14002287e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140022880
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400228d9
test ecx, ecx
jle 0x1400228b9
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 0x1400228d9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400228d9
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
Function at 0x140022900
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140022931
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14002294f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
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 + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14002296b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14002296d
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400229a9
mov qword [rsp + 0x38], 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 + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140022a3e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400229e4
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 0x140022a1e
nop dword [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 0x140022a3e
cmp rbx, rax
ja 0x1400229f0
test rbx, rbx
je 0x140022a3e
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
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x140022e80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140022ead
xor eax, eax
jmp 0x140023019
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140022ee7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140022ee7
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 0x140023019
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14002300c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140022f2a
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 0x140022f55
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 0x140023011
lea rax, [rsp + 0x48]
mov byte [rsp + 0x40], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x41]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x40]
lea rax, [rsp + 0x50]
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 0x140022fc4
sub eax, 1
je 0x140022fc4
cmp eax, 2
jne 0x14002300c
movsx ecx, byte [rsp + 0x40]
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 0x140023011
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140022ff2
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 0x14002300c
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140023011
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14014ce80
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x1400246b0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140024783
cmp byte [rcx + 0x71], 0
je 0x140024783
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14002477f
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 0x140024744
sub eax, 1
je 0x140024748
cmp eax, 2
jne 0x14002477f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ce80
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140024776
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 0x14002477f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14002472c
xor al, al
jmp 0x14002472c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14014ce80
add rsp, 0x60
pop rbx
ret

Function at 0x140050820
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x3b0
mov rbx, rcx
mov dword [rsp + 0x20], 0x53494f49
xor edi, edi
mov dword [rsp + 0x24], 0x5453444e
lea rcx, [rsp + 0x48]
mov dword [rsp + 0x34], edi
xor edx, edx
mov dword [rsp + 0x28], 0x4d414552
mov r8d, 0x360
mov qword [rsp + 0x2c], 9
mov qword [rsp + 0x38], 0x100
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x44], 1
call sub.VCRUNTIME140.dll_memset
lea rdx, [rbx + 0x20]
lea rax, [rsp + 0x20]
lea ecx, [rdi + 7]
nop
lea rdx, [rdx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rdx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rdx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rdx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rdx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rdx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rdx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rdx - 0x20], xmm0
movups xmmword [rdx - 0x10], xmm1
sub rcx, 1
jne 0x140050890
mov rcx, qword [rax]
mov qword [rdx], rcx
lea rcx, [rbx + 0x440]
cmp qword [rbx + 0x458], 0x10
jb 0x140050901
mov rcx, qword [rbx + 0x440]
mov qword [rbx + 0x450], rdi
xor al, al
mov rbx, qword [rsp + 0x3c0]
mov byte [rcx], dil
add rsp, 0x3b0
pop rdi
ret
Function at 0x14006d0c0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
push rbx
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x90
mov rax, qword [0x140330030]
xor rax, rsp
mov qword [rbp + 0x37], rax
xor eax, eax
mov dword [rbp + 0x17], 0x45654161
mov qword [rbp + 0x27], rax
lea r9, [rbp - 9]
mov word [rbp + 0x2f], ax
mov rbx, rdx
lea rax, [rbp + 0x27]
mov dword [rbp + 0x1b], 0x47674666
mov qword [rbp - 0x19], rax
lea rdx, [rbp + 7]
lea rax, [rbp + 0x31]
mov word [rbp + 0x1f], 0x276e
mov qword [rbp - 0x11], rax
mov rdi, rcx
lea rax, [rbp + 0x17]
mov qword [rbp - 9], rax
lea rax, [rbp + 0x21]
mov qword [rbp - 1], rax
lea rax, [rbp - 0x19]
mov qword [rsp + 0x20], rax
call fcn.14006df90
cmp byte [rbp + 0xf], 0
je 0x14006d147
movups xmm0, xmmword [rbp + 7]
jmp 0x14006d263
movzx ecx, byte [rbp + 0x27]
movzx eax, byte [rbp + 0x28]
test cl, cl
je 0x14006d16a
test al, al
je 0x14006d16a
lea rax, str.Cant_have_both_a_and_A_flags_with_floats
mov byte [rbx + 8], 2
mov qword [rbx], rax
jmp 0x14006d266
movzx r8d, byte [rbp + 0x29]
movzx edx, byte [rbp + 0x2a]
test r8b, r8b
je 0x14006d18f
test dl, dl
je 0x14006d18f
lea rax, str.Cant_have_both_e_and_E_flags_with_floats
mov byte [rbx + 8], 2
mov qword [rbx], rax
jmp 0x14006d266
movzx r10d, byte [rbp + 0x2b]
movzx r9d, byte [rbp + 0x2c]
test r10b, r10b
je 0x14006d1b6
test r9b, r9b
je 0x14006d1b6
lea rax, str.Cant_have_both_f_and_F_flags_with_floats
mov byte [rbx + 8], 2
mov qword [rbx], rax
jmp 0x14006d266
cmp byte [rbp + 0x2d], 0
je 0x14006d1d5
cmp byte [rbp + 0x2e], 0
je 0x14006d1d5
lea rax, str.Cant_have_both_g_and_G_flags_with_floats
mov byte [rbx + 8], 2
mov qword [rbx], rax
jmp 0x14006d266
test cl, cl
jne 0x14006d1e2
test al, al
jne 0x14006d1e2
xor r11b, r11b
jmp 0x14006d1e5
mov r11b, 1
test r8b, r8b
jne 0x14006d1ee
test dl, dl
je 0x14006d1f0
mov dl, 1
test r10b, r10b
jne 0x14006d1fe
test r9b, r9b
jne 0x14006d1fe
xor cl, cl
jmp 0x14006d200
mov cl, 1
cmp byte [rbp + 0x2d], 0
jne 0x14006d280
cmp byte [rbp + 0x2e], 0
jne 0x14006d280
xor r8b, r8b
xor al, al
mov byte [rdi + 0x10], 0
test r11b, r11b
je 0x14006d220
mov byte [rdi + 0x10], 1
mov al, 1
test dl, dl
je 0x14006d229
or al, 2
mov byte [rdi + 0x10], al
test cl, cl
je 0x14006d232
or al, 4
mov byte [rdi + 0x10], al
test r8b, r8b
je 0x14006d23c
or al, 6
mov byte [rdi + 0x10], al
test al, al
jne 0x14006d246
mov byte [rdi + 0x10], 7
mov al, 7
cmp byte [rbp + 0x2f], 0
je 0x14006d255
or byte [rdi + 0xc], 1
or al, 8
mov byte [rdi + 0x10], al
cmp byte [rbp + 0x30], 0
je 0x14006d260
or al, 0x10
mov byte [rdi + 0x10], al
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov rax, rbx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.14014ce80
add rsp, 0x90
pop rdi
pop rbx
pop rbp
ret
mov r8b, 1
test cl, cl
je 0x14006d297
lea rax, str.General_float_already_implies_fixed
mov byte [rbx + 8], 2
mov qword [rbx], rax
jmp 0x14006d266
test dl, dl
je 0x14006d20f
lea rax, str.General_float_already_implies_scientific
mov byte [rbx + 8], 2
mov qword [rbx], rax
jmp 0x14006d266