joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14005ac54
Capabilities:
Parse pe header

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

Function at 0x140062808
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1400625dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400625dc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400625dc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400625dc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400625dc
cmp dword [rcx + 0x84], 0xe
jbe 0x1400625dc
cmp dword [rcx + 0xf8], esi
je 0x1400625dc
mov ecx, r14d
call fcn.140062724
mov ecx, 2
call fcn.140066968
nop
cmp byte [0x1400a3a30], 0
jne 0x1400626a6
mov r15d, 1
mov eax, r15d
xchg dword [0x1400a3a20], eax
test ebx, ebx
jne 0x14006264f
mov rdi, qword [0x1400878f0]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x1400a3a28]
cmp rcx, rax
je 0x140062646
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.14001ee10]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1400a3b98]
jmp 0x14006265b
cmp ebx, r15d
jne 0x140062661
lea rcx, [0x1400a3bb0]
call fcn.140064290
nop
test ebx, ebx
jne 0x140062678
lea rdx, [0x140070648]
lea rcx, [0x140070628]
call fcn.140064590
lea rdx, [0x140070658]
lea rcx, [0x140070650]
call fcn.140064590
movzx eax, byte [0x1400a3a30]
test esi, esi
cmove eax, r15d
mov byte [0x1400a3a30], al
jmp 0x1400626a6
mov ecx, 2
call fcn.1400669c8
test esi, esi
jne 0x1400626bd
mov ecx, r14d
call fcn.1400626d8
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x14006256c
Function at 0x175b024
Capabilities:
Encode data using xor

