joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14064d9da
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
ror bh, 0xeb
cmp r12b, r12b
mov qword [rsp + 0x10], rsi
push rdi
xadd bh, bh
test spl, 6
sub rsp, 0x20
bsr ebx, esi
bt ebx, r15d
mov rsi, r8
bswap bx
bts ebx, r13d
rol bl, 0x41
mov rdi, rdx
sar edx, cl
sub rbx, 0x2132698a
mov rbx, rcx
movzx dx, r8b
nop
or dl, r13b
xor dl, 3
cmp dword [rbx + 0x44], 0
movzx dx, bh
movsx dx, sil
mov rdx, rdi
jne 0x14064da78
mov r8d, dword [rbx + 0xc]
movzx ecx, bp
movsx rcx, di
mov rcx, qword [rbx + 0x30]
mov rax, rdi
stc
jmp 0x14064da54
sub r8d, dword [rbx + 0x40]
cmc
sub rax, rcx
cmp r8, 0x4a301ac4
cmc
cmp r13b, spl
cmp rax, r8
jbe 0x14064da78
lea rdx, [r8 + rcx]
not r8w
mov r8, rsi
xchg ecx, ecx
jmp 0x14064da82
mov rcx, rbx
jmp 0x14064da8a
call fcn.14064badc
test eax, eax
jne 0x14064db1f
mov eax, dword [rbx + 0xc]
cmp bpl, 0xd8
cmp dword [rbx + 0x40], eax
jmp 0x14064daa6
jb 0x14064dab5
mov dword [rbx + 0x44], eax
cdq
movzx dx, r8b
mov rdx, rdi
movzx cx, r14b
mov rcx, rbx
jmp 0x14064dac5
call fcn.14064d850
cmp qword [rbx + 0x30], rdi
jmp 0x14064dad3
jae 0x14064daf5
cmp qword [rbx + 0x20], rsi
jmp 0x14064dae2
jae 0x14064daf5
cmp dword [rbx + 0x5c], 0x112
jb 0x14064da25
cmp dword [rbx + 0x5c], 0x112
jmp 0x14064db01
jbe 0x14064db19
mov dword [rbx + 0x5c], 0x112
mov di, 0x5222
btc edi, edi
movsx rbx, bp
sub eax, eax
shl rdi, 0xb1
mov rbx, qword [rsp + 0x30]
btr si, 0x45
mov rsi, qword [rsp + 0x38]
movsxd rdi, r11d
add rsp, 0x20
bswap rdi
movsx rdi, di
movzx rdi, r13w
pop rdi
ret
Function at 0x140007f60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov r12, r9
movzx r15d, r8b
mov r14, rdx
mov r10, rcx
mov r13, qword [rcx]
mov rsi, r13
mov rbx, qword [r13 + 8]
mov dil, 1
cmp byte [rbx + 0x19], 0
jne 0x140007fee
mov rsi, rbx
test r15b, r15b
je 0x140007fc3
lea rcx, [rbx + 0x20]
mov rdx, r12
call fcn.14000cca0
mov edi, eax
shr edi, 0x1f
xor dil, 1
jmp 0x140007fd5
lea rdx, [rbx + 0x20]
mov rcx, r12
call fcn.14000cca0
shr eax, 0x1f
movzx edi, al
test dil, dil
je 0x140007fdf
mov rbx, qword [rbx]
jmp 0x140007fe3
mov rbx, qword [rbx + 0x10]
cmp byte [rbx + 0x19], 0
je 0x140007fa4
mov r10, qword [rsp + 0x70]
mov rbx, rsi
mov rcx, rsi
test dil, dil
je 0x1400080b0
cmp rsi, qword [r13]
jne 0x14000803a
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
mov r8b, 1
lea rdx, [rsp + 0x70]
mov rcx, r10
call fcn.1400078b0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140008105
cmp byte [rsi + 0x19], 0
je 0x140008046
mov rbx, qword [rsi + 0x10]
jmp 0x1400080ad
mov rax, qword [rsi]
cmp byte [rax + 0x19], 0
je 0x14000808f
mov rax, qword [rsi + 8]
cmp byte [rax + 0x19], 0
jne 0x140008081
mov rdx, rsi
nop dword [rax]
mov r8, rax
mov r9, rax
mov rcx, rdx
cmp rdx, qword [rax]
jne 0x140008081
mov rbx, rax
mov rax, qword [rax + 8]
mov rdx, rbx
mov rcx, rbx
cmp byte [rax + 0x19], 0
je 0x140008060
cmp byte [rbx + 0x19], 0
jne 0x1400080b0
mov rbx, rax
mov rcx, rax
jmp 0x1400080b0
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
jne 0x1400080ad
nop dword [rax]
mov rbx, rax
mov rax, qword [rax + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400080a0
mov rcx, rbx
add rcx, 0x20
mov rdx, r12
call fcn.14000cca0
shr eax, 0x1f
test al, al
je 0x1400080fa
movzx eax, byte [rsp + 0x90]
mov byte [rsp + 0x28], al
mov qword [rsp + 0x20], r12
mov r9, rsi
movzx r8d, dil
lea rdx, [rsp + 0x38]
mov rcx, qword [rsp + 0x70]
call fcn.1400078b0
mov rax, qword [rax]
mov qword [r14], rax
mov byte [r14 + 8], 1
mov rax, r14
jmp 0x140008105
mov qword [r14], rbx
mov byte [r14 + 8], 0
mov rax, r14
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001482
Capabilities:
Resume thread

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x4f0
mov rbx, qword [rdx + 8]
mov rcx, rbx
lea rdi, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100002
mov rsi, r8
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x1400014d2
mov qword [rsp + 0xa0], rsi
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x1400014d2
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
ret

Function at 0x140001583
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x4f0
mov rbx, rcx
mov esi, edx
mov r9, r8
test r8, r8
je 0x1400015a3
cmp byte [r8], 0
jne 0x1400015b1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
jmp 0x140001644
lea rdx, [rsp + 0x8c]
xor eax, eax
lea rbp, [rsp + 0x70]
mov ecx, 0x19
mov rdi, rdx
lea r8, section..rdata
mov edx, 0x400
mov dword [rsp + 0x88], 0x68
rep stosd dword [rdi], eax
mov ecx, 6
mov rdi, rbp
lea r12, [rsp + 0x88]
rep stosd dword [rdi], eax
lea rdi, [rsp + 0xf0]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll__snprintf]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x48], rbp
mov rdx, rdi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x140001671
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140001671
movups xmm0, xmmword [rsp + 0x70]
lea rdx, [rsp + 0x50]
movsxd r9, esi
mov r8, rbx
mov rax, qword [rsp + 0x80]
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rax
call fcn.1400014dd
nop
add rsp, 0x4f0
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14000167f
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
sub rsp, 0x68
lea rsi, str.AFKRJIWNLFKVXQKJOOFTDGSOMCENLSILEAKNRLYRFLIXBZKDDXRVUTQONYQJBBVG
xor eax, eax
mov r9, rcx
lea rdi, [rsp + 0x20]
mov ecx, 0x10
mov r10d, edx
rep movsd dword [rdi], dword [rsi]
mov rdx, r8
lea r8, [rsp + 0x20]
mov rcx, rax
and ecx, 7
mov cl, byte [rdx + rcx]
xor byte [r8 + rax], cl
inc rax
cmp rax, 0x40
jne 0x1400016a8
xor eax, eax
cmp r10d, eax
jle 0x1400016d7
mov rcx, rax
and ecx, 7
mov cl, byte [rdx + rcx]
xor byte [r9 + rax], cl
inc rax
jmp 0x1400016c0
mov rcx, r9
call fcn.140001450
mov edx, r10d
call fcn.140001583
nop
add rsp, 0x68
pop rsi
pop rdi
ret
Function at 0x1400016f0
Capabilities:
Check for time delay via gettickcount

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, 0x2a
mov r8d, 0x17
mov edx, 0x402
mov ecx, eax
call qword [sym.imp.USER32.dll_PostThreadMessageA]
xor eax, eax
xor r9d, r9d
xor r8d, r8d
or rdx, 0xffffffffffffffff
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x1400017c5
cmp dword [rsp + 0x38], 0x402
jne 0x1400017c5
cmp qword [rsp + 0x40], 0x17
jne 0x1400017c5
cmp qword [rsp + 0x48], 0x2a
jne 0x1400017c5
mov rsi, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rsi
mov ecx, 0x28a
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
call rsi
sub eax, 0x258
sub eax, ebx
cmp eax, 0x12b
ja 0x1400017c5
mov r12, qword [str.XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX]
movsxd rbp, dword [r12 + 4]
lea rsi, [r12 + 0x18]
mov rcx, rbp
call sub.msvcrt.dll_malloc
mov rcx, rbp
lea r8, [r12 + 8]
mov edx, ebp
mov rdi, rax
mov rbx, rax
rep movsb byte [rdi], byte [rsi]
mov rcx, rax
call fcn.14000167f
mov rcx, rbx
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp fcn.1400029f0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140001b40
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002960
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002960
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140001bb0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400520d4]
mov rbx, rcx
test esi, esi
jle 0x140001ce0
mov rax, qword [0x1400520d8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001bfb
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001c85
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001be0
mov rcx, rbx
call fcn.140002600
mov rdi, rax
test rax, rax
je 0x140001d02
mov rax, qword [0x1400520d8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.140002740
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400520d8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001ce7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c7e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001c90
add dword [0x1400520d4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400520d8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c7e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b40
nop dword [rax]
xor esi, esi
jmp 0x140001c08
mov rax, qword [0x1400520d8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b40
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b40
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002270
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140052140]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140052120]
test rbx, rbx
je 0x1400022cc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x1400022c3
test rsi, rsi
je 0x1400022c3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022a8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002600
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14004f3f0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002620
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002628
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002620
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14000267d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002674
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002620
add rax, 0x28
cmp rax, r9
jne 0x140002660
xor eax, eax
ret

Function at 0x140002680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004f3f0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14000269f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026a8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000269f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x140002740
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004f3f0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14000275f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140002768
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140001000
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14000104b
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x14000104b
mov edx, 0x8664
cmp word [rax + 4], dx
jne 0x14000104b
mov edx, 0x20b
cmp word [rax + 0x18], dx
jne 0x14000104b
cmp dword [rax + 0x84], 0
jbe 0x14000104b
cmp dword [rax + 0x8c], 0
je 0x14000104b
mov eax, dword [rax + 0x88]
add rax, rcx
ret
xor eax, eax
ret
Function at 0x140001e30
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r8d, ecx
mov r9, rdx
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + rdx], 0
jne 0x140001e38
or eax, 0xffffffff
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x140001e8b
mov r10d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
sub edx, 0x61
movzx ecx, al
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
sub r8d, edx
mov ecx, edx
or ecx, 1
rol r8d, 5
imul ecx, edx
lea ecx, [rcx + rcx*2]
xor r8d, ecx
sub r10, 1
jne 0x140001e51
mov eax, r8d
ret

Function at 0x140001e90
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov eax, dword [rcx + 0x28]
mov rbx, rdx
add rax, rdx
mov edx, 0x2000
test word [rcx + 0x16], dx
je 0x140001f1d
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 1]
call rax
mov eax, 0x5a4d
cmp word [rbx], ax
je 0x140001ec4
xor edx, edx
jmp 0x140001f04
movsxd rax, dword [rbx + 0x3c]
add rax, rbx
cmp dword [rax], 0x4550
jne 0x140001ec0
mov ecx, 0x8664
cmp word [rax + 4], cx
jne 0x140001ec0
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140001ec0
cmp dword [rax + 0x84], 0
jbe 0x140001ec0
cmp dword [rax + 0x8c], 0
je 0x140001ec0
mov edx, dword [rax + 0x88]
add rdx, rbx
mov r9d, 0x83a0616e
mov r8d, 0x14887e1d
mov rcx, rbx
call fcn.140001f28
test rax, rax
je 0x140001f1f
call rax
add rsp, 0x20
pop rbx
ret

Function at 0x140001f28
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

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
mov r10d, dword [rdx + 0x20]
mov r12d, r8d
mov edi, dword [rdx + 0x24]
add r10, rcx
mov esi, dword [rdx + 0x1c]
add rdi, rcx
mov ebp, dword [rdx + 0x18]
add rsi, rcx
xor r8d, r8d
mov r15d, r9d
mov r11, rcx
test ebp, ebp
je 0x140001fd4
mov r9d, dword [r10]
add r9, r11
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + r9], 0
jne 0x140001f6f
or eax, 0xffffffff
mov ebx, r12d
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x140001fc3
mov r14d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
sub ebx, edx
mov eax, edx
or eax, 1
rol ebx, 5
imul eax, edx
lea eax, [rax + rax*2]
xor ebx, eax
sub r14, 1
jne 0x140001f8c
cmp ebx, r15d
je 0x140001ff1
inc r8d
add r10, 4
cmp r8d, ebp
jb 0x140001f67
xor eax, eax
mov rbx, qword [rsp + 0x20]
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
pop r15
pop r14
pop r12
ret
movzx ecx, word [rdi + r8*2]
mov eax, dword [rsi + rcx*4]
add rax, r11
jmp 0x140001fd6
Function at 0x140007ed0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r9, qword [rcx]
mov edi, r8d
mov esi, edx
mov r10, rcx
cmp r9, rcx
je 0x140007f60
xor ebp, ebp
mov rbx, qword [r9 + 0x50]
mov r8d, ebp
mov eax, r8d
inc r8d
cmp word [rbx + rax*2], bp
jne 0x140007efc
or eax, 0xffffffff
mov r11d, esi
cmp r8d, eax
cmovb eax, r8d
add eax, eax
je 0x140007f53
mov r8d, eax
mov al, byte [rbx]
movzx edx, byte [rbx]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [rbx]
cmp edx, 0x19
cmova ecx, eax
inc rbx
movzx edx, cl
sub r11d, edx
mov eax, edx
or eax, 1
rol r11d, 5
imul eax, edx
lea eax, [rax + rax*2]
xor r11d, eax
sub r8, 1
jne 0x140007f1c
cmp edi, r11d
je 0x140007f77
mov r9, qword [r9]
cmp r9, r10
jne 0x140007ef5
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
mov rax, qword [r9 + 0x20]
jmp 0x140007f62

Function at 0x140008110
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, rdx
and qword [rax - 0x10], rdi
mov rbx, r8
and qword [rax - 0x18], rdi
mov rbp, rcx
and qword [rax - 0x20], rdi
and qword [rax - 0x28], rdi
xor edx, edx
jmp 0x1400081d1
xor ecx, ecx
mov eax, ecx
inc ecx
cmp byte [rax + rbx], 0
jne 0x14000814c
or eax, 0xffffffff
mov r8d, 0xbac9a06a
cmp ecx, eax
cmovb eax, ecx
test eax, eax
je 0x1400081a8
mov r9, rbx
mov r10d, eax
mov al, byte [r9]
movzx edx, byte [r9]
sub al, 0x20
movzx ecx, al
sub edx, 0x61
movzx eax, byte [r9]
cmp edx, 0x19
cmova ecx, eax
inc r9
movzx edx, cl
sub r8d, edx
mov eax, edx
or eax, 1
rol r8d, 5
imul eax, edx
lea eax, [rax + rax*2]
xor r8d, eax
sub r10, 1
jne 0x14000816e
cmp r8d, dword [rsp + 0x70]
je 0x1400081e8
and qword [rsp + 0x38], 0
inc edi
and qword [rsp + 0x30], 0
mov r8, rbx
and qword [rsp + 0x28], 0
mov edx, edi
and qword [rsp + 0x20], 0
mov rcx, rbp
lea r9, [rsp + 0x68]
mov dword [rsp + 0x68], 0x104
call rsi
test eax, eax
je 0x14000814a
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x140008200
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9d, ecx
xor edx, edx
mov ecx, edx
mov eax, ecx
inc ecx
cmp word [r10 + rax*2], dx
jne 0x14000820a
cmp ecx, r8d
cmovb r8d, ecx
add r8d, r8d
je 0x14000825e
mov r11d, r8d
mov al, byte [r10]
movzx edx, byte [r10]
sub al, 0x20
sub edx, 0x61
movzx ecx, al
movzx eax, byte [r10]
cmp edx, 0x19
cmova ecx, eax
inc r10
movzx edx, cl
sub r9d, edx
mov ecx, edx
or ecx, 1
rol r9d, 5
imul ecx, edx
lea ecx, [rcx + rcx*2]
xor r9d, ecx
sub r11, 1
jne 0x140008224
mov eax, r9d
ret
Function at 0x14000a348
Capabilities:
Parse pe header

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

Function at 0x140013d9c
Capabilities:
Parse pe header

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

Function at 0x14001674c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140016762
mov al, 1
jmp 0x1400167c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140016773
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400167c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001d934
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400167c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400167c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400167c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400167c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400191f4
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.14000a040
sub rsp, rax
mov rax, qword [0x140033040]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001662c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140019243
mov rax, rbp
jmp 0x14001934b
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 + 0x350b0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001a140
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x350b0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140019347
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 0x140019347
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001a140
test rax, rax
js 0x140019347
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140019347
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140019339
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140019339
cmp byte [rcx], 0xd
jne 0x14001931f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001932e
cmp byte [rcx + 1], 0xa
jne 0x14001932e
inc rcx
jmp 0x14001932e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x33460]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140019301
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001934b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140009c20
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret