joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400658c0
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], 0x4ef94ed8
mov dword [rbp - 0x4c], 0x4ef14eed
mov dword [rbp - 0x48], 0x4ef64ef5
mov dword [rbp - 0x44], 0x4eb34efa
mov dword [rbp - 0x40], 0x4eb04ea8
mov dword [rbp - 0x3c], 0x4eaf
xor r13d, r13d
mov edx, r13d
mov r8d, 0x4e95
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 0x140065920
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 0x140065ac1
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 0x140065ab8
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.140067d30
mov rsi, qword [rbp - 0x30]
mov rcx, rsi
mov rdi, qword [rbp - 0x38]
sub rcx, rdi
cmp rcx, 0x1000
jbe 0x1400659c7
lea rsi, [rdi + 0x1000]
jmp 0x140065a03
jae 0x140065a07
mov rax, qword [rbp - 0x28]
sub rax, rdi
cmp rax, 0x1000
jae 0x1400659eb
lea rcx, [rbp - 0x38]
call fcn.140068a60
mov rsi, qword [rbp - 0x30]
mov rdi, qword [rbp - 0x38]
jmp 0x140065a07
mov ebx, 0x1000
sub rbx, rcx
mov r8, rbx
xor edx, edx
mov rcx, rsi
call fcn.140079fc0
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 0x140065a52
mov eax, dword [rbp + 0x40]
test eax, eax
je 0x140065a58
lea r9, [rdi + rax]
mov r8, rdi
mov rdx, qword [rbp - 0x18]
lea rcx, [rbp - 0x20]
call fcn.1400685a0
cmp dword [rbp + 0x40], 0
jne 0x140065a20
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 0x140065acc
mov rdx, qword [rbp - 0x28]
sub rdx, rdi
mov rax, rdi
cmp rdx, 0x1000
jb 0x140065aae
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140065af0
mov rcx, rdi
call fcn.140077488
jmp 0x140065acc
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.1400870b4
int3
Function at 0x140069900
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], 0x4efe4ed6
mov word [rbp - 5], ax
xor edi, edi
mov rbx, rcx
mov dword [rbp - 0x25], 0x4ef74ee5
mov dword [rbp - 0x21], 0x4eff4ef4
mov r8d, 0x4e95
mov dword [rbp - 0x1d], 0x4ecb4ec4
mov dword [rbp - 0x19], 0x4efa4ef4
mov dword [rbp - 0x15], 0x4ec54ef8
mov dword [rbp - 0x11], 0x4ef54ed5
mov dword [rbp - 0xd], 0x4eca4eca
mov dword [rbp - 9], 0x4e974efa
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 0x140069970
lea rax, [rbp - 0x29]
mov qword [rbp + 7], 0x50
mov qword [rbx + 0x90], rax
mov edx, 0x7f00
lea rax, [0x14006bc00]
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, [0x1400ba190]
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 0x140069a7b
lea rdx, [0x1400cad00]
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 0x14006f710
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 [0x14011d988], eax
jle 0x14006f841
lea rcx, [0x14011d988]
call fcn.1400779a0
cmp dword [0x14011d988], 0xffffffff
jne 0x14006f841
movdqa xmm0, xmmword [0x1400bb040]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xc9f3ced1
mov word [rsp + 0x44], 0xce
xor edx, edx
nop dword [rax]
nop word [rax + rax]
movsxd rax, edx
lea rcx, [rsp + 0x30]
add rcx, rax
lea eax, [rdx - 0x6b]
xor byte [rcx], al
inc edx
cmp edx, 0x15
jb 0x14006f780
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 0x14006f7d0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x48]
call fcn.14000b760
nop
lea r8, [rsp + 0x48]
call fcn.14006fc50
mov qword [0x14011d9a0], rax
mov rdx, qword [rsp + 0x60]
cmp rdx, 0x10
jb 0x14006f835
inc rdx
mov rcx, qword [rsp + 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006f82f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14006f87c
call fcn.140077488
nop
lea rcx, [0x14011d988]
call fcn.140077940
cmp qword [0x14011d9a0], 0
je 0x14006f875
mov qword [rsp + 0x90], 0
lea rdx, [rsp + 0x90]
call fcn.1400707b0
test al, al
je 0x14006f875
mov rax, qword [rsp + 0x90]
add rsp, 0x78
ret
xor eax, eax
add rsp, 0x78
ret
call fcn.1400870b4
nop
int3
Function at 0x140070350
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.140077e50
sub rsp, rax
xor ebp, ebp
mov r14, r8
mov r13, rcx
test r9, r9
jne 0x140070380
mov r8d, ebp
jmp 0x1400704c3
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 [0x14011d5c0]
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 0x1400704a8
movzx eax, byte [rsp + 0x5c]
inc rbx
mov byte [rdi], al
cmp rbx, 0x1000
jb 0x1400703b0
mov rdi, 0xffffffffffffffff
nop
inc rdi
cmp byte [r14 + rdi], bpl
jne 0x140070440
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 0x1400704a8
mov eax, esi
mov r8, rdi
mov rdx, r14
lea rcx, [rax + rax*4]
lea rbx, [r12 + rcx*8]
mov rcx, rbx
call fcn.14007a160
test eax, eax
jne 0x1400704a1
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rbx + rax], bpl
jne 0x140070493
cmp rdi, rax
je 0x1400704ef
inc esi
cmp esi, r15d
jb 0x140070470
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.140070110
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 0x1400704a8
mov ecx, dword [rbx + 8]
mov edx, eax
lea rax, [rsp + 0x70]
add rax, rdx
je 0x1400704a8
test ecx, ecx
je 0x1400704a8
mov r8, qword [rsp + 0x10b8]
mov ebp, ecx
add r8, rdx
jmp 0x1400704ab

Function at 0x140070780
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x4e95
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 0x140070790
mov word [rcx + 0x14], r10w
mov rax, rcx
ret
Function at 0x140072500
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, [0x14011b468]
lea r8, [0x140117da0]
call fcn.1400685a0
movsxd rdx, ebx
add rdx, qword [rdi]
lea eax, [rbx + 0x64]
xor byte [rdx], al
inc ebx
cmp ebx, 0x36c8
jb 0x140072540
mov rax, rdi
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140072570
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 0x1400725f5
test rbx, rbx
je 0x1400725bd
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 0x1400725a7
test eax, eax
jns 0x140072624
test rbx, rbx
je 0x14007260f
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 0x14007260f
mov edi, ebp
cmp dword [rbx], ebp
jbe 0x1400725fe
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 0x140072662
lea rcx, [rsp + 0x20]
call fcn.14000b760
mov rdx, r14
cmp qword [r14 + 0x18], 0x10
jb 0x140072683
mov rdx, qword [r14]
lea rcx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0x10
cmovae rcx, qword [rsp + 0x20]
call fcn.14008ba54
test eax, eax
je 0x1400726e5
mov rdx, qword [rsp + 0x38]
cmp rdx, 0x10
jb 0x1400726d6
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400726d1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072743
call fcn.140077488
inc edi
cmp edi, dword [rbx]
jb 0x140072630
jmp 0x1400725fe
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 0x14007273b
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140072736
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072743
call fcn.140077488
mov rax, rdi
jmp 0x140072611
call fcn.1400870b4
int3
Function at 0x1400741e0
Capabilities:
Encode data using xor

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x14011d750]
test rax, rax
jne 0x140074310
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 [0x14011da18], eax
jle 0x1400742ac
lea rcx, [0x14011da18]
call fcn.1400779a0
cmp dword [0x14011da18], 0xffffffff
jne 0x1400742ac
xor eax, eax
mov dword [rbp - 0x20], 0x4eff4ee2
mov word [rbp - 0xc], ax
mov r8d, ebx
mov dword [rbp - 0x1c], 0x4eab4ef9
mov r9d, 0x4e95
mov dword [rbp - 0x18], 0x4eef4eab
mov dword [rbp - 0x14], 0x4ef84eb5
mov dword [rbp - 0x10], 0x4ef24ef1
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 0x140074270
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], bx
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rcx, [0x14011da18]
mov qword [0x14011da10], rax
call fcn.140077940
mov rcx, qword [0x14011da10]
xor eax, eax
test rcx, rcx
je 0x14007430b
movdqa xmm0, xmmword [0x1400bae80]
movdqu xmmword [rbp - 0x20], xmm0
mov dword [rbp - 0x10], 0xcec9c9e6
mov word [rbp - 0xc], 0xcdc0
mov byte [rbp - 0xa], al
nop word [rax + rax]
movsxd rax, ebx
lea rdx, [rbp - 0x20]
add rdx, rax
lea eax, [rbx - 0x6b]
inc ebx
xor byte [rdx], al
cmp ebx, 0x16
jb 0x1400742e0
lea rdx, [rbp - 0x20]
mov byte [rbp - 0xa], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14011d750], rax
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rbp
ret

Function at 0x140074940
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x68
xor eax, eax
mov dword [rsp + 0x40], 0x4eca4ec9
mov word [rsp + 0x58], ax
xor r9d, r9d
mov dword [rsp + 0x44], 0x4ec44eb9
mov r8d, 0x4e95
mov dword [rsp + 0x48], 0x4ece4ecb
mov dword [rsp + 0x4c], 0x4ef34ed8
mov dword [rsp + 0x50], 0x4efb4eef
mov dword [rsp + 0x54], 0x4e944ea9
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 0x140074990
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 [0x14011d5c0], rax
setne al
add rsp, 0x68
ret
Function at 0x140075780
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x4e95
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 0x140075790
mov word [rcx + 0x68], r10w
mov rax, rcx
ret

Function at 0x1400757b0
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x4e95
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 0x1400757c0
mov word [rcx + 8], r10w
mov rax, rcx
ret

Function at 0x1400757e0
Capabilities:
Encode data using xor

Disassembly:
xor r10d, r10d
mov r9d, 0x4e95
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 0x1400757f0
mov word [rcx + 0x44], r10w
mov rax, rcx
ret

Function at 0x14008744c
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.140077e50
sub rsp, rax
mov rax, qword [0x1400ca0a8]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140092390
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14008749b
mov rax, rbp
jmp 0x1400875a3
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 + 0x11ca30]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140097de4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x11ca30]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14008759f
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 0x14008759f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140097de4
test rax, rax
js 0x14008759f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14008759f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140087591
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140087591
cmp byte [rcx], 0xd
jne 0x140087577
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140087586
cmp byte [rcx + 1], 0xa
jne 0x140087586
inc rcx
jmp 0x140087586
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xca4a0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140087559
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400875a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140077e20
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 0x14008b9f0
Capabilities:
Delete file

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

Function at 0x14008fa58
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14008f854
Function at 0x1400924b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400924c6
mov al, 1
jmp 0x140092526
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400924d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140092524
mov ecx, dword [rcx + 0x18]
nop
call fcn.14009cf48
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140092524
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140092524
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140092524
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140092526
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140097184
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, [0x14011ca30]
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 0x1400971db
cmp word [rdx], r13w
jne 0x1400971db
or byte [rax + rdi*8 + 0x38], cl
jmp 0x1400971e0
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140097305
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140097326
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140097219
mov rdx, r9
mov word [rbx], cx
jmp 0x140097240
cmp r9, r8
jae 0x140097250
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 0x1400971fa
jmp 0x140097305
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 0x1400972fa
cmp dword [rsp + 0x80], esi
je 0x1400972fa
lea r8, [0x14011ca30]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x1400972d2
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400972a2
mov word [rbx], r13w
jmp 0x140097302
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 0x1400972af
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140097302
cmp word [rsp + 0x70], r13w
jne 0x1400972df
cmp rbx, r14
je 0x14009729c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140097dec
cmp word [rsp + 0x70], r13w
je 0x140097305
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, [0x14011ca30]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x1400972ff
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140097305
Function at 0x14009c294
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 0x14009c31b
mov rsi, rbx
cmp word [rax], bp
je 0x14009c2da
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14009c2c4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14009c2c0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140094488
mov rdi, rax
test rax, rax
je 0x14009c308
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140079910
mov rbp, rdi
xor ecx, ecx
call fcn.140094004
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