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

Disassembly:
jmp 0x180013a40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, r8d
movzx r8d, byte [rcx]
mov rbx, rcx
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
movzx eax, byte [rcx]
test al, al
jne 0x180013a90
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
nop dword [rax + rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [rdi + rbx]
test al, al
jne 0x180013a70
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov byte [rcx], 0
mov ecx, eax
test eax, eax
jle 0x180013aaf
lea rax, [rdi + 1]
lea rax, [rbx + rax*2]
xor byte [rax], r8b
inc rax
dec rcx
jne 0x180013aa4
mov byte [rdi + rbx], 0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x18000116d
Capabilities:
Encrypt data using rc4 prga

Disassembly:
jmp 0x180013dc0
push rsi
push rdi
sub rsp, 0x248
mov rax, qword [0x1800941a0]
xor rax, rsp
mov qword [rsp + 0x230], rax
movzx esi, r8b
mov rdi, rdx
test rcx, rcx
jne 0x180013def
xor eax, eax
jmp 0x180013eb3
mov edx, 5
mov qword [rsp + 0x240], rbx
call qword [sym.imp.USER32.dll_GetWindow]
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
mov rbx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rcx, [rsp + 0x20]
mov r8, rdi
sub r8, rcx
movzx eax, word [rcx]
movzx edx, word [rcx + r8]
sub eax, edx
jne 0x180013e38
add rcx, 2
test edx, edx
jne 0x180013e24
test eax, eax
je 0x180013ea8
nop dword [rax]
cmp sil, 1
jne 0x180013e5a
movzx r8d, sil
mov rdx, rdi
mov rcx, rbx
call fcn.18000116d
test rax, rax
jne 0x180013eab
mov edx, 2
mov rcx, rbx
call qword [sym.imp.USER32.dll_GetWindow]
mov rbx, rax
test rax, rax
je 0x180013ea8
lea rdx, [rsp + 0x20]
mov r8d, 0x104
mov rcx, rax
call qword [sym.imp.USER32.dll_GetClassNameW]
lea rax, [rsp + 0x20]
mov r8, rdi
sub r8, rax
nop
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x180013ea4
add rax, 2
test ecx, ecx
jne 0x180013e90
test edx, edx
jne 0x180013e40
mov rax, rbx
mov rbx, qword [rsp + 0x240]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1800197b0
add rsp, 0x248
pop rdi
pop rsi
ret
Function at 0x180012bc0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, 0xf
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180095d40], edi
jbe 0x180012c39
mov qword [rsp + 0x30], rbx
nop
mov rcx, qword [0x180095d38]
lea rbx, [rdi*8]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180095d38]
mov rcx, qword [rbx + rcx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x180095d40]
jb 0x180012c00
mov rbx, qword [rsp + 0x30]
mov rcx, qword [0x180095d38]
call fcn.18001addc
mov qword [0x180095d38], 0
mov dword [0x180095d40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, esi
mov rcx, rax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]

