joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400346d4
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140028f58
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140028f58
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140034824
cmp rax, 0xffffffffffffffff
je 0x140034824
xor edi, edi
test rbp, rbp
jle 0x1400347cf
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140022cb4
mov rbx, rax
test rax, rax
jne 0x14003475c
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400347c5
mov edx, 0x8000
mov ecx, r14d
call fcn.14001fc2c
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140023b00
cmp eax, 0xffffffff
je 0x1400347a5
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003476c
mov edx, r15d
mov ecx, r14d
call fcn.14001fc2c
jmp 0x1400347c5
cmp byte [rsi + 0x38], dil
je 0x1400347bc
cmp dword [rsi + 0x34], 5
jne 0x1400347bc
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400347c5
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140023e08
jmp 0x140034838
jns 0x140034838
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140028f58
cmp rax, 0xffffffffffffffff
jne 0x1400347f0
cmp byte [rsi + 0x30], dil
je 0x140034838
mov edi, dword [rsi + 0x2c]
jmp 0x140034838
mov ecx, r14d
call fcn.14002cabc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140034838
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140034838
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140034831
mov eax, dword [rsi + 0x2c]
jmp 0x140034836
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140028f58
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140035040
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140035068
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140035068
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140035d40
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0x18
mov byte [rsp + 0x30], 0x82
mov byte [rsp + 0x31], 0x2d
mov byte [rsp + 0x32], 0x9a
mov byte [rsp + 0x33], 0x39
mov byte [rsp + 0x34], 0x2a
mov byte [rsp + 0x35], 0x66
mov byte [rsp + 0x36], 0x2c
mov byte [rsp + 0x37], 0x4f
mov byte [rsp + 0x38], 0x84
mov byte [rsp + 0x39], 0x34
mov byte [rsp + 0x3a], 0x91
mov byte [rsp + 0x3b], 0x21
mov byte [rsp + 0x3c], 0x3a
mov byte [rsp + 0x3d], 0x62
mov byte [rsp + 0x3e], 0x37
mov byte [rsp + 0x3f], 0x54
mov byte [rsp + 0x40], 0x8d
mov byte [rsp + 0x41], 0x22
mov byte [rsp + 0x42], 0x96
mov byte [rsp + 0x43], 0x21
mov byte [rsp + 0x44], 0x20
mov byte [rsp + 0x45], 0x71
mov byte [rsp + 0x46], 0x36
mov byte [rsp + 0x47], 0xb
mov eax, 0x428
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x140035e5a
mov eax, 0x428
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword gs:[0x58]
mov ecx, 0x428
mov ecx, ecx
mov rax, qword [rax]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov eax, 0x690
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140003af0
lea rcx, [0x140042870]
call fcn.140011530
nop
mov eax, 0x690
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400113f0
add rsp, 0x58
ret
Function at 0x1400378d0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], 0x19
mov byte [rsp + 0x30], 0x26
mov byte [rsp + 0x31], 0xd8
mov byte [rsp + 0x32], 0x77
mov byte [rsp + 0x33], 0xf3
mov byte [rsp + 0x34], 0x2c
mov byte [rsp + 0x35], 0xff
mov byte [rsp + 0x36], 0x89
mov byte [rsp + 0x37], 0x36
mov byte [rsp + 0x38], 0x3d
mov byte [rsp + 0x39], 0xca
mov byte [rsp + 0x3a], 0x6c
mov byte [rsp + 0x3b], 0xe4
mov byte [rsp + 0x3c], 0x3f
mov byte [rsp + 0x3d], 0xb6
mov byte [rsp + 0x3e], 0x93
mov byte [rsp + 0x3f], 0x23
mov byte [rsp + 0x40], 0x71
mov byte [rsp + 0x41], 0xc8
mov byte [rsp + 0x42], 0x73
mov byte [rsp + 0x43], 0xe8
mov byte [rsp + 0x44], 0x3e
mov byte [rsp + 0x45], 0xba
mov byte [rsp + 0x46], 0xcb
mov byte [rsp + 0x47], 0x7e
mov byte [rsp + 0x48], 0x4b
mov eax, 0x290
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1400379ef
mov eax, 0x290
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword gs:[0x58]
mov ecx, 0x290
mov ecx, ecx
mov rax, qword [rax]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov eax, 0x178
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400043a0
lea rcx, [0x140042e10]
call fcn.140011530
nop
mov eax, 0x178
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400113f0
add rsp, 0x68
ret
Function at 0x1400394a0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], 0x1f
mov byte [rsp + 0x30], 0xca
mov byte [rsp + 0x31], 0x37
mov byte [rsp + 0x32], 0x6e
mov byte [rsp + 0x33], 0x2f
mov byte [rsp + 0x34], 0x82
mov byte [rsp + 0x35], 0x44
mov byte [rsp + 0x36], 0x23
mov byte [rsp + 0x37], 6
mov byte [rsp + 0x38], 0xf9
mov byte [rsp + 0x39], 0x3c
mov byte [rsp + 0x3a], 0x63
mov byte [rsp + 0x3b], 0x7b
mov byte [rsp + 0x3c], 0x83
mov byte [rsp + 0x3d], 0x40
mov byte [rsp + 0x3e], 0x23
mov byte [rsp + 0x3f], 0x1f
mov byte [rsp + 0x40], 0xe6
mov byte [rsp + 0x41], 0x2b
mov byte [rsp + 0x42], 0x27
mov byte [rsp + 0x43], 0x33
mov byte [rsp + 0x44], 0x84
mov byte [rsp + 0x45], 0x4a
mov byte [rsp + 0x46], 0x24
mov byte [rsp + 0x47], 0x4f
mov byte [rsp + 0x48], 0xab
mov byte [rsp + 0x49], 0x2a
mov byte [rsp + 0x4a], 0x62
mov byte [rsp + 0x4b], 0x37
mov byte [rsp + 0x4c], 0x8d
mov byte [rsp + 0x4d], 0xc
mov byte [rsp + 0x4e], 0x4f
mov eax, 0x2c8
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x1400395dd
mov eax, 0x2c8
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword gs:[0x58]
mov ecx, 0x2c8
mov ecx, ecx
mov rax, qword [rax]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov eax, 0x570
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.1400048e0
lea rcx, [0x1400433b0]
call fcn.140011530
nop
mov eax, 0x570
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1400113f0
add rsp, 0x68
ret
Function at 0x140039de0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0x17
mov byte [rsp + 0x30], 0x3b
mov byte [rsp + 0x31], 0xbf
mov byte [rsp + 0x32], 0xa9
mov byte [rsp + 0x33], 0x71
mov byte [rsp + 0x34], 0x6c
mov byte [rsp + 0x35], 0xe9
mov byte [rsp + 0x36], 0x64
mov byte [rsp + 0x37], 0x34
mov byte [rsp + 0x38], 0x22
mov byte [rsp + 0x39], 0xbe
mov byte [rsp + 0x3a], 0xf3
mov byte [rsp + 0x3b], 0x60
mov byte [rsp + 0x3c], 0x67
mov byte [rsp + 0x3d], 0xfc
mov byte [rsp + 0x3e], 0x2f
mov byte [rsp + 0x3f], 0x55
mov byte [rsp + 0x40], 0x17
mov byte [rsp + 0x41], 0x8e
mov byte [rsp + 0x42], 0xf3
mov byte [rsp + 0x43], 0x6e
mov byte [rsp + 0x44], 0x78
mov byte [rsp + 0x45], 0xb4
mov byte [rsp + 0x46], 0x4b
mov eax, 0x3dc
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x140039ef5
mov eax, 0x3dc
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword gs:[0x58]
mov ecx, 0x3dc
mov ecx, ecx
mov rax, qword [rax]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov eax, 0x350
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140004470
lea rcx, [0x140043590]
call fcn.140011530
nop
mov eax, 0x350
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400113f0
add rsp, 0x58
ret