Disassembly:
test byte [rsi], ah
and byte [rdi + 0x21e87410], cl
invalid
js 0x175af9b
pushfq
and ch, byte [rax]
in eax, 0x7b
xor dh, dh
invalid
jmp 0x175b02e
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 0x175b057
pop rbp
sub rbp, 0x33
sub rbp, 0x135b024
sub rsp, 0x20
jmp 0x175b076
add al, 0
add byte [rax], al
ja 0x175b074
jmp 0x175affd
mov rax, 0x135b024
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffff95664fbd
xor byte [rax], dl
inc rax
dec rcx
jne 0x175b095
jmp 0x175b0ac
cmc
xor al, 0x54
xor al, 0x81
mov ebp, 0x3cf5bdbd
jl 0x175b06e
mov esp, 0xbcf5bdbd
push rsp
cmc
jp 0x175b13f
mov eax, 0xf5bdbdbd
jp 0x175b148
xchg ebp, eax
mov ebp, 0x4af5bdbd
pop rdi
cmc
mov esp, 0xb13c367c
mov ebp, 0xbcf5bdbd
push rbp
in eax, dx
in eax, dx
cmc
add eax, 0xbd95a601
mov ebp, 0xf5bdbdbd
add al, 0xd5
sub dword [rax - 0x42424244], esi
mov ebp, 0xf554bcf5
invalid
push rsp
xor byte [rdi + 0x55efbdbd], bh
sar byte [rbp - 0x15184243], 0xf5
mov ebp, 0xf5eae7bd
xor al, 0x6a
cmc
invalid
Function at 0x1400083c8
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140008401
mov r14, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140008409
mov rcx, rbx
mov rdx, rdi
mov r8, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp method.std::basic_streambuf_char__struct_std::char_traits_char__.virtual_64
xor r14d, r14d
jmp 0x1400084e5
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x14000844f
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x14000844f
cmp r15, r14
cmovae r15, r14
mov rcx, rdi
mov r8, r15
call fcn.14001b150
add rdi, r15
mov rsi, r14
sub rsi, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
jmp 0x140008452
mov rsi, r14
cmp qword [rbx + 0x80], 0
je 0x1400084e2
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x14000848c
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
cmp rsi, 0x1000
jb 0x1400084bf
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1400230f4
add rdi, rax
sub rsi, rax
cmp rax, 0xfff
je 0x14000848c
jmp 0x1400084e2
test rsi, rsi
je 0x1400084e0
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, rsi
call fcn.1400230f4
sub rsi, rax
jmp 0x1400084e2
xor esi, esi
sub r14, rsi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
mov r14, r8
mov rdi, r8
test r8, r8
jle 0x140008b1b
mov r15, rdx
mov rbx, rcx
mov rdi, r14
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140008aff
mov rax, qword [rbx + 0x50]
movsxd rsi, dword [rax]
test rsi, rsi
jle 0x140008aff
cmp rdi, rsi
cmovl rsi, rdi
mov rcx, r15
mov r8, rsi
call fcn.14001b150
add r15, rsi
sub rdi, rsi
mov rax, qword [rbx + 0x50]
sub dword [rax], esi
mov rax, qword [rbx + 0x38]
movsxd rcx, esi
add qword [rax], rcx
jmp 0x140008b16
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140008b1b
mov byte [r15], al
inc r15
dec rdi
test rdi, rdi
jg 0x140008abd
sub r14, rdi
mov rax, r14
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x14000e905
Capabilities:
Enumerate processes

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x260
lea rbp, [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edi, eax
xor r14d, r14d
mov ecx, 2
xor edx, edx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov qword [rbp + 0x1d8], rax
cmp rax, 0xffffffffffffffff
je 0x14000e98f
mov rbx, rax
xor r14d, r14d
lea rsi, [rbp - 0x60]
mov r8d, 0x238
mov rcx, rsi
xor edx, edx
call fcn.14001b800
mov dword [rsi], 0x238
mov rcx, rbx
mov rdx, rsi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x14000e98f
lea rbx, [rbp - 0x60]
cmp dword [rbp - 0x58], edi
je 0x14000e98b
mov rcx, qword [rbp + 0x1d8]
mov rdx, rbx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x14000e971
jmp 0x14000e98f
mov r14d, dword [rbp - 0x40]
mov rcx, qword [rbp + 0x1d8]
cmp rcx, 0xffffffffffffffff
je 0x14000e9a2
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, r14d
add rsp, 0x260
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x14000e9e8
Capabilities:
Get explorer pid

Disassembly:
push rsi
sub rsp, 0x30
mov rax, qword [0x140062788]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea rsi, [rsp + 0x24]
mov dword [rsi], 0
call qword [sym.imp.USER32.dll_GetShellWindow]
mov rcx, rax
mov rdx, rsi
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
call fcn.14000e905
cmp eax, dword [rsi]
jne 0x14000ea63
lea rsi, [0x140063d60]
lea rdx, str.___Pausing_to_allow_for_debugging
mov rcx, rsi
call fcn.1400020c8
mov rcx, rax
call fcn.1400019b7
lea rdx, str.___Press_enter_to_close
mov rcx, rsi
call fcn.1400020c8
mov rcx, rax
call fcn.1400019b7
lea rcx, [0x140063bb0]
call fcn.14000ea78
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015aa0
nop
add rsp, 0x30
pop rsi
ret
Function at 0x140012537
Capabilities:
Parse pe header

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0x60]
mov qword [rbp], 0xfffffffffffffffe
mov rsi, rcx
movzx eax, word [rdx]
cmp eax, 0x5a4d
jne 0x140012624
mov rdi, rdx
movsxd rax, dword [rdx + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x140012624
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], 0
mov ebx, dword [rdi + rax + 0xb0]
test rbx, rbx
je 0x140012624
add rbx, rdi
mov r12d, dword [rdi + rax + 0xb4]
add r12, rbx
cmp rbx, r12
jae 0x140012646
movabs r13, 0x1fffffff8
lea r14, [rbp - 0x20]
lea r15, [rbp - 0x38]
cmp dword [rbx + 4], 0
je 0x14001261a
mov eax, dword [rbx]
add rax, rdi
mov qword [rbp - 0x38], rax
lea rax, [rbx + 8]
mov qword [rbp - 0x30], rax
mov eax, dword [rbx + 4]
add rax, r13
shr rax, 1
mov dword [rbp - 0x28], eax
mov rdx, qword [rbp - 0x18]
cmp rdx, qword [rbp - 0x10]
je 0x140012604
mov rax, qword [rbp - 0x28]
mov qword [rdx + 0x10], rax
movups xmm0, xmmword [rbp - 0x38]
movups xmmword [rdx], xmm0
add qword [rbp - 0x18], 0x18
jmp 0x14001260f
mov rcx, r14
mov r8, r15
call fcn.140012b7a
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r12
jb 0x1400125c1
mov rax, qword [rbp - 0x10]
movaps xmm0, xmmword [rbp - 0x20]
jmp 0x140012648
xorps xmm0, xmm0
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], 0
mov rax, rsi
add rsp, 0x68
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor eax, eax
movups xmmword [rsi], xmm0
mov qword [rsi + 0x10], rax
jmp 0x140012632
Function at 0x1400147c0
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0x238
mov rsi, rcx
lea rdi, [rsp + 0x20]
mov r8d, 0x20a
mov rcx, rdi
xor edx, edx
call fcn.14001b800
mov ecx, 0x105
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x105
jb 0x14001482c
lea rcx, [0x140063d60]
lea rdx, str.____Failed_to_get_temp_path
call fcn.1400020c8
mov rcx, rax
call fcn.1400019b7
mov qword [rsi], 0
movaps xmm0, xmmword [0x140046760]
movups xmmword [rsi + 0x10], xmm0
mov word [rsi], 0
jmp 0x14001489e
lea rcx, [rsp + 0x20]
call fcn.140027488
cmp word [rsp + rax*2 + 0x1e], 0x5c
jne 0x140014845
mov word [rsp + rax*2 + 0x1e], 0
mov qword [rsi], 0
movaps xmm0, xmmword [0x140046760]
movups xmmword [rsi + 0x10], xmm0
mov word [rsi], 0
lea rcx, [rsp + 0x20]
call fcn.140027488
mov rdi, rax
cmp rax, 7
jbe 0x140014881
lea r9, [rsp + 0x20]
mov rcx, rsi
mov rdx, rdi
call fcn.140009806
jmp 0x14001489e
mov qword [rsi + 0x10], rdi
mov r8, rdi
add r8, rdi
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.14001b150
mov word [rsi + rdi*2], 0
mov rax, rsi
add rsp, 0x238
pop rdi
pop rsi
ret
Function at 0x140014b3c
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
movaps xmmword [rsp + 0x50], xmm6
mov r12, rcx
lea r9, [rsp + 0x24]
mov dword [r9], 0
xor esi, esi
mov ecx, 0xb
xor edx, edx
xor r8d, r8d
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
jne 0x140014d8b
xor edi, edi
mov rbx, qword [sym.imp.KERNEL32.dll_VirtualAlloc]
lea rsi, [rsp + 0x24]
test rdi, rdi
je 0x140014ba0
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x24]
xor ecx, ecx
mov r8d, 0x3000
mov r9d, 4
call rbx
mov rdi, rax
mov r8d, dword [rsp + 0x24]
mov ecx, 0xb
mov rdx, rax
mov r9, rsi
call sub.ntdll.dll_NtQuerySystemInformation
cmp eax, 0xc0000004
je 0x140014b8a
test eax, eax
js 0x140014d68
test rdi, rdi
je 0x140014d82
cmp dword [rdi], 0
je 0x140014d6d
mov r14, rdi
add r14, 0x30
xor r15d, r15d
movaps xmm6, xmmword [0x140046780]
lea rbp, [rsp + 0x28]
movzx r13d, word [r14 - 2]
add r13, r14
mov qword [rsp + 0x28], 0
movups xmmword [rsp + 0x38], xmm6
mov byte [rsp + 0x28], 0
mov rcx, r13
call fcn.140026a30
mov rsi, rax
cmp rax, 0xf
jbe 0x140014c7f
test rsi, rsi
js 0x140014da4
mov rbp, r12
mov rax, rsi
or rax, 0xf
movabs rcx, 0x8000000000000000
movabs r12, 0x7fffffffffffffff
js 0x140014c78
mov r12, rax
cmp rax, 0x16
ja 0x140014c67
mov r12d, 0x16
lea rcx, [r12 + 1]
cmp r12, 0xfff
jb 0x140014c9e
mov r12, rax
call fcn.140008be5
jmp 0x140014ca3
mov qword [rsp + 0x38], rsi
mov rcx, rbp
mov rdx, r13
mov r8, rsi
call fcn.14001b150
mov byte [rsp + rsi + 0x28], 0
mov rbx, qword [rsp + 0x28]
jmp 0x140014ccf
call fcn.14001570c
mov rbx, rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r12
mov rcx, rax
mov rdx, r13
mov r8, rsi
call fcn.14001b150
mov byte [rbx + rsi], 0
mov qword [rsp + 0x28], rbx
mov r12, rbp
lea rbp, [rsp + 0x28]
cmp qword [r12 + 0x18], 0xf
mov rdx, r12
jbe 0x140014cde
mov rdx, qword [r12]
cmp qword [rsp + 0x40], 0xf
cmovbe rbx, rbp
mov rcx, rbx
call fcn.140021de0
mov esi, eax
test eax, eax
jne 0x140014d10
mov rax, qword [r14 - 0x18]
mov qword [rsp + 0x48], rax
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rax, qword [rsp + 0x40]
cmp rax, 0x10
jb 0x140014d4d
mov rcx, qword [rsp + 0x28]
lea rdx, [rax + 1]
cmp rdx, 0x1000
jb 0x140014d48
mov rbx, qword [rcx - 8]
add rcx, 0xfffffffffffffff8
sub rcx, rbx
cmp rcx, 0x20
jae 0x140014da9
add rax, 0x28
mov rdx, rax
mov rcx, rbx
call fcn.140015750
test esi, esi
je 0x140014d86
inc r15
mov eax, dword [rdi]
add r14, 0x128
cmp r15, rax
jb 0x140014c03
jmp 0x140014d6d
test rdi, rdi
je 0x140014d82
xor esi, esi
mov rcx, rdi
xor edx, edx
mov r8d, 0x8000
call qword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x140014d8b
xor esi, esi
jmp 0x140014d8b
mov rsi, qword [rsp + 0x48]
mov rax, rsi
movaps xmm6, xmmword [rsp + 0x50]
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call fcn.140008bd4
call fcn.1400215e4
int3
Function at 0x140014e0c
Capabilities:
Enumerate pe sections

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r14, r8
mov r12, rdx
mov r13, rcx
call fcn.140026a30
mov rsi, rax
movsxd rax, dword [r12 + 0x3c]
movzx ebx, word [rax + r12 + 6]
test rbx, rbx
je 0x140014e9d
movzx ecx, word [rax + r12 + 0x14]
add rax, r12
lea rdi, [rcx + rax]
add rdi, 0x18
xor r15d, r15d
xor ebp, ebp
mov rcx, rdi
mov rdx, r13
mov r8, rsi
call fcn.14001b050
test eax, eax
jne 0x140014e72
mov rcx, rdi
call fcn.140026a30
cmp rsi, rax
je 0x140014e80
inc rbp
add rdi, 0x28
cmp rbp, rbx
jb 0x140014e53
jmp 0x140014ea0
mov eax, dword [rdi + 0xc]
test eax, eax
je 0x140014e9d
test r14, r14
je 0x140014e95
mov eax, dword [rdi + 8]
mov dword [r14], eax
mov eax, dword [rdi + 0xc]
mov r15d, eax
add r15, r12
jmp 0x140014ea0
xor r15d, r15d
mov rax, r15
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x14001e7d4
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14001e91c