Function at 0x180012d10
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
sub rsp, 0x500
mov rax, qword [0x1800941a0]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov rax, qword [0x180095d68]
mov ebp, r8d
mov rsi, rdx
test rax, rax
je 0x180012e0c
mov r8d, ecx
xor edx, edx
mov ecx, 0x1fffff
mov qword [rsp + 0x518], rbx
mov qword [rsp + 0x520], rdi
call rax
lea rcx, [rax - 1]
mov rbx, rax
cmp rcx, 0xfffffffffffffffd
ja 0x180012df9
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x180012df1
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x50], 0x100001
xor edi, edi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x180012df9
nop dword [rax]
mov rcx, qword [rsp + 0x118]
cmp rcx, rsi
jb 0x180012df9
lea rax, [rsi + rbp]
cmp rcx, rax
jae 0x180012df9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x180012dee
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
lea rdx, [rsp + 0x20]
mov rcx, rbx
inc edi
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180012da0
jmp 0x180012df9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rdi, qword [rsp + 0x520]
mov rax, rbx
mov rbx, qword [rsp + 0x518]
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.1800197b0
mov rbp, qword [rsp + 0x528]
add rsp, 0x500
pop rsi
ret
Function at 0x180013200
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x80
xor edi, edi
cmp dword [0x180095d34], 0x40
mov esi, edi
jae 0x180013359
mov qword [rax + 8], rbx
lea rbx, [rcx + rdx]
mov qword [rax + 0x10], rbp
mov eax, 0x80000000
cmp rbx, rax
jae 0x18001323b
lea ebx, [rdi + 1]
jmp 0x180013242
sub rbx, 0x7fff0000
lea rbp, [rcx + r8]
cmp rbp, 0xffffffff80000000
jae 0x180013258
add rbp, 0x7ff80000
jmp 0x18001325f
mov rbp, 0xfffffffffff80000
xor edx, edx
lea rcx, [rsp + 0x54]
mov dword [rsp + 0x50], edi
lea r8d, [rdx + 0x2c]
call fcn.18001a180
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
cmp rbx, rbp
jae 0x180013327
nop word [rax + rax]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x180013307
cmp dword [rsp + 0x40], 0x10000
jne 0x1800132f5
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x1800132fa
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x1800132fa
lea eax, [rdx - 1]
xor edx, edx
mov r8d, 0x3000
add rax, rbx
div rcx
mov edx, 0x78
lea r9d, [rdx - 0x58]
imul rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
jne 0x18001330c
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x20]
add rbx, rax
cmp rbx, rbp
jb 0x180013290
test rsi, rsi
je 0x180013327
lea rcx, [0x180095da0]
mov rax, rcx
cmp qword [rax], 0
je 0x18001334b
inc edi
add rax, 8
cmp edi, 0x40
jb 0x180013316
mov rbx, qword [rsp + 0x90]
mov rbp, qword [rsp + 0x98]
mov rax, rsi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret
inc dword [0x180095d34]
mov eax, edi
mov qword [rcx + rax*8], rsi
jmp 0x180013327
mov rax, rdi
mov rsi, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret

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

Disassembly:
jmp 0x180013a40
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
movsxd rdi, r8d
movzx r8d, byte [rcx]
mov rbx, rcx
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
movzx eax, byte [rcx]
test al, al
jne 0x180013a90
movzx eax, byte [rdi + rcx]
test al, al
je 0x180013ab3
nop dword [rax + rax]
mov ecx, 0xa
call qword [sym.imp.KERNEL32.dll_Sleep]
movzx eax, byte [rdi + rbx]
test al, al
jne 0x180013a70
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
movzx eax, dx
mov byte [rcx], 0
mov ecx, eax
test eax, eax
jle 0x180013aaf
lea rax, [rdi + 1]
lea rax, [rbx + rax*2]
xor byte [rax], r8b
inc rax
dec rcx
jne 0x180013aa4
mov byte [rdi + rbx], 0
mov al, 1
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180018750
Capabilities:
Accept command line arguments

Disassembly:
jmp 0x180018750
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov ebp, ecx
test ecx, ecx
je 0x180018777
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rsi, rax
jmp 0x18001877a
mov rsi, rbx
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], rbx
call fcn.18001d4e4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, 0x40
movsxd rdx, eax
lea rdx, [rdx*2 + 0x21a]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
lea rdx, [0x180093f10]
mov rcx, rdx
mov rdi, rax
mov r8, rax
or rcx, rax
and ecx, 0xf
jne 0x180018837
lea eax, [rcx + 4]
movaps xmm0, xmmword [rdx]
lea r8, [r8 + 0x80]
lea rdx, [rdx + 0x80]
movaps xmmword [r8 - 0x80], xmm0
movaps xmm1, xmmword [rdx - 0x70]
movaps xmmword [r8 - 0x70], xmm1
movaps xmm0, xmmword [rdx - 0x60]
movaps xmmword [r8 - 0x60], xmm0
movaps xmm1, xmmword [rdx - 0x50]
movaps xmmword [r8 - 0x50], xmm1
movaps xmm0, xmmword [rdx - 0x40]
movaps xmmword [r8 - 0x40], xmm0
movaps xmm1, xmmword [rdx - 0x30]
movaps xmmword [r8 - 0x30], xmm1
movaps xmm0, xmmword [rdx - 0x20]
movaps xmmword [r8 - 0x20], xmm0
movaps xmm1, xmmword [rdx - 0x10]
movaps xmmword [r8 - 0x10], xmm1
dec rax
jne 0x1800187c3
movaps xmm0, xmmword [rdx]
movaps xmmword [r8], xmm0
mov rax, qword [rdx + 0x10]
mov qword [r8 + 0x10], rax
movzx eax, word [rdx + 0x18]
mov word [r8 + 0x18], ax
jmp 0x180018845
mov r8d, 0x21a
mov rcx, rax
call fcn.18001a2a0
test ebp, ebp
jne 0x180018855
mov rbx, qword [rsp + 0x38]
sub rbx, qword [0x180093f18]
lea rcx, [rdi + 0x218]
mov rdx, rsi
mov qword [rdi + 8], rbx
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rax, rdi
add rsp, 0x20
pop rdi
ret

Function at 0x180018c30
Capabilities:
Get common file path

Disassembly:
jmp 0x180018c30
push rbx
sub rsp, 0x360
mov rax, qword [0x1800941a0]
xor rax, rsp
mov qword [rsp + 0x350], rax
lea rcx, [rsp + 0x142]
xor ebx, ebx
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x140], bx
call fcn.18001a180
lea rcx, [rsp + 0x31]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x30], bl
call fcn.18001a180
lea rcx, [rsp + 0x30]
mov edx, 0x104
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea rax, [rsp + 0x30]
or r9, 0xffffffffffffffff
nop dword [rax]
inc r9
cmp byte [rax + r9], bl
jne 0x180018ca0
lea rax, [rsp + 0x140]
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea r9, [rsp + 0x140]
lea rdx, [0x1800964e0]
lea rcx, [0x180093f20]
mov r8d, 0x13
mov dword [rsp + 0x20], ebx
call fcn.18000122b
test eax, eax
sete bl
mov eax, ebx
mov rcx, qword [rsp + 0x350]
xor rcx, rsp
call fcn.1800197b0
add rsp, 0x360
pop rbx
ret
Function at 0x180019290
Capabilities:
Set global application hook

Disassembly:
jmp 0x180019290
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 edi, edi
mov rsi, r9
mov rbp, r8
mov r14, rdx
mov rbx, rcx
test rcx, rcx
je 0x180019359
cmp dword [rsp + 0x58], 1
jne 0x1800192db
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, eax
mov r9d, edi
mov r8, rbx
mov rdx, r14
mov ecx, 4
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov r9d, edi
mov r8, rbx
mov rdx, rbp
mov ecx, 3
mov qword [0x180096228], rax
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov rdx, qword [rsp + 0x50]
mov r9d, edi
mov r8, rbx
mov ecx, 0xc
mov qword [0x180096230], rax
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x180096240], rax
mov rax, qword [0x180096458]
cmp qword [rax + 0x50], 0
jle 0x1800193a1
mov r9d, edi
mov r8, rbx
mov rdx, rsi
mov ecx, 7
call qword [sym.imp.USER32.dll_SetWindowsHookExA]
mov qword [0x180096238], rax
jmp 0x1800193a1
mov rcx, qword [0x180096228]
test rcx, rcx
je 0x18001936b
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x180096230]
test rcx, rcx
je 0x18001937d
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x180096240]
test rcx, rcx
je 0x18001938f
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
mov rcx, qword [0x180096238]
test rcx, rcx
je 0x1800193a1
call qword [sym.imp.USER32.dll_UnhookWindowsHookEx]
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 0x1800194e0
Capabilities:
Allocate or change rwx memory