Function at 0x14003a0e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x140057080]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x28], 0x12
mov byte [rsp + 0x30], 0x9b
mov byte [rsp + 0x31], 0x59
mov byte [rsp + 0x32], 0xf5
mov byte [rsp + 0x33], 0x25
mov byte [rsp + 0x34], 0xb6
mov byte [rsp + 0x35], 0x53
mov byte [rsp + 0x36], 0x77
mov byte [rsp + 0x37], 0x7d
mov byte [rsp + 0x38], 0xa9
mov byte [rsp + 0x39], 6
mov byte [rsp + 0x3a], 0xb7
mov byte [rsp + 0x3b], 0x67
mov byte [rsp + 0x3c], 0xed
mov byte [rsp + 0x3d], 3
mov byte [rsp + 0x3e], 0x39
mov byte [rsp + 0x3f], 0x36
mov byte [rsp + 0x40], 0xab
mov byte [rsp + 0x41], 0x73
mov eax, 0x324
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
and eax, 1
test eax, eax
jne 0x14003a1dc
mov eax, 0x324
mov eax, eax
mov rcx, qword gs:[0x58]
mov rcx, qword [rcx]
mov eax, dword [rcx + rax]
or eax, 1
mov dword [rsp + 0x20], eax
mov rax, qword gs:[0x58]
mov ecx, 0x324
mov ecx, ecx
mov rax, qword [rax]
mov edx, dword [rsp + 0x20]
mov dword [rcx + rax], edx
mov eax, 0x648
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140004be0
lea rcx, [0x140043620]
call fcn.140011530
nop
mov eax, 0x648
mov eax, eax
mov rcx, qword gs:[0x58]
add rax, qword [rcx]
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1400113f0
add rsp, 0x58
ret
Function at 0x14003dbd0
Capabilities:
Open clipboard

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x14003dbf2
call qword [sym.imp.USER32.dll_EmptyClipboard]
call qword [sym.imp.USER32.dll_CloseClipboard]
xor eax, eax
jmp 0x14003dbf8
call qword [sym.imp.KERNEL32.dll_GetLastError]
add rsp, 0x28
ret
Function at 0x14003e960
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rcx, qword [rsp + 0x68]
call fcn.140006ac0
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call fcn.140006ac0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [rsp + 0x40]
mov r8, rcx
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileA]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x8007000e
jne 0x14003e9d8
mov dword [rsp + 0x34], 1
mov rcx, qword [rsp + 0x60]
call fcn.140006b90
mov rcx, qword [rsp + 0x68]
call fcn.140006b90
mov eax, dword [rsp + 0x34]
jmp 0x14003ea24
cmp dword [rsp + 0x30], 0x800c0008
jne 0x14003ea04
mov dword [rsp + 0x38], 2
mov rcx, qword [rsp + 0x60]
call fcn.140006b90
mov rcx, qword [rsp + 0x68]
call fcn.140006b90
mov eax, dword [rsp + 0x38]
jmp 0x14003ea24
mov dword [rsp + 0x3c], 0
mov rcx, qword [rsp + 0x60]
call fcn.140006b90
mov rcx, qword [rsp + 0x68]
call fcn.140006b90
mov eax, dword [rsp + 0x3c]
add rsp, 0x58
ret
Function at 0x140003340
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 0x1400033a1
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 0x140003360
mov ecx, dword [r9]
jmp 0x140003488
cmp ecx, 0x4e0
jb 0x140003488
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 + 0x630]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x1400033c0
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop dword [rax + rax]
mov eax, r11d
mov r11d, dword [r10 + 4]
mov edx, r11d
lea r10, [r10 + 4]
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 [r10 - 0xd50]
xor ecx, edx
mov dword [r10 - 0x9c4], ecx
sub rbx, 1
jne 0x140003410
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 0x140003ec0
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.0x140003ee1
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 0x140003f0e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140003f10
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140003f69
test ecx, ecx
jle 0x140003f49
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 0x140003f69
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140003f69
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
push rsp
add bh, byte [rdx + rsi - 0x75fd8903]
add byte [rbx], al
add byte [rsi], ah
push rbp
add dl, byte [rdx + rax]
mov dword [rax], 0x1f0015
sub dword [rax], eax
jge 0x1400babe3
mov dl, 6
add byte [rax], al
sub esi, dword [rax + 0x11b2cd21]
add al, byte [rax]
sub esi, dword [rax + 0x19b4cd1e]
invalid
Function at 0x140003f90
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 0x140003fb2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140003fc1
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 0x140003fe4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140003fe6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140004022
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 0x1400040be
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000405d
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 0x14000409e
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 0x1400040be
cmp rbx, rax
ja 0x140004070
test rbx, rbx
je 0x1400040be
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
add eax, dword [rdx]
or dword [rbx], ebp
mov cl, 8
add dword [rbx], ebp
mov al, 0x36
sbb bh, byte [rdx - 0x721ab8c6]
add byte [0x144bbb5c9], dl
adc byte [rax - 0x4ffb3ffb], dh
add edx, dword [rax]
mov al, 2
rol byte [rdx], 0xb0
add ch, byte [rsi]
add dword [rax + 0x40b02e05], esi
sbb al, byte [rcx]
add byte [rax], dh
xor dword [rbx], edx
and dword [0x1610ccec0], edx
sub byte [rcx], al
jrcxz 0x1400babc1
fnstenv [rdi]
add dword [rdi], esp
invalid
Function at 0x140004520
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000454d
xor eax, eax
jmp 0x1400046b9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140004587
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140004587
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 0x1400046b9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400046ac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x1400045ca
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 0x1400045f5
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 0x1400046b1
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 0x140004664
sub eax, 1
je 0x140004664
cmp eax, 2
jne 0x1400046ac
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 0x1400046b1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140004692
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 0x1400046ac
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400046b1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140053dd0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004b10
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140066040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004be3
cmp byte [rcx + 0x71], 0
je 0x140004be3
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140004bdf
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 0x140004ba4
sub eax, 1
je 0x140004ba8
cmp eax, 2
jne 0x140004bdf
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140053dd0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004bd6
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 0x140004bdf
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140004b8c
xor al, al
jmp 0x140004b8c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140053dd0
add rsp, 0x60
pop rbx
ret