joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14014ca90
Capabilities:
Get file attributes
Map section object

Disassembly:
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x98], rax
mov r12, qword [rsp + 0x110]
xor r13d, r13d
xor sil, sil
mov qword [rsp + 0x68], rdx
mov qword [rsp + 0x58], r13
mov r15, r9
movzx r14d, r8b
mov rdi, rdx
test rdx, rdx
jne 0x14014cb40
test rcx, rcx
jne 0x14014caea
mov eax, 0xc0000030
jmp 0x14014cc60
mov r8d, r13d
mov dword [rsp + 0x30], 0x60
mov eax, 0x106
mov dword [rsp + 0x28], 1
mov rdx, rcx
mov dword [rsp + 0x20], 1
test r14b, r14b
lea rcx, [rsp + 0x68]
mov r9d, 0x80
cmove r8d, eax
or r8d, 0x100081
call sym.ProcessHacker.exe_PhCreateFileWin32
nop dword [rax + rax]
test eax, eax
js 0x14014cc60
mov rdi, qword [rsp + 0x68]
mov sil, 1
mov r9d, 0x18
mov qword [rsp + 0xb0], rbx
lea r8, [rsp + 0x80]
mov dword [rsp + 0x20], 5
lea rdx, [rsp + 0x68]
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtQueryInformationFile]
mov ebx, eax
test eax, eax
js 0x14014cc36
mov rax, qword [rsp + 0x88]
lea r9, [rsp + 0x50]
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x58]
mov qword [rsp + 0xa8], rbp
mov eax, 2
mov qword [rsp + 0x30], rdi
test r14b, r14b
mov ebp, 4
mov dword [rsp + 0x28], 0x8000000
cmovne ebp, eax
mov edx, 0xf001f
xor r8d, r8d
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ntdll.dll_NtCreateSection]
mov ebx, eax
test eax, eax
js 0x14014cc2e
mov rax, qword [rsp + 0x50]
lea r8, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
xor r9d, r9d
mov dword [rsp + 0x48], ebp
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], 1
mov qword [rsp + 0x78], rax
lea rdx, [r9 - 1]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
call qword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
test eax, eax
js 0x14014cc2e
mov rax, qword [rsp + 0x60]
mov qword [r15], rax
mov rax, qword [rsp + 0x50]
mov qword [r12], rax
mov rbp, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x14014cc46
call qword [sym.imp.ntdll.dll_NtClose]
test sil, sil
je 0x14014cc56
mov rcx, rdi
call qword [sym.imp.ntdll.dll_NtClose]
mov eax, ebx
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x98]
xor rcx, rsp
nop dword [rax + rax]
call fcn.140161390
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x14014ce90
Capabilities:
Parse pe header

Disassembly:
push rbx
push rbp
push rdi
push r14
sub rsp, 0x188
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x170], rax
mov r14, r8
mov qword [r9], rdx
mov rdi, r9
mov qword [rsp + 0x20], 0
mov rax, r14
lea r8, [rsp + 0x30]
mov r9d, 0x40
mov rbx, rdx
mov rbp, rcx
call qword [case.0x140101f48.0]
test eax, eax
js 0x14014d01a
mov eax, 0x5a4d
cmp word [rsp + 0x30], ax
je 0x14014cef9
mov eax, 0xc000012f
jmp 0x14014d01a
mov ecx, dword ds:[rsp + 0x6c]
mov qword [rsp + 0x180], rsi
lea eax, [rcx - 1]
cmp eax, 0xffffffe
ja 0x14014d00d
lea rsi, [rbx + rcx]
mov qword [rsp + 0x20], 0
mov rdx, rsi
lea r8, [rsp + 0x70]
mov r9d, 0xf8
mov rcx, rbp
mov rax, r14
call qword [case.0x140101f48.0]
test eax, eax
js 0x14014d012
cmp dword [rsp + 0x70], 0x4550
jne 0x14014d00d
movzx eax, word [rsp + 0x88]
mov ecx, 0x10b
mov word [rdi + 0x20], ax
sub ax, cx
mov ecx, 0xfeff
test cx, ax
jne 0x14014d00d
movzx eax, word [rsp + 0x76]
mov dword [rdi + 0x10], eax
lea r8d, [rax + rax*4]
movzx eax, word [rsp + 0x84]
lea r8d, [r8 + 3]
lea r8d, [rax + r8*8]
cmp r8d, 0x100000
ja 0x14014d00d
mov rcx, qword [0x140213cd0]
mov edx, 4
mov ebx, r8d
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov qword [rdi + 8], rax
mov r8, rax
mov rax, r14
mov rdx, rsi
mov rcx, rbp
call qword [case.0x140101f48.0]
mov rcx, qword [rdi + 8]
mov ebx, eax
test eax, eax
jns 0x14014cffa
mov r8, rcx
xor edx, edx
mov rcx, qword [0x140213cd0]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, ebx
jmp 0x14014d012
movzx eax, word [rcx + 0x14]
add rcx, 0x18
add rcx, rax
mov qword [rdi + 0x18], rcx
xor eax, eax
jmp 0x14014d012
mov eax, 0xc000007b
mov rsi, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.140161390
add rsp, 0x188
pop r14
pop rdi
pop rbp
pop rbx
ret
Function at 0x14014e1a0
Capabilities:
Initialize winhttp library

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov ebp, 4
mov rbx, rdx
mov rsi, rcx
mov edx, ebp
mov rcx, qword [0x140213cd0]
lea r8d, [rbp + 0x1c]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
xorps xmm0, xmm0
mov dword [rsp + 0x20], 0
xor edx, edx
mov rcx, rbx
mov rdi, rax
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
cmovae edx, ebp
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.WINHTTP.dll_WinHttpOpen]
mov qword ds:[rdi], rax
test rax, rax
jne 0x14014e226
mov rcx, qword [0x140213cd0]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x3f
lea r8, [rsp + 0x70]
mov r9d, ebp
mov edx, 0x54
mov rcx, rax
jae 0x14014e249
mov dword [rsp + 0x70], 0xa00
jmp 0x14014e296
mov dword [rsp + 0x70], 0x2a00
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rcx, qword [rdi]
lea r8, [rsp + 0x78]
mov r9d, ebp
mov dword [rsp + 0x78], 3
mov edx, 0x76
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
cmp dword [sym.ProcessHacker.exe_WindowsVersion], 0x64
jb 0x14014e29c
mov rcx, qword [rdi]
lea r8, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov r9d, ebp
mov edx, 0x85
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov rbx, qword [rsp + 0x60]
mov al, 1
mov qword [rsi], rdi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x14014e340
Capabilities:
Prepare http request

Disassembly:
push rbx
sub rsp, 0x40
mov r10d, r9d
mov rbx, rcx
mov rcx, qword [rcx + 8]
and r10d, 1
shl r10d, 0x17
mov eax, r10d
bts eax, 8
and r9b, 2
cmove eax, r10d
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor eax, eax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpOpenRequest]
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x14014e395
add rsp, 0x40
pop rbx
ret
mov r9d, 4
mov dword [rsp + 0x50], 8
lea r8, [rsp + 0x50]
mov rcx, rax
lea edx, [r9 + 0x3b]
call qword [sym.imp.WINHTTP.dll_WinHttpSetOption]
mov al, 1
add rsp, 0x40
pop rbx
ret

Function at 0x14014e400
Capabilities:
Receive http response

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 0x10]
xor edx, edx
call qword [sym.imp.WINHTTP.dll_WinHttpReceiveResponse]
test eax, eax
setne al
add rsp, 0x28
ret

Function at 0x14014e460
Capabilities:
Set http header

Disassembly:
sub rsp, 0x28
mov rcx, qword ds:[rcx + 0x10]
mov eax, r8d
test eax, eax
mov r8d, 0xffffffff
mov r9d, 0xa0000000
cmovne r8d, eax
call qword [sym.imp.WINHTTP.dll_WinHttpAddRequestHeaders]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x14014e490
Capabilities:
Read http header

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x30
xor ebp, ebp
lea rax, [rsp + 0x50]
mov rsi, rcx
mov qword [rsp + 0x28], rbp
mov rcx, qword [rcx + 0x10]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x50], ebp
lea edx, [rbp + 0x16]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
jne 0x14014e4d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
cmp eax, 0x7a
jne 0x14014e545
mov rdx, qword [0x140213b58]
mov qword [rsp + 0x60], rbx
mov ebx, dword [rsp + 0x50]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rsp + 0x28], rbp
xor r8d, r8d
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
lea rax, [rsp + 0x50]
mov word [rcx + rbx], bp
lea edx, [r8 + 0x16]
mov r9, qword [rdi + 8]
mov rcx, qword [rsi + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rbx, qword [rsp + 0x60]
test eax, eax
jne 0x14014e54f
lea rcx, [rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14014e545
call fcn.140106290
xor eax, eax
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret
mov rax, rdi
add rsp, 0x30
pop rdi
pop rsi
pop rbp
ret

Function at 0x14014e560
Capabilities:
Read http header

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
xor r14d, r14d
lea rax, [rsp + 0x50]
mov rsi, rdx
mov qword [rsp + 0x28], r14
mov rbp, rcx
mov qword [rsp + 0x20], rax
mov rcx, qword [rcx + 0x10]
mov r8, rdx
xor r9d, r9d
mov dword [rsp + 0x50], r14d
mov edx, 0xffff
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
nop
test eax, eax
jne 0x14014e5af
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14014e62a
mov rdx, qword [0x140213b58]
mov qword [rsp + 0x58], rbx
mov ebx, dword [rsp + 0x50]
lea rcx, [rbx + 0x12]
call sym.ProcessHacker.exe_PhCreateObject
mov rdi, rax
mov qword [rsp + 0x28], r14
mov r8, rsi
mov edx, 0xffff
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
lea rax, [rsp + 0x50]
mov word [rcx + rbx], r14w
mov r9, qword [rdi + 8]
mov rcx, qword [rbp + 0x10]
mov qword [rsp + 0x20], rax
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
mov rbx, qword [rsp + 0x58]
test eax, eax
jne 0x14014e63a
lea rcx, ds:[rdi - 0x10]
mov eax, 0xffffffff
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14014e62a
call fcn.140106290
xor eax, eax
mov rbp, qword [rsp + 0x68]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
mov rbp, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14014e650
Capabilities:
Read http header

Disassembly:
push rbx
sub rsp, 0x30
mov rcx, qword [rcx + 0x10]
mov eax, edx
mov r10d, edx
mov dword [rsp + 0x58], 4
and al, 1
mov rbx, r8
xor r8d, r8d
neg al
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x58]
mov dword [rsp + 0x40], r8d
sbb r9d, r9d
mov qword [rsp + 0x20], rax
and r9d, 5
mov edx, r9d
or edx, 0x13
and r10b, 2
cmove edx, r9d
lea r9, [rsp + 0x40]
bts edx, 0x1d
call qword [sym.imp.WINHTTP.dll_WinHttpQueryHeaders]
test eax, eax
je 0x14014e6bb
mov eax, dword [rsp + 0x40]
mov dword [rbx], eax
mov al, 1
add rsp, 0x30
pop rbx
ret
xor al, al
add rsp, 0x30
pop rbx
ret

Function at 0x14014e7d0
Capabilities:
Receive http response

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov eax, 0x1040
call fcn.140182db0
sub rsp, rax
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x1030], rax
mov r14, r8
mov r15, rdx
mov rbp, rcx
mov edi, 0x1000
mov rcx, qword [0x140213cd0]
mov r8d, edi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
lea r9, [rsp + 0x20]
mov r8d, edi
lea rdx, [rsp + 0x30]
mov rcx, rbp
mov rsi, rax
xor ebx, ebx
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
je 0x14014e8cb
mov ecx, dword [rsp + 0x20]
test ecx, ecx
je 0x14014e8a8
lea eax, ds:[rcx + rbx]
cmp edi, eax
jae 0x14014e875
mov rcx, qword [0x140213cd0]
add edi, edi
mov r9d, edi
mov r8, rsi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov ecx, dword [rsp + 0x20]
mov rsi, rax
mov r8d, ecx
lea rdx, [rsp + 0x30]
mov ecx, ebx
add rcx, rsi
call fcn.140165120
add ebx, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov r8d, 0x1000
lea rdx, [rsp + 0x30]
mov rcx, rbp
call qword [sym.imp.WINHTTP.dll_WinHttpReadData]
test eax, eax
jne 0x14014e841
lea eax, [rbx + 1]
cmp edi, eax
jae 0x14014e8cb
mov rcx, qword [0x140213cd0]
lea r9d, [rdi + 1]
mov r8, rsi
mov edx, 4
call qword [sym.imp.ntdll.dll_RtlReAllocateHeap]
mov rsi, rax
mov byte ds:[rbx + rsi], 0
test ebx, ebx
je 0x14014e902
test r15, r15
je 0x14014e8de
mov qword [r15], rsi
jmp 0x14014e8f6
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r14, r14
je 0x14014e8fe
mov dword [r14], ebx
mov al, 1
jmp 0x14014e918
mov rcx, qword [0x140213cd0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
xor al, al
mov rcx, qword [rsp + 0x1030]
xor rcx, rsp
call fcn.140161390
mov rbx, qword [rsp + 0x1088]
add rsp, 0x1040
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140154be0
Capabilities:
Hash data using sha1

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov edi, dword [rcx + 0x30]
mov eax, 0x38
mov r8d, edi
mov rsi, rdx
and r8d, 0x3f
mov rbp, rcx
sub eax, r8d
lea rcx, [rsp + 0x21]
mov ebx, 0x78
sub ebx, r8d
cmp r8d, 0x38
cmovb ebx, eax
xor edx, edx
lea eax, [rbx - 1]
movsxd r8, eax
call fcn.140163170
mov ecx, dword [rbp + 0x2c]
lea rdx, [rsp + 0x20]
shl ecx, 3
lea r8d, [rbx + 8]
movsxd rax, ebx
add rdx, rax
mov byte [rsp + 0x20], 0x80
mov eax, edi
shr eax, 0x1d
or ecx, eax
lea eax, [rdi*8]
bswap ecx
mov dword [rdx], ecx
mov rcx, rbp
bswap eax
mov dword [rdx + 4], eax
lea rdx, [rsp + 0x20]
call fcn.140154af0
mov ecx, dword [rbp + 0x18]
mov edx, ecx
and edx, 0xff0000
mov eax, ecx
shr eax, 0x10
or edx, eax
mov eax, ecx
shr edx, 8
and ecx, 0xff00
shl eax, 0x10
or eax, ecx
shl eax, 8
or edx, eax
mov dword [rsi], edx
mov ecx, dword [rbp + 0x1c]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x1f]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rsi + 4], edx
mov ecx, dword [rbp + 0x20]
mov edx, ecx
shl edx, 0x10
mov eax, ecx
and eax, 0xff00
shr ecx, 8
or edx, eax
and ecx, 0xff00
movzx eax, byte [rbp + 0x23]
shl edx, 8
or edx, ecx
or edx, eax
mov dword [rsi + 8], edx
mov ecx, dword [rbp + 0x24]
mov edx, ecx
and edx, 0xff00
mov eax, ecx
shl eax, 0x10
or edx, eax
shl edx, 8
movzx eax, byte [rbp + 0x27]
shr ecx, 8
and ecx, 0xff00
or edx, ecx
or edx, eax
mov dword [rsi + 0xc], edx
mov ecx, dword [rbp + 0x28]
mov eax, ecx
and eax, 0xff00
mov edx, ecx
shl edx, 0x10
or edx, eax
shr ecx, 8
movzx eax, byte [rbp + 0x2b]
and ecx, 0xff00
shl edx, 8
or edx, eax
or edx, ecx
mov dword [rsi + 0x10], edx
xor eax, eax
mov qword [rbp + 0x2c], rax
mov dword [rbp + 0x18], 0x67452301
mov dword [rbp + 0x1c], 0xefcdab89
mov dword [rbp + 0x20], 0x98badcfe
mov dword [rbp + 0x24], 0x10325476
mov dword [rbp + 0x28], 0xc3d2e1f0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140161390
mov rbx, qword [rsp + 0xb0]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401558e0
Capabilities:
Write file on windows

Disassembly:
mov eax, 0x2098
call fcn.140182db0
sub rsp, rax
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x2080], rax
lea rax, ds:[rsp + 0x78]
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x68], rax
lea rdx, [rsp + 0x60]
lea rax, [rsp + 0x2078]
xor r9d, r9d
mov qword [rsp + 0x70], rax
lea rax, [0x140211620]
mov qword [rsp + 0x28], rax
lea rax, [0x140155f30]
mov qword [rsp + 0x20], rax
call fcn.140158310
test eax, eax
js 0x1401559fe
mov rax, qword [rsp + 0x68]
jle 0x140155982
cmp rax, qword [rsp + 0x70]
jb 0x140155972
lea rcx, [rsp + 0x60]
call fcn.140156020
test eax, eax
js 0x1401559fe
mov rax, qword [rsp + 0x68]
mov byte [rax], 0xa
mov rax, qword [rsp + 0x68]
inc rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x2090], rbx
lea rcx, [rsp + 0x78]
xor ebx, ebx
cmp rax, rcx
je 0x1401559dc
mov qword [rsp + 0x40], rbx
lea rcx, [rsp + 0x60]
sub eax, ecx
mov qword [rsp + 0x38], rbx
mov rcx, qword [rsp + 0x60]
sub eax, 0x18
mov dword [rsp + 0x30], eax
xor r9d, r9d
lea rax, [rsp + 0x78]
xor r8d, r8d
mov qword [rsp + 0x28], rax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
setns bl
dec ebx
mov eax, ebx
mov rbx, qword [rsp + 0x2090]
mov rcx, qword [rsp + 0x2080]
xor rcx, rsp
call fcn.140161390
add rsp, 0x2098
ret
mov eax, 0xffffffff
mov rcx, qword [rsp + 0x2080]
xor rcx, rsp
call fcn.140161390
add rsp, 0x2098
ret

Function at 0x140155f90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x140156004
xor eax, eax
lea rdi, [rcx + 0x18]
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [rsp + 0x40], rax
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor edx, edx
mov dword [rsp + 0x30], 0x2000
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x140156004
mov rax, qword [rsp + 0x58]
test rax, rax
je 0x140156004
add rax, 0x18
mov qword [rbx + 8], rdi
add rax, rbx
mov qword [rbx + 0x10], rax
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xffffffff
add rsp, 0x60
pop rdi
ret

Function at 0x140156020
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x60
mov rbx, rcx
test rcx, rcx
je 0x140156089
mov rax, qword [rcx + 8]
lea rdi, [rcx + 0x18]
cmp rax, rdi
je 0x14015607c
xor ecx, ecx
sub eax, ebx
mov qword [rsp + 0x40], rcx
sub eax, 0x18
mov qword [rsp + 0x38], rcx
xor r9d, r9d
mov rcx, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], eax
xor edx, edx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x140156089
mov qword [rbx + 8], rdi
xor eax, eax
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rbx, qword [rsp + 0x70]
mov eax, 0xffffffff
add rsp, 0x60
pop rdi
ret
Function at 0x14015ad00
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
movsd qword [rsp + 0x20], xmm3
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14020a008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0xa0]
mov rsi, rdx
mov rdx, qword [rsp + 0x98]
test eax, eax
mov r9, rdx
mov r11d, 0xd
mov r10d, r11d
movabs rbx, 0xfffffffffffff
cmovns r10d, eax
mov rbp, r8
and r9, rbx
shr rdx, 0x34
mov r14, rcx
test edx, edx
jne 0x14015ad74
mov rax, r9
neg rax
sbb ecx, ecx
and ecx, 0xfffffc02
jmp 0x14015ad7a
lea ecx, [rdx - 0x3ff]
mov rax, r9
movabs r8, 0x10000000000000
or rax, r8
mov r15d, 0x2d
test edx, edx
cmovne r9, rax
mov eax, ecx
cdq
mov edi, eax
mov eax, 0x2b
xor edi, edx
sub edi, edx
test ecx, ecx
cmovns r15d, eax
cmp edi, 0xa
jae 0x14015adb4
lea edx, [rax - 0x27]
jmp 0x14015adcf
cmp edi, 0x64
jae 0x14015adc2
mov edx, 5
jmp 0x14015adcf
cmp edi, 0x3e8
sbb rdx, rdx
add rdx, 7
mov rcx, rbp
movsxd r8, r10d
sub rcx, rsi
cmp rcx, r8
jl 0x14015af1b
xor eax, eax
test r10d, r10d
setg al
sub rcx, r8
add rax, rdx
cmp rcx, rax
jl 0x14015af1b
cmp r10d, r11d
jge 0x14015ae35
lea r8, [r9 + r9]
sub r11d, r10d
shl r11d, 2
lea rax, [r8 - 1]
or rax, r9
movzx ecx, r11b
mov edx, 1
shl rdx, cl
and rdx, rax
and rdx, r8
add r9, rdx
mov rax, r9
and r9, rbx
shr rax, 0x34
add al, 0x30
mov byte [rsi], al
inc rsi
test r10d, r10d
jle 0x14015aec2
mov byte [rsi], 0x2e
lea r11, str.0123456789abcdefghijklmnopqrstuvwxyz
mov rax, r9
lea r8d, [r10 - 1]
shr rax, 0x30
mov ecx, 0x30
movzx eax, byte [rax + r11]
mov byte [rsi + 1], al
add rsi, 2
test r8d, r8d
je 0x14015aec2
movabs rdx, 0x1000000000000
test ecx, ecx
je 0x14015aeac
lea rax, [rdx - 1]
sub ecx, 4
and r9, rax
ror rdx, 4
mov rax, r9
shr rax, cl
mov eax, eax
movzx eax, byte [rax + r11]
mov byte [rsi], al
inc rsi
sub r8d, 1
jne 0x14015ae80
jmp 0x14015aec2
movsxd rbx, r8d
mov edx, 0x30
mov r8, rbx
mov rcx, rsi
call fcn.140163170
add rsi, rbx
mov byte [rsi], 0x70
lea r9, [rsp + 0x40]
mov byte [rsi + 1], r15b
add rsi, 2
nop dword [rax]
nop word [rax + rax]
dec r9
mov eax, 0xcccccccd
mul edi
shr edx, 3
movzx eax, dl
shl al, 2
lea ecx, [rax + rdx]
add cl, cl
sub dil, cl
add dil, 0x30
mov byte [r9], dil
mov edi, edx
test edx, edx
jne 0x14015aee0
lea rbx, [rsp + 0x40]
mov rax, rbp
sub rbx, r9
sub rax, rsi
cmp rax, rbx
jge 0x14015af25
mov dword [r14 + 8], 0x84
jmp 0x14015af3f
mov r8, rbx
mov rdx, r9
mov rcx, rsi
call fcn.140165120
mov dword [r14 + 8], 0
lea rbp, [rbx + rsi]
mov qword [r14], rbp
mov rax, r14
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.140161390
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x1401707a0
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x14017077d
call fcn.140171858
mov dword [rax], 0x16
call fcn.140171738
or eax, 0xffffffff
jmp 0x14017079a
sub dword [rcx + 0x10], 1
jns 0x14017078c
add rsp, 0x28
jmp 0x14017c498
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x14017075c
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rdi, rcx
test rcx, rcx
jne 0x14017c4ca
call fcn.140171858
mov dword [rax], 0x16
call fcn.140171738
jmp 0x14017c5e7
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14017c5e7
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x14017c5e7
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x14017c4f9
lock or dword [rcx + 0x14], 0x10
jmp 0x14017c5e7
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x14017c50d
call fcn.14017e400
mov rbx, qword [rdi + 8]
mov rcx, rdi
mov qword [rdi], rbx
call fcn.1401755bc
mov r8d, dword [rdi + 0x20]
mov ecx, eax
mov rdx, rbx
call fcn.140171e38
mov dword [rdi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x14017c5d5
mov eax, dword [rdi + 0x14]
or esi, 0xffffffff
test al, 6
jne 0x14017c5a0
mov rcx, rdi
call fcn.1401755bc
cmp eax, esi
je 0x14017c58b
mov rcx, rdi
call fcn.1401755bc
cmp eax, 0xfffffffe
je 0x14017c58b
mov rcx, rdi
call fcn.1401755bc
movsxd rbx, eax
lea r14, [0x140212540]
mov rcx, rdi
sar rbx, 6
call fcn.1401755bc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x14017c592
lea rdx, [0x14020a400]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14017c5a0
lock or dword [rdi + 0x14], 0x20
cmp dword [rdi + 0x20], 0x200
jne 0x14017c5c4
mov eax, dword [rdi + 0x14]
shr eax, 6
test al, 1
je 0x14017c5c4
mov eax, dword [rdi + 0x14]
shr eax, 8
test al, 1
jne 0x14017c5c4
mov dword [rdi + 0x20], 0x1000
mov rax, qword [rdi]
add dword [rdi + 0x10], esi
movzx esi, byte [rax]
inc rax
mov qword [rdi], rax
jmp 0x14017c5ea
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rdi + 0x14], eax
and dword [rdi + 0x10], 0
or esi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret

Function at 0x14017402c
Capabilities:
Parse pe header

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