joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10002e950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x870
mov rax, qword [0x10005c100]
xor rax, rsp
mov qword [rsp + 0x860], rax
mov rax, qword [rsp + 0x8c0]
mov r13, qword [rsp + 0x8c8]
mov rsi, rcx
mov dword [rax], r8d
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
test r13, r13
je 0x10002e9aa
mov dword [r13], r9d
cmp r8d, 0x1800
jb 0x10002eb92
mov bpl, byte [rcx + 0x8ac]
cmp bpl, 4
jae 0x10002eb92
mov edx, r8d
xor r10d, r10d
xor ebx, ebx
shr edx, 3
xor r9d, r9d
test edx, edx
je 0x10002ea15
mov rdi, qword [rcx + 0x50]
lea r11, [rsp + 0x50]
test r9b, 7
jne 0x10002e9fd
cmp r10d, 0x408
jae 0x10002e9fd
mov word [r11], bx
inc r10d
add r11, 2
movzx eax, byte [rdi]
inc r9d
inc rdi
movzx ecx, byte [rax + rsi + 0x8ad]
add ebx, ecx
cmp r9d, edx
jb 0x10002e9e3
lea eax, [r8 - 0x1000]
mov dword [rsp + 0x30], eax
cmp eax, 0x800
jbe 0x10002eb92
mov r12d, dword [rsp + 0x30]
mov ebx, 0x1000
lea r8d, [rbx - 0x400]
lea edx, [rbx - 0x800]
mov dword [rsp + 0x28], 0x400
mov eax, r8d
shr rax, 6
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.10002e660
cmp eax, 0x578
jbe 0x10002eb7c
lea edx, [rbx - 0xc00]
mov eax, ebx
mov dword [rsp + 0x28], 0x400
shr rax, 6
mov r8d, ebx
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.10002e660
cmp eax, 0x578
jbe 0x10002eb7c
lea r8d, [rbx + 0x400]
lea edx, [rbx - 0x1000]
mov dword [rsp + 0x28], 0x400
mov eax, r8d
shr rax, 6
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.10002e660
cmp eax, 0x578
jbe 0x10002eb7c
lea edi, [rbx - 0x600]
lea eax, [rbx + 0x200]
xor r15d, r15d
cmp edi, eax
jae 0x10002eb7c
mov r14d, edi
lea r13d, [rbx + 0x200]
lea edx, [rdi - 0x400]
mov rax, r14
mov dword [rsp + 0x28], 0x400
shr rax, 6
mov r8d, edi
movzx ecx, word [rsp + rax*2 + 0x50]
mov eax, edx
shr rax, 6
mov dword [rsp + 0x20], ecx
mov rcx, rsi
movzx r9d, word [rsp + rax*2 + 0x50]
call fcn.10002e660
cmp eax, r15d
jbe 0x10002eb59
mov r15d, eax
mov r12d, edi
add edi, 0x40
add r14, 0x40
cmp edi, r13d
jb 0x10002eb19
mov r13, qword [rsp + 0x38]
cmp r15d, 0x6a4
jb 0x10002eb7c
cmp r12d, 0x1000
jae 0x10002ebc5
add ebx, 0x400
lea eax, [rbx - 0x800]
cmp eax, dword [rsp + 0x30]
jb 0x10002ea35
xor eax, eax
mov rcx, qword [rsp + 0x860]
xor rcx, rsp
call fcn.1000391d0
lea r11, [rsp + 0x870]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rcx, qword [rsp + 0x40]
inc bpl
mov byte [rsi + 0x8ac], bpl
mov dword [rcx], r12d
test r13, r13
je 0x10002ebec
mov ecx, r12d
shr rcx, 6
movzx ecx, word [rsp + rcx*2 + 0x50]
mov dword [r13], ecx
mov eax, 1
jmp 0x10002eb94
Function at 0x10002f088
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x10005c100]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rbp, qword [rsp + 0xb0]
xor ebx, ebx
mov rsi, r9
movsxd r12, edx
mov rdi, rcx
lea r13d, [rbx + 1]
lea r14d, [rbx + 2]
cmp r12d, ebx
mov dword [rdi + 0x256c], r12d
mov qword [rdi + 0x9d8], r8
mov qword [rdi + 0x9e8], r9
movzx r10d, r12w
mov byte [rdi + 0x2572], bl
mov word [rdi + 0x2570], bx
mov word [rdi + 0x9f2], bx
movzx edx, bx
jle 0x10002f1ef
mov rax, qword [rdi + 0x9e8]
movsx rcx, dx
mov byte [rcx + rax], bl
cmp word [r8 + rcx*2], bx
je 0x10002f127
add word [rdi + 0x2570], r13w
movsx rax, word [rdi + 0x2570]
mov word [rdi + rax*2 + 0x9f0], dx
add dx, r13w
movsx eax, dx
cmp eax, r12d
jl 0x10002f0fa
movzx eax, word [rdi + 0x2570]
cmp ax, r14w
jge 0x10002f165
cmp ax, bx
je 0x10002f1ef
cmp word [rdi + 0x9f2], bx
jne 0x10002f15c
mov word [r8 + 2], r13w
jmp 0x10002f0c1
mov word [r8], r13w
jmp 0x10002f0c1
mov r9, rbp
movzx edx, r10w
mov rcx, rdi
call fcn.10002f220
cmp dword [rsp + 0xb8], ebx
je 0x10002f1fc
cmp r12, rbx
mov rax, rbx
mov rdx, r12
jle 0x10002f196
cmp byte [rax + rsi], 0x12
jae 0x10002f1fc
add rax, r13
cmp rax, rdx
jl 0x10002f188
mov word [rsp + 0x20], bx
mov word [rsp + 0x22], bx
mov rcx, r13
add rdi, 0x254a
movzx eax, word [rsp + rcx*2 + 0x20]
add ax, word [rdi]
add rdi, r14
add ax, ax
mov word [rsp + rcx*2 + 0x22], ax
add rcx, r13
cmp rcx, 0x10
jle 0x10002f1aa
cmp rdx, rbx
jle 0x10002f1fc
movsx rax, byte [rbx + rsi]
movzx ecx, word [rsp + rax*2 + 0x20]
mov word [rbp + rbx*2], cx
movsx rax, byte [rbx + rsi]
add rbx, r13
add word [rsp + rax*2 + 0x20], r13w
cmp rbx, rdx
jl 0x10002f1cb
jmp 0x10002f1fc
movsx rax, word [rdi + 0x9f2]
mov word [rbp + rax*2], bx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1000391d0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x10002f440
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rbp, r8
mov qword [rax - 0x28], rdi
mov rsi, rdi
mov dword [rax + 0x20], edi
mov dword [rax + 8], edi
cmp rcx, rdi
jne 0x10002f473
lea ecx, [rdi + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x10002f545
lea rax, [rsp + 0x78]
lea r9, [rsp + 0x60]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, rbp
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, edi
jne 0x10002f53a
cmp dword [rsp + 0x60], 1
je 0x10002f4ba
cmp dword [rsp + 0x60], 2
je 0x10002f4ba
mov ebx, 0xd
jmp 0x10002f53a
mov ebx, dword [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
mov edx, 8
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
cmp rax, rdi
je 0x10002f532
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x78]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
cmp eax, edi
jne 0x10002f519
cmp dword [rsp + 0x60], 1
je 0x10002f53a
cmp dword [rsp + 0x60], 2
je 0x10002f53a
mov ebx, 0xd
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, rdi
jmp 0x10002f53a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdi, rsi
mov rax, rdi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x10002f55c
Capabilities:
Query or enumerate registry value

Disassembly:
sub rsp, 0x48
and qword [rsp + 0x38], 0
and dword [rsp + 0x50], 0
and dword [rsp + 0x30], 0
mov rax, r8
mov dword [rsp + 0x68], 4
test rcx, rcx
jne 0x10002f58f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10002f5da
lea rdx, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rdx
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x20], rdx
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10002f5c9
cmp dword [rsp + 0x68], 4
je 0x10002f5ce
mov eax, 0xd
and dword [rsp + 0x50], 0
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x50]
add rsp, 0x48
ret
Function at 0x1000395ac
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x58
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x88]
jmp 0x100039658
mov rax, qword [rax]
mov rcx, qword [rsp + 0x88]
mov rcx, qword [rcx]
movzx ecx, word [rcx + 0x14]
lea rax, [rax + rcx + 0x18]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x88]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x24], 0
jmp 0x10003c8a5
mov rax, qword [rsp + 0x88]
mov rax, qword [rax]
movzx eax, word [rax + 6]
cmp dword [rsp + 0x24], eax
jl 0x10004002d
jmp 0x10003cf0c
jmp 0x10003b6cf
Function at 0x10003dd67
Capabilities:
Access peb ldr_data
Get process filename

Disassembly:
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x10003f606
jmp 0x10003e571
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x30]
mov qword [rsp + 0x48], rax
jmp 0x10003b349
test eax, eax
je 0x100039913
jmp 0x10003dfb4
mov rax, qword [rsp + 0x48]
add rsp, 0x68
ret
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x38]
call fcn.10003bcc6
jmp 0x10003ace1
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
test eax, eax
jne 0x10003f606
jmp 0x10003e571
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
lea rax, [rcx + rax*2 + 2]
mov qword [rsp + 0x38], rax
jmp 0x1000398c0
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword gs:[0x60]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov rax, qword [rax + 0x20]
sub rax, 0x10
jmp 0x100040010
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x10]
sub rax, 0x10
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x40]
cmp qword [rsp + 0x30], rax
jne 0x10003fe3d
jmp 0x10003b349
mov rcx, qword [rsp + 0x70]
call fcn.10003f91e
jmp 0x10003b588
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x20], 0
jmp 0x10003bb87
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
movzx eax, word [rcx + rax*2]
cmp eax, 0x5c
je 0x10003d104
jmp 0x10003ff1c
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x50]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x10003dfb4
jmp 0x10003f0ab
jmp 0x1000398c0
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
jmp 0x10003fe3d
Function at 0x10005577c
Capabilities:
Parse credit card information

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
sub rsp, 0x40
mov rsi, qword [rcx + 0x20]
mov r12, qword [rcx + 0x18]
xor ebp, ebp
and qword [rdx + 0x10], rbp
mov rax, qword [rcx + 0x20]
mov rbx, rdx
mov qword [rdx + 8], rax
mov eax, dword [rcx + 0x30]
and dword [rdx + 0x1c], ebp
mov dword [rdx + 0x18], eax
mov rax, qword [rcx + 0x18]
mov rdi, rcx
cmp qword [rcx + 0x20], rax
jb 0x10005586a
mov qword [rdx + 8], rax
mov dword [rdx], 3
xor eax, eax
jmp 0x100055893
cmp ecx, 0x61
jb 0x1000557e3
cmp ecx, 0x7a
jbe 0x10005585d
lea eax, [rcx - 0x41]
cmp eax, 0x19
jbe 0x10005585d
lea eax, [rcx - 0x30]
cmp eax, 9
jbe 0x10005585d
cmp ecx, 0x2f
ja 0x100055829
cmp ecx, 0x28
jae 0x100055863
cmp ecx, 0xa
je 0x100055863
cmp ecx, 0xd
je 0x100055863
cmp ecx, 0x1f
jbe 0x100055847
cmp ecx, 0x21
jbe 0x100055863
cmp ecx, 0x22
jbe 0x100055847
cmp ecx, 0x25
jbe 0x100055863
cmp ecx, 0x27
jne 0x100055847
cmp dword [rdi + 0x38], 0xa
sete al
jmp 0x10005585f
cmp ecx, 0x3a
jb 0x100055847
cmp ecx, 0x3b
jbe 0x100055863
cmp ecx, 0x3d
je 0x100055863
cmp ecx, 0x3e
jbe 0x100055847
cmp ecx, 0x40
jbe 0x100055863
cmp ecx, 0x5f
je 0x100055863
mov dword [rbx], 0xc
sub rsi, qword [rdi + 0x20]
mov dword [rbx + 0x1c], ebp
mov qword [rbx + 0x10], rsi
jmp 0x1000557d2
mov al, 1
test al, al
je 0x100055847
mov rsi, qword [rsp + 0x28]
inc ebp
lea rcx, [rsp + 0x30]
mov r8, r12
mov rdx, rsi
call qword [rdi + 0x28]
movdqu xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov ecx, dword [rsp + 0x20]
cmp ecx, 0xffffffff
jne 0x1000557d9
mov eax, dword [rsp + 0x28]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r12
ret
Function at 0x18000ec8c
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x18000ecbc
xor eax, eax
jmp 0x18000ed7f
mov rbp, rbx
cmp word [rax], si
je 0x18000ece1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000ecc8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000ecc4
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.18000ebdc
movsxd r14, eax
test eax, eax
jne 0x18000ed1f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000ecb5
mov rcx, r14
call fcn.18000b280
mov rdi, rax
test rax, rax
jne 0x18000ed38
xor ecx, ecx
call fcn.18000a6f8
jmp 0x18000ed14
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.18000ebdc
test eax, eax
jne 0x18000ed69
mov rcx, rdi
call fcn.18000a6f8
jmp 0x18000ed73
xor ecx, ecx
call fcn.18000a6f8
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1800542a8
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r11d, dword [rcx]
mov rsi, r8
mov ebx, dword [rcx + 4]
mov rdi, rdx
movsxd rbp, r9d
mov r10, rcx
test r9d, r9d
jle 0x18005430f
sub rdi, r8
inc r11b
movzx r11d, r11b
mov r8b, byte [r11 + r10 + 8]
add bl, r8b
movzx ebx, bl
mov cl, byte [rbx + r10 + 8]
mov byte [r11 + r10 + 8], cl
add cl, r8b
mov byte [rbx + r10 + 8], r8b
movzx eax, cl
mov cl, byte [rax + r10 + 8]
xor cl, byte [rdi + rsi]
mov byte [rsi], cl
inc rsi
sub rbp, 1
jne 0x1800542d5
mov rbp, qword [rsp + 0x10]
mov eax, r9d
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
mov dword [r10 + 4], ebx
mov rbx, qword [rsp + 8]
mov dword [r10], r11d
ret
Function at 0x140002084
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x68], 0
je 0x1400020bd
mov r8, qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call 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]
jmp 0x1400021ab
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x50], 0
jle 0x140002153
cmp qword [rsp + 0x20], 0
jle 0x140002153
mov rax, qword [rsp + 0x20]
cmp qword [rsp + 0x50], rax
jge 0x1400020fd
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call fcn.140003d10
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x48]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov edx, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rsp + 0x50], 0
jle 0x14000219b
mov rax, qword [rsp + 0x40]
cmp qword [rax + 0x80], 0
je 0x14000219b
mov rax, qword [rsp + 0x40]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x50]
mov edx, 1
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
sub rcx, rax
mov rax, rcx
add rsp, 0x38
ret
Function at 0x1400021b0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
cmp qword [rsp + 0x70], 0
jg 0x1400021d2
xor eax, eax
jmp 0x14000237b
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x68], 0
je 0x1400021f8
mov r8, qword [rsp + 0x70]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
call 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]
jmp 0x14000237b
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Gnavail_void_const___ptr64]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jbe 0x140002291
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140002380
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
mov r8, qword [rsp + 0x28]
mov rdx, rax
mov rcx, qword [rsp + 0x68]
call fcn.140003d10
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov edx, dword [rsp + 0x28]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gbump_int____ptr64]
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x14000236b
mov rcx, qword [rsp + 0x60]
call fcn.140003244
mov qword [rsp + 0x48], 0xfff
cmp qword [rsp + 0x20], 0xfff
jbe 0x140002332
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8d, 0xfff
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x68]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x30], 0xfff
je 0x140002330
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
jmp 0x14000237b
jmp 0x1400022b7
cmp qword [rsp + 0x20], 0
jbe 0x14000236b
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x20]
mov edx, 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, qword [rsp + 0x20]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
sub rcx, rax
mov rax, rcx
add rsp, 0x58
ret
Function at 0x1400032f0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x98
mov rax, qword [rsp + 0xa0]
cmp qword [rax + 0x68], 0
je 0x14000331b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x140003322
mov al, 1
jmp 0x14000346b
call fcn.140003c54
mov rcx, qword [rsp + 0xa0]
mov rcx, qword [rcx]
mov qword [rsp + 0x48], rcx
mov edx, eax
mov rcx, qword [rsp + 0xa0]
mov rax, qword [rsp + 0x48]
call qword [rax + 0x18]
mov dword [rsp + 0x38], eax
call fcn.140003c54
mov dword [rsp + 0x3c], eax
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x3c]
call fcn.140003cac
movzx eax, al
test eax, eax
je 0x140003373
xor al, al
jmp 0x14000346b
mov qword [rsp + 0x58], 0x20
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0xa0]
add rcx, 0x74
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rsp + 0x60]
mov rdx, rcx
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rax + 0x68]
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]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0
je 0x1400033d9
cmp dword [rsp + 0x30], 1
je 0x1400033e5
cmp dword [rsp + 0x30], 3
je 0x140003459
jmp 0x140003469
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
lea rax, [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
sub rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jbe 0x140003431
mov rax, qword [rsp + 0xa0]
mov r9, qword [rax + 0x80]
mov r8, qword [rsp + 0x40]
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp qword [rsp + 0x40], rax
je 0x140003431
xor al, al
jmp 0x14000346b
mov rax, qword [rsp + 0xa0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x14000344b
mov dword [rsp + 0x34], 1
jmp 0x140003453
mov dword [rsp + 0x34], 0
mov al, byte [rsp + 0x34]
jmp 0x14000346b
mov rax, qword [rsp + 0xa0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x14000346b
xor al, al
add rsp, 0x98
ret
Function at 0x404e08
Capabilities:
Get disk information

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x460
mov rdi, rdx
mov edx, 0x104
lea rax, [rsp + 0x250]
mov dword [rsp + 0x38], edx
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x4a0]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, edx
xor esi, esi
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], si
mov word [rsp + 0x250], si
call qword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
lea rdx, [rsp + 0x40]
mov rcx, rdi
mov ebx, eax
call fcn.00402a7c
mov rcx, qword [rsp + 0x4a8]
lea rdx, [rsp + 0x250]
call fcn.00402a7c
cmp ebx, esi
setne al
add rsp, 0x460
pop rdi
pop rsi
pop rbx
ret

Function at 0x404e9c
Capabilities:
Get disk size

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x50
mov rsi, r9
mov rbp, r8
mov rdi, rdx
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov r10, qword [rsp + 0x38]
mov qword [rbp], r10
mov r10, qword [rsp + 0x40]
mov r12d, eax
lea rax, [rsp + 0x30]
lea r9, [rsp + 0x34]
lea r8, [rsp + 0x98]
lea rdx, [rsp + 0x90]
mov rcx, rbx
mov qword [rsi], r10
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
test eax, eax
je 0x404f3b
mov ecx, dword [rsp + 0x90]
mov eax, dword [rsp + 0x98]
imul rcx, rax
test r12d, r12d
mov qword [rdi], rcx
jne 0x404f39
mov eax, dword [rsp + 0x30]
imul rax, rcx
mov qword [rbp], rax
mov eax, dword [rsp + 0x34]
imul rax, qword [rdi]
mov qword [rsi], rax
mov al, 1
add rsp, 0x50
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x4050b8
Capabilities:
Connect network resource

Disassembly:
sub rsp, 0x58
mov r11, rdx
lea rdx, [rsp + 0x20]
mov r10, r8
call fcn.00405020
lea rcx, [rsp + 0x20]
mov r8, r10
mov rdx, r11
call sub.MPR.dll_WNetAddConnection2W
add rsp, 0x58
ret