joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400659a0
Capabilities:
Create http request
Encode data using xor
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rbx, rdx
mov r14, rcx
mov dword [rbp - 0x50], 0x6fb06f93
mov dword [rbp - 0x4c], 0x6f886f9a
mov dword [rbp - 0x48], 0x6f8f6f8e
mov dword [rbp - 0x44], 0x6fca6f85
mov dword [rbp - 0x40], 0x6fc96fd3
mov dword [rbp - 0x3c], 0x6fd8
xor r13d, r13d
mov edx, r13d
mov r8d, 0x6fde
nop
movsxd rax, edx
lea rcx, [rbp - 0x50]
lea rcx, [rcx + rax*2]
lea eax, [r8 + rdx]
xor word [rcx], ax
inc edx
cmp edx, 0xb
jb 0x140065a00
mov word [rbp - 0x3a], r13w
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
lea rcx, [rbp - 0x50]
call qword [sym.imp.WININET.dll_InternetOpenW]
mov r12, rax
test rax, rax
je 0x140065ba1
mov qword [rsp + 0x28], r13
mov dword [rsp + 0x20], 0x4000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetOpenUrlW]
mov r15, rax
test rax, rax
je 0x140065b98
mov dword [rbp + 0x40], r13d
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], r13
mov qword [rbp - 0x28], r13
lea rcx, [rbp - 0x38]
call fcn.140067e10
mov rsi, qword [rbp - 0x30]
mov rcx, rsi
mov rdi, qword [rbp - 0x38]
sub rcx, rdi
cmp rcx, 0x1000
jbe 0x140065aa7
lea rsi, [rdi + 0x1000]
jmp 0x140065ae3
jae 0x140065ae7
mov rax, qword [rbp - 0x28]
sub rax, rdi
cmp rax, 0x1000
jae 0x140065acb
lea rcx, [rbp - 0x38]
call fcn.140068b40
mov rsi, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x38]
jmp 0x140065ae7
mov ebx, 0x1000
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.14007b990
add rsi, rbx
mov qword [rbp - 0x30], rsi
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], r13
sub rsi, rdi
nop word [rax + rax]
lea r9, [rbp + 0x40]
mov r8d, esi
mov rdx, rdi
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x140065b32
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x140065b38
lea r9, [rdi + rax]
mov r8, rdi
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.140068680
cmp dword [rbp + 0x40], 0
jne 0x140065b00
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, r15
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rax, qword [rbp - 0x20]
mov qword [r14], rax
mov rax, qword [rbp - 0x18]
mov qword [r14 + 8], rax
mov rax, qword [rbp - 0x10]
mov qword [r14 + 0x10], rax
test rdi, rdi
je 0x140065bac
mov rdx, qword [rbp - 0x28]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140065b8e
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065bd0
mov rcx, rdi
call fcn.140078e58
jmp 0x140065bac
mov rcx, r12
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov qword [r14], r13
mov qword [r14 + 8], r13
mov qword [r14 + 0x10], r13
mov rax, r14
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.140088a84
int3
Function at 0x14006ade0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
xor eax, eax
mov dword [rbp - 0x29], 0x6fb76f9d
mov word [rbp - 5], ax
xor edi, edi
mov rbx, rcx
mov dword [rbp - 0x25], 0x6f8e6f92
mov dword [rbp - 0x21], 0x6f866f8f
mov r8d, 0x6fde
mov dword [rbp - 0x1d], 0x6fb26fbb
mov dword [rbp - 0x19], 0x6f836f8f
mov dword [rbp - 0x15], 0x6f8c6f8f
mov dword [rbp - 0x11], 0x6fbc6f9e
mov dword [rbp - 0xd], 0x6f836f85
mov dword [rbp - 9], 0x6fde6fb1
nop word [rax + rax]
movsxd rcx, eax
lea rdx, [rbp - 0x29]
lea rdx, [rdx + rcx*2]
lea ecx, [r8 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0x12
jb 0x14006ae50
lea rax, [rbp - 0x29]
mov qword [rbp + 7], 0x50
mov qword [rbx + 0x90], rax
mov edx, 0x7f00
lea rax, [0x14006d230]
mov qword [rbp + 0x17], rdi
xor ecx, ecx
mov qword [rbp + 0xf], rax
mov qword [rbp + 0x1f], rdi
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp + 0x27], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp + 0x2f], rax
xorps xmm0, xmm0
mov rax, qword [rbx + 0x90]
mov edx, 0x7f00
xor ecx, ecx
mov qword [rbp + 0x47], rax
movdqa xmmword [rbp + 0x37], xmm0
call qword [sym.imp.USER32.dll_LoadIconW]
lea rcx, [rbp + 7]
mov qword [rbp + 0x4f], rax
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov eax, dword [rbx]
lea r8, [0x1400bc1d8]
mov rdx, qword [rbp + 0x47]
mov r9d, 0x90000000
mov qword [rsp + 0x58], rdi
xor ecx, ecx
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
mov eax, dword [rbx + 4]
mov dword [rsp + 0x30], eax
mov eax, dword [rbx + 0x10]
mov dword [rsp + 0x28], eax
mov eax, dword [rbx + 8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov qword [rbx + 0x88], rax
test rax, rax
je 0x14006af5b
lea rdx, [0x1400ccd00]
mov rcx, rax
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [rbx + 0x88]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongW]
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
Function at 0x1400710e0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
sub rsp, 0x78
mov edx, 8
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140124bf8], eax
jle 0x140071211
lea rcx, [0x140124bf8]
call fcn.140079370
cmp dword [0x140124bf8], 0xffffffff
jne 0x140071211
movdqa xmm0, xmmword [0x1400bcd00]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0x90a4879a
mov word [rsp + 0x44], 0x95
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0x22]
xor byte [rcx], al
inc edx
cmp edx, 0x15
jb 0x140071150
mov byte [rsp + 0x45], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0xf
mov byte [rsp + 0x48], 0
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x1400711a0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000b840
nop
lea r8, [rsp + 0x48]
call fcn.140071620
mov qword [0x140124c10], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x140071205
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400711ff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14007124c
call fcn.140078e58
nop
lea rcx, [0x140124bf8]
call fcn.140079310
cmp qword [0x140124c10], 0
je 0x140071245
mov qword [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
call fcn.140072180
test al, al
je 0x140071245
mov rax, qword [rsp + 0x90]
add rsp, 0x78
ret
xor eax, eax
add rsp, 0x78
ret
call fcn.140088a84
nop
int3
Function at 0x140071d20
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push r12
push r13
push r14
push r15
mov eax, 0x1070
call fcn.140079820
sub rsp, rax
xor ebp, ebp
mov r14, r8
mov r13, rcx
test r9, r9
jne 0x140071d50
mov r8d, ebp
jmp 0x140071e93
mov qword [rsp + 0x10a0], rbx
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x10a8], rsi
mov rbx, rbp
mov rsi, r9
mov qword [rsp + 0x10b0], rdi
sub rsi, rcx
nop word [rax + rax]
mov rcx, qword [0x1401247f0]
lea rdi, [rsp + 0x70]
mov qword [rsp + 0x38], rbp
lea r8, [rsp + 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbp
add rdi, rbx
mov dword [rsp + 0x28], 0x30
mov r9d, 0x30
mov qword [rsp + 0x40], rbp
mov edx, 0x80002048
mov qword [rsp + 0x50], rbp
movdqu xmmword [rsp + 0x5c], xmm0
lea rax, [rsi + rdi]
mov dword [rsp + 0x6c], ebp
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x58], 1
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x140071e78
movzx eax, byte [rsp + 0x5c]
inc rbx
mov byte [rdi], al
cmp rbx, 0x1000
jb 0x140071d80
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140071e10
movsxd rax, dword [rsp + 0xac]
lea rcx, [rsp + 0x70]
add rcx, rax
mov esi, ebp
movzx eax, word [rcx + 0x14]
lea r12, [rcx + 0x18]
movzx r15d, word [rcx + 6]
add r12, rax
test r15d, r15d
je 0x140071e78
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.14007bb30
test eax, eax
jne 0x140071e71
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140071e63
cmp rdi, rax
je 0x140071ebf
inc esi
cmp esi, r15d
jb 0x140071e40
mov r8, rbp
mov rsi, qword [rsp + 0x10a8]
mov rbx, qword [rsp + 0x10a0]
mov rdi, qword [rsp + 0x10b0]
mov rax, qword [rsp + 0x10c8]
mov rcx, r13
mov r9d, ebp
mov qword [rsp + 0x28], rax
call fcn.140071ae0
mov rax, r13
add rsp, 0x1070
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov eax, dword [rbx + 0xc]
test eax, eax
je 0x140071e78
mov ecx, dword [rbx + 8]
mov edx, eax
lea rax, [rsp + 0x70]
add rax, rdx
je 0x140071e78
test ecx, ecx
je 0x140071e78
mov r8, qword [rsp + 0x10b8]
mov ebp, ecx
add r8, rdx
jmp 0x140071e7b

Function at 0x140072150
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x6fde
mov eax, r10d
nop dword [rax]
movsxd rdx, eax
lea r8, [rcx + rdx*2]
lea edx, [r9 + rax]
inc eax
xor word [r8], dx
cmp eax, 0xa
jb 0x140072160
mov word [rcx + 0x14], r10w
mov rax, rcx
ret
Function at 0x140073ed0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor ebx, ebx
mov dword [rsp + 0x30], ebx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
mov qword [rcx + 0x10], rbx
mov dword [rsp + 0x30], 1
xor edx, edx
lea r9, [0x140122678]
lea r8, [0x14011efb0]
call fcn.140068680
movsxd rdx, ebx
add rdx, qword [rdi]
lea eax, [rbx + 0x64]
xor byte [rdx], al
inc ebx
cmp ebx, 0x36c8
jb 0x140073f10
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140073f40
Capabilities:
Get system information on windows
Make suspicious ntquerysysteminformation call

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
xor ebp, ebp
mov ebx, ebp
mov dword [rsp + 0x68], ebp
lea r9, [rsp + 0x68]
xor r8d, r8d
xor edx, edx
lea ecx, [rbp + 0xb]
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
jne 0x140073fc5
test rbx, rbx
je 0x140073f8d
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov edx, dword [rsp + 0x68]
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
lea r9, [rsp + 0x68]
mov r8d, dword [rsp + 0x68]
mov rdx, rax
mov ecx, 0xb
call qword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, 0xc0000004
je 0x140073f77
test eax, eax
jns 0x140073ff4
test rbx, rbx
je 0x140073fdf
mov r8d, 0x8000
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x70]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
test rbx, rbx
je 0x140073fdf
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x140073fce
nop
mov esi, edi
imul rax, rsi, 0x128
movzx ecx, word [rax + rbx + 0x2e]
add rcx, rax
lea rdx, [rbx + 0x30]
add rdx, rcx
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x38], 0xf
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x140074032
lea rcx, [rsp + 0x20]
call fcn.14000b840
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140074053
mov rdx, qword [r14]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call fcn.14008d48c
test eax, eax
je 0x1400740b5
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400740a6
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400740a1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074113
call fcn.140078e58
inc edi
cmp edi, dword [rbx]
jb 0x140074000
jmp 0x140073fce
imul rax, rsi, 0x128
mov rdi, qword [rax + rbx + 0x18]
xor edx, edx
mov r8d, 0x8000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFree]
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x14007410b
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140074106
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140074113
call fcn.140078e58
mov rax, rdi
jmp 0x140073fe1
call fcn.140088a84
int3
Function at 0x140075bb0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x1401249c0]
test rax, rax
jne 0x140075ce0
mov rax, qword gs:[0x58]
mov edx, 8
mov qword [rsp + 0x50], rbx
xor ebx, ebx
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140124c88], eax
jle 0x140075c7c
lea rcx, [0x140124c88]
call fcn.140079370
cmp dword [0x140124c88], 0xffffffff
jne 0x140075c7c
xor eax, eax
mov dword [rbp - 0x20], 0x6fb66fa9
mov word [rbp - 0xc], ax
mov r8d, ebx
mov dword [rbp - 0x1c], 0x6fd26f8e
mov r9d, 0x6fde
mov dword [rbp - 0x18], 0x6f966fd0
mov dword [rbp - 0x14], 0x6f816fca
mov dword [rbp - 0x10], 0x6f8b6f8a
nop word [rax + rax]
movsxd rax, r8d
lea rdx, [rbp - 0x20]
lea rdx, [rdx + rax*2]
lea eax, [r9 + r8]
inc r8d
xor word [rdx], ax
cmp r8d, 0xa
jb 0x140075c40
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], bx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x140124c88]
mov qword [0x140124c80], rax
call fcn.140079310
mov rcx, qword [0x140124c80]
xor eax, eax
test rcx, rcx
je 0x140075cdb
movdqa xmm0, xmmword [0x1400bcd60]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0x979e80ad
mov word [rbp - 0xc], 0x949b
mov byte [rbp - 0xa], al
nop word [rax + rax]
movsxd rax, ebx
lea rdx, [rbp - 0x20]
add rdx, rax
lea eax, [rbx - 0x22]
inc ebx
xor byte [rdx], al
cmp ebx, 0x16
jb 0x140075cb0
lea rdx, [rbp - 0x20]
mov byte [rbp - 0xa], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1401249c0], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret

Function at 0x140076310
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
xor eax, eax
mov dword [rsp + 0x40], 0x6f836f82
mov word [rsp + 0x58], ax
xor r9d, r9d
mov dword [rsp + 0x44], 0x6fbd6fce
mov r8d, 0x6fde
mov dword [rsp + 0x48], 0x6fb76fb0
mov dword [rsp + 0x4c], 0x6f8a6fa7
mov dword [rsp + 0x50], 0x6f826f94
mov dword [rsp + 0x54], 0x6fdd6fde
nop dword [rax]
nop dword [rax + rax]
movsxd rcx, eax
lea rdx, [rsp + 0x40]
lea rdx, [rdx + rcx*2]
lea ecx, [r8 + rax]
inc eax
xor word [rdx], cx
cmp eax, 0xc
jb 0x140076360
mov qword [rsp + 0x30], r9
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x20], 3
mov word [rsp + 0x58], r9w
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x1401247f0], rax
setne al
add rsp, 0x68
ret
Function at 0x140077150
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x6fde
mov eax, r10d
nop dword [rax]
movsxd rdx, eax
lea r8, [rcx + rdx*2]
lea edx, [r9 + rax]
inc eax
xor word [r8], dx
cmp eax, 0x34
jb 0x140077160
mov word [rcx + 0x68], r10w
mov rax, rcx
ret

Function at 0x140077180
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x6fde
mov eax, r10d
nop dword [rax]
movsxd rdx, eax
lea r8, [rcx + rdx*2]
lea edx, [r9 + rax]
inc eax
xor word [r8], dx
cmp eax, 4
jb 0x140077190
mov word [rcx + 8], r10w
mov rax, rcx
ret

Function at 0x1400771b0
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x6fde
mov eax, r10d
nop dword [rax]
movsxd rdx, eax
lea r8, [rcx + rdx*2]
lea edx, [r9 + rax]
inc eax
xor word [r8], dx
cmp eax, 0x22
jb 0x1400771c0
mov word [rcx + 0x44], r10w
mov rax, rcx
ret

Function at 0x140088e1c
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.140079820
sub rsp, rax
mov rax, qword [0x1400cc0a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140093dd0
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140088e6b
mov rax, rbp
jmp 0x140088f73
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 + 0x123c50]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140099824
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x123c50]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140088f6f
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 0x140088f6f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140099824
test rax, rax
js 0x140088f6f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140088f6f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140088f61
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140088f61
cmp byte [rcx], 0xd
jne 0x140088f47
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140088f56
cmp byte [rcx + 1], 0xa
jne 0x140088f56
inc rcx
jmp 0x140088f56
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcc4a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140088f29
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140088f73
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400797f0
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 0x14008d428
Capabilities:
Delete file

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

Function at 0x140091498
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140091294
Function at 0x140093ef0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140093f06
mov al, 1
jmp 0x140093f66
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140093f17
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140093f64
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009ea58
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140093f64
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140093f64
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140093f64
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140093f66
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140098bc4
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, [0x140123c50]
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 0x140098c1b
cmp word [rdx], r13w
jne 0x140098c1b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140098c20
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140098d45
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140098d66
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140098c59
mov rdx, r9
mov word [rbx], cx
jmp 0x140098c80
cmp r9, r8
jae 0x140098c90
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 0x140098c3a
jmp 0x140098d45
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 0x140098d3a
cmp dword [rsp + 0x80], esi
je 0x140098d3a
lea r8, [0x140123c50]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140098d12
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140098ce2
mov word [rbx], r13w
jmp 0x140098d42
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 0x140098cef
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140098d42
cmp word [rsp + 0x70], r13w
jne 0x140098d1f
cmp rbx, r14
je 0x140098cdc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14009982c
cmp word [rsp + 0x70], r13w
je 0x140098d45
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, [0x140123c50]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140098d3f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140098d45
Function at 0x14009dda4
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 0x14009de2b
mov rsi, rbx
cmp word [rax], bp
je 0x14009ddea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009ddd4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009ddd0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140095ec8
mov rdi, rax
test rax, rax
je 0x14009de18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14007b2e0
mov rbp, rdi
xor ecx, ecx
call fcn.140095a44
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