joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002160
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebp, r8d
mov r14, rdx
mov rdi, rcx
xor esi, esi
mov dword [rsp + 0x20], esi
mov qword [rcx + 0x10], rsi
mov qword [rcx + 0x18], select
mov byte [rcx], sil
mov dword [rsp + 0x20], 1
mov ebx, esi
test r8d, r8d
je 0x1400023fa
mov ecx, esi
nop dword [rax]
dec ebp
movzx eax, byte [r14]
lea r14, [r14 + 1]
mov byte [rsp + rcx + 0x80], al
inc ebx
inc rcx
movzx r13d, byte [rsp + 0x82]
movzx r15d, byte [rsp + 0x81]
movzx r12d, byte [rsp + 0x80]
cmp rcx, 3
jne 0x1400022a6
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x88], al
movzx ecx, r12b
and cl, 3
shl cl, 4
movzx eax, r15b
shr al, 4
add cl, al
mov byte [rsp + 0x89], cl
movzx ecx, r15b
and cl, 0xf
shl cl, 2
movzx eax, r13b
shr al, 6
add cl, al
mov byte [rsp + 0x8a], cl
movzx eax, r13b
and al, 0x3f
mov byte [rsp + 0x8b], al
mov rbx, rsi
nop dword [rax]
lea rcx, [0x1400d3050]
cmp qword [0x1400d3068], 0x10
cmovae rcx, qword [0x1400d3050]
movzx eax, byte [rsp + rbx + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x140002290
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140002285
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x140002298
mov rcx, rdi
call fcn.140002c40
inc rbx
cmp rbx, 4
jl 0x140002240
mov ebx, esi
mov rcx, rsi
test ebp, ebp
jne 0x1400021b0
test ebx, ebx
je 0x1400023fa
movsxd rax, ebx
cmp rax, 3
jge 0x1400022f1
jae 0x140002412
mov byte [rsp + rax + 0x80], 0
inc rax
cmp rax, 3
jl 0x1400022bf
movzx r13d, byte [rsp + 0x82]
movzx r15d, byte [rsp + 0x81]
movzx r12d, byte [rsp + 0x80]
movzx eax, r12b
shr al, 2
mov byte [rsp + 0x88], al
and r12b, 3
shl r12b, 4
movzx eax, r15b
shr al, 4
add r12b, al
mov byte [rsp + 0x89], r12b
and r15b, 0xf
shl r15b, 2
movzx eax, r13b
shr al, 6
add r15b, al
mov byte [rsp + 0x8a], r15b
and r13b, 0x3f
mov byte [rsp + 0x8b], r13b
lea eax, [rbx + 1]
movsxd rbp, eax
test eax, eax
jle 0x1400023b0
nop dword [rax]
lea rcx, [0x1400d3050]
cmp qword [0x1400d3068], 0x10
cmovae rcx, qword [0x1400d3050]
movzx eax, byte [rsp + rsi + 0x88]
movzx r9d, byte [rax + rcx]
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400023a0
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x140002395
mov rax, qword [rdi]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400023a8
mov rcx, rdi
call fcn.140002c40
inc rsi
cmp rsi, rbp
jl 0x140002350
cmp ebx, 3
jge 0x1400023fa
mov eax, 3
sub eax, ebx
mov ebx, eax
nop
mov rcx, qword [rdi + 0x10]
mov rdx, qword [rdi + 0x18]
cmp rcx, rdx
jae 0x1400023e9
lea rax, [rcx + 1]
mov qword [rdi + 0x10], rax
mov rax, rdi
cmp rdx, 0x10
jb 0x1400023e1
mov rax, qword [rdi]
mov word [rax + rcx], 0x3d
jmp 0x1400023f4
mov r9b, 0x3d
mov rcx, rdi
call fcn.140002c40
sub rbx, 1
jne 0x1400023c0
mov rax, rdi
mov rbx, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.140054f9c
int3
Function at 0x140005550
Capabilities:
Get socket status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rax, qword [rcx]
lea rbx, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rdi, [rsp + 0x60]
mov r9d, edx
mov dword [rsp + 0x60], 1
mov ecx, r8d
lea rsi, [rsp + 0x60]
movabs rax, 0x20c49ba5e353f7cf
imul r8
sar rdx, 7
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul eax, edx, 0x3e8
mov dword [rsp + 0x30], edx
sub ecx, eax
imul eax, ecx, 0x3e8
mov dword [rsp + 0x34], eax
xor eax, eax
test r8, r8
cmovs rbx, rax
cmp r9d, 1
mov qword [rsp + 0x20], rbx
cmovne rdi, rax
test r9d, r9d
mov r8, rdi
cmovne rsi, rax
xor r9d, r9d
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
jne 0x140005628
nop dword [rax]
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2714
jne 0x140005674
xor r9d, r9d
mov qword [rsp + 0x20], rbx
mov r8, rdi
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x140005600
test eax, eax
je 0x140005651
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.140054e70
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, str.Request_timed_out
lea rcx, [rsp + 0x38]
call fcn.1400053e0
lea rdx, [0x1400d05b8]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
call fcn.140003650
mov rbx, rax
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
lea r9, str.Failed_to_select_socket
mov r8, rbx
mov edx, eax
lea rcx, [rsp + 0x38]
call fcn.1400032d0
lea rdx, [0x1400d0480]
lea rcx, [rsp + 0x38]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140009d30
Capabilities:
Create process on windows
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xa0
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov qword [rbp - 0x19], rcx
mov qword [rbp - 1], 0
mov qword [rbp + 7], select
mov byte [rbp - 0x11], 0
mov r8d, 5
lea rdx, str.error
lea rcx, [rbp - 0x11]
call fcn.140002960
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.1400040d0
movzx ebx, al
mov rdx, qword [rbp + 7]
cmp rdx, 0x10
jb 0x140009dd3
inc rdx
mov rcx, qword [rbp - 0x11]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009dce
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009dce
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400553bc
test bl, bl
je 0x140009f42
lea rdx, str.error
lea rcx, [rbp - 0x11]
call fcn.140002920
nop
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140003ec0
lea rdx, [rbp + 0xf]
mov rcx, rax
call fcn.1400041f0
nop
mov r8, rax
lea rdx, str.Failed_to_start_n
lea rcx, [rbp + 0x2f]
call fcn.14000c1b0
mov rcx, rax
call fcn.14000b5b0
mov rdx, rax
xor r9d, r9d
lea r8, [0x1400afa6f]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
lea rcx, [rbp + 0x2f]
call fcn.1400028c0
nop
lea rcx, [rbp + 0xf]
call fcn.1400028c0
nop
lea rcx, [rbp - 0x11]
call fcn.1400028c0
lea rdx, str.action
lea rcx, [rbp - 0x11]
call fcn.140002920
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.1400040d0
movzx ebx, al
lea rcx, [rbp - 0x11]
call fcn.1400028c0
test bl, bl
je 0x140009f39
lea rdx, str.action
lea rcx, [rbp - 0x11]
call fcn.140002920
nop
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140003ec0
lea rdx, [rbp + 0xf]
mov rcx, rax
call fcn.1400041f0
lea rdx, str.open_website
mov rcx, rax
call fcn.14000c830
movzx ebx, al
lea rcx, [rbp + 0xf]
call fcn.1400028c0
nop
lea rcx, [rbp - 0x11]
call fcn.1400028c0
test bl, bl
je 0x140009f39
lea rdx, str.value
lea rcx, [rbp - 0x11]
call fcn.140002920
nop
lea rdx, [rbp - 0x11]
mov rcx, rdi
call fcn.140003ec0
lea rdx, [rbp + 0xf]
mov rcx, rax
call fcn.1400041f0
mov rcx, rax
call fcn.14000b5b0
mov r8, rax
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
lea rcx, [rbp + 0xf]
call fcn.1400028c0
nop
lea rcx, [rbp - 0x11]
call fcn.1400028c0
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rcx, rdi
call fcn.140003da0
xor al, al
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140054e70
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140035700
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov edx, 0xa4
lea ecx, [rdx + 0x1f]
call fcn.140032030
mov rcx, qword [0x1400d9670]
lea rdx, [rbp - 0x48]
movaps xmm0, xmmword [0x1400caf90]
xor ebx, ebx
movaps xmm1, xmmword [0x1400cb040]
movups xmmword [rbp - 0x48], xmm0
mov rax, qword [rcx + 0x2290]
movaps xmm0, xmmword [0x1400cafe0]
lea r8d, [rbx + 0xd]
mov dword [rcx + 0x7c], ebx
movups xmmword [rbp - 0x28], xmm0
mov dword [rax + 8], ebx
mov rax, qword [rcx + 0x2290]
movss xmm0, dword [0x1400cabb8]
movss dword [rbp - 0x18], xmm0
movups xmmword [rbp - 0x38], xmm1
mov dword [rax + 0x18], ebx
call fcn.14004ffe0
mov rdx, qword [0x1400d9670]
movaps xmm0, xmmword [0x1400cae40]
movsxd rax, dword [rdx + 0x2288]
imul rcx, rax, 0x110
mov qword [rcx + rdx - 0x70], rbx
mov qword [rcx + rdx - 0x60], rbx
mov qword [rcx + rdx - 0x58], rbx
mov qword [rcx + rdx - 0x50], rbx
mov qword [rcx + rdx - 0x40], rbx
mov qword [rcx + rdx - 0x30], rbx
mov qword [rcx + rdx - 0x74], 0x3f800000
mov dword [rcx + rdx - 0x6c], ebx
mov qword [rcx + rdx - 0x68], 0x3f800000
mov dword [rcx + rdx - 0x60], ebx
movups xmmword [rcx + rdx - 0x4c], xmm0
mov dword [rcx + rdx - 0x54], ebx
movups xmmword [rcx + rdx - 0x3c], xmm0
mov dword [rcx + rdx - 0x50], 0x3f800000
call fcn.140051eb0
lea r8d, [rbx + 6]
mov qword [rbp - 0x38], rbx
lea rdx, str.Inject
mov qword [rbp - 0x30], select
lea rcx, [rbp - 0x48]
mov byte [rbp - 0x48], bl
call fcn.140002960
lea rax, [rbp - 0x48]
mov r8d, 0x9b
lea edx, [rbx + 0x14]
mov qword [rsp + 0x20], rax
call fcn.140032720
test al, al
je 0x140035838
call fcn.140034710
mov r8d, 9
mov qword [rbp - 0x38], rbx
lea rdx, str.BAC_Spoof
mov qword [rbp - 0x30], select
lea rcx, [rbp - 0x48]
mov byte [rbp - 0x48], bl
call fcn.140002960
mov edx, WSAStartup
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 0x29]
call fcn.140032720
test al, al
je 0x14003588d
xor r9d, r9d
lea rdx, str.You_are_not_allowed_use_this_feature
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
mov r8d, 4
mov qword [rbp - 0x38], rbx
lea rdx, str.Exit
mov qword [rbp - 0x30], select
lea rcx, [rbp - 0x48]
mov byte [rbp - 0x48], bl
call fcn.140002960
mov edx, 0x43
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 0x58]
call fcn.140032720
test al, al
je 0x1400358d6
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
mov r8d, 7
mov qword [rbp - 0x38], rbx
lea rdx, str.Options
mov qword [rbp - 0x30], select
lea rcx, [rbp - 0x48]
mov byte [rbp - 0x48], bl
call fcn.140002960
lea r8, [rbp - 0x48]
mov ecx, 0xc3
call fcn.140031df0
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.140054e70
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rbp
ret
Function at 0x140036070
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov edx, 0xa4
lea ecx, [rdx + 0x1f]
call fcn.140032030
mov rcx, qword [0x1400d9670]
lea rdx, [rsp + 0x38]
movaps xmm0, xmmword [0x1400caf90]
xor edi, edi
movaps xmm1, xmmword [0x1400cb040]
movups xmmword [rsp + 0x38], xmm0
mov rax, qword [rcx + 0x2290]
movaps xmm0, xmmword [0x1400cafe0]
lea r8d, [rdi + 0xd]
mov dword [rcx + 0x7c], edi
movups xmmword [rsp + 0x58], xmm0
mov dword [rax + 8], edi
mov rax, qword [rcx + 0x2290]
movss xmm0, dword [0x1400cabb8]
movss dword [rsp + 0x68], xmm0
movups xmmword [rsp + 0x48], xmm1
mov dword [rax + 0x18], edi
call fcn.14004ffe0
mov rdx, qword [0x1400d9670]
movaps xmm0, xmmword [0x1400cae40]
movsxd rax, dword [rdx + 0x2288]
imul rcx, rax, 0x110
mov qword [rcx + rdx - 0x70], rdi
mov qword [rcx + rdx - 0x60], rdi
mov qword [rcx + rdx - 0x58], rdi
mov qword [rcx + rdx - 0x50], rdi
mov qword [rcx + rdx - 0x40], rdi
mov qword [rcx + rdx - 0x30], rdi
mov qword [rcx + rdx - 0x74], 0x3f800000
mov dword [rcx + rdx - 0x6c], edi
mov qword [rcx + rdx - 0x68], 0x3f800000
mov dword [rcx + rdx - 0x60], edi
movups xmmword [rcx + rdx - 0x4c], xmm0
mov dword [rcx + rdx - 0x54], edi
movups xmmword [rcx + rdx - 0x3c], xmm0
mov dword [rcx + rdx - 0x50], 0x3f800000
call fcn.140051eb0
movss xmm1, dword [0x1400cac48]
xorps xmm2, xmm2
call fcn.14004fd30
add dword [0x1400d9638], 0x3e8
xor ecx, ecx
call fcn.140035e10
movss xmm1, dword [0x1400cac8c]
xorps xmm2, xmm2
call fcn.14004fd30
mov ebx, dword [0x1400d9638]
mov rcx, qword [0x1400d9670]
add ebx, 0xfffffc18
call fcn.14004faf0
mov r9d, dword [0x1400d9660]
xorps xmm2, xmm2
sub r9d, dword [0x1400d9650]
add r9d, 0xa
movd xmm1, r9d
cvtdq2ps xmm1, xmm1
call fcn.14004fd30
lea r8d, [rbx + r9]
lea ecx, [rdi + 0x4d]
mov dword [0x1400d9638], r8d
call fcn.140035e10
mov rcx, qword [0x1400d9670]
mov dword [0x1400d9638], ebx
mov eax, dword [rcx + 0x2288]
cmp eax, 1
jle 0x140036206
dec eax
mov dword [rcx + 0x2288], eax
mov r8d, recv
mov qword [rsp + 0x48], rdi
lea rdx, str.Open_website
mov qword [rsp + 0x50], select
lea rcx, [rsp + 0x38]
mov byte [rsp + 0x38], dil
call fcn.140002960
mov edx, reloc.WS2_32.dll_WSAStartup
lea rax, [rsp + 0x38]
mov qword [rsp + 0x20], rax
lea r8d, [rdx + 0x28]
call fcn.140032720
test al, al
je 0x14003626d
mov dword [rsp + 0x28], 5
lea r8, str.https:__phantom.pub
xor r9d, r9d
mov qword [rsp + 0x20], rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov r8d, 9
mov qword [rsp + 0x48], rdi
lea rdx, str.User_Info
mov qword [rsp + 0x50], select
lea rcx, [rsp + 0x38]
mov byte [rsp + 0x38], dil
call fcn.140002960
lea r8, [rsp + 0x38]
mov ecx, 0xc3
call fcn.140031df0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140054e70
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret
Function at 0x1400472a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x10]
mov rbx, rcx
mov r10d, edx
mov ecx, edx
and r10d, 7
je 0x140047306
mov r8d, dword [rbx + 0x14]
cmp edx, r10d
jge 0x1400472f4
mov r9, qword [rbx + 8]
mov rax, qword [rbx]
cmp rax, r9
jb 0x1400472d0
xor cl, cl
jmp 0x1400472d9
movzx ecx, byte [rax]
inc rax
mov qword [rbx], rax
movzx eax, cl
mov ecx, edx
shl eax, cl
add edx, 8
or eax, r8d
mov dword [rbx + 0x10], edx
mov dword [rbx + 0x14], eax
mov r8d, eax
cmp edx, 0x18
jle 0x1400472c4
mov ecx, r10d
shr r8d, cl
sub edx, r10d
mov dword [rbx + 0x14], r8d
mov dword [rbx + 0x10], edx
mov ecx, edx
xor r9d, r9d
test edx, edx
jle 0x14004733e
mov edx, dword [rbx + 0x14]
lea r8, [rsp + 0x30]
nop word [rax + rax]
movzx eax, byte [rbx + 0x14]
inc r9d
shr edx, 8
sub ecx, 8
mov byte [r8], al
lea r8, [r8 + 1]
mov dword [rbx + 0x14], edx
test ecx, ecx
jg 0x140047320
mov dword [rbx + 0x10], ecx
movsxd rcx, r9d
cmp rcx, 4
jge 0x140047372
mov r8, qword [rbx + 8]
nop dword [rax + rax]
mov rax, qword [rbx]
cmp rax, r8
jb 0x14004735c
xor dl, dl
jmp 0x140047365
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140047350
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov qword [rsp + 0x38], rsi
mov eax, r8d
mov qword [rsp + 0x40], rdi
xor eax, 0xffff
mov qword [rsp + 0x48], r14
cmp ecx, eax
jne 0x140047436
mov rdx, qword [rbx]
mov edi, r8d
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 8]
ja 0x140047436
mov rsi, qword [rbx + 0x18]
mov rcx, qword [rbx + 0x28]
lea rax, [r8 + rsi]
cmp rax, rcx
jbe 0x14004741d
cmp dword [rbx + 0x30], 0
je 0x140047436
sub esi, dword [rbx + 0x20]
sub ecx, dword [rbx + 0x20]
lea edx, [rsi + r8]
cmp edx, ecx
jle 0x1400473f0
lea eax, [rcx + rcx]
mov ecx, eax
cmp edx, eax
jg 0x1400473e7
movsxd r14, ecx
mov rcx, qword [rbx + 0x20]
mov rdx, r14
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_realloc]
test rax, rax
je 0x140047436
mov rdx, qword [rbx]
movsxd rsi, esi
add rsi, rax
mov qword [rbx + 0x20], rax
add rax, r14
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x28], rax
mov r8, rdi
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
jmp 0x140047438
xor eax, eax
mov r14, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x140053a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r14, rdx
mov rdi, rcx
je 0x140053a67
mov rbx, qword [rsp + 0x40]
mov rdi, 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__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], rsi
mov rsi, rbx
mov r9, qword [rax]
test r9, r9
je 0x140053a88
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140053a8a
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140053ae3
test ecx, ecx
jle 0x140053ac3
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
sub rbx, rbp
add r14, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140053ae3
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140053ae3
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov rbp, qword [rsp + 0x30]
sub rsi, rbx
mov rbx, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x140053b10
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 0x140053b41
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 0x140053b5f
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 + 0x38], rdi
mov rdi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140053b7b
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140053b7d
xor ecx, ecx
mov qword [rsp + 0x30], rbx
movsxd rax, ecx
test ecx, ecx
je 0x140053bb7
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
sub rdi, rbx
add r14, rbx
mov r8, rdi
sub dword [rax], ebx
mov rcx, qword [rsi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140053c57
mov r9, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r9], rax
jne 0x140053bf2
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r9], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
mov rbx, r8
cmp r8, 0xfff
jbe 0x140053c31
nop
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]
sub rdi, rax
add r14, rax
mov rbx, rdi
cmp rax, 0xfff
jne 0x140053c78
cmp rdi, rax
ja 0x140053c00
mov r8, rbx
test rbx, rbx
je 0x140053c57
mov r9, qword [rsi + 0x80]
mov r8, rdi
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov r8, rbx
sub r8, rax
sub rbp, r8
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
sub rbp, rdi
jmp 0x140053c5a
Function at 0x1400540b0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400540dd
xor eax, eax
jmp 0x140054232
mov rdx, qword [rcx + 0x40]
mov rax, qword [rdx]
test rax, rax
je 0x140054108
mov rdx, qword [rcx + 0x58]
movsxd r8, dword [rdx]
add r8, rax
cmp rax, r8
jae 0x140054108
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void____ptr64]
mov byte [rax], dil
mov eax, edi
jmp 0x140054232
cmp qword [rcx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140054225
mov r8, qword [rcx + 0x18]
lea rax, [rcx + 0x70]
cmp qword [r8], rax
jne 0x14005414b
mov rdx, qword [rcx + 0x90]
mov rcx, qword [rcx + 0x88]
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 0x140054176
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 0x14005422a
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
js 0x140054225
cmp eax, 1
jle 0x1400541e5
cmp eax, 3
jne 0x140054225
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 0x14005422a
mov rsi, qword [rsp + 0x48]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140054213
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 0x140054225
lea rax, [rsp + 0x40]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x50], rax
mov eax, edi
jne 0x14005422a
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140054e70
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140054380
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x1400d3010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140054453
cmp byte [rcx + 0x71], 0
je 0x140054453
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14005444f
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 0x140054414
sub eax, 1
je 0x140054418
cmp eax, 2
jne 0x14005444f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140054e70
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140054446
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 0x14005444f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400543fc
xor al, al
jmp 0x1400543fc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140054e70
add rsp, 0x60
pop rbx
ret