joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140036c70
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov r10, rcx
lea rax, [rcx + 0x60]
mov r11d, 0x30
nop dword [rax]
mov edx, dword [rax - 0x34]
mov r9d, edx
mov r8d, dword [rax]
lea rax, [rax + 4]
mov ecx, edx
rol r9d, 0xe
shr edx, 3
ror ecx, 7
xor r9d, ecx
mov ecx, r8d
xor r9d, edx
rol ecx, 0xd
mov edx, r8d
shr r8d, 0xa
rol edx, 0xf
xor edx, ecx
xor edx, r8d
add r9d, edx
add r9d, dword [rax - 0x3c]
add r9d, dword [rax - 0x18]
mov dword [rax + 4], r9d
sub r11, 1
jne 0x140036ca0
mov r11d, dword [r10 + 8]
lea rax, [r10 + 0x10]
mov edi, dword [r10 + 0xc]
lea r15, [r10 + 8]
mov qword [rsp + 0x30], rax
lea r13, [r10 + 0xc]
mov eax, dword [rax]
lea r9, [0x1400bf3f0]
mov dword [rsp + 4], eax
mov esi, eax
lea rax, [r10 + 0x14]
mov qword [rsp + 0x20], r15
mov qword [rsp + 0x38], rax
mov eax, dword [rax]
mov dword [rsp], eax
mov dword [rsp + 8], eax
lea rax, [r10 + 0x18]
mov qword [rsp + 0x40], rax
mov eax, dword [rax]
mov ebx, eax
mov dword [rsp + 0xc], eax
lea rax, [r10 + 0x1c]
mov qword [rsp + 0x48], rax
mov eax, dword [rax]
mov ebp, eax
mov dword [rsp + 0x10], eax
lea rax, [r10 + 0x20]
mov qword [rsp + 0x50], rax
mov eax, dword [rax]
mov r14d, eax
mov dword [rsp + 0x14], eax
lea rax, [r10 + 0x24]
sub r10, r9
mov qword [rsp + 0x58], rax
mov eax, dword [rax]
mov r12d, eax
mov qword [rsp + 0x28], r13
lea r13, [0x1400bf4f0]
mov dword [rsp + 0x18], eax
lea r15, [r10 + 0x28]
mov r10d, dword [rsp]
nop word [rax + rax]
mov r8d, ebx
mov eax, ebx
rol eax, 7
mov ecx, ebx
ror r8d, 0xb
not ecx
xor r8d, eax
and ecx, r14d
mov eax, ebx
mov edx, r11d
ror eax, 6
xor r8d, eax
ror edx, 0xd
mov eax, ebp
and eax, ebx
xor ecx, eax
mov eax, r11d
add r8d, ecx
rol eax, 0xa
add r8d, dword [r15 + r9]
xor edx, eax
add r8d, dword [r9]
mov eax, r11d
ror eax, 2
add r8d, r12d
xor edx, eax
mov ecx, edi
xor ecx, r11d
mov eax, edi
and eax, r11d
and ecx, esi
xor ecx, eax
mov r12d, r14d
add edx, ecx
mov r14d, ebp
mov ebp, ebx
add r9, 4
lea ebx, [r8 + r10]
mov r10d, esi
mov esi, edi
mov edi, r11d
lea r11d, [rdx + r8]
cmp r9, r13
jl 0x140036d90
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 4]
mov r15, qword [rsp + 0x20]
add eax, esi
mov r13, qword [rsp + 0x28]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x38]
add dword [r15], r11d
lea r11, [rsp + 0x60]
mov eax, dword [rsp + 8]
add dword [r13], edi
add eax, r10d
mov rsi, qword [r11 + 0x48]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x40]
mov eax, dword [rsp + 0xc]
add eax, ebx
mov rbx, qword [r11 + 0x38]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x48]
mov eax, dword [rsp + 0x10]
add eax, ebp
mov rbp, qword [r11 + 0x40]
mov dword [rcx], eax
mov rcx, qword [rsp + 0x50]
mov eax, dword [rsp + 0x14]
add eax, r14d
mov dword [rcx], eax
mov rcx, qword [rsp + 0x58]
mov eax, dword [rsp + 0x18]
add eax, r12d
mov dword [rcx], eax
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140036e90
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x48]
xor ebp, ebp
mov edi, dword [rbx]
mov ecx, edi
mov esi, dword [rbx + 4]
shr rcx, 5
and ecx, 0xf
shl dword [rbx + rcx*4 + 0x28], 8
or dword [rbx + rcx*4 + 0x28], 0x80
add dword [rbx], 8
jne 0x140036ed2
inc dword [rbx + 4]
mov dword [rbx], ebp
test dword [rbx], 0x1ff
jne 0x140036ee2
mov rcx, rbx
call fcn.140036c70
mov eax, dword [rbx]
and eax, 0x1ff
cmp eax, 0x1c0
je 0x140036f2e
mov ecx, dword [rbx]
shr rcx, 5
and ecx, 0xf
shl dword [rbx + rcx*4 + 0x28], 8
mov eax, dword [rbx + rcx*4 + 0x28]
mov dword [rbx + rcx*4 + 0x28], eax
add dword [rbx], 8
jne 0x140036f10
inc dword [rbx + 4]
mov dword [rbx], ebp
test dword [rbx], 0x1ff
jne 0x140036f20
mov rcx, rbx
call fcn.140036c70
mov eax, dword [rbx]
and eax, 0x1ff
cmp eax, 0x1c0
jne 0x140036ef0
mov rcx, rbx
mov dword [rbx + 0x60], esi
mov dword [rbx + 0x64], edi
call fcn.140036c70
mov r9, qword [rsp + 0x40]
mov r8d, ebp
inc r9
nop word [rax + rax]
mov eax, r8d
lea r9, [r9 + 2]
and eax, 3
mov ecx, 3
sub ecx, eax
mov eax, r8d
shr rax, 2
shl ecx, 3
mov edx, dword [rbx + rax*4 + 8]
shr edx, cl
mov ecx, 3
mov byte [r9 - 3], dl
lea edx, [r8 + 1]
mov eax, edx
add r8d, 2
and eax, 3
sub ecx, eax
mov eax, edx
shr rax, 2
shl ecx, 3
mov edx, dword [rbx + rax*4 + 8]
shr edx, cl
mov byte [r9 - 2], dl
cmp r8d, 0x20
jl 0x140036f50
lea rax, [rbx + 0x28]
mov ecx, 4
nop dword [rax + rax]
mov qword [rax], rbp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rbp
lea rax, [rax + 0x40]
mov qword [rax - 0x28], rbp
mov qword [rax - 0x20], rbp
mov qword [rax - 0x18], rbp
mov qword [rax - 0x10], rbp
mov qword [rax - 8], rbp
sub rcx, 1
jne 0x140036fb0
mov qword [rbx], rbp
mov dword [rbx + 8], 0x6a09e667
mov dword [rbx + 0xc], 0xbb67ae85
mov dword [rbx + 0x10], 0x3c6ef372
mov dword [rbx + 0x14], 0xa54ff53a
mov dword [rbx + 0x18], 0x510e527f
mov dword [rbx + 0x1c], 0x9b05688c
mov dword [rbx + 0x20], 0x1f83d9ab
mov dword [rbx + 0x24], 0x5be0cd19
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x140044fe0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov r11, rsp
mov qword [r11 + 0x20], r9
mov byte [r11 + 0x18], r8b
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [r11 - 0x40], 0xfffffffffffffffe
mov r14, rcx
mov rax, qword [rcx]
mov qword [rsp + 0x30], rax
mov rbx, qword [rax + 8]
mov r12, rax
mov dil, 1
mov rsi, r9
cmp byte [rbx + 0x19], 0
jne 0x14004510f
mov r15, qword [r9 + 0x10]
movzx r13d, r8b
mov r12, rbx
test r13b, r13b
je 0x140045096
lea rcx, [rbx + 0x20]
cmp qword [rsi + 0x18], 0x10
jb 0x14004504c
mov rdx, qword [rsi]
jmp 0x14004504f
mov rdx, rsi
lea r14, [rcx + 0x10]
cmp qword [rcx + 0x18], 0x10
jb 0x14004505d
mov rcx, qword [rcx]
mov r14, qword [r14]
mov r8, r15
cmp r14, r15
cmovb r8, r14
test r8, r8
je 0x14004507a
call fcn.140074840
mov edi, eax
test eax, eax
jne 0x14004508d
cmp r14, r15
jae 0x140045084
or edi, 0xffffffff
jmp 0x14004508d
xor edi, edi
cmp r14, r15
seta dil
shr edi, 0x1f
xor dil, 1
jmp 0x1400450ea
lea rdx, [rbx + 0x20]
lea rdi, [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x1400450a8
mov rdx, qword [rdx]
cmp qword [rsi + 0x18], 0x10
jb 0x1400450b4
mov rcx, qword [rsi]
jmp 0x1400450b7
mov rcx, rsi
mov rdi, qword [rdi]
mov r8, rdi
cmp r15, rdi
cmovb r8, r15
test r8, r8
je 0x1400450d2
call fcn.140074840
test eax, eax
jne 0x1400450e4
cmp r15, rdi
jae 0x1400450dc
or eax, 0xffffffff
jmp 0x1400450e4
xor eax, eax
cmp r15, rdi
seta al
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x1400450f4
mov rbx, qword [rbx]
jmp 0x1400450f8
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140045034
mov rax, qword [rsp + 0x30]
mov r14, qword [rsp + 0x80]
mov rbx, r12
test dil, dil
je 0x1400451ba
cmp r12, qword [rax]
jne 0x14004515b
movzx eax, byte [rsp + 0xa0]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
mov r8b, 1
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140044780
mov rcx, qword [rax]
mov rax, qword [rsp + 0x88]
mov qword [rax], rcx
mov byte [rax + 8], 1
jmp 0x140045215
cmp byte [r12 + 0x19], 0
je 0x14004516a
mov rbx, qword [r12 + 0x10]
jmp 0x1400451ba
mov rax, qword [r12]
cmp byte [rax + 0x19], 0
jne 0x140045190
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400451ba
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x140045181
jmp 0x1400451ba
mov rax, qword [r12 + 8]
cmp byte [rax + 0x19], 0
jne 0x1400451b2
nop dword [rax + rax]
cmp rbx, qword [rax]
jne 0x1400451b2
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400451a0
cmp byte [rbx + 0x19], 0
cmove rbx, rax
lea rcx, [rbx + 0x20]
mov rdx, rsi
call fcn.140017150
shr eax, 0x1f
test al, al
je 0x140045206
movzx eax, byte [rsp + 0xa0]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], rsi
mov r9, r12
movzx r8d, dil
lea rdx, [rsp + 0x30]
mov rcx, r14
call fcn.140044780
mov rcx, qword [rax]
mov rax, qword [rsp + 0x88]
mov qword [rax], rcx
mov byte [rax + 8], 1
jmp 0x140045215
mov rax, qword [rsp + 0x88]
mov qword [rax], rbx
mov byte [rax + 8], 0
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x140085b9c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140085a27
xor ecx, ecx
call qword [0x1400a4210]
test rax, rax
je 0x140085a27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140085a27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140085a27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140085a27
cmp dword [rcx + 0x84], 0xe
jbe 0x140085a27
cmp dword [rcx + 0xf8], 0
je 0x140085a27
mov ecx, ebx
call fcn.140085ac8
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.1400858a4
cmp dword [rbp + 0x20], 0
je 0x140085a74
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140085a7c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400859c0
Function at 0x140027db0
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.14001b754
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001b754
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140027f00
cmp rax, 0xffffffffffffffff
je 0x140027f00
xor edi, edi
test rbp, rbp
jle 0x140027eab
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001dd40
mov rbx, rax
test rax, rax
jne 0x140027e38
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140027ea1
mov edx, 0x8000
mov ecx, r14d
call fcn.1400158f8
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.14001c430
cmp eax, 0xffffffff
je 0x140027e81
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140027e48
mov edx, r15d
mov ecx, r14d
call fcn.1400158f8
jmp 0x140027ea1
cmp byte [rsi + 0x38], dil
je 0x140027e98
cmp dword [rsi + 0x34], 5
jne 0x140027e98
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140027ea1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.140019e18
jmp 0x140027f14
jns 0x140027f14
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001b754
cmp rax, 0xffffffffffffffff
jne 0x140027ecc
cmp byte [rsi + 0x30], dil
je 0x140027f14
mov edi, dword [rsi + 0x2c]
jmp 0x140027f14
mov ecx, r14d
call fcn.140016ef8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140027f14
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 0x140027f14
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140027f0d
mov eax, dword [rsi + 0x2c]
jmp 0x140027f12
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001b754
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 0x140c03a10
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140c03a1a
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140c03a43
pop rbp
sub rbp, 0x33
sub rbp, 0xc03a10
sub rsp, 0x20
jmp 0x140c03a62
mov rax, 0xc03a10
add rax, rbp
add rax, 0x84
mov rcx, 0x647
mov rdx, 0xffffffffebaa2c29
xor byte [rax], dl
inc rax
dec rcx
jne 0x140c03a81
jmp 0x140c03a98
invalid
Function at 0x2fc4d4020
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d5100
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4a22
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f7108]
test eax, eax
je 0x2fc4d4aba
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f7110]
mov qword [rbp - 8], rax
jmp 0x2fc4d4a9e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d4a92
cmp qword [rbp - 0x10], 0
je 0x2fc4d4a92
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4a58
lea rax, [0x2fc4f70e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d4abb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d4bc0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4be8
mov eax, 0
jmp 0x2fc4d4c36
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4c11
mov eax, 0
jmp 0x2fc4d4c36
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4c31
mov eax, 0
jmp 0x2fc4d4c36
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d4c3c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4d4cba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d4cb1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4d4cb1
mov rax, qword [rbp - 8]
jmp 0x2fc4d4ccf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4d4c84
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400017d0
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 0x1400017f8
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 0x14000181e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140001820
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140001879
test ecx, ecx
jle 0x140001859
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 0x140001879
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140001879
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x1400018a0
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 0x1400018c2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x1400018d8
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 0x1400018f4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400018f6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140001932
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 0x1400019ce
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000196d
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 0x1400019ae
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 0x1400019ce
cmp rbx, rax
ja 0x140001980
test rbx, rbx
je 0x1400019ce
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x140001e30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140001e5d
xor eax, eax
jmp 0x140001fc9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140001e97
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140001e97
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 0x140001fc9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140001fbc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140001eda
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 0x140001f05
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 0x140001fc1
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 0x140001f74
sub eax, 1
je 0x140001f74
cmp eax, 2
jne 0x140001fbc
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 0x140001fc1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140001fa2
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 0x140001fbc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140001fc1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140002f30
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002450
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002523
cmp byte [rcx + 0x71], 0
je 0x140002523
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000251f
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 0x1400024e4
sub eax, 1
je 0x1400024e8
cmp eax, 2
jne 0x14000251f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002f30
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002516
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 0x14000251f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400024cc
xor al, al
jmp 0x1400024cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140002f30
add rsp, 0x60
pop rbx
ret

Function at 0x1400038b0
Capabilities:
Parse pe header

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