Disassembly:
jmp 0x1800194e0
sub rsp, 0x28
lea rcx, [0x180096490]
call fcn.1800010b9
lea rcx, [0x180096248]
call fcn.1800010b9
lea rcx, [0x180096498]
add rsp, 0x28
jmp fcn.1800010b9
Function at 0x180002628
Capabilities:
Create process on windows
Get common file path
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r8
push rbp
push rdi
push r14
lea rbp, [rax - 0xc18]
sub rsp, 0xd00
lea rdx, [rbp + 0x1f0]
mov ecx, 0x104
mov rbx, r9
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x20]
lea rdx, [0x180008594]
lea rcx, [rbp + 0x1f0]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
movzx eax, word [rbp - 0x20]
xor esi, esi
lea r14d, [rsi + 1]
lea rcx, [rbp - 0x20]
mov edx, esi
mov r8d, esi
jmp 0x1800026b1
cmp ax, 0x5c
je 0x18000269a
cmp ax, 0x2f
jne 0x1800026a5
lea rcx, [rbp - 0x1e]
movsxd rax, edx
lea rcx, [rcx + rax*2]
add edx, r14d
add r8, r14
movzx eax, word [rbp + r8*2 - 0x20]
test ax, ax
jne 0x18000268e
call fcn.180004050
mov qword [rsp + 0x30], rsi
lea rcx, [rbp - 0x20]
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1800027d3
mov r8d, dword [rbp + 0xc40]
lea r9, [rbp + 0xc30]
mov rdx, rbx
mov rcx, rax
mov dword [rbp + 0xc30], esi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebx, esi
mov rcx, rdi
test eax, eax
cmovne ebx, r14d
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x1800027d3
lea r9, [rbp - 0x20]
lea r8, str.cmd__C___s_
lea rcx, [rbp + 0x400]
mov edx, 0x400
call fcn.1800040f0
mov ebx, 0x68
lea rcx, [rsp + 0x70]
mov r8d, ebx
xor edx, edx
call sub.ntdll.dll_memset
lea rax, [rsp + 0x50]
lea rdx, [rbp + 0x400]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x40], rax
lea rax, [rbp + 0x1f0]
xor r8d, r8d
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
xor ecx, ecx
mov dword [rsp + 0x28], 0xc000000
mov dword [rsp + 0x70], ebx
mov qword [rsp + 0x50], rsi
mov dword [rsp + 0x20], esi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x1800027d3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea r11, [rsp + 0xd00]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret

Function at 0x180002d18
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [0x18000a2d8]
xor ebx, ebx
xor r9d, r9d
lea esi, [rbx + 1]
xor r8d, r8d
xor ecx, ecx
mov edx, esi
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x18], rax
test rax, rax
je 0x180002d73
lea r8, [0x1800027ec]
mov r9, rdi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov qword [rdi + 0x20], rax
cmovne ebx, esi
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180004344
Capabilities:
Get file size
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
xor ebx, ebx
mov rsi, r8
mov r14, rdx
mov qword [rax - 0x18], rbx
mov dword [r8], ebx
mov qword [rdx], rbx
mov dword [rax - 0x20], 0x8000000
lea r8d, [rbx + 1]
xor r9d, r9d
mov edx, 0x80000000
mov dword [rax - 0x28], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x18000439b
mov eax, 0x80004005
jmp 0x180004415
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsi], eax
cmp eax, 0xffffffff
jne 0x1800043b8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180004394
test eax, eax
je 0x1800043ad
mov rcx, qword [0x18000a270]
mov r8d, eax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rdi
mov qword [r14], rax
test rax, rax
je 0x1800043b0
mov r8d, dword [rsi]
lea r9, [rsp + 0x58]
mov rdx, rax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x18000440a
mov r8, qword [r14]
mov rcx, qword [0x18000a270]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov ebx, 0x80004005
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x180006740
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov r9d, dword [rdx + 4]
mov r10d, dword [rcx + 4]
mov esi, dword [rdx]
add r9d, dword [rcx]
mov r14d, dword [rdx + 8]
add r10d, dword [rdx + 0xc]
mov rbx, r8
mov r11, rcx
lea rdi, [rcx + 8]
mov ebp, 0x14
nop word [rax + rax]
lea edx, [r10*2 + 1]
lea eax, [r9*2 + 1]
lea rdi, [rdi + 8]
imul eax, r9d
ror eax, 5
imul edx, r10d
mov ecx, eax
xor eax, esi
mov esi, r9d
ror edx, 5
mov r8d, edx
xor r8d, r14d
mov r14d, r10d
ror r8d, cl
mov ecx, edx
add r8d, dword [rdi - 4]
ror eax, cl
add eax, dword [rdi - 8]
mov r9d, r8d
mov r10d, eax
dec rbp
jne 0x180006780
mov edx, dword [r11 + 0xa8]
mov rbp, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x28]
add edx, esi
mov rsi, qword [rsp + 0x20]
mov dword [rbx + 4], r8d
mov dword [rbx], edx
mov edx, dword [r11 + 0xac]
mov dword [rbx + 0xc], eax
add edx, r14d
mov dword [rbx + 8], edx
mov rbx, qword [rsp + 0x10]
pop r14
ret

Function at 0x180006810
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov r9d, dword [rdx]
mov eax, dword [rdx + 8]
mov r10d, dword [rdx + 4]
sub r9d, dword [rcx + 0xa8]
mov r11d, dword [rdx + 0xc]
sub eax, dword [rcx + 0xac]
mov rdi, r8
mov rbx, rcx
mov ebp, 0x13
lea rsi, [rcx + 0xa0]
mov ecx, r11d
mov r11d, eax
mov eax, r10d
sub eax, dword [rsi + 4]
mov r10d, r9d
mov r9d, ecx
sub r9d, dword [rsi]
lea r8d, [r10*2 + 1]
lea edx, [r11*2 + 1]
imul r8d, r10d
ror r8d, 5
imul edx, r11d
mov ecx, r8d
ror edx, 5
lea rsi, [rsi - 8]
rol eax, cl
mov ecx, edx
xor eax, edx
rol r9d, cl
xor r9d, r8d
dec rbp
jns 0x180006851
sub r10d, dword [rbx]
sub r11d, dword [rbx + 4]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x18]
mov dword [rdi + 4], r10d
mov dword [rdi + 0xc], r11d
mov dword [rdi], r9d
mov dword [rdi + 8], eax
mov rdi, qword [rsp + 0x20]
ret
Function at 0x1800068d0
Capabilities:
Encrypt data using rc6

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x1f0
xor r11d, r11d
mov rsi, rcx
mov r10d, r11d
mov r9d, r11d
mov eax, r11d
nop dword [rax]
movzx r8d, byte [rdx]
shl eax, 8
inc r9d
or eax, r8d
lea rdx, [rdx + 1]
test r9b, 3
jne 0x180006917
mov ecx, r10d
inc r10d
mov dword [rsp + rcx*4 + 0xf0], eax
mov eax, r11d
cmp r9d, 0x10
jb 0x1800068f0
mov dword [rsp + 0x20], 0xb7e15163
lea rcx, [rsp + 0x24]
lea rdx, [rsp + 0x20]
mov r8d, 0x2b
nop word [rax + rax]
mov eax, dword [rdx]
lea rcx, [rcx + 4]
lea rdx, [rdx + 4]
sub eax, 0x61c88647
mov dword [rcx - 4], eax
dec r8
jne 0x180006940
mov ecx, 0x2c
mov eax, r10d
mov r9d, r11d
cmp r10d, ecx
mov r8d, r11d
mov ebx, r11d
cmovb eax, ecx
lea ecx, [rax + rax*2]
test ecx, ecx
je 0x1800069e4
mov qword [rsp + 0x200], rdi
mov edi, ecx
nop
mov eax, r9d
lea rcx, [rsp + 0x20]
lea rdx, [rsp + 0xf0]
lea rcx, [rcx + rax*4]
mov eax, dword [rcx]
add eax, r8d
add ebx, eax
mov eax, r11d
lea rdx, [rdx + rax*4]
ror ebx, 3
mov eax, 0xba2e8ba3
mov dword [rcx], ebx
lea ecx, [r8 + rbx]
add r8d, dword [rdx]
add r8d, ebx
ror r8d, cl
inc r9d
mov dword [rdx], r8d
mul r9d
shr edx, 5
lea eax, [r11 + 1]
imul edx, edx, 0x2c
sub r9d, edx
xor edx, edx
div r10d
mov r11d, edx
dec rdi
jne 0x180006980
mov rdi, qword [rsp + 0x200]
lea rdx, [rsp + 0x20]
mov r8d, 0xb0
mov rcx, rsi
call sub.ntdll.dll_memcpy
mov rbx, qword [rsp + 0x208]
add rsp, 0x1f0
pop rsi
ret
Function at 0x180007b70
Capabilities:
Enumerate pe sections

Disassembly:
push r12
push r15
sub rsp, 0x18
movsxd rax, dword [rcx + 0x3c]
mov r12, qword [rsp + 0x50]
mov r15, r9
xor r9d, r9d
lea r8, [rax + rcx]
mov r10, rcx
mov ecx, 0x14c
mov qword [r15], r9
mov dword [r12], r9d
cmp word [r8 + 4], cx
jne 0x180007d0f
mov qword [rsp], r14
mov r14d, dword [rax + r10 + 0x88]
test r14d, r14d
je 0x180007bf1
cmp dword [rax + r10 + 0x8c], r9d
je 0x180007bf1
movzx eax, word [r8 + 0x14]
lea rcx, [r8 + 0x18]
movzx r8d, word [r8 + 6]
add rcx, rax
mov edx, r9d
test r8d, r8d
je 0x180007bf1
nop dword [rax]
cmp dword [rcx + 0xc], r14d
je 0x180007c01
inc edx
add rcx, 0x28
cmp edx, r8d
jb 0x180007be0
mov eax, r9d
mov r14, qword [rsp]
add rsp, 0x18
pop r15
pop r12
ret
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x10], rdi
mov edi, dword [rcx + 0x14]
mov rcx, r9
add rdi, r10
movzx esi, cx
movzx ebp, word [rdi + 0xe]
movzx eax, word [rdi + 0xc]
add ebp, eax
je 0x180007d0b
mov qword [rsp + 0x30], rbx
mov qword [rsp + 8], r13
mov r13d, 0x409
nop dword [rax]
movzx eax, si
movzx r10d, cx
mov r11d, dword [rdi + rax*8 + 0x14]
btr r11d, 0x1f
add r11, rdi
movzx ebx, word [r11 + 0xe]
movzx eax, word [r11 + 0xc]
add ebx, eax
je 0x180007cb7
movzx eax, r10w
cmp word [r11 + rax*8 + 0x10], 0x78
jne 0x180007cab
mov r8d, dword [r11 + rax*8 + 0x14]
btr r8d, 0x1f
add r8, rdi
movzx eax, word [r8 + 0xc]
movzx r9d, word [r8 + 0xe]
add r9d, eax
movzx eax, cx
je 0x180007cab
nop
movzx ecx, ax
lea rdx, [r8 + rcx*8]
cmp word [rdx + 0x10], r13w
je 0x180007ced
inc ax
movzx ecx, ax
cmp ecx, r9d
jb 0x180007c90
xor ecx, ecx
inc r10w
movzx eax, r10w
cmp eax, ebx
jb 0x180007c62
inc si
movzx eax, si
cmp eax, ebp
jb 0x180007c40
mov eax, ecx
mov r13, qword [rsp + 8]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x10]
mov r14, qword [rsp]
add rsp, 0x18
pop r15
pop r12
ret
mov edx, dword [rdx + 0x14]
mov eax, dword [rdx + rdi + 4]
mov ecx, dword [rdx + rdi]
sub rcx, r14
mov dword [r12], eax
mov eax, 1
add rcx, rdi
mov qword [r15], rcx
jmp 0x180007cc7
mov eax, ecx
jmp 0x180007cd1
mov eax, r9d
add rsp, 0x18
pop r15
pop r12
ret
Function at 0x180007d30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [0x18000a270]
mov r15, r8
mov edi, edx
mov r8d, edx
xor edx, edx
mov r14, r9
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r10d, edi
shr r10d, 2
mov rsi, rax
test r10d, r10d
je 0x180007d90
mov r8, rbx
mov rdx, rax
mov ecx, r10d
sub r8, rax
mov eax, dword [r8 + rdx]
lea rdx, [rdx + 4]
mov dword [rdx - 4], eax
dec rcx
jne 0x180007d80
lea edx, [r10*4]
cmp edx, edi
jae 0x180007dc0
mov eax, edi
sub rbx, rsi
lea rcx, [rdx + rsi]
sub eax, edx
mov edx, eax
nop dword [rax]
movzx eax, byte [rcx + rbx]
lea rcx, [rcx + 1]
mov byte [rcx - 1], al
dec rdx
jne 0x180007db0
mov r11d, dword [rsi + rdi - 4]
mov r10d, dword [rsi + rdi - 8]
lea eax, [rdi - 8]
mov r9d, eax
mov r8d, eax
mov rax, rsi
shr r9, 2
and r8d, 3
test r9d, r9d
je 0x180007e0d
nop word [rax + rax]
mov edx, dword [rax]
lea ecx, [r9 + r11]
add rax, 4
movzx ecx, cl
ror edx, cl
xor edx, r10d
sub edx, r9d
mov dword [rax - 4], edx
dec r9d
jne 0x180007df0
test r8d, r8d
je 0x180007e1e
xor byte [rax], r10b
lea rax, [rax + 1]
dec r8d
jne 0x180007e12
mov edi, dword [rsi + rdi - 0xc]
mov rcx, qword [0x18000a270]
xor edx, edx
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rsi
mov rdx, rax
mov rbx, rax
call fcn.180001060
mov rcx, qword [0x18000a270]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov qword [r15], rbx
mov rbx, qword [rsp + 0x40]
mov dword [r14], edi
add rsp, 0x20
pop r15
pop r14
pop rdi
ret