Function at 0x1400221a0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1400221c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.140020c2c
or eax, 0xffffffff
jmp 0x1400221c2
xor eax, eax
add rsp, 0x28
ret

Function at 0x140031aac
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14002af68
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140031b4d
cmp ebx, dword [rsp + 0x30]
je 0x140031b46
test esi, esi
je 0x140031b46
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140031b21
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140031b2e
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x140031b0b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140031b32
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140031b4f
mov eax, 1
jmp 0x140031b4f
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400325ec
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.140015a40
sub rsp, rax
mov rax, qword [0x140062788]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002f0f8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003263b
mov rax, rbp
jmp 0x140032743
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 + 0x64ed0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14003231c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x64ed0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003273f
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 0x14003273f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14003231c
test rax, rax
js 0x14003273f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003273f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140032731
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140032731
cmp byte [rcx], 0xd
jne 0x140032717
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140032726
cmp byte [rcx + 1], 0xa
jne 0x140032726
inc rcx
jmp 0x140032726
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x632c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400326f9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140032743
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140015aa0
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 0x140032fd4
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 0x14003305b
mov rsi, rbx
cmp word [rax], bp
je 0x14003301a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140033004
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140033000
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14002ad38
mov rdi, rax
test rax, rax
je 0x140033048
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14001b150
mov rbp, rdi
xor ecx, ecx
call fcn.14002acfc
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
Function at 0x140035064
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003507a
mov al, 1
jmp 0x1400350da
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003508b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400350d8
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400334cc
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400350d8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400350d8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400350d8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400350da
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140035b0c
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, [0x140064ed0]
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 0x140035b63
cmp word [rdx], r13w
jne 0x140035b63
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140035b68
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140035c8d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140035cae
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140035ba1
mov rdx, r9
mov word [rbx], cx
jmp 0x140035bc8
cmp r9, r8
jae 0x140035bd8
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 0x140035b82
jmp 0x140035c8d
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 0x140035c82
cmp dword [rsp + 0x80], esi
je 0x140035c82
lea r8, [0x140064ed0]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140035c5a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140035c2a
mov word [rbx], r13w
jmp 0x140035c8a
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 0x140035c37
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140035c8a
cmp word [rsp + 0x70], r13w
jne 0x140035c67
cmp rbx, r14
je 0x140035c24
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140032278
cmp word [rsp + 0x70], r13w
je 0x140035c8d
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, [0x140064ed0]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140035c87
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140035c8d
Function at 0x14003c6ec
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.140032278
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140032278
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14003c83c
cmp rax, 0xffffffffffffffff
je 0x14003c83c
xor edi, edi
test rbp, rbp
jle 0x14003c7e7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002c178
mov rbx, rax
test rax, rax
jne 0x14003c774
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14003c7dd
mov edx, 0x8000
mov ecx, r14d
call fcn.140021cc8
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.140033f5c
cmp eax, 0xffffffff
je 0x14003c7bd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x14003c784
mov edx, r15d
mov ecx, r14d
call fcn.140021cc8
jmp 0x14003c7dd
cmp byte [rsi + 0x38], dil
je 0x14003c7d4
cmp dword [rsi + 0x34], 5
jne 0x14003c7d4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14003c7dd
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14002acfc
jmp 0x14003c850
jns 0x14003c850
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140032278
cmp rax, 0xffffffffffffffff
jne 0x14003c808
cmp byte [rsi + 0x30], dil
je 0x14003c850
mov edi, dword [rsi + 0x2c]
jmp 0x14003c850
mov ecx, r14d
call fcn.1400334cc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x14003c850
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 0x14003c850
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x14003c849
mov eax, dword [rsi + 0x2c]
jmp 0x14003c84e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140032278
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