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

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x14000791a
mov qword [r8], 0
lea rdx, [0x14007715c]
call fcn.1400077d0
mov rbx, rax
test rax, rax
jne 0x14000793a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.14004e9a8
mov esi, eax
cmp eax, 0xffffffff
je 0x140007a08
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.14004d938
test eax, eax
jne 0x140007a08
mov rcx, rbx
call fcn.14004e9a8
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140007a08
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.14004d938
test eax, eax
jne 0x140007a08
cmp rdi, 0xffffffffffffffff
je 0x140007a08
mov rax, qword [0x1400aec68]
test rax, rax
je 0x1400079aa
inc dword [rax + 0xec]
mov rcx, rdi
call fcn.140056600
mov rsi, rax
test rax, rax
je 0x140007a08
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.14004e048
mov rcx, rbx
cmp rax, rdi
je 0x1400079f6
call fcn.14004e3dc
mov rax, qword [0x1400aec68]
test rax, rax
je 0x1400079ec
dec dword [rax + 0xec]
mov rcx, rsi
call fcn.14004e474
jmp 0x140007a10
call fcn.14004e3dc
test r14, r14
je 0x140007a03
mov qword [r14], rdi
mov rax, rsi
jmp 0x140007a12
mov rcx, rbx
call fcn.14004e3dc
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000a110
Capabilities:
Hash data with crc32

Disassembly:
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xc8]
mov rax, qword [rcx + 0xd0]
movsxd r9, edx
mov ebx, dword [rax + r8*4 - 4]
lea r8, [0x140077400]
not ebx
movzx eax, r9b
movzx ecx, bl
xor rcx, rax
shr ebx, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor ebx, dword [r8 + rcx*4]
movzx ecx, bl
xor rdx, rcx
shr ebx, 8
shr eax, 0x10
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
movzx edx, al
mov rax, qword [0x1400aec68]
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
movzx ecx, bl
shr ebx, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor ebx, dword [r8 + rdx*4]
not ebx
cmp dword [rax + 0x3e74], ebx
jne 0x14000a19d
mov dword [rax + 0x3e78], ebx
cmp dword [rax + 0x3ec0], ebx
jne 0x14000a1ac
mov byte [rax + 0x3ec4], 1
cmp dword [rax + 0x3e5c], ebx
jne 0x14000a1c3
mov r8, r9
mov edx, 4
mov ecx, ebx
call fcn.14001beb0
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x140014430
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r8, qword [0x1400aec68]
lea r10, [0x140077400]
movsxd r9, ecx
mov rbx, qword [r8 + 0x3e28]
add rbx, 0xc8
movsxd rdx, dword [rbx]
mov rax, qword [rbx + 8]
mov edi, dword [rax + rdx*4 - 4]
not edi
movzx eax, r9b
movzx ecx, dil
xor rcx, rax
shr edi, 8
mov eax, r9d
shr eax, 8
movzx edx, al
mov eax, r9d
xor edi, dword [r10 + rcx*4]
movzx ecx, dil
xor rdx, rcx
shr edi, 8
shr eax, 0x10
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
movzx edx, al
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
movzx ecx, dil
shr edi, 8
mov edx, r9d
shr rdx, 0x18
xor rdx, rcx
xor edi, dword [r10 + rdx*4]
not edi
cmp dword [r8 + 0x3e5c], edi
jne 0x1400144d5
mov r8, r9
mov edx, 4
mov ecx, edi
call fcn.14001beb0
mov ecx, dword [rbx + 4]
mov r8d, dword [rbx]
cmp r8d, ecx
jne 0x140014509
inc r8d
test ecx, ecx
je 0x1400144f2
mov eax, ecx
cdq
sub eax, edx
sar eax, 1
add eax, ecx
jmp 0x1400144f7
mov eax, 8
cmp eax, r8d
mov rcx, rbx
cmovg r8d, eax
mov edx, r8d
call fcn.14001ce80
movsxd rcx, dword [rbx]
mov rax, qword [rbx + 8]
mov dword [rax + rcx*4], edi
inc dword [rbx]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140015ef0
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400aec68]
mov edi, ecx
cmp byte [rbx + 0x41cd], 0
jne 0x140015f51
cmp byte [rbx + 0x41ce], 0
jne 0x140015f51
movsx r9d, word [rbx + 0x52ae]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400076a0
test dil, 1
je 0x140016078
jmp 0x140015fda
movss xmm1, dword [rbx + 0x3830]
lea r8, str.Tooltip__02d
movsx r9d, word [rbx + 0x52ae]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x14009e688]
mulss xmm1, dword [0x14009e674]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0xd0c]
addss xmm1, dword [rbx + 0xd10]
mov qword [rbx + 0x3f48], rax
mov dword [rbx + 0x3f34], 1
movss dword [rbx + 0x3f40], xmm0
movss dword [rbx + 0x3f44], xmm1
movss xmm0, dword [rbx + 0x388c]
mulss xmm0, dword [0x14009e5c8]
or dword [rbx + 0x3f30], 0x41
movss dword [rbx + 0x3f90], xmm0
call fcn.1400076a0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x140016030
lea r11, [0x140077400]
nop word [rax + rax]
cmp r9b, 0x23
jne 0x140016013
cmp byte [r8], r9b
jne 0x140016013
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x140016000
not ecx
call fcn.14000f010
test rax, rax
je 0x140016078
cmp byte [rax + 0x8e], 0
je 0x140016078
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc word [rbx + 0x52ae]
mov edx, 0x10
movsx r9d, word [rbx + 0x52ae]
call fcn.1400076a0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.140011790
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140046150
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x14003d610
Capabilities:
Hash data with crc32

Disassembly:
test dword [rcx + 0x10], 0x100000
je 0x14003d68a
mov r10d, 0xffffffff
lea r8, [0x14009dfc9]
mov eax, r10d
lea r11, [0x140077400]
mov r9b, 0x43
cmp r9b, 0x23
jne 0x14003d646
cmp byte [r8], r9b
jne 0x14003d646
cmp byte [r8 + 1], r9b
cmove eax, r10d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14003d633
mov rcx, qword [0x1400aec68]
not eax
cmp dword [rcx + 0x3e74], eax
jne 0x14003d67a
mov dword [rcx + 0x3e78], eax
cmp dword [rcx + 0x3ec0], eax
jne 0x14003d6a4
mov byte [rcx + 0x3ec4], 1
ret
mov rax, qword [0x1400aec68]
lea rdx, str.Clicker
mov rcx, qword [rax + 0x3e28]
jmp fcn.14000a090
ret

Function at 0x1400424d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x140042510
cmp al, 0x25
jne 0x140042504
cmp byte [r8 + 1], al
jne 0x140042510
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x1400424f7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140042679
cmp byte [r8 + 1], dl
je 0x140042679
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14004254d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140042575
sub dl, 0x61
cmp dl, 0x19
ja 0x140042567
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140042575
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140042530
jmp 0x140042578
inc r9
cmp r8, r9
jae 0x1400425af
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x1400425a4
bt rdx, rax
jb 0x1400425aa
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140042590
xorps xmm3, xmm3
mov byte [r11], 0
cvtss2sd xmm3, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
movq r9, xmm3
call fcn.1400076a0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1400425e8
nop
inc rcx
cmp byte [rcx], 0x20
je 0x1400425e0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140042668
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x14004260a
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x140042618
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140042656
movss xmm2, dword [0x14009e67c]
nop
cmp al, 0x39
ja 0x140042656
movzx eax, al
inc rdx
sub eax, 0x30
mulss xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2ps xmm0, xmm0
addss xmm0, xmm1
movaps xmm1, xmm0
cmp al, 0x30
jge 0x140042630
cmp r9b, 0x2d
jne 0x140042674
xorps xmm1, xmmword [0x14009e840]
movaps xmm0, xmm1
jmp 0x14004267c
call fcn.14005701c
xorps xmm1, xmm1
cvtsd2ss xmm1, xmm0
movaps xmm0, xmm1
jmp 0x14004267c
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140046150
add rsp, 0x90
pop rbx
ret
Function at 0x1400426a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x90
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rsp + 0x80], rax
movzx eax, byte [rcx]
mov ebx, edx
mov r8, rcx
test al, al
je 0x1400426e0
cmp al, 0x25
jne 0x1400426d4
cmp byte [r8 + 1], al
jne 0x1400426e0
inc r8
movzx eax, byte [r8 + 1]
inc r8
test al, al
jne 0x1400426c7
movzx edx, byte [r8]
cmp dl, 0x25
jne 0x140042843
cmp byte [r8 + 1], dl
je 0x140042843
lea r11, [rsp + 0x20]
mov r9, r8
nop
lea eax, [rdx - 0x41]
movsx r10d, dl
cmp al, 0x19
ja 0x14004271d
lea ecx, [r10 - 0x41]
mov eax, 1
shl eax, cl
test eax, 0x900
je 0x140042745
sub dl, 0x61
cmp dl, 0x19
ja 0x140042737
lea ecx, [r10 - 0x61]
mov eax, 1
shl eax, cl
test eax, 0x2480a80
je 0x140042745
movzx edx, byte [r9 + 1]
inc r9
test dl, dl
jne 0x140042700
jmp 0x140042748
inc r9
cmp r8, r9
jae 0x14004277f
movabs rdx, 0x800000000000009
nop word [rax + rax]
movzx ecx, byte [r8]
inc r8
lea eax, [rcx - 0x24]
cmp al, 0x3b
ja 0x140042774
bt rdx, rax
jb 0x14004277a
mov byte [r11], cl
inc r11
cmp r8, r9
jb 0x140042760
movaps xmm3, xmm2
mov byte [r11], 0
movq r9, xmm2
lea r8, [rsp + 0x20]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1400076a0
cmp byte [rsp + 0x40], 0x20
lea rcx, [rsp + 0x40]
jne 0x1400427b8
nop dword [rax + rax]
inc rcx
cmp byte [rcx], 0x20
je 0x1400427b0
lea eax, [rbx - 8]
cmp eax, 1
jbe 0x140042836
movzx r9d, byte [rcx]
movzx r8d, r9b
cmp r9b, 0x2d
jne 0x1400427da
movzx r8d, byte [rcx + 1]
lea rax, [rcx + 1]
mov rcx, rax
movzx eax, r8b
cmp r8b, 0x2b
jne 0x1400427e8
movzx eax, byte [rcx + 1]
lea rdx, [rcx + 1]
xorps xmm1, xmm1
cmovne rdx, rcx
cmp al, 0x30
jl 0x140042824
movsd xmm2, qword [0x14009e638]
nop
cmp al, 0x39
ja 0x140042824
movzx eax, al
inc rdx
sub eax, 0x30
mulsd xmm1, xmm2
movd xmm0, eax
movzx eax, byte [rdx]
cvtdq2pd xmm0, xmm0
addsd xmm1, xmm0
cmp al, 0x30
jge 0x140042800
cmp r9b, 0x2d
jne 0x14004283e
xorps xmm1, xmmword [0x14009e830]
movaps xmm0, xmm1
jmp 0x140042846
call fcn.14005701c
movaps xmm1, xmm0
movaps xmm0, xmm1
jmp 0x140042846
movaps xmm0, xmm2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.140046150
add rsp, 0x90
pop rbx
ret
Function at 0x140045670
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400456aa
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400456af
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x1400456f8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14006e560]
cmp byte [rcx + rax], 0
je 0x1400456f8
dec r8
sub rdx, 1
jne 0x1400456de
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140047004
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004704e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14004704e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14004704e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14004704e
cmp dword [rcx + 0x84], 0xe
jbe 0x14004704e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140047050
xor al, al
add rsp, 0x28
ret
Function at 0x14004e7c4
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.140046c60
sub rsp, rax
mov rax, qword [0x1400ac040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140059c60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14004e813
mov rax, rbp
jmp 0x14004e91b
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 + 0xae4f0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14005acb0
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xae4f0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14004e917
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 0x14004e917
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14005acb0
test rax, rax
js 0x14004e917
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14004e917
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14004e909
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14004e909
cmp byte [rcx], 0xd
jne 0x14004e8ef
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14004e8fe
cmp byte [rcx + 1], 0xa
jne 0x14004e8fe
inc rcx
jmp 0x14004e8fe
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xac450]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14004e8d1
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14004e91b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140046150
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 0x1400571fc
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x140057233
call fcn.140057944
mov dword [rax], 0x16
call fcn.14004d1fc
xor eax, eax
jmp 0x1400572c1
mov rdx, r9
mov rcx, r8
call fcn.140057198
mov rbx, rax
test rax, rax
je 0x1400572be
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x1400570c4]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400572ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400578b8
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x140057292
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400572a1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.14005a9c8
jmp 0x1400572be
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400572bb
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x1400575ec
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 0x140057457
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140057457
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140057457
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140057457
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140057457
cmp dword [rcx + 0x84], 0xe
jbe 0x140057457
cmp dword [rcx + 0xf8], 0
je 0x140057457
mov ecx, ebx
call fcn.140057508
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.1400572e4
nop
cmp dword [rbp + 0x20], 0
je 0x1400574a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400574b0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400573e8
Function at 0x14005b0c8
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14005b0de
mov al, 1
jmp 0x14005b13e
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14005b0ef
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14005b13c
mov ecx, dword [rcx + 0x18]
nop
call fcn.140060f18
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14005b13c
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14005b13c
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14005b13c
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14005b13e
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14005b364
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, [0x1400ae4f0]
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 0x14005b3bb
cmp word [rdx], r13w
jne 0x14005b3bb
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14005b3c0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14005b4e5
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14005b506
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14005b3f9
mov rdx, r9
mov word [rbx], cx
jmp 0x14005b420
cmp r9, r8
jae 0x14005b430
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 0x14005b3da
jmp 0x14005b4e5
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 0x14005b4da
cmp dword [rsp + 0x80], esi
je 0x14005b4da
lea r8, [0x1400ae4f0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14005b4b2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14005b482
mov word [rbx], r13w
jmp 0x14005b4e2
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 0x14005b48f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14005b4e2
cmp word [rsp + 0x70], r13w
jne 0x14005b4bf
cmp rbx, r14
je 0x14005b47c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14005acb8
cmp word [rsp + 0x70], r13w
je 0x14005b4e5
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, [0x1400ae4f0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14005b4df
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14005b4e5
Function at 0x1400607c0
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 0x1400607f0
xor eax, eax
jmp 0x1400608b3
mov rbp, rbx
cmp word [rax], si
je 0x140060815
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1400607fc
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1400607f8
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.14005f0c8
movsxd r14, eax
test eax, eax
jne 0x140060853
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1400607e9
mov rcx, r14
call fcn.14005d208
mov rdi, rax
test rax, rax
jne 0x14006086c
xor ecx, ecx
call fcn.14005a9c8
jmp 0x140060848
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.14005f0c8
test eax, eax
jne 0x14006089d
mov rcx, rdi
call fcn.14005a9c8
jmp 0x1400608a7
xor ecx, ecx
call fcn.14005a9c8
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 0x14006490c
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.14005acb8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14005acb8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140064a5c
cmp rax, 0xffffffffffffffff
je 0x140064a5c
xor edi, edi
test rbp, rbp
jle 0x140064a07
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14005a950
mov rbx, rax
test rax, rax
jne 0x140064994
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1400649fd
mov edx, 0x8000
mov ecx, r14d
call fcn.140058ec8
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.14005a648
cmp eax, 0xffffffff
je 0x1400649dd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400649a4
mov edx, r15d
mov ecx, r14d
call fcn.140058ec8
jmp 0x1400649fd
cmp byte [rsi + 0x38], dil
je 0x1400649f4
cmp dword [rsi + 0x34], 5
jne 0x1400649f4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1400649fd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14005a9c8
jmp 0x140064a70
jns 0x140064a70
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14005acb8
cmp rax, 0xffffffffffffffff
jne 0x140064a28
cmp byte [rsi + 0x30], dil
je 0x140064a70
mov edi, dword [rsi + 0x2c]
jmp 0x140064a70
mov ecx, r14d
call fcn.140060f18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140064a70
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 0x140064a70
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140064a69
mov eax, dword [rsi + 0x2c]
jmp 0x140064a6e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14005acb8
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 0x140065c50
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140065c78
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140065c78
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret