joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400043e0
Capabilities:
Read file on windows

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rbx, r8
mov rax, rdx
mov rsi, rcx
mov edx, 1
mov rcx, rax
mov r9, rsi
call fcn.140046a20
mov rdi, rax
cmp rax, rbx
je 0x140004410
mov rcx, rsi
call fcn.140004010
mov rax, rdi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
ret

Function at 0x140004450
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
movaps xmmword [rbp - 0x30], xmm0
lea rcx, [rbp - 0x30]
call fcn.14003fc5c
movups xmm0, xmmword [0x1400604a8]
mov qword [rbp - 0x10], rdi
movups xmmword [rdi], xmm0
lea rcx, [rbp - 0x60]
mov edx, 0xfa0
call fcn.14000dec0
movups xmm0, xmmword [rbp - 0x60]
movaps xmmword [rbp - 0x20], xmm0
movabs rdi, 0x8000000000000000
movabs rbx, 0x7fffffffffffffff
mov r13, qword [rbp - 0x10]
jmp 0x1400044d7
mov rax, qword [rbp - 0x10]
mov qword [rax], r14
mov rdx, qword [rbp - 0x20]
test rdx, rdx
jg 0x1400044ea
dec rdx
xor ecx, ecx
call fcn.14000b3a0
mov rcx, qword [rbp - 0x18]
add rcx, 8
mov edx, 1
mov r8d, 0xfa0
mov r9, rsi
call fcn.140046a20
cmp rax, 0xfa0
jne 0x140004577
mov r14, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov rdx, r14
call fcn.14000b070
test r14, r14
jle 0x1400044d7
mov r12, qword [rbp - 0x18]
mov r15, r14
inc r15
jno 0x140004533
call fcn.140006140
test r15, r15
jns 0x140004545
mov rcx, rdi
xor edx, edx
mov r8, rbx
call fcn.140008c20
add r12, 8
mov rax, qword [r13]
mov rcx, qword [r13 + 8]
add rcx, rax
add rcx, 8
mov rdx, r12
mov r8, r15
call fcn.14005e030
add r14, qword [r13]
jno 0x1400044d0
call fcn.140006140
jmp 0x1400044d0
mov r14, rax
mov rcx, rsi
call fcn.140004010
test r14, r14
jns 0x14000459b
movabs r8, 0x7fffffffffffffff
mov rcx, r14
xor edx, edx
call fcn.140008c20
lea rcx, [rbp - 0x20]
mov rdx, r14
call fcn.14000b8c0
mov rdx, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
call fcn.14000b070
mov rbx, qword [rbp - 0x20]
mov rsi, qword [rbp - 0x18]
test rbx, rbx
jle 0x140004624
mov rdi, rbx
inc rdi
jno 0x1400045ce
call fcn.140006140
test rdi, rdi
jns 0x1400045ee
movabs rcx, 0x8000000000000000
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.140008c20
add rsi, 8
mov r14, qword [rbp - 0x10]
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
add rcx, rax
add rcx, 8
mov rdx, rsi
mov r8, rdi
call fcn.14005e030
add rbx, qword [r14]
jno 0x140004619
call fcn.140006140
mov rax, qword [rbp - 0x10]
mov qword [rax], rbx
mov rsi, qword [rbp - 0x18]
test rsi, rsi
je 0x140004637
test byte [rsi + 7], 0x40
jne 0x140004637
mov rcx, rsi
call fcn.1400092f0
lea rcx, [rbp - 0x30]
call fcn.14003fe74
test al, al
jne 0x140004665
lea rcx, [rbp - 0x30]
call fcn.14003fce8
mov rax, qword [rbp - 0x10]
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xorps xmm0, xmm0
movaps xmmword [rbp - 0x50], xmm0
lea rsi, [rbp - 0x50]
lea rdx, [rbp - 0x30]
mov rcx, rsi
call fcn.14003fc34
mov rcx, rsi
call fcn.140002c90
int3
Function at 0x1400047b0
Capabilities:
Read file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov rsi, rdx
mov r15, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
test r8, r8
jns 0x1400047f7
movabs r8, 0x7fffffffffffffff
mov rcx, rdi
xor edx, edx
call fcn.140008c20
lea rcx, [rbp - 0x20]
mov rdx, rdi
call fcn.14000dec0
movups xmm0, xmmword [rbp - 0x20]
movups xmmword [r15], xmm0
mov rdx, qword [r15]
test rdx, rdx
jle 0x140004942
test rdi, rdi
js 0x140004955
mov rcx, qword [r15 + 8]
add rcx, 8
mov edx, 1
mov r8, rdi
mov r9, rsi
call fcn.140046a20
mov rbx, rax
cmp rax, rdi
je 0x140004848
mov rcx, rsi
call fcn.140004010
mov rcx, rsi
call fcn.140046b34
mov r14d, eax
mov ecx, eax
mov rdx, rsi
call fcn.140046d68
test r14d, r14d
js 0x14000496e
mov qword [rbp - 0x28], r15
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
call fcn.14003fc5c
mov qword [rbp - 0x10], 0
lea rcx, [rbp - 0x50]
mov rdx, rsi
call fcn.140004450
mov rdi, qword [rbp - 0x50]
mov rsi, qword [rbp - 0x48]
mov qword [rbp - 0x10], rsi
mov rcx, qword [rbp - 0x28]
mov rdx, rdi
call fcn.14000b070
test rdi, rdi
jle 0x140004913
mov rbx, rdi
inc rbx
jno 0x1400048bc
mov qword [rbp - 0x10], rsi
call fcn.140006140
test rbx, rbx
jns 0x1400048e0
mov qword [rbp - 0x10], rsi
movabs rcx, 0x8000000000000000
movabs r8, 0x7fffffffffffffff
xor edx, edx
call fcn.140008c20
lea rdx, [rsi + 8]
mov r14, qword [rbp - 0x28]
mov rax, qword [r14]
mov rcx, qword [r14 + 8]
add rcx, rax
add rcx, 8
mov r8, rbx
call fcn.14005e030
add rdi, qword [r14]
jno 0x14000490c
mov qword [rbp - 0x10], rsi
call fcn.140006140
mov rax, qword [rbp - 0x28]
mov qword [rax], rdi
test rsi, rsi
je 0x140004926
test byte [rsi + 7], 0x40
jne 0x140004926
mov rcx, rsi
call fcn.1400092f0
lea rcx, [rbp - 0x20]
call fcn.14003fe74
test al, al
jne 0x1400049aa
lea rcx, [rbp - 0x20]
call fcn.14003fce8
mov r15, qword [rbp - 0x28]
jmp 0x140004997
dec rdx
xor ecx, ecx
call fcn.14000b3a0
test rdi, rdi
jns 0x140004820
movabs r8, 0x7fffffffffffffff
mov rcx, rdi
xor edx, edx
call fcn.140008c20
jmp 0x140004820
cmp rbx, rdi
jge 0x140004997
test rbx, rbx
jns 0x14000498c
movabs r8, 0x7fffffffffffffff
mov rcx, rbx
xor edx, edx
call fcn.140008c20
mov rcx, r15
mov rdx, rbx
call fcn.14000b8c0
mov rax, r15
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
xorps xmm0, xmm0
movaps xmmword [rbp - 0x60], xmm0
lea rsi, [rbp - 0x60]
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.14003fc34
mov rcx, rsi
call fcn.140002c90
mov rsi, qword [rbp - 0x10]
test rsi, rsi
jne 0x140004918
jmp 0x140004926
Function at 0x1400155d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
mov r14, qword [rdx]
mov qword [rdx + 8], r14
movzx eax, byte [rdx + 0x10]
test al, al
je 0x1400155ff
xor al, 1
test al, al
jne 0x140015634
jmp 0x140015663
mov rdx, qword [rbx]
test r14, r14
js 0x14001560c
cmp r14, rdx
jl 0x14001561a
dec rdx
mov rcx, r14
call fcn.14000b3a0
mov r14, qword [rsi]
mov rax, qword [rbx + 8]
movzx eax, byte [rax + r14 + 8]
cmp al, 0x5c
sete cl
cmp al, 0x2f
sete al
or al, cl
test al, al
je 0x140015663
inc r14
jno 0x14001563e
call fcn.140006140
mov qword [rsi], r14
mov rax, qword [rsi + 8]
cmp rax, r14
jge 0x14001569e
lea rcx, [r14 - 1]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
jmp 0x1400156d3
mov qword [rsi], r14
mov rdx, qword [rbx]
cmp r14, rdx
jge 0x140015641
test r14, r14
jns 0x14001567e
dec rdx
mov rcx, r14
call fcn.14000b3a0
mov r14, qword [rsi]
mov rax, qword [rbx + 8]
movzx eax, byte [rax + r14 + 8]
cmp eax, 0x2f
je 0x140015641
cmp eax, 0x5c
je 0x140015641
inc r14
jno 0x140015660
call fcn.140006140
jmp 0x140015660
cmp r14, qword [rbx]
jge 0x1400156d3
movups xmm0, xmmword [rbx]
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x38]
lea r8, [rsp + 0x20]
mov rdx, rsi
call fcn.1400155d0
movups xmm0, xmmword [rsp + 0x38]
movups xmmword [rdi], xmm0
mov r14, qword [rsi]
jmp 0x1400156d3
mov qword [rsi], r14
mov rdx, qword [rbx]
cmp r14, rdx
jge 0x14001572e
test r14, r14
js 0x140015700
mov rax, qword [rbx + 8]
movzx eax, byte [rax + r14 + 8]
cmp eax, 0x5c
jne 0x14001571d
jmp 0x140015722
dec rdx
mov rcx, r14
call fcn.14000b3a0
mov r14, qword [rsi]
mov rax, qword [rbx + 8]
movzx eax, byte [rax + r14 + 8]
cmp eax, 0x5c
je 0x140015722
cmp eax, 0x2f
jne 0x14001572e
inc r14
jno 0x1400156d0
call fcn.140006140
jmp 0x1400156d0
mov byte [rsi + 0x10], 1
mov rax, rdi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x140018db0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
lea r15, [rdx + 3]
test rdx, rdx
cmovns r15, rdx
and r15, 0xfffffffffffffffc
mov r13, rdx
sub r13, r15
lea rbx, [rdx - 1]
xor ebp, ebp
cmp rdx, 4
jl 0x140018e37
xor r12d, r12d
xor r14d, r14d
jmp 0x140018e25
mov eax, dword [rdi + r14]
add r14, 4
imul ecx, eax, 0xcc9e2d51
imul eax, eax, 0x16a88000
shr ecx, 0x11
or ecx, eax
imul eax, ecx, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4]
add r12d, 0xe6546b64
cmp r14, r15
jge 0x140018e3d
cmp r14, rsi
jl 0x140018df0
mov rcx, r14
mov rdx, rbx
call fcn.14000b3a0
jmp 0x140018df0
xor r14d, r14d
xor r12d, r12d
test r13, r13
jle 0x140018e88
inc r13
xor ebp, ebp
jmp 0x140018e6e
mov rcx, r15
mov rdx, rbx
call fcn.14000b3a0
shl ebp, 8
movzx eax, byte [rdi + r15]
or ebp, eax
dec r13
cmp r13, 1
jbe 0x140018e88
lea r15, [r13 - 2]
add r15, r14
jno 0x140018e7c
call fcn.140006140
test r15, r15
js 0x140018e50
cmp r15, rsi
jl 0x140018e5b
jmp 0x140018e50
imul eax, ebp, 0xcc9e2d51
imul ecx, ebp, 0x16a88000
shr eax, 0x11
or eax, ecx
imul eax, eax, 0x1b873593
xor r12d, esi
xor r12d, eax
mov eax, r12d
shr eax, 0x10
xor eax, r12d
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
push rsi
sub rsp, 0x20
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
jns 0x140018efe
lea rdx, [r8 - 1]
xor ecx, ecx
call fcn.14000ddc0
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
mov rdx, r8
add rsp, 0x20
pop rsi
jmp 0x140018db0
Function at 0x140018ee0
Capabilities:
Hash data using murmur3

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rsi, rdx
mov rdi, rcx
lea r15, [rdx + 3]
test rdx, rdx
cmovns r15, rdx
and r15, 0xfffffffffffffffc
mov r13, rdx
sub r13, r15
lea rbx, [rdx - 1]
xor ebp, ebp
cmp rdx, 4
jl 0x140018e37
xor r12d, r12d
xor r14d, r14d
jmp 0x140018e25
mov eax, dword [rdi + r14]
add r14, 4
imul ecx, eax, 0xcc9e2d51
imul eax, eax, 0x16a88000
shr ecx, 0x11
or ecx, eax
imul eax, ecx, 0x1b873593
xor eax, r12d
rol eax, 0xd
lea r12d, [rax + rax*4]
add r12d, 0xe6546b64
cmp r14, r15
jge 0x140018e3d
cmp r14, rsi
jl 0x140018df0
mov rcx, r14
mov rdx, rbx
call fcn.14000b3a0
jmp 0x140018df0
xor r14d, r14d
xor r12d, r12d
test r13, r13
jle 0x140018e88
inc r13
xor ebp, ebp
jmp 0x140018e6e
mov rcx, r15
mov rdx, rbx
call fcn.14000b3a0
shl ebp, 8
movzx eax, byte [rdi + r15]
or ebp, eax
dec r13
cmp r13, 1
jbe 0x140018e88
lea r15, [r13 - 2]
add r15, r14
jno 0x140018e7c
call fcn.140006140
test r15, r15
js 0x140018e50
cmp r15, rsi
jl 0x140018e5b
jmp 0x140018e50
imul eax, ebp, 0xcc9e2d51
imul ecx, ebp, 0x16a88000
shr eax, 0x11
or eax, ecx
imul eax, eax, 0x1b873593
xor r12d, esi
xor r12d, eax
mov eax, r12d
shr eax, 0x10
xor eax, r12d
imul eax, eax, 0x85ebca6b
mov ecx, eax
shr ecx, 0xd
xor ecx, eax
imul ecx, ecx, 0xc2b2ae35
mov eax, ecx
shr eax, 0x10
xor eax, ecx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
push rsi
sub rsp, 0x20
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
jns 0x140018efe
lea rdx, [r8 - 1]
xor ecx, ecx
call fcn.14000ddc0
mov r8, qword [rsi]
mov rax, qword [rsi + 8]
lea rcx, [rax + 8]
test rax, rax
cmove rcx, rax
mov rdx, r8
add rsp, 0x20
pop rsi
jmp 0x140018db0
Function at 0x1400254e0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r14, r8
mov rsi, rdx
mov rdi, rcx
cmp r8, 0x10
mov ebx, 0x10
cmovl rbx, r8
test r8, r8
jle 0x140025518
lea rdx, [rdi + 0x3e8]
mov rcx, rsi
mov r8, rbx
call fcn.14005e030
mov rax, qword [rdi + 0x408]
shl rax, 3
bswap rax
mov qword [rsp + 0x30], rax
mov rax, qword [rdi + 0x410]
shl rax, 3
bswap rax
mov qword [rsp + 0x38], rax
lea r8, [rdi + 0x3c8]
lea r15, [rdi + 0x3f8]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], 0x10
mov edx, 0x10
mov r9d, 0x10
mov rcx, r15
call fcn.140024210
test r14, r14
jle 0x140025628
cmp rbx, 2
mov eax, 1
cmovge rax, rbx
cmp rax, 8
jb 0x1400255af
lea rcx, [rdi + rax]
add rcx, 0x3f8
cmp rcx, rsi
jbe 0x140025634
lea rcx, [rsi + rax]
cmp r15, rcx
jae 0x140025634
xor ecx, ecx
mov rdx, rcx
not rdx
add rdx, rax
mov r8, rax
and r8, 3
je 0x1400255e5
nop word cs:[rax + rax]
movzx r9d, byte [rdi + rcx + 0x3f8]
xor byte [rsi + rcx], r9b
inc rcx
dec r8
jne 0x1400255d0
cmp rdx, 3
jb 0x140025628
nop dword [rax + rax]
movzx edx, byte [rdi + rcx + 0x3f8]
xor byte [rsi + rcx], dl
movzx edx, byte [rdi + rcx + 0x3f9]
xor byte [rsi + rcx + 1], dl
movzx edx, byte [rdi + rcx + 0x3fa]
xor byte [rsi + rcx + 2], dl
movzx edx, byte [rdi + rcx + 0x3fb]
xor byte [rsi + rcx + 3], dl
add rcx, 4
cmp rax, rcx
jne 0x1400255f0
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
movabs rdx, 0x7ffffffffffffff0
cmp rax, 0x10
jae 0x140025648
xor ecx, ecx
jmp 0x14002568c
mov rcx, rax
and rcx, rdx
xor r8d, r8d
nop word cs:[rax + rax]
movups xmm0, xmmword [rdi + r8 + 0x3f8]
movups xmm1, xmmword [rsi + r8]
xorps xmm1, xmm0
movups xmmword [rsi + r8], xmm1
add r8, 0x10
cmp rcx, r8
jne 0x140025660
cmp rax, rcx
je 0x140025628
test al, 8
je 0x1400255b1
mov r8, rcx
add rdx, 8
mov rcx, rdx
and rcx, rax
nop dword [rax]
mov rdx, qword [rdi + r8 + 0x3f8]
xor qword [rsi + r8], rdx
add r8, 8
cmp rcx, r8
jne 0x1400256a0
cmp rax, rcx
je 0x140025628
jmp 0x1400255b1

Function at 0x14003f05c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003f0a6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003f0a6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003f0a6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003f0a6
cmp dword [rcx + 0x84], 0xe
jbe 0x14003f0a6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003f0a8
xor al, al
add rsp, 0x28
ret
Function at 0x140045f50
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14005d820
sub rsp, rax
mov rax, qword [0x140078800]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140047124
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140045f9f
mov rax, rbp
jmp 0x1400460a7
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x79e80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140050de0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x79e80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400460a3
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400460a3
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140050de0
test rax, rax
js 0x1400460a3
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400460a3
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140046095
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140046095
cmp byte [rcx], 0xd
jne 0x14004607b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004608a
cmp byte [rcx + 1], 0xa
jne 0x14004608a
inc rcx
jmp 0x14004608a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x78c80]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004605d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400460a7
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14005d880
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400485c8
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140048433
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140048433
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140048433
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140048433
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140048433
cmp dword [rcx + 0x84], 0xe
jbe 0x140048433
cmp dword [rcx + 0xf8], 0
je 0x140048433
mov ecx, ebx
call fcn.1400484e4
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400482c0
nop
cmp dword [rbp + 0x20], 0
je 0x140048481
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14004848c
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400483c4
Function at 0x140050e8c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x140079e80]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x140050ee3
cmp word [rdx], r13w
jne 0x140050ee3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140050ee8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005100d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005102e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140050f21
mov rdx, r9
mov word [rbx], cx
jmp 0x140050f48
cmp r9, r8
jae 0x140050f58
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x140050f02
jmp 0x14005100d
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140051002
cmp dword [rsp + 0x80], esi
je 0x140051002
lea r8, [0x140079e80]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140050fda
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140050faa
mov word [rbx], r13w
jmp 0x14005100a
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140050fb7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005100a
cmp word [rsp + 0x70], r13w
jne 0x140050fe7
cmp rbx, r14
je 0x140050fa4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140050de8
cmp word [rsp + 0x70], r13w
je 0x14005100d
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x140079e80]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140051007
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005100d
Function at 0x140053524
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005353a
mov al, 1
jmp 0x14005359a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005354b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140053598
mov ecx, dword [rcx + 0x18]
nop
call fcn.140047658
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140053598
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140053598
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140053598
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005359a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140056cb0
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 0x140056ce0
xor eax, eax
jmp 0x140056da3
mov rbp, rbx
cmp word [rax], si
je 0x140056d05
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140056cec
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140056ce8
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.140056bd0
movsxd r14, eax
test eax, eax
jne 0x140056d43
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140056cd9
mov rcx, r14
call fcn.140053960
mov rdi, rax
test rax, rax
jne 0x140056d5c
xor ecx, ecx
call fcn.140050420
jmp 0x140056d38
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.140056bd0
test eax, eax
jne 0x140056d8d
mov rcx, rdi
call fcn.140050420
jmp 0x140056d97
xor ecx, ecx
call fcn.140050420
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 0x140056dc0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140056e47
mov rsi, rbx
cmp word [rax], bp
je 0x140056e06
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140056df0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140056dec
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140053960
mov rdi, rax
test rax, rax
je 0x140056e34
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14005e030
mov rbp, rdi
xor ecx, ecx
call fcn.140050420
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret