joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400e9fd0
Capabilities:
Connect pipe
Create pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r14
sub rsp, 0x100
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov esi, r8d
mov r14, rdx
mov rbx, rcx
mov rcx, qword [rcx + 0x40]
cmp rcx, 0xffffffffffffffff
je 0x1400ea026
call qword [sym.imp.KERNEL32.dll_CancelIo]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], 0xffffffffffffffff
mov rax, qword [rbx + 0x10]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1400ea045
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbx + 0x10]
mov qword [rax + 0x18], 0
xor ecx, ecx
mov rax, qword [rbx + 0x10]
mov qword [rax], rcx
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rcx
mov qword [rax + 0x18], rcx
mov dword [rbx + 0x474], ecx
lea rcx, [rsp + 0xa8]
call fcn.1400eaa60
nop
mov rcx, rax
call fcn.1400eaab0
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], esi
mov edx, 0x40000003
mov r9d, 0xff
mov r8d, 6
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
mov qword [rbx + 0x40], rax
lea rcx, [rsp + 0xa8]
call fcn.1400eaaa0
cmp qword [rbx + 0x40], 0xffffffffffffffff
jne 0x1400ea0ec
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_create_pipe.___s
lea rcx, [rsp + 0x48]
call fcn.1400e9a10
lea rdx, [0x1402d6040]
lea rcx, [rsp + 0x48]
call fcn.14012ccc0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rdx, qword [rbx + 0x10]
cmp qword [rdx + 0x18], 0
jne 0x1400ea13a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Could_not_create_pipe_event.___s
lea rcx, [rsp + 0x60]
call fcn.1400e9a10
lea rdx, [0x1402d6040]
lea rcx, [rsp + 0x60]
call fcn.14012ccc0
mov rcx, qword [rbx + 0x40]
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x217
je 0x1400ea185
cmp eax, 0x3e5
je 0x1400ea183
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Pipe_connecting_error.___s
lea rcx, [rsp + 0x78]
call fcn.1400e9a10
lea rdx, [0x1402d6040]
lea rcx, [rsp + 0x78]
call fcn.14012ccc0
jmp 0x1400ea1c9
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x1400ea1c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.Event_error.___s
lea rcx, [rsp + 0x90]
call fcn.1400e9a10
lea rdx, [0x1402d6040]
lea rcx, [rsp + 0x90]
call fcn.14012ccc0
nop
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop r14
ret
Function at 0x1400ea6a0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, r8
mov r15, rdx
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x38], 0x78
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, str._SynchronousPipe::Write_
lea rcx, [rsp + 0x80]
call fcn.14003fda0
nop
test r15, r15
jne 0x1400ea730
mov dword [rsp + 0x48], 0x57
lea rax, [0x140237330]
mov qword [rsp + 0x50], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x48]
call fcn.14012ccc0
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x3c], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x3c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov ecx, 0xfa0
mov eax, dword [rsp + 0x30]
test eax, eax
cmovne ecx, eax
mov dword [rsp + 0x30], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, r13d
mov esi, r14d
test r14, r14
je 0x1400ea7e7
mov rcx, r13
nop dword [rax]
mov dword [rsp + 0x3c], r13d
mov r8d, esi
cmp dword [rsp + 0x30], esi
cmovb r8d, dword [rsp + 0x30]
lea rdx, [rcx + r15]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x3c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x1400ea7c6
add edi, dword [rsp + 0x3c]
sub esi, dword [rsp + 0x3c]
mov ecx, edi
cmp rcx, r14
jb 0x1400ea780
jmp 0x1400ea7e7
mov dword [rsp + 0x58], eax
lea rax, [0x14022f7f8]
mov qword [rsp + 0x60], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x58]
call fcn.14012ccc0
mov dword [rsp + 0x38], r13d
mov ebx, 1
mov dword [rsp + 0x34], ebx
jmp 0x1400ea7fb
lea rcx, [rsp + 0x80]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14012a1e0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx]
jmp 0x1400ea6a0
Function at 0x1400ea840
Capabilities:
Write file on windows

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x1c0
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov rax, qword [0x1402d9850]
xor rax, rsp
mov qword [rsp + 0x1b0], rax
mov r14, r8
mov r15, rdx
mov r12, rcx
xor r13d, r13d
mov dword [rsp + 0x34], r13d
mov dword [rsp + 0x38], 0x78
lea r9, [rsp + 0x38]
lea r8, [rsp + 0x34]
lea rdx, str._SynchronousPipe::Write_
lea rcx, [rsp + 0x80]
call fcn.14003fda0
nop
test r15, r15
jne 0x1400ea730
mov dword [rsp + 0x48], 0x57
lea rax, [0x140237330]
mov qword [rsp + 0x50], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x48]
call fcn.14012ccc0
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x3c], r13d
mov qword [rsp + 0x20], r13
xor r9d, r9d
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x3c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_GetNamedPipeInfo]
mov ecx, 0xfa0
mov eax, dword [rsp + 0x30]
test eax, eax
cmovne ecx, eax
mov dword [rsp + 0x30], ecx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov edi, r13d
mov esi, r14d
test r14, r14
je 0x1400ea7e7
mov rcx, r13
nop dword [rax]
mov dword [rsp + 0x3c], r13d
mov r8d, esi
cmp dword [rsp + 0x30], esi
cmovb r8d, dword [rsp + 0x30]
lea rdx, [rcx + r15]
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x3c]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test ebx, ebx
je 0x1400ea7c6
add edi, dword [rsp + 0x3c]
sub esi, dword [rsp + 0x3c]
mov ecx, edi
cmp rcx, r14
jb 0x1400ea780
jmp 0x1400ea7e7
mov dword [rsp + 0x58], eax
lea rax, [0x14022f7f8]
mov qword [rsp + 0x60], rax
lea rdx, [0x1402d6470]
lea rcx, [rsp + 0x58]
call fcn.14012ccc0
mov dword [rsp + 0x38], r13d
mov ebx, 1
mov dword [rsp + 0x34], ebx
jmp 0x1400ea7fb
lea rcx, [rsp + 0x80]
call fcn.14003fbb0
nop
mov ecx, dword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rcx, qword [rsp + 0x1b0]
xor rcx, rsp
call fcn.14012a1e0
add rsp, 0x1c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
mov rcx, qword [rcx]
jmp 0x1400ea6a0
Function at 0x1400eacd0
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov r11, rsp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [r11 - 0x28], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov rbp, rdx
mov rsi, rcx
xor r14d, r14d
mov qword [r11 + 0x18], r14
lea rax, [r11 + 0x18]
mov qword [r11 - 0x58], rax
lea r9, [0x1402428d8]
xor edx, edx
lea r8d, [r14 + 1]
lea rcx, [0x1402429a8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov edi, eax
test eax, eax
js 0x1400eae07
mov qword [rsp + 0x98], r14
mov rdi, qword [rsp + 0x90]
lea ecx, [r14 + 0x18]
call fcn.140129aa4
mov rbx, rax
mov qword [rsp + 0x58], rax
test rax, rax
je 0x1400ead76
mov qword [rax + 8], r14
mov dword [rax + 0x10], 1
mov rcx, rbp
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
jne 0x1400ead79
test rbp, rbp
je 0x1400ead79
mov ecx, 0x8007000e
call fcn.14012afb0
int3
mov rbx, r14
mov qword [rsp + 0x58], rbx
test rbx, rbx
jne 0x1400ead8e
mov ecx, 0x8007000e
call fcn.14012afb0
nop
mov rcx, qword [rsi]
test rcx, rcx
je 0x1400ead9c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi], r14
mov rax, qword [rdi]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, rdi
call qword [rax + 0x18]
mov edi, eax
mov rcx, rbx
call fcn.1400e0a90
test edi, edi
js 0x1400eae07
mov dword [rsp + 0x38], r14d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [rsi]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov edi, eax
mov rcx, qword [rsp + 0x90]
test rcx, rcx
je 0x1400eae1b
mov rax, qword [rcx]
call qword [rax + 0x10]
nop
mov eax, edi
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x140129c34
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
sub rsp, 0x18
mov r8, rcx
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140129cc5
movsxd rax, dword [0x14000003c]
lea rdx, [0x140000000]
lea rcx, [rax + rdx]
cmp dword [rcx], 0x4550
jne 0x140129cc5
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140129cc5
sub r8, rdx
movzx eax, word [rcx + 0x14]
lea rdx, [rcx + 0x18]
add rdx, rax
movzx eax, word [rcx + 6]
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
mov qword [rsp], rdx
cmp rdx, r9
je 0x140129ca9
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140129ca3
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140129cab
add rdx, 0x28
jmp 0x140129c88
xor edx, edx
test rdx, rdx
jne 0x140129cb4
xor al, al
jmp 0x140129ccb
test dword [rdx + 0x24], 0x80000000
je 0x140129cc1
xor al, al
jmp 0x140129ccb
mov al, 1
jmp 0x140129ccb
xor al, al
jmp 0x140129ccb
add rsp, 0x18
ret

Function at 0x140147800
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 0x1401475d4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401475d4
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401475d4
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401475d4
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401475d4
cmp dword [rcx + 0x84], 0xe
jbe 0x1401475d4
cmp dword [rcx + 0xf8], esi
je 0x1401475d4
mov ecx, r14d
call fcn.14014771c
mov ecx, 2
call fcn.140141370
nop
cmp byte [0x1402e03d8], 0
jne 0x14014769e
mov r15d, 1
mov eax, r15d
xchg dword [0x1402e03c8], eax
test ebx, ebx
jne 0x140147647
mov rdi, qword [0x1402d9850]
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 [0x1402e03d0]
cmp rcx, rax
je 0x14014763e
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.140008080]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x1402e0610]
jmp 0x140147653
cmp ebx, r15d
jne 0x140147659
lea rcx, [0x1402e0628]
call fcn.14014851c
nop
test ebx, ebx
jne 0x140147670
lea rdx, [0x140219e88]
lea rcx, [0x140219e68]
call fcn.1401487e4
lea rdx, [0x140219e98]
lea rcx, [0x140219e90]
call fcn.1401487e4
movzx eax, byte [0x1402e03d8]
test esi, esi
cmove eax, r15d
mov byte [0x1402e03d8], al
jmp 0x14014769e
mov ecx, 2
call fcn.1401413c4
test esi, esi
jne 0x1401476b5
mov ecx, r14d
call fcn.1401476d0
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 0x140147564
Function at 0x14014eec0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14014eb7c
call fcn.1401347f4
mov dword [rax], 0x16
call fcn.14012eea0
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14014eb64
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14014eb64
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x14014ebae
lock or dword [rax + 0x14], 0x10
jmp 0x14014eb64
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14014ebcb
mov rcx, qword [rbp + 0x10]
call fcn.14014f450
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14014be4c
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401512dc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x14014ec22
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x14014eb64
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14014ec8e
mov rcx, qword [rbp + 0x10]
call fcn.14014be4c
cmp eax, 0xffffffff
je 0x14014ec75
mov rcx, qword [rbp + 0x10]
call fcn.14014be4c
cmp eax, 0xfffffffe
je 0x14014ec75
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.14014be4c
movsxd rdi, eax
lea rsi, [0x1402e06b0]
mov rcx, rbx
sar rdi, 6
call fcn.14014be4c
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x14014ec7c
lea rax, [0x1402d9c80]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14014ec8e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x14014ecc4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14014ecc0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14014ecc0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x14014eb67
jmp 0x14014eb34
Function at 0x14014eec8
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x14014ed2e
call fcn.1401347f4
mov dword [rax], 0x16
call fcn.14012eea0
mov eax, 0xffff
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x14014ed10
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x14014ed10
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x20]
shr ecx, 1
test cl, 1
je 0x14014ed60
lock or dword [rax + 0x14], 0x10
jmp 0x14014ed10
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x14014ed7d
mov rcx, qword [rbp + 0x20]
call fcn.14014f450
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x10], 1
jne 0x14014ed92
mov rcx, qword [rax]
mov sil, 1
mov r14b, byte [rcx]
jmp 0x14014ed98
xor sil, sil
xor r14b, r14b
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14014be4c
mov rdx, qword [rbp + 0x20]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1401512dc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x20]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 2
ja 0x14014edeb
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x20]
and dword [rax + 0x10], 0
jmp 0x14014ed10
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x14014ee57
mov rcx, qword [rbp + 0x20]
call fcn.14014be4c
cmp eax, 0xffffffff
je 0x14014ee3e
mov rcx, qword [rbp + 0x20]
call fcn.14014be4c
cmp eax, 0xfffffffe
je 0x14014ee3e
mov rbx, qword [rbp + 0x20]
mov rcx, rbx
call fcn.14014be4c
movsxd rdi, eax
lea r15, [0x1402e06b0]
mov rcx, rbx
sar rdi, 6
call fcn.14014be4c
and eax, 0x3f
shl rax, 6
add rax, qword [r15 + rdi*8]
jmp 0x14014ee45
lea rax, [0x1402d9c80]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x14014ee57
mov rax, qword [rbp + 0x20]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x20]
cmp dword [rax + 0x20], 0x200
jne 0x14014ee8d
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x14014ee89
mov rax, qword [rbp + 0x20]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x14014ee89
mov rax, qword [rbp + 0x20]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x20]
mov rcx, qword [rax]
test sil, sil
je 0x14014eeab
movzx edx, byte [rcx]
dec dword [rax + 0x10]
shl dx, 8
movzx ecx, r14b
or dx, cx
inc qword [rax]
jmp 0x14014eeb6
movzx edx, word [rcx]
add dword [rax + 0x10], 0xfffffffe
add qword [rax], 2
movzx eax, dx
jmp 0x14014ed15
jmp 0x14014ecdc
Function at 0x14015eee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov ebx, dword [rcx + 0x44]
mov rdi, rcx
mov qword [rsp + 0x30], rbp
nop word [rax + rax]
mov edx, dword [rdi + 0x94]
mov esi, dword [rdi + 0x58]
sub esi, dword [rdi + 0x9c]
mov ecx, dword [rdi + 0x44]
sub esi, edx
add ecx, 0xfffffefa
add ecx, ebx
cmp edx, ecx
jb 0x14015ef9c
mov rcx, qword [rdi + 0x50]
mov r8, rbx
lea rdx, [rcx + rbx]
call fcn.14012c7d0
mov r8d, dword [rdi + 0x74]
mov rax, qword [rdi + 0x68]
sub dword [rdi + 0x98], ebx
sub dword [rdi + 0x94], ebx
sub dword [rdi + 0x84], ebx
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
lea rdx, [rdx - 2]
cmp eax, ebx
jb 0x14015ef60
sub eax, ebx
jmp 0x14015ef62
xor eax, eax
mov word [rdx], ax
add r8d, 0xffffffff
jne 0x14015ef50
mov rax, qword [rdi + 0x60]
mov edx, ebx
lea rcx, [rax + rbx*2]
nop word [rax + rax]
movzx eax, word [rcx - 2]
lea rcx, [rcx - 2]
cmp eax, ebx
jb 0x14015ef90
sub eax, ebx
jmp 0x14015ef92
xor eax, eax
mov word [rcx], ax
add edx, 0xffffffff
jne 0x14015ef80
add esi, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 8], 0
je 0x14015f016
mov edx, dword [rdi + 0x9c]
mov r8d, esi
mov eax, dword [rdi + 0x94]
add rdx, rax
add rdx, qword [rdi + 0x50]
call fcn.14015f380
add dword [rdi + 0x9c], eax
mov r9d, dword [rdi + 0x9c]
cmp r9d, 3
jb 0x14015f000
mov eax, dword [rdi + 0x94]
mov rdx, qword [rdi + 0x50]
mov ecx, dword [rdi + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rdi + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rdi + 0x7c]
mov dword [rdi + 0x70], r8d
cmp r9d, 0x106
jae 0x14015f016
mov rax, qword [rdi]
cmp dword [rax + 8], 0
jne 0x14015ef00
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14016a890
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x20
xor r14d, r14d
mov rsi, rdx
mov ebx, r14d
mov edi, r14d
call fcn.14018a970
mov rcx, rsi
test eax, eax
je 0x14016a8cc
call fcn.1401d1a30
mov rsi, rax
jmp 0x14016a8f0
call fcn.1401d1a30
mov rbp, rax
test rax, rax
je 0x14016a997
mov rcx, rax
call fcn.1401d0ae0
mov rcx, rbp
mov rsi, rax
call fcn.14012efe0
test rsi, rsi
je 0x14016a997
call fcn.14018a970
test eax, eax
je 0x14016a940
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14016a928
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 5
jne 0x14016a97a
inc ebx
cmp ebx, 5
jge 0x14016a97a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14016a902
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebp, eax
cmp eax, 0xffffffff
jne 0x14016a966
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp eax, 5
jne 0x14016a97a
inc ebx
cmp ebx, 5
jge 0x14016a97a
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14016a940
mov rcx, rsi
call fcn.14012efe0
cmp ebp, 0xffffffff
jne 0x14016a98c
cmp edi, 2
je 0x14016a992
mov r14d, 0xa0a
mov eax, r14d
jmp 0x14016a99c
mov eax, 7
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
Function at 0x14017f700
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov r11, rsp
mov dword [r11 + 0x18], r8d
push rbx
push r12
push r13
push r15
sub rsp, 0x48
mov r15, qword [rcx + 0x18]
mov eax, r8d
mov r13, qword [rcx]
mov rbx, rdx
mov r12, rcx
test rdx, rdx
je 0x14017f91f
mov qword [r11 + 0x10], rsi
xor esi, esi
mov qword [r11 + 8], rbp
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x28], r14
nop dword [rax]
cmp eax, 0x63
jne 0x14017f74b
movzx edx, byte [rbx + 1]
jmp 0x14017f74e
movzx edx, al
mov byte [r12 + 0x1e1], dl
movzx ecx, byte [rbx]
sub ecx, 0x69
je 0x14017f849
sub ecx, 1
je 0x14017f819
xor r8d, r8d
cmp ecx, 1
mov rcx, r13
je 0x14017f7ca
mov rdx, qword [rbx + 0x10]
call fcn.1401bb350
lea r8, [rsp + 0x30]
mov word [rsp + 0x30], 4
mov rdx, rax
mov qword [rsp + 0x34], 0
mov rcx, r12
mov dword [rsp + 0x3c], esi
mov rdi, rax
call fcn.1401b9bd0
test rdi, rdi
je 0x14017f8a8
mov rdx, rdi
mov rcx, r13
call fcn.14017d350
mov rdx, rdi
mov rcx, r13
call fcn.1401a2260
jmp 0x14017f8a8
mov rdx, qword [rbx + 0x28]
xor r9d, r9d
call fcn.140183600
mov rdx, qword [rbx + 0x30]
xor r8d, r8d
movzx esi, byte [r12 + 0x1e1]
mov rcx, r13
mov rbp, rax
call fcn.1401a7c40
mov rdx, rbx
mov rcx, r12
mov rdi, rax
call fcn.1401d0890
mov rdx, rax
mov dword [rsp + 0x20], esi
mov r9, rbp
mov r8, rdi
mov rcx, r12
call fcn.1401bd2a0
jmp 0x14017f8a6
mov rdx, qword [rbx + 0x28]
xor r9d, r9d
xor r8d, r8d
mov rcx, r13
call fcn.140183600
mov rdx, rbx
mov rcx, r12
mov rdi, rax
call fcn.1401d0890
mov rdx, rax
mov r8, rdi
mov rcx, r12
call fcn.1401a2610
jmp 0x14017f8a8
movzx r14d, dl
mov rcx, r13
mov rdx, qword [rbx + 0x38]
call fcn.1401ad6b0
mov rdx, qword [rbx + 0x10]
xor r8d, r8d
mov rcx, r13
mov rbp, rax
call fcn.1401bb350
mov rdx, qword [rbx + 0x30]
xor r8d, r8d
mov rcx, r13
mov rsi, rax
call fcn.1401a7c40
mov rdx, rbx
mov rcx, r12
mov rdi, rax
call fcn.1401d0890
mov rdx, rax
mov dword [rsp + 0x28], r14d
mov r9, rsi
mov qword [rsp + 0x20], rbp
mov r8, rdi
mov rcx, r12
call fcn.1401ae3e0
xor esi, esi
cmp byte [rbx], 0x74
je 0x14017f8f4
movsxd rdi, dword [r15 + 0x18]
cmp dword [r15 + 0x1c], edi
jg 0x14017f8c3
mov rcx, r15
call fcn.1401898a0
test eax, eax
jne 0x14017f8f4
mov rax, qword [r15 + 0x20]
lea rcx, [rdi + rdi*2]
inc dword [r15 + 0x18]
mov word [rax + rcx*8], 0x3a
mov byte [rax + rcx*8 + 3], 0
mov qword [rax + rcx*8 + 4], 0
mov dword [rax + rcx*8 + 0xc], esi
mov qword [rax + rcx*8 + 0x10], rsi
mov byte [r15 + 0xa2], 0
mov rbx, qword [rbx + 0x40]
mov eax, dword [rsp + 0x80]
test rbx, rbx
jne 0x14017f740
mov r14, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x70]
xor eax, eax
add rsp, 0x48
pop r15
pop r13
pop r12
pop rbx
ret