joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002b60
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0x100
mov r10d, edx
movaps xmm0, xmmword [0x1400062c0]
movaps xmmword [rsp], xmm0
movaps xmm0, xmmword [0x1400062d0]
movaps xmmword [rsp + 0x10], xmm0
movaps xmm0, xmmword [str._________._0123456789:_____ABCDEFGHIJKLMNOPQRSTUVWXYZ____abcdefghijklmnopqrstuvwxyz]
movaps xmmword [rsp + 0x20], xmm0
movaps xmm0, xmmword [0x1400062f0]
movaps xmmword [rsp + 0x30], xmm0
movaps xmm0, xmmword [0x140006300]
movaps xmmword [rsp + 0x40], xmm0
movaps xmm0, xmmword [0x140006310]
movaps xmmword [rsp + 0x50], xmm0
movaps xmm0, xmmword [0x140006320]
movaps xmmword [rsp + 0x60], xmm0
movaps xmm0, xmmword [0x140006330]
movaps xmmword [rsp + 0x70], xmm0
movaps xmm0, xmmword [0x140006340]
movaps xmmword [rsp + 0x80], xmm0
movaps xmm0, xmmword [0x140006350]
movaps xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [0x140006360]
movaps xmmword [rsp + 0xa0], xmm0
movaps xmm0, xmmword [0x140006370]
movaps xmmword [rsp + 0xb0], xmm0
movaps xmm0, xmmword [0x140006380]
movaps xmmword [rsp + 0xc0], xmm0
movaps xmm0, xmmword [0x140006390]
movaps xmmword [rsp + 0xd0], xmm0
movaps xmm0, xmmword [0x1400063a0]
movaps xmmword [rsp + 0xe0], xmm0
movaps xmm0, xmmword [0x1400063b0]
movaps xmmword [rsp + 0xf0], xmm0
xor r11d, r11d
xor esi, esi
nop word [rax + rax]
mov eax, r11d
cdq
idiv r9d
movzx eax, byte [r8 + rdx]
add eax, esi
movzx edx, byte [rsp + r11]
mov esi, edx
add esi, eax
movzx esi, sil
movzx eax, byte [rsp + rsi]
mov byte [rsp + r11], al
mov byte [rsp + rsi], dl
add r11, 1
cmp r11, 0x100
jne 0x140002c50
test r10d, r10d
jle 0x140002cd8
mov r8d, r10d
xor r9d, r9d
xor esi, esi
xor edx, edx
nop word cs:[rax + rax]
nop dword [rax]
add edx, 1
movzx edx, dl
movzx r10d, byte [rsp + rdx]
add esi, r10d
movzx esi, sil
movzx eax, byte [rsp + rsi]
mov byte [rsp + rdx], al
mov byte [rsp + rsi], r10b
movzx eax, byte [rsp + rdx]
add eax, r10d
movzx eax, al
movzx eax, byte [rsp + rax]
xor byte [rcx + r9], al
add r9, 1
cmp r8, r9
jne 0x140002ca0
add rsp, 0x100
pop rsi
ret
Function at 0x1400034e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140009724]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x140003668
mov rax, qword [0x140009728]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x14000352c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x1400035b5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140003510
mov rcx, rbx
call fcn.140005530
test rax, rax
mov r12, rax
je 0x14000369d
mov rax, qword [0x140009728]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140005660
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140009728]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140003680
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1400035ae
sub eax, 0x40
and eax, 0xffffffbf
jne 0x140003610
add dword [0x140009724], 1
cmp edi, 8
jae 0x1400035e3
test dil, 4
jne 0x140003654
test edi, edi
je 0x1400035d8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x14000366f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x1400035d8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x1400035fc
jmp 0x1400035d8
add rsi, qword [0x140009728]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400035ae
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140005860
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x1400035d8
xor esi, esi
jmp 0x140003537
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x1400035d8
mov rax, qword [0x140009728]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140005860
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.140005860
nop
nop dword [rax]
Function at 0x140003f00
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push rsi
push rdi
push rbx
mov al, byte [rdx]
mov byte [rcx], al
mov al, byte [rdx + 1]
mov byte [rcx + 1], al
mov al, byte [rdx + 2]
mov byte [rcx + 2], al
mov al, byte [rdx + 3]
mov byte [rcx + 3], al
mov al, byte [rdx + 4]
mov byte [rcx + 4], al
mov al, byte [rdx + 5]
mov byte [rcx + 5], al
mov al, byte [rdx + 6]
mov byte [rcx + 6], al
mov al, byte [rdx + 7]
mov byte [rcx + 7], al
mov al, byte [rdx + 8]
mov byte [rcx + 8], al
mov al, byte [rdx + 9]
mov byte [rcx + 9], al
mov al, byte [rdx + 0xa]
mov byte [rcx + 0xa], al
mov al, byte [rdx + 0xb]
mov byte [rcx + 0xb], al
mov al, byte [rdx + 0xc]
mov byte [rcx + 0xc], al
mov al, byte [rdx + 0xd]
mov byte [rcx + 0xd], al
mov al, byte [rdx + 0xe]
mov byte [rcx + 0xe], al
mov al, byte [rdx + 0xf]
mov byte [rcx + 0xf], al
mov eax, 4
lea r9, str.cw
lea r8, [0x1400067f0]
jmp 0x140003fad
xor bl, byte [rcx + rax*4 - 0x10]
mov byte [rcx + rax*4], bl
xor dl, byte [rcx + rax*4 - 0xf]
mov byte [rcx + rax*4 + 1], dl
xor r11b, byte [rcx + rax*4 - 0xe]
mov byte [rcx + rax*4 + 2], r11b
xor r10b, byte [rcx + rax*4 - 0xd]
mov byte [rcx + rax*4 + 3], r10b
add rax, 1
cmp rax, 0x2c
je 0x140003ff4
movzx ebx, byte [rcx + rax*4 - 4]
movzx edx, byte [rcx + rax*4 - 3]
movzx r11d, byte [rcx + rax*4 - 2]
movzx r10d, byte [rcx + rax*4 - 1]
test al, 3
jne 0x140003f80
movzx esi, bl
movzx edi, dl
movzx edx, r11b
movzx ebx, r10b
movzx edx, byte [rdx + r9]
movzx r11d, byte [rbx + r9]
movzx r10d, byte [rsi + r9]
mov esi, eax
shr esi, 2
movzx ebx, byte [rsi + r8]
xor bl, byte [rdi + r9]
jmp 0x140003f80
pop rbx
pop rdi
pop rsi
ret
Function at 0x140004bf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea r14, [rcx + 0xb0]
mov rax, r14
test r8, r8
je 0x140004cd6
mov r15, r8
mov rsi, rdx
mov r12, rcx
xor edi, edi
mov rax, r14
mov rbx, rdx
nop word cs:[rax + rax]
nop dword [rax + rax]
lea rcx, [rsi + rdi]
movzx edx, byte [rax]
xor byte [rsi + rdi], dl
movzx edx, byte [rax + 1]
xor byte [rsi + rdi + 1], dl
movzx edx, byte [rax + 2]
xor byte [rsi + rdi + 2], dl
movzx edx, byte [rax + 3]
xor byte [rsi + rdi + 3], dl
movzx edx, byte [rax + 4]
xor byte [rsi + rdi + 4], dl
movzx edx, byte [rax + 5]
xor byte [rsi + rdi + 5], dl
movzx edx, byte [rax + 6]
xor byte [rsi + rdi + 6], dl
movzx edx, byte [rax + 7]
xor byte [rsi + rdi + 7], dl
movzx edx, byte [rax + 8]
xor byte [rsi + rdi + 8], dl
movzx edx, byte [rax + 9]
xor byte [rsi + rdi + 9], dl
movzx edx, byte [rax + 0xa]
xor byte [rsi + rdi + 0xa], dl
movzx edx, byte [rax + 0xb]
xor byte [rsi + rdi + 0xb], dl
movzx edx, byte [rax + 0xc]
xor byte [rsi + rdi + 0xc], dl
movzx edx, byte [rax + 0xd]
xor byte [rsi + rdi + 0xd], dl
movzx edx, byte [rax + 0xe]
xor byte [rsi + rdi + 0xe], dl
movzx eax, byte [rax + 0xf]
xor byte [rsi + rdi + 0xf], al
mov rdx, r12
call fcn.140004050
mov rax, rbx
add rbx, 0x10
add rdi, 0x10
cmp rdi, r15
jb 0x140004c30
lea rax, [rsi + rdi]
add rax, 0xfffffffffffffff0
movups xmm0, xmmword [rax]
movups xmmword [r14], xmm0
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret

Function at 0x140004cf0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x30
test r8, r8
je 0x140004dfa
mov r14, r8
mov rdi, rdx
mov rbx, rcx
lea r15, [rcx + 0xb0]
xor esi, esi
nop word cs:[rax + rax]
lea rcx, [rdi + rsi]
movups xmm0, xmmword [rdi + rsi]
movaps xmmword [rsp + 0x20], xmm0
mov rdx, rbx
call fcn.140004710
movzx eax, byte [rbx + 0xb0]
xor byte [rdi + rsi], al
movzx eax, byte [rbx + 0xb1]
xor byte [rdi + rsi + 1], al
movzx eax, byte [rbx + 0xb2]
xor byte [rdi + rsi + 2], al
movzx eax, byte [rbx + 0xb3]
xor byte [rdi + rsi + 3], al
movzx eax, byte [rbx + 0xb4]
xor byte [rdi + rsi + 4], al
movzx eax, byte [rbx + 0xb5]
xor byte [rdi + rsi + 5], al
movzx eax, byte [rbx + 0xb6]
xor byte [rdi + rsi + 6], al
movzx eax, byte [rbx + 0xb7]
xor byte [rdi + rsi + 7], al
movzx eax, byte [rbx + 0xb8]
xor byte [rdi + rsi + 8], al
movzx eax, byte [rbx + 0xb9]
xor byte [rdi + rsi + 9], al
movzx eax, byte [rbx + 0xba]
xor byte [rdi + rsi + 0xa], al
movzx eax, byte [rbx + 0xbb]
xor byte [rdi + rsi + 0xb], al
movzx eax, byte [rbx + 0xbc]
xor byte [rdi + rsi + 0xc], al
movzx eax, byte [rbx + 0xbd]
xor byte [rdi + rsi + 0xd], al
movzx eax, byte [rbx + 0xbe]
xor byte [rdi + rsi + 0xe], al
movzx eax, byte [rbx + 0xbf]
xor byte [rdi + rsi + 0xf], al
movaps xmm0, xmmword [rsp + 0x20]
movups xmmword [r15], xmm0
add rsi, 0x10
cmp rsi, r14
jb 0x140004d20
add rsp, 0x30
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140005130
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140009a40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140009a20]
test rbx, rbx
je 0x140005184
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14000517b
test rsi, rsi
je 0x14000517b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140005160
lea rcx, [0x140009a40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140005530
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x140006040]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x14000559d
mov rcx, r8
call fcn.140005410
test eax, eax
je 0x14000559d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x14000559d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x140005594
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000559f
add rax, 0x28
cmp rax, r9
jne 0x140005580
xor eax, eax
add rsp, 0x28
ret

Function at 0x140005860
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.140003e80
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.140003e80
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
int3
Function at 0x14004102c
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x14008c110]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x1400410a1
cmp byte [rcx + 0x71], 0
je 0x1400410a1
or edx, 0xffffffff
call fcn.140040110
cmp eax, 0xffffffff
je 0x1400410f6
mov rcx, qword [rbx + 0x68]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
lea rdx, [rbx + 0x74]
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
mov rax, qword [rcx]
mov rax, qword [rax + 0x40]
call qword [case.0x140062ace.0]
test eax, eax
je 0x1400410bc
sub eax, 1
je 0x1400410c0
cmp eax, 2
jne 0x1400410f6
mov byte [rbx + 0x71], 0
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004d060
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x1400410ed
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call fcn.14005672c
cmp rdi, rax
jne 0x1400410f6
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400410a3
xor al, al
jmp 0x1400410a3

Function at 0x140042e0c
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x140042c67
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140042c67
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140042c67
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140042c67
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140042c67
cmp dword [rcx + 0x84], 0xe
jbe 0x140042c67
cmp dword [rcx + 0xf8], 0
je 0x140042c67
mov ecx, ebx
call fcn.140042d14
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.140042ae4
cmp dword [rbp + 0x20], 0
je 0x140042cb4
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140042cc4
int3
xor r8d, r8d
xor edx, edx
jmp 0x140042c00

Function at 0x14004d6e8
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x14008d110], eax
call fcn.14004d3dc
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14008d110], 0
jne case.default.0x14004d73e
mov ecx, 1
call fcn.14004d3dc
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
jnp 0x1400f797a
pushfq
and byte [rbx], ah
invalid
sbb dword [rcx - 0xf], esi
xor eax, dword [rcx*4 - 0x10764dff]
invalid
Function at 0x180001664
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r13, rdx
mov rbx, rcx
lea edx, [r15 + 0x41]
mov r14d, r9d
mov r12d, r8d
lea ecx, [rdx - 1]
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x18000177a
lea ebp, [r15 + 7]
cmp r12d, ebp
jb 0x1800016c6
lea rcx, str.ERROR_kull_m_busylight_request_create___count_u__max_is_7__n
mov edx, r12d
call fcn.180008f6c
cmp r12d, ebp
cmovb ebp, r12d
mov esi, 1
test ebp, ebp
je 0x180001731
mov r8, rdi
lea rdx, [r13 + 1]
mov r9d, ebp
sub r8, r13
mov al, byte [rdx - 1]
movzx ecx, al
test al, 0xf0
jne 0x1800016ed
or ecx, 0x10
mov byte [r8 + rdx], cl
mov al, byte [rdx]
add rdx, 8
sub r9, rsi
mov byte [r8 + rdx - 7], al
mov al, byte [rdx - 7]
mov byte [r8 + rdx - 6], al
mov al, byte [rdx - 6]
mov byte [r8 + rdx - 5], al
mov al, byte [rdx - 5]
mov byte [r8 + rdx - 4], al
mov al, byte [rdx - 4]
mov byte [r8 + rdx - 3], al
mov al, byte [rdx - 3]
mov byte [r8 + rdx - 2], al
mov al, byte [rdx - 2]
mov byte [r8 + rdx - 1], al
jne 0x1800016e0
mov word [rdi + 0x39], 0x404
mov dword [rdi + 0x3b], 0xffffff55
movzx ecx, r15w
lea rdx, [rdi + 1]
mov r8d, 0x3e
movzx eax, byte [rdx]
add rdx, rsi
add cx, ax
sub r8, rsi
jne 0x18000174c
movzx eax, cx
shr ax, 8
mov byte [rdi + 0x3f], al
movzx eax, cx
and eax, 0x800000ff
jge 0x180001777
sub eax, esi
or eax, 0xffffff00
add eax, esi
mov byte [rdi + 0x40], al
test esi, esi
je 0x180001822
jmp 0x180001810
mov ebp, r15d
test rbx, rbx
je 0x1800017f2
mov rcx, qword [rbx + 0x78]
test rcx, rcx
je 0x1800017f2
cmp rcx, 0xffffffffffffffff
je 0x1800017f2
movzx r9d, word [rbx + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x1800017e1
lea r9, [rsp + 0x30]
mov rdx, rdi
mov qword [rsp + 0x20], r15
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ebp, eax
test eax, eax
jne 0x180001801
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.180008f6c
jmp 0x180001801
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.180008f6c
jmp 0x180001801
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.180008f6c
and esi, ebp
test r14d, r14d
je 0x18000180d
mov rbx, qword [rbx]
jmp 0x180001810
mov rbx, r15
test rbx, rbx
jne 0x180001787
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
lea r11, [rsp + 0x40]
mov eax, esi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x180001844
Capabilities:
Terminate thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov rdi, rcx
mov dword [rax + 8], 0
mov dword [rax + 0xc], 0x80000000
mov rbx, rcx
test rcx, rcx
je 0x1800018a2
mov rcx, qword [rbx + 0x98]
and dword [rbx + 0x90], 0
test rcx, rcx
je 0x180001892
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
and qword [rbx + 0x98], 0
test esi, esi
je 0x18000189b
mov rbx, qword [rbx]
jmp 0x18000189d
xor ebx, ebx
test rbx, rbx
jne 0x18000186f
lea rdx, [rsp + 0x30]
mov r9d, esi
mov r8d, 1
mov rcx, rdi
call fcn.180001664
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002e74
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
mov rbp, rsp
sub rsp, 0x50
xor ebx, ebx
mov r13, r9
mov esi, r8d
mov r12, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x180002f0d
cmp dword [rbp + 0x40], 4
jne 0x180002fef
lea rdx, [rbp - 0x20]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x180002fef
mov rax, qword [rbp - 0x20]
lea rdx, [rbp - 0x10]
xor ecx, ecx
call qword [rax + reloc.WLDAP32.dll_Ordinal_16]
test eax, eax
js 0x180002fef
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov r8, r12
mov edx, esi
call qword [rax + Ordinal_26]
mov rax, qword [rbp - 0x20]
mov rcx, qword [rbp - 0x10]
mov rdx, r13
call qword [rax + 0x20]
lea rcx, [rbp - 0x10]
test eax, eax
mov rax, qword [rbp - 0x20]
setns bl
call qword [rax + Ordinal_41]
jmp 0x180002fef
lea rcx, [rbp - 8]
mov r9d, Ordinal_26
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x180002fef
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x18]
xor r9d, r9d
xor r8d, r8d
mov edx, edi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180002fe3
mov rcx, qword [rbp - 0x18]
xor r9d, r9d
mov r8d, esi
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180002fd9
mov rcx, qword [rbp - 0x18]
xor r8d, r8d
lea r9, [rbp + 0x20]
lea esi, [r8 + 2]
mov dword [rsp + 0x20], ebx
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180002fd9
mov edx, dword [rbp + 0x20]
lea ecx, [rsi + 0x3e]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x180002fd9
mov rcx, qword [rbp - 0x18]
lea r9, [rbp + 0x20]
mov r8, rax
mov edx, esi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov ecx, dword [rbp + 0x40]
mov rdx, rdi
cmp dword [rbp + 0x20], ecx
mov ebx, eax
cmovb ecx, dword [rbp + 0x20]
mov r8d, ecx
mov rcx, r13
call fcn.180076230
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rbp - 8]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x50]
mov eax, ebx
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rbp
ret
Function at 0x18000300c
Capabilities:
Encrypt data using des via winapi

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 r13
push r14
sub rsp, 0x30
mov r14, rcx
mov esi, r9d
mov ecx, 0x6603
xor ebx, ebx
mov r12, r8
mov r13d, edx
lea ebp, [rsi + 0xc]
cmp edx, ecx
je 0x1800030a3
lea ecx, [rbx + 0x40]
mov edx, ebp
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800030d1
lea rcx, [rax + 0xc]
mov r8d, esi
mov rdx, r12
mov dword [rax], 0x208
mov dword [rax + 4], r13d
mov dword [rax + 8], esi
call fcn.180076230
mov r11, qword [rsp + 0x78]
mov eax, dword [rsp + 0x70]
mov qword [rsp + 0x28], r11
xor r9d, r9d
mov r8d, ebp
mov rdx, rdi
mov rcx, r14
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x1800030d1
mov rax, qword [rsp + 0x80]
test rax, rax
je 0x1800030d1
mov r9d, dword [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x78]
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x20], rax
call fcn.180003bb0
mov ebx, eax
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x1800030f4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r13
push r14
sub rsp, 0x150
xor edi, edi
cmp r8d, dword [rsp + 0x190]
mov r12, r9
setae dil
mov ebx, r8d
mov rsi, rdx
mov r13d, ecx
test edi, edi
je 0x18000313e
mov r8d, dword [rsp + 0x190]
mov rcx, r9
jmp 0x1800031ef
mov r14d, Ordinal_69
lea rcx, [rsp + 0x70]
lea edx, [r14 - 0xa]
mov r8d, r14d
call fcn.180079090
lea edx, [r14 + 0x1c]
lea rcx, [rsp + 0x30]
mov r8d, r14d
call fcn.180079090
test ebx, ebx
je 0x18000318d
lea rcx, [rsp + 0x70]
lea rdx, [rsp + 0x30]
mov r8, rbx
sub rcx, rsi
sub rdx, rsi
mov al, byte [rsi]
xor byte [rcx + rsi], al
xor byte [rdx + rsi], al
inc rsi
dec r8
jne 0x18000317d
lea r9, [rsp + 0xb0]
lea rdx, [rsp + 0x70]
mov r8d, r14d
mov ecx, r13d
mov dword [rsp + 0x20], ebx
call fcn.180002e74
test eax, eax
je 0x1800031f4
lea r9, [rsp + rbx + 0xb0]
lea rdx, [rsp + 0x30]
mov r8d, r14d
mov ecx, r13d
mov dword [rsp + 0x20], ebx
call fcn.180002e74
mov edi, eax
test eax, eax
je 0x1800031f4
lea ecx, [rbx + rbx]
lea rdx, [rsp + 0xb0]
cmp dword [rsp + 0x190], ecx
cmovb ecx, dword [rsp + 0x190]
mov r8d, ecx
mov rcx, r12
call fcn.180076230
lea r11, [rsp + 0x150]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop r12
ret