joyce8/EMBER2024-capa huggingface dataset:
Function at 0x463f80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x403b23
push rbp
mov rbp, rsp
sub rsp, 0x18
mov rdx, qword [rax]
mov rcx, qword [rax + 8]
mov rax, rdx
call fcn.004097c0
add rsp, 0x18
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004621a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp 0x403b00
cmp byte [0x00658370], 0
je 0x463f95
mov rcx, qword [rax + 8]
mov rax, qword [rax]
jmp 0x4611e0
jmp 0x403b00

Function at 0x463fa0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov eax, dword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00658680]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d124b
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00658370], 0
je 0x463fd5
movq xmm0, rbx
pinsrd xmm0, dword [rax], 2
aesenc xmm0, xmmword [0x006589a0]
aesenc xmm0, xmmword [0x006589b0]
aesenc xmm0, xmmword [0x006589c0]
movq rax, xmm0
ret
jmp 0x4099e0

Function at 0x463fe0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
nop
mov rax, qword [rax]
movabs rcx, 0xe7037ed1a0b428db
xor rcx, rax
xor rax, rbx
xor rax, qword [0x00658680]
movabs rdx, 0xa0761d6478bd642f
xor rdx, rax
mov rax, rcx
mul rdx
xor rax, rdx
mov rcx, rax
movabs rax, 0x1d8e4e27c47d1247
mul rcx
xor rax, rdx
nop
nop
ret
cmp byte [0x00658370], 0
je 0x464016
movq xmm0, rbx
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x006589a0]
aesenc xmm0, xmmword [0x006589b0]
aesenc xmm0, xmmword [0x006589c0]
movq rax, xmm0
ret
jmp 0x409a40

Function at 0x465d00
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x465d34
mov rcx, 0x28
jmp 0x465d3f
shl rcx, 3
add rcx, 0x1480
mov qword [0x006585b8], rcx
pop rbp
ret
Function at 0x47c3a0
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47c5db
push rbp
mov rbp, rsp
sub rsp, 0x78
mov ebx, dword [rax + 0x2c]
test ebx, ebx
jne 0x47c43a
mov qword [rsp + 0x88], rax
lea rbx, [0x0050be60]
mov rcx, rax
lea rax, [0x00605520]
call fcn.00476aa0
test cl, cl
jne 0x47c423
mov rax, qword [rsp + 0x88]
call fcn.0047b660
mov ecx, 1
mov rdi, rax
mov rsi, rbx
lea rax, [rsp + 0x30]
lea rbx, [0x00540448]
call fcn.0044e0c0
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x28], rbx
call fcn.0047d880
mov rcx, qword [rsp + 0x88]
xor edx, edx
jmp 0x47c457
lea rdx, [0x00508ec0]
cmp rax, rdx
jne 0x47c445
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
call fcn.0045fd20
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004f27a0]
call fcn.0040a680
inc rdx
cmp rbx, rdx
jle 0x47c4a1
mov rsi, qword [rax + rdx*8]
cmp qword [rsi + 0x30], rcx
jne 0x47c454
lea rax, [0x00605520]
lea rbx, [0x0050be60]
lea rdi, [0x00508ec0]
nop dword [rax + rax]
call fcn.00476c60
lea rdx, [0x00508ec0]
cmp rax, rdx
jne 0x47c5cb
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
nop
ret
lea rcx, [0x004eafa0]
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x70], 0
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x58], rcx
lea rax, [0x004f7900]
call fcn.0040d1c0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x58]
test byte [rcx], al
cmp dword [0x00658600], 0
nop
je 0x47c4fb
mov rbx, rax
lea rax, [0x004f7900]
call fcn.00412780
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
mov rdx, qword [rcx]
mov qword [rax], rdx
movups xmm0, xmmword [rcx + 8]
movups xmmword [rax + 8], xmm0
movups xmm0, xmmword [rcx + 0x18]
movups xmmword [rax + 0x18], xmm0
movups xmm0, xmmword [rcx + 0x28]
movups xmmword [rax + 0x28], xmm0
mov rbx, qword [rsp + 0x28]
xor ecx, ecx
xor edi, edi
xor esi, esi
mov r8d, esi
mov rax, qword [rsp + 0x50]
call fcn.004014e0
call fcn.0045fde0
mov rsi, qword [rsp + 0x60]
mov dword [rsi + 0x28], eax
mov dword [rsi + 0x2c], 0
mov rcx, qword [rsp + 0x88]
mov edx, dword [rcx + 0x10]
xor eax, eax
jmp 0x47c562
imul edx, edx, 0x1000193
xor edx, 0x2a
mov eax, 1
test rax, rax
jle 0x47c554
mov dword [rsi + 0x10], edx
cmp dword [0x00658600], 0
je 0x47c583
call fcn.004640c0
mov qword [r11], rcx
mov rdx, qword [rsi + 0x30]
mov qword [r11 + 8], rdx
mov qword [rsi + 0x30], rcx
lea rax, [0x00605520]
lea rbx, [0x0050be60]
lea rdi, [0x00508ec0]
nop dword [rax]
call fcn.00476c60
lea rdx, [0x00508ec0]
cmp rax, rdx
jne 0x47c5bc
test byte [rbx], al
mov rax, rbx
add rsp, 0x78
pop rbp
ret
mov rbx, rdx
lea rcx, [0x004f27a0]
call fcn.0040a680
mov rbx, rdx
lea rcx, [0x004f27a0]
call fcn.0040a680
nop
mov qword [rsp + 8], rax
call fcn.004621a0
mov rax, qword [rsp + 8]
jmp fcn.0047c3a0
Function at 0x48ab40
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x48ac0a
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rax
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call fcn.004039e0
xorps xmm15, xmm15
mov r14, qword [0x006585b8]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x48abef
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004ee6e0]
xor ebx, ebx
mov rcx, rdx
call fcn.0044a2e0
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call fcn.0048bb20
inc rbx
cmp rcx, rbx
jae 0x48abde
mov edi, 1
lea rsi, [0x004ee6e0]
call fcn.0044a3c0
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00542098]
lea rsi, [0x00541530]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.004621a0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.0048ab40
Function at 0x4ba680
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4ba697
inc rax
cmp rax, 4
jge 0x4ba6af
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4ba694
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4ba6c0
inc rax
cmp rax, 4
jge 0x4ba6ce
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4ba6f7
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4ba6db
jmp 0x4ba6bd

Function at 0x4d6ba0
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x4d6bb8
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x4d6bb8
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x4d6bc0
xor eax, eax
ret
cmp rbx, 3
je 0x4d6bcc
cmp rbx, 4
jne 0x4d6bf9
cmp al, 0x2c
ja 0x4d6be6
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x4d6bf6
cmp al, 0x24
je 0x4d6bf6
nop dword [rax]
cmp al, 0x26
jae 0x4d6bf6
jmp 0x4d6bf9
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x4d6bf6
cmp al, 0x5b
je 0x4d6bf6
cmp al, 0x5d
jne 0x4d6bf9
xor eax, eax
ret
cmp al, 0x2f
ja 0x4d6c32
nop dword [rax]
cmp al, 0x26
ja 0x4d6c11
cmp al, 0x24
je 0x4d6c51
cmp al, 0x26
je 0x4d6c51
jmp 0x4d6ccb
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x4d6c51
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x4d6cc8
cmp al, 0x2f
je 0x4d6c51
jmp 0x4d6ccb
cmp al, 0x3d
ja 0x4d6c49
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x4d6c51
nop
cmp al, 0x3d
je 0x4d6c51
jmp 0x4d6ccb
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x4d6cc0
cmp rbx, 2
jg 0x4d6c87
cmp rbx, 1
je 0x4d6c81
nop dword [rax]
cmp rbx, 2
jne 0x4d6ccb
cmp al, 0x2f
je 0x4d6c72
cmp al, 0x3b
je 0x4d6c72
cmp al, 0x2c
jne 0x4d6c79
mov ecx, 1
jmp 0x4d6c7e
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x4d6caa
cmp al, 0x40
je 0x4d6c99
cmp al, 0x2f
je 0x4d6c99
cmp al, 0x3f
jne 0x4d6ca2
mov ecx, 1
nop
jmp 0x4d6ca7
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x4d6cb9
cmp rbx, 7
jne 0x4d6ccb
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x4d6cc8
cmp al, 0x7e
jne 0x4d6ccb
xor eax, eax
ret
cmp rbx, 7
jne 0x4d6ce1
cmp al, 0x21
je 0x4d6cdd
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x4d6ce1
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x140037a70
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov ecx, 1
call fcn.14003751c
test al, al
je 0x1400379d7
xor sil, sil
mov byte [rsp + 0x20], sil
call fcn.1400373b0
mov bl, al
mov ecx, dword [0x1400a9e90]
cmp ecx, 1
je 0x1400379e2
test ecx, ecx
jne 0x14003790d
mov dword [0x1400a9e90], 1
lea rdx, [0x1400943e0]
lea rcx, [0x1400943a8]
call fcn.14004be2c
test eax, eax
je 0x1400378ee
mov eax, 0xff
jmp 0x1400379c7
lea rdx, [0x1400943a0]
lea rcx, [0x140094378]
call fcn.14004bde8
mov dword [0x1400a9e90], 2
jmp 0x140037915
mov sil, 1
mov byte [rsp + 0x20], sil
mov cl, bl
call fcn.14003767c
call fcn.140038768
mov rbx, rax
cmp qword [rax], 0
je 0x140037948
mov rcx, rax
call fcn.1400375e4
test al, al
je 0x140037948
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [rbx]
call qword [0x140094350]
call fcn.140038770
mov rbx, rax
cmp qword [rax], 0
je 0x14003796a
mov rcx, rax
call fcn.1400375e4
test al, al
je 0x14003796a
mov rcx, qword [rbx]
call fcn.140049adc
call fcn.14004b170
mov rdi, rax
call fcn.14004c120
mov rbx, qword [rax]
call fcn.14004c118
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
call main
mov ebx, eax
call fcn.140038514
test al, al
je 0x1400379ec
test sil, sil
jne 0x1400379a1
call fcn.140049ab8
xor edx, edx
mov cl, 1
call fcn.1400376a0
mov eax, ebx
jmp 0x1400379c7
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov ecx, 7
call fcn.140038384
nop
mov ecx, 7
call fcn.140038384
mov ecx, ebx
call fcn.140049b1c
nop
mov ecx, ebx
call fcn.140049ac8
nop
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
call fcn.14004b170
mov rdi, rax
call fcn.14004c120
mov rbx, qword [rax]
call fcn.14004c118
mov r8, rdi
mov rdx, rbx
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp main
sub rsp, 0x28
call fcn.140038644
add rsp, 0x28
jmp 0x140037880

