joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400bc2dc
Capabilities:
Hash data with crc32

Disassembly:
jmp 0x14012d5f0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x20]
lea rcx, [0x1402c9204]
call fcn.1400bc70a
nop
mov eax, dword [rbp + 0x160]
not eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x150]
mov qword [rbp + 0x28], rax
lea rax, [0x1402438c0]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 0x118], rax
mov rax, qword [rbp + 0x158]
dec rax
mov qword [rbp + 0x158], rax
cmp qword [rbp + 0x118], 0
je 0x14012d670
mov dword [rbp + 0x120], 1
jmp 0x14012d67a
mov dword [rbp + 0x120], 0
cmp dword [rbp + 0x120], 0
je 0x14012d6b4
mov eax, dword [rbp + 4]
shr eax, 8
mov ecx, dword [rbp + 4]
and ecx, 0xff
mov rdx, qword [rbp + 0x28]
movzx edx, byte [rdx]
xor ecx, edx
mov ecx, ecx
mov rdx, qword [rbp + 0x48]
xor eax, dword [rdx + rcx*4]
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x28]
inc rax
mov qword [rbp + 0x28], rax
jmp 0x14012d63b
mov eax, dword [rbp + 4]
not eax
lea rsp, [rbp + 0x138]
pop rdi
pop rbp
ret

Function at 0x1400bcb0b
Capabilities:
Enumerate processes

Disassembly:
jmp 0x1400dc630
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x258
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x5e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x278]
mov rax, qword [0x1402ace40]
xor rax, rbp
mov qword [rbp + 0x228], rax
lea rcx, [0x1402c911c]
call fcn.1400bc70a
nop
xor edx, edx
mov ecx, 2
call fcn.1400ba95a
mov qword [rbp + 0x158], rax
mov dword [rbp + 0x10], 0x130
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x158]
call fcn.1400bbd05
test eax, eax
je 0x1400dc6f2
mov rdx, qword [rbp + 0x258]
lea rcx, [rbp + 0x3c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x1400dc6de
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 0x18]
mov dword [0x1402ad490], eax
mov eax, dword [rbp + 0x18]
jmp 0x1400dc702
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 0x158]
call fcn.1400bc75f
test eax, eax
jne 0x1400dc6ad
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14023c010]
call fcn.1400bbd5f
mov rax, rdi
mov rcx, qword [rbp + 0x228]
xor rcx, rbp
call fcn.1400ba9eb
lea rsp, [rbp + 0x238]
pop rdi
pop rbp
ret

Function at 0x1400bcc5f
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x1400fdc60
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1402c910c]
call fcn.1400bc70a
nop
movsx eax, byte [rbp + 0xe8]
mov ecx, dword [rbp + 0xe0]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400dc780
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rdi
sub rsp, 0x158
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x1a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rax, qword [0x1402ace40]
xor rax, rbp
mov qword [rbp + 0x118], rax
lea rcx, [0x1402c910d]
call fcn.1400bc70a
nop
mov qword [rbp + 8], 0
mov dword [rbp + 0x24], 0
lea rax, [rbp + 8]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SOFTWAREFraps3
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400dc83d
mov dword [rbp + 0x44], 4
lea rax, [rbp + 0x44]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x24]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, str.Movie_Key
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x1400dc832
mov dword [rbp + 0x24], 0
mov rcx, qword [rbp + 8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov eax, dword [rbp + 0x24]
mov edi, eax
lea rcx, [rbp - 0x30]
lea rdx, [0x14023be20]
call fcn.1400bbd5f
mov eax, edi
mov rcx, qword [rbp + 0x118]
xor rcx, rbp
call fcn.1400ba9eb
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140227fd0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400bc930
movzx eax, al
test eax, eax
jne 0x140227ff0
mov ecx, 7
call fcn.1400bbdaa
nop
mov byte [rsp + 0x20], 0
call fcn.1400bbeae
mov byte [rsp + 0x21], al
cmp dword [0x1402b57c0], 1
jne 0x140228014
mov ecx, 7
call fcn.1400bbdaa
nop
jmp 0x14022806c
cmp dword [0x1402b57c0], 0
jne 0x140228067
mov dword [0x1402b57c0], 1
lea rdx, [0x14023a7b8]
lea rcx, [0x14023a488]
call fcn.1400ba941
test eax, eax
je 0x140228048
mov eax, 0xff
jmp 0x140228171
lea rdx, [0x14023a378]
lea rcx, [section..rdata]
call fcn.1400bbe81
mov dword [0x1402b57c0], 2
jmp 0x14022806c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.1400bbd0a
call fcn.1400bb6ed
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1402280c9
mov rcx, qword [rsp + 0x30]
call fcn.1400ba482
movzx eax, al
test eax, eax
je 0x1402280c9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x1402cb020]
nop
call fcn.1400bb97c
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1402280fd
mov rcx, qword [rsp + 0x38]
call fcn.1400ba482
movzx eax, al
test eax, eax
je 0x1402280fd
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.1400bc575
nop
call fcn.1402281e0
mov dword [rsp + 0x28], eax
call fcn.1400bb594
movzx eax, al
test eax, eax
jne 0x14022811c
mov ecx, dword [rsp + 0x28]
call fcn.1400b93cf
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14022812b
call fcn.1400bc610
nop
xor edx, edx
mov cl, 1
call fcn.1400ba356
mov eax, dword [rsp + 0x28]
jmp 0x140228171
add rsp, 0x68
ret
Function at 0x10001e024
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rdi
push r12
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x1000301f8], rdi
je 0x10001e07d
cmp rax, rdi
jne 0x10001e070
mov esi, 1
jmp 0x10001e07d
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10001e057
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e092
lea ecx, [rax + 0x1e]
call fcn.1001a3000
jmp 0x10001e0f7
mov eax, dword [0x1000301f0]
test eax, eax
jne 0x10001e0ed
mov dword [0x1000301f0], 1
lea r12, [0x100001690]
lea rdi, [0x100001678]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], eax
cmp rdi, r12
jae 0x10001e0df
test eax, eax
jne 0x10001e0df
mov rcx, qword [rdi]
test rcx, rcx
je 0x10001e0d4
call rcx
mov dword [rsp + 0x30], eax
add rdi, 8
mov qword [rsp + 0x38], rdi
jmp 0x10001e0bd
test eax, eax
je 0x10001e0f7
mov eax, 0xff
jmp 0x10001e241
mov dword [0x10002f924], 1
mov eax, dword [0x1000301f0]
cmp eax, 1
jne 0x10001e11f
lea rdx, [0x100001670]
lea rcx, [0x1000015f8]
call sub.msvcrt.dll__initterm
mov dword [0x1000301f0], 2
test esi, esi
jne 0x10001e12c
xor eax, eax
xchg qword [0x1000301f8], rax
cmp qword [0x100030210], 0
je 0x10001e155
lea rcx, [0x100030210]
call fcn.10001e5dc
test eax, eax
je 0x10001e155
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100030210]
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rdi, qword [rax]
mov qword [rsp + 0x28], rdi
mov esi, dword [rsp + 0x20]
cmp byte [rdi], 0x20
ja 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e176
test esi, esi
jne 0x10001e1e0
cmp byte [rdi], 0
je 0x10001e18a
cmp byte [rdi], 0x20
ja 0x10001e18a
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e176
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rdi
xor edx, edx
lea rcx, [0x100000000]
call fcn.100008db4
mov dword [0x10002f920], eax
cmp dword [0x10002f904], 0
jne 0x10001e1c9
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x10002f924], 0
jne 0x10001e1de
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x10002f920]
jmp 0x10001e241
cmp byte [rdi], 0x22
jne 0x10001e1f2
xor eax, eax
test esi, esi
sete al
mov esi, eax
mov dword [rsp + 0x20], eax
movzx ecx, byte [rdi]
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x10001e207
inc rdi
mov qword [rsp + 0x28], rdi
inc rdi
mov qword [rsp + 0x28], rdi
jmp 0x10001e168
lea r11, [rsp + 0xb0]
mov rsi, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r12
ret
sub rsp, 0x28
call fcn.10001e6e4
add rsp, 0x28
jmp 0x10001e024
Function at 0x140001670
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov r15, rdx
mov r13, rcx
xorps xmm0, xmm0
xor eax, eax
mov rsi, qword [rdx + 8]
sub rsi, qword [rdx]
add rsi, 0x10
movdqu xmmword [rsp + 0x68], xmm0
mov edi, eax
mov qword [rsp + 0x78], rax
mov r12d, eax
mov r14d, eax
je 0x14000173f
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x1400018cf
cmp rsi, 0x1000
jb 0x140001709
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x1400018d5
call fcn.140006f50
test rax, rax
je 0x140001868
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001714
mov rcx, rsi
call fcn.140006f50
mov r14, rax
mov rbx, r14
mov qword [rsp + 0x68], rbx
lea rdi, [r14 + rsi]
mov r12, rdi
mov qword [rsp + 0x78], rdi
mov r8, rsi
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov rbp, rdi
mov qword [rsp + 0x70], rdi
jmp 0x140001749
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
sub r12d, r14d
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [r13 + 8]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
jne 0x1400018ac
mov esi, dword [rsp + 0x80]
mov rcx, rbp
sub rcx, rbx
cmp rsi, rcx
jae 0x1400017b3
lea rbp, [rsi + rbx]
jmp 0x1400017f1
jbe 0x1400017f1
mov rax, rdi
sub rax, rbx
cmp rsi, rax
jbe 0x1400017de
mov rdx, rsi
lea rcx, [rsp + 0x68]
call fcn.140006180
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
mov rbx, qword [rsp + 0x68]
jmp 0x1400017f1
sub rsi, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
add rbp, rsi
lea rax, [rsp + 0x68]
cmp r15, rax
je 0x14000183f
mov rcx, qword [r15]
test rcx, rcx
je 0x140001830
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14000182b
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14000186f
mov rcx, r8
call fcn.1400071cc
mov qword [r15], rbx
mov qword [r15 + 8], rbp
mov qword [r15 + 0x10], rdi
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x140001881
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140001876
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001876
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
mov rcx, rbx
call fcn.1400071cc
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.140006e10
mov rbx, qword [rsp + 0xe0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rdx, str.Encryption_failed
lea rcx, [rsp + 0x50]
call fcn.140001420
lea rdx, [0x14000b870]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.1400058f0
int3
call fcn.1400012f0
int3
Function at 0x140001b90
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov dword [rsp + 0x30], ecx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov ecx, 0x20
call fcn.140006f50
mov rcx, rax
mov qword [rbx], rax
add rax, 0x20
mov qword [rbx + 0x10], rax
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
movups xmmword [rcx + 0x10], xmm0
lea rax, [rcx + 0x20]
mov qword [rbx + 8], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140001c7d
mov r8, qword [rbx]
mov rdx, qword [rbx + 8]
sub rdx, r8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
xor edx, edx
mov rcx, qword [rsp + 0x58]
test eax, eax
je 0x140001c54
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rax, rbx
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.140006e10
add rsp, 0x70
pop rbx
ret
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea rdx, str.Failed_to_generate_random_key
lea rcx, [rsp + 0x38]
call fcn.140001420
lea rdx, [0x14000b870]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.Failed_to_acquire_crypto_context
lea rcx, [rsp + 0x38]
call fcn.140001420
lea rdx, [0x14000b870]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3

Function at 0x140001ca0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rbx
sub rsp, 0x20
mov ecx, 4
mov rax, qword gs:[0x58]
mov rax, qword [rax]
lea rbx, [0x14000ffb0]
mov eax, dword [rcx + rax]
cmp dword [0x14000ffa0], eax
jle 0x140001d37
lea rcx, [0x14000ffa0]
call fcn.140006ed8
cmp dword [0x14000ffa0], 0xffffffff
jne 0x140001d37
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov dword [0x140011334], 0xffffffff
mov dword [0x14000ffb4], eax
mov r8d, 1
nop word [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, r8d
mov dword [rbx + r8*4 + 4], eax
inc r8
cmp r8, 0x270
jb 0x140001d00
mov dword [0x14000ffb0], 0x270
lea rcx, [0x14000ffa0]
call fcn.140006e6c
mov rcx, rbx
call fcn.140006660
mov ecx, eax
imul rax, rcx, 0x1c3
cmp eax, 0x24
ja 0x140001d66
nop dword [rax]
mov rcx, rbx
call fcn.140006660
mov ecx, eax
imul rax, rcx, 0x1c3
cmp eax, 0x25
jb 0x140001d50
shr rax, 0x20
sub rax, 0x7fffffce
xor rax, 0xffffffff80000000
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.1400050f0
add rsp, 0x20
pop rbx
ret
Function at 0x140001f20
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x13d0
call fcn.140007ea0
sub rsp, rax
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x13c0], rax
mov rsi, rdx
mov rbx, rcx
mov qword [rsp + 0x28], rcx
xor ecx, ecx
mov dword [rsp + 0x24], ecx
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rcx
mov edi, 1
mov dword [rsp + 0x24], edi
call qword [sym.imp.MSVCP140.dll_unsigned_int___cdecl_std::_Random_device_void_]
mov ecx, eax
mov dword [rsp + 0x13b4], 0xffffffff
mov dword [rsp + 0x34], eax
nop dword [rax]
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edi
mov dword [rsp + rdi*4 + 0x34], ecx
inc rdi
cmp rdi, 0x270
jb 0x140001f90
mov dword [rsp + 0x30], 0x270
mov byte [rsp + 0x20], 0x90
mov edi, 0xa
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140001fd4
mov byte [rdx], 0x90
inc qword [rbx + 8]
jmp 0x140001fe1
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.1400062d0
sub rdi, 1
jne 0x140001fc1
mov r8, qword [rsi]
mov r9, qword [rsi + 8]
sub r9, r8
mov rdx, qword [rbx + 8]
mov rcx, rbx
call fcn.140005aa0
mov edi, 0x14
lea rcx, [rsp + 0x30]
call fcn.140006660
shr eax, 0x18
mov byte [rsp + 0x20], al
mov rdx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x140002025
mov byte [rdx], al
inc qword [rbx + 8]
jmp 0x140002032
lea r8, [rsp + 0x20]
mov rcx, rbx
call fcn.1400062d0
sub rdi, 1
jne 0x140002002
mov rcx, qword [rbx]
lea rdx, [rcx + 0xa]
lea r8, [rsp + 0x30]
call fcn.140005510
mov rdx, qword [rsi + 8]
sub rdx, qword [rsi]
mov rcx, qword [rbx]
add rcx, 0xa
add rcx, rdx
lea r8, [rsp + 0x30]
mov rdx, qword [rbx + 8]
call fcn.140005510
mov rax, rbx
mov rcx, qword [rsp + 0x13c0]
xor rcx, rsp
call fcn.140006e10
lea r11, [rsp + 0x13d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140003420
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 0x140003448
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 0x14000346e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003470
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400034c9
test ecx, ecx
jle 0x1400034a9
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 0x1400034c9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400034c9
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 0x1400034f0
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 0x140003512
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140003528
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 0x140003544
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003546
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140003582
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 0x14000361e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400035bd
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 0x1400035fe
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 0x14000361e
cmp rbx, rax
ja 0x1400035d0
test rbx, rbx
je 0x14000361e
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
Function at 0x140003a80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003aad
xor eax, eax
jmp 0x140003c19
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003ae7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003ae7
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 0x140003c19
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003c0c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003b2a
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 0x140003b55
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 0x140003c11
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 0x140003bc4
sub eax, 1
je 0x140003bc4
cmp eax, 2
jne 0x140003c0c
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 0x140003c11
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003bf2
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 0x140003c0c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003c11
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140006e10
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004a90
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004b63
cmp byte [rcx + 0x71], 0
je 0x140004b63
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004b5f
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 0x140004b24
sub eax, 1
je 0x140004b28
cmp eax, 2
jne 0x140004b5f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006e10
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004b56
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 0x140004b5f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004b0c
xor al, al
jmp 0x140004b0c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140006e10
add rsp, 0x60
pop rbx
ret