Function at 0x140038514
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003855e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003855e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003855e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003855e
cmp dword [rcx + 0x84], 0xe
jbe 0x14003855e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140038560
xor al, al
add rsp, 0x28
ret

Function at 0x140049b1c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x1400498a4
Function at 0x140078750
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 0x140078780
xor eax, eax
jmp 0x140078843
mov rbp, rbx
cmp word [rax], si
je 0x1400787a5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14007878c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140078788
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.1400785d0
movsxd r14, eax
test eax, eax
jne 0x1400787e3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140078779
mov rcx, r14
call fcn.140074c2c
mov rdi, rax
test rax, rax
jne 0x1400787fc
xor ecx, ecx
call fcn.1400751e0
jmp 0x1400787d8
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.1400785d0
test eax, eax
jne 0x14007882d
mov rcx, rdi
call fcn.1400751e0
jmp 0x140078837
xor ecx, ecx
call fcn.1400751e0
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 0x140084ae8
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1400764a4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140084b72
cmp byte [rbp - 0x21], r15b
je 0x140084b6d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140084ba8
call fcn.14007a1ac
test eax, eax
jne 0x140084b94
cmp byte [rbp - 0x21], r15b
je 0x140084b8c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140084ba8
cmp byte [rbp - 0x21], r15b
je 0x140084ba5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.140075244
test eax, eax
jne 0x140084c48
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1400764a4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140084be7
cmp byte [rbp - 0x21], r15b
je 0x140084c1c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140084c1c
call fcn.14007a1ac
test eax, eax
jne 0x140084c08
cmp byte [rbp - 0x21], r15b
je 0x140084c01
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140084c1c
cmp byte [rbp - 0x21], r15b
je 0x140084c19
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.140075244
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140084c48
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140084c4b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140084c59
mov rcx, rdi
call fcn.1400751e0
cmp byte [rbp + 0x3f], r15b
je 0x140084c68
mov rcx, qword [rbp + 0x27]
call fcn.1400751e0
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140091830
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140091858
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140091858
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140002540
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.0x140002561
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 0x14000258e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002590
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x1400025e9
test ecx, ecx
jle 0x1400025c9
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 0x1400025e9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x1400025e9
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
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002610
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 0x140002632
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002641
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 0x140002664
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002666
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400026a2
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 0x14000273e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x1400026dd
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 0x14000271e
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 0x14000273e
cmp rbx, rax
ja 0x1400026f0
test rbx, rbx
je 0x14000273e
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 byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
add byte [rax], al
Function at 0x140002ba0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140002bcd
xor eax, eax
jmp 0x140002d39
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002c07
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002c07
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 0x140002d39
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140002d2c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140002c4a
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 0x140002c75
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 0x140002d31
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 0x140002ce4
sub eax, 1
je 0x140002ce4
cmp eax, 2
jne 0x140002d2c
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 0x140002d31
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002d12
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 0x140002d2c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002d31
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003e30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002fc0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140003093
cmp byte [rcx + 0x71], 0
je 0x140003093
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000308f
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 0x140003054
sub eax, 1
je 0x140003058
cmp eax, 2
jne 0x14000308f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003e30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140003086
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 0x14000308f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14000303c
xor al, al
jmp 0x14000303c
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003e30
add rsp, 0x60
pop rbx
ret

Function at 0x1400047b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400047fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400047fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400047fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400047fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400047fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400047fc
xor al, al
add rsp, 0x28
ret