joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180003b6b
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x238
lea rdx, [rbp - 0x38]
sub rdx, rsp
sub rsp, 0x20
lea rcx, [rsp + 0x20]
call fcn.180003749
add rsp, 0x20
mov rsi, qword [rbp + 0x10]
mov eax, dword [rsi + 0x3c]
mov edx, dword [rax + rsi + 0x88]
mov ecx, dword [rax + rsi + 0x8c]
mov qword [rbp - 0x60], rdx
mov qword [rbp - 0x68], rcx
and eax, eax
je 0x180003c9c
lea rax, [rdx + rsi]
mov edx, dword [rax + 0x18]
mov qword [rbp - 0x40], rdx
mov edx, dword [rax + 0x1c]
mov qword [rbp - 0x48], rdx
add qword [rbp - 0x48], rsi
mov edx, dword [rax + 0x20]
mov qword [rbp - 0x50], rdx
add qword [rbp - 0x50], rsi
mov edx, dword [rax + 0x24]
mov qword [rbp - 0x58], rdx
add qword [rbp - 0x58], rsi
xor rbx, rbx
mov rdi, qword [rbp - 0x50]
jmp 0x180003c92
mov eax, dword [rdi + rbx*4]
add rax, rsi
sub rsp, 0x20
mov rcx, qword [rbp + 0x18]
mov rdx, rax
call fcn.180003966
add rsp, 0x20
and eax, eax
je 0x180003c8f
mov rdx, qword [rbp - 0x58]
mov ax, word [rdx + rbx*2]
mov rdx, qword [rbp - 0x48]
mov eax, dword [rdx + rax*4]
mov rdx, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x68]
add rdx, rsi
add rax, rsi
add rcx, rdx
cmp rax, rdx
jbe 0x180003c8d
cmp rax, rcx
ja 0x180003c8d
mov rsi, rax
mov rdi, rax
mov al, 0x2e
repne scasb al, byte [rdi]
sub rdi, rsi
mov rcx, rdi
lea rdi, [rbp - 0x268]
rep movsb byte [rdi], byte [rsi]
mov byte [rdi - 1], 0
sub rsp, 0x20
lea rcx, [rbp - 0x268]
call fcn.180003cb3
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
mov rdx, rsi
call fcn.180003b6b
add rsp, 0x20
jmp 0x180003c9f
inc rbx
cmp rbx, qword [rbp - 0x40]
jb 0x180003c01
xor rax, rax
add rsp, 0x238
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret

Function at 0x180003cb3
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rcx
push rbp
mov rbp, rsp
push rbx
push rdi
push rsi
push r12
push r13
push r14
push r15
sub rsp, 0x218
lea rdx, [rbp - 0x38]
sub rdx, rsp
sub rsp, 0x20
lea rcx, [rsp + 0x20]
call fcn.180003749
add rsp, 0x20
mov rdx, qword [rbp + 0x10]
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rsi, qword [rax + 0x18]
mov rsi, qword [rsi]
mov rdi, qword [rsi]
cmp qword [rdi + 0x30], 0
je 0x180003d4b
mov r12, qword [rdi + 0x60]
xor rcx, rcx
cmp byte [rcx + rdx], 0
je 0x180003d86
mov al, byte [r12]
mov ah, al
cmp al, 0x41
jb 0x180003d29
cmp al, 0x5a
ja 0x180003d29
add ah, 0x20
jmp 0x180003d34
cmp al, 0x61
jb 0x180003d34
cmp al, 0x7a
ja 0x180003d34
sub ah, 0x20
cmp byte [rcx + rdx], al
je 0x180003d40
cmp byte [rcx + rdx], ah
je 0x180003d40
jmp 0x180003d49
add r12, 2
inc rcx
jmp 0x180003d10
jmp 0x180003cfc
sub rsp, 0x20
lea rcx, str.kernel32.dll
call fcn.180003cb3
add rsp, 0x20
sub rsp, 0x20
mov rcx, rax
lea rdx, str.LoadLibraryA
call fcn.180003b6b
add rsp, 0x20
mov rcx, qword [rbp + 0x10]
sub rsp, 0x20
call rax
add rsp, 0x20
jmp 0x180003d8a
mov rax, qword [rdi + 0x30]
add rsp, 0x218
pop r15
pop r14
pop r13
pop r12
pop rsi
pop rdi
pop rbx
pop rbp
ret
Function at 0x18000f540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x18000f56d
xor al, al
jmp 0x18000f6cf
mov rax, qword [0x18002f6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x18002f6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x18002f6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x18002f6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x18002f6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x18002f6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x18002f6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x18002f6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x18002f700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x18000f6c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x18000f619
mov r11d, 2
jmp 0x18000f63d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x18000f633
mov r11d, 1
jmp 0x18000f63d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x18000f6e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x18000f682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x18000f69a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x18000f6aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x18000f6b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x18000f600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x18000f6ca
Function at 0x1400020ac
Capabilities:
Parse pe header

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

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400b86b0]
mov dword [rax], 1
mov rax, qword [0x1400b86c0]
mov dword [rax], 1
mov rax, qword [0x1400b86d0]
mov dword [rax], 1
mov rax, qword [0x1400b8650]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400014d8
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140001504
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000152a
cmp eax, 0x20b
je 0x140001551
jmp 0x140001580
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000153d
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000156c
mov eax, 0
jmp 0x140001585
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001585
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14008f630
Capabilities:
Encode data using xor
Extract resource via kernel32 functions
Hash data with crc32

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400c4b10], 0
mov r12, rcx
mov rdi, rdx
je 0x14008f6b8
lea rdx, [0x1400b6c1a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14008f7c0
mov rsi, qword [0x1400c4b08]
jmp 0x14008f675
lea rsi, [rdx + rax + 4]
mov rdx, rsi
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rsi
mov ebx, eax
call sub.msvcrt.dll_strlen
lea rdx, [rsi + rax + 1]
mov eax, dword [rdx]
test ebx, ebx
jne 0x14008f670
movzx r8d, word [rdx + 4]
lea r9, [rdx + 6]
mov rcx, r12
mov rdx, r9
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14008b340
mov r8d, 0xa
mov edx, 3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdx, rax
mov r9d, dword [rax]
mov eax, dword [rax + 4]
lea rcx, [rdx + 8]
mov qword [0x1400c4b08], rcx
test eax, eax
je 0x14008f7a8
sub eax, 1
lea r8, [rdx + rax + 9]
mov eax, 0xffffffff
nop dword [rax + rax]
movzx edx, byte [rcx]
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
and edx, 1
neg edx
shr eax, 1
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor edx, eax
mov eax, edx
shr eax, 1
and edx, 1
add rcx, 1
neg edx
and edx, 0xedb88320
xor eax, edx
mov edx, eax
and eax, 1
neg eax
shr edx, 1
and eax, 0xedb88320
xor eax, edx
cmp r8, rcx
jne 0x14008f710
not eax
cmp r9d, eax
jne 0x14008f85d
mov byte [0x1400c4b10], 1
jmp 0x14008f649
cmp byte [0x1400c4b00], 0
jne 0x14008f660
mov rbx, qword [sym.imp.python310.dll_PyDict_New]
lea rsi, [0x1400c4bc8]
call rbx
mov qword [0x1400c4b58], rax
call rbx
mov qword [0x1400c4b50], rax
call rbx
mov qword [0x1400c4b48], rax
call rbx
mov qword [0x1400c4b88], rax
call rbx
mov qword [0x1400c4b80], rax
call rbx
mov qword [0x1400c4b78], rax
call rbx
mov qword [0x1400c4b68], rax
call rbx
mov rbp, qword [sym.imp.python310.dll_PyLong_FromLong]
mov rbx, 0xfffffffffffffffb
mov qword [0x1400c4b60], rax
nop dword [rax]
mov ecx, ebx
call rbp
add qword [rax], 1
mov qword [rsi + rbx*8], rax
add rbx, 1
cmp rbx, 0x102
jne 0x14008f838
mov byte [0x1400c4b00], 1
jmp 0x14008f660
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop
Function at 0x1400a2490
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400aa2f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400aa2f0
mov r8, rbx
mov rdx, qword [rbp + 0x20]
mov rcx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x1400a3142
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400c5548]
test eax, eax
je 0x1400a31da
lea rax, [0x1400c5520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400c5550]
mov qword [rbp - 8], rax
jmp 0x1400a31be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400a31b2
cmp qword [rbp - 0x10], 0
je 0x1400a31b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400a3178
lea rax, [0x1400c5520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400a31db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400a32e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400a3308
mov eax, 0
jmp 0x1400a3356
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400a3331
mov eax, 0
jmp 0x1400a3356
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400a3351
mov eax, 0
jmp 0x1400a3356
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400a335c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400a33da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400a33d1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400a33d1
mov rax, qword [rbp - 8]
jmp 0x1400a33ef
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400a33a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140003a10
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
movaps xmmword [rsp + 0x40], xmm6
lea rbx, [rcx + 0x58]
movsd xmm6, qword [0x14017a980]
mov rdi, rcx
movaps xmmword [rsp + 0x30], xmm7
mov esi, 4
movsd xmm7, qword [0x14017a9f0]
movaps xmmword [rsp + 0x20], xmm8
xorps xmm8, xmm8
nop
movsd xmm1, qword [rdi + 8]
mulsd xmm1, qword [rbx]
movsd xmm0, qword [rbx - 0x20]
mulsd xmm0, qword [rdi]
addsd xmm0, xmm8
addsd xmm0, xmm1
xorps xmm0, xmm7
call fcn.14003dcf0
addsd xmm0, xmm6
movaps xmm1, xmm6
divsd xmm1, xmm0
movsd qword [rbx - 0x48], xmm1
add rbx, 8
sub rsi, 1
jne 0x140003a50
movsd xmm1, qword [rdi + 0x80]
mulsd xmm1, qword [rdi + 0x18]
movsd xmm2, qword [rdi + 0x88]
mulsd xmm2, qword [rdi + 0x20]
movsd xmm0, qword [rdi + 0x78]
mulsd xmm0, qword [rdi + 0x10]
addsd xmm0, xmm8
addsd xmm0, xmm1
movsd xmm1, qword [rdi + 0x90]
mulsd xmm1, qword [rdi + 0x28]
addsd xmm0, xmm2
addsd xmm0, xmm1
xorps xmm0, xmm7
call fcn.14003dcf0
mov rbx, qword [rsp + 0x60]
addsd xmm0, xmm6
mov rsi, qword [rsp + 0x68]
movaps xmm7, xmmword [rsp + 0x30]
movaps xmm8, xmmword [rsp + 0x20]
divsd xmm6, xmm0
movsd qword [rdi + 0x30], xmm6
movaps xmm6, xmmword [rsp + 0x40]
add rsp, 0x50
pop rdi
ret
Function at 0x140005ad0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x160
mov rax, qword [0x140182010]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
xor esi, esi
call fcn.140003b10
call fcn.140002b00
xor edx, edx
lea ecx, [rsi + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140005b3a
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x130
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
jne 0x140005b3e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x140005b8f
call fcn.140003b10
call fcn.140002b00
nop dword [rax + rax]
lea rdx, [rsp + 0x4c]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x140005b76
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005b50
jmp 0x140005b7a
mov esi, dword [rsp + 0x28]
call fcn.140003b10
call fcn.140002b00
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140007360
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140005bc0
Capabilities:
Encode data using xor
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x140182010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, r8
mov rbx, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov edx, 8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140005cc2
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.140017740
xor r9d, r9d
mov eax, 0xa3b69df1
test rdi, rdi
je 0x140005c4a
movzx r8d, byte [r9 + rsi]
mov edx, eax
movzx ecx, r9b
shl eax, 8
and cl, 3
or eax, r8d
shl cl, 3
shr edx, cl
xor dl, r8b
mov byte [r9 + rsi], dl
inc r9
cmp r9, rdi
jb 0x140005c22
xor r9d, r9d
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov edx, 0xc0000000
mov rcx, rbp
mov dword [rsp + 0x40], 0
mov dword [rsp + 0x20], 2
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x20], 0
mov rcx, rax
mov r8d, edi
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rsi
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 1
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret
Function at 0x140005d90
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0xa0
mov rax, qword [0x140182010]
xor rax, rsp
mov qword [rsp + 0x90], rax
xor esi, esi
movsxd r15, r9d
mov ebp, esi
mov r14d, esi
mov rdi, r8
mov rbx, rcx
mov rax, 0xffffffffffffffff
nop dword [rax]
inc rax
cmp byte [rcx + rax], sil
jne 0x140005dd0
test rax, rax
je 0x140005e1e
mov rcx, rsi
movsxd rax, r14d
lea r8, [rsp + 0x20]
add r8, rax
lea rdx, str._2hhx
add rcx, rbx
call fcn.140003f40
add ebp, 2
mov rax, 0xffffffffffffffff
inc r14d
movsxd rcx, ebp
nop dword [rax + rax]
inc rax
cmp byte [rbx + rax], sil
jne 0x140005e10
cmp rcx, rax
jb 0x140005de1
lea rbp, [0x14017a910]
test r15d, r15d
jle 0x140005f4f
cmp r15d, 8
jb 0x140005f4f
lea rcx, [r15 - 1]
lea rax, [rsp + 0x20]
add rax, rcx
lea rdx, [rcx + rdi]
cmp rdi, rax
ja 0x140005e5b
lea rax, [rsp + 0x20]
cmp rdx, rax
jae 0x140005f4f
lea rax, [rcx + rbp]
cmp rdi, rax
ja 0x140005e6d
cmp rdx, rbp
jae 0x140005f4f
cmp r15d, 0x40
jb 0x140005f1f
mov eax, r15d
and eax, 0xffffffc0
mov rdx, rbp
movsxd rbx, eax
lea r8, [rsp + 0x20]
sub rdx, rdi
lea r9, [0x14017a920]
sub r8, rdi
lea r10, [rsp + 0x30]
sub r9, rdi
sub r10, rdi
lea rcx, [rdi + 0x20]
mov r11, 0xffffffffffffffe0
sub r11, rdi
nop
movdqu xmm0, xmmword [rdx + rcx - 0x20]
add esi, 0x40
movdqu xmm1, xmmword [r8 + rcx - 0x20]
movdqu xmm2, xmmword [r10 + rcx - 0x20]
lea rcx, [rcx + 0x40]
xorps xmm1, xmm0
lea rax, [r11 + rcx]
movdqu xmm0, xmmword [r9 + rcx - 0x60]
movdqu xmmword [rcx - 0x60], xmm1
xorps xmm2, xmm0
movdqu xmm0, xmmword [rdx + rcx - 0x40]
movdqu xmm1, xmmword [r8 + rcx - 0x40]
movdqu xmmword [rcx - 0x50], xmm2
xorps xmm1, xmm0
movdqu xmm0, xmmword [r9 + rcx - 0x40]
movdqu xmm2, xmmword [r10 + rcx - 0x40]
movdqu xmmword [rcx - 0x40], xmm1
xorps xmm2, xmm0
movdqu xmmword [rcx - 0x30], xmm2
cmp rax, rbx
jl 0x140005eb0
mov eax, r15d
and al, 0x3f
cmp al, 8
jb 0x140005f4f
mov eax, r15d
and eax, 0xfffffff8
movsxd rcx, esi
movsxd rdx, eax
nop dword [rax + rax]
movq xmm1, qword [rcx + rbp]
add esi, 8
movq xmm0, qword [rsp + rcx + 0x20]
xorps xmm1, xmm0
movq qword [rcx + rdi], xmm1
add rcx, 8
cmp rcx, rdx
jl 0x140005f30
movsxd rcx, esi
cmp rcx, r15
jge 0x140005f73
nop word [rax + rax]
movzx eax, byte [rcx + rbp]
xor al, byte [rsp + rcx + 0x20]
mov byte [rcx + rdi], al
inc rcx
cmp rcx, r15
jl 0x140005f60
mov byte [r15 + rdi], 0
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140007360
mov rbx, qword [rsp + 0xd8]
add rsp, 0xa0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140007fc4
Capabilities:
Parse pe header

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

Function at 0x1400099b0
Capabilities:
Read file on windows

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 r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x1400099de
xor eax, eax
jmp 0x140009ac4
cmp qword [rcx + 0x68], 0
je 0x1400099ef
call fcn.140009ae0
jmp 0x140009ac4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140009a06
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009a08
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009a3a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140017740
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x140009abe
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140009a71
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x140009a9a
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140028238
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x140009abe
cmp rsi, rbx
ja 0x140009a78
test rsi, rsi
je 0x140009abe
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140028238
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x14000de10
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx + 4], eax
cmp eax, 0xffffffff
jne 0x14000de40
lea rdx, [0x14005ad90]
mov ecx, 0x10008
call fcn.1400126e0
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov dword [rbx], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x14000df00
Capabilities:
Hide graphical window

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rdi, r8
mov rbp, r9
mov r8, r9
mov rsi, rdx
mov rbx, rcx
call fcn.14000ed00
test eax, eax
je 0x14000e053
cmp dword [rdi], 0
je 0x14000dfc1
mov eax, dword [rdi + 4]
cmp eax, 0x36001
jne 0x14000df60
call fcn.140013bc0
test eax, eax
je 0x14000e053
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140013740
jmp 0x14000dfa6
cmp eax, 0x36002
jne 0x14000df84
call fcn.140014fc0
test eax, eax
je 0x14000e053
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140014ab0
jmp 0x14000dfa6
cmp eax, 0x36003
jne 0x14000dfae
call fcn.140015e00
test eax, eax
je 0x14000e053
mov r8, rbp
mov rdx, rdi
mov rcx, rbx
call fcn.140015bc0
test eax, eax
je 0x14000e053
mov rdx, rdi
mov rcx, rbx
call fcn.14000ade0
test eax, eax
je 0x14000e053
cmp qword [rbx + 0x48], 0
je 0x14000e026
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_BringWindowToTop]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
mov rcx, qword [rbx + 0x350]
call qword [sym.imp.USER32.dll_SetFocus]
mov rcx, rbx
call fcn.14000eac0
mov rcx, rbx
call fcn.14000f410
cmp dword [rsi + 0x2c], 0
je 0x14000e04c
mov rcx, rbx
call fcn.14000b950
mov eax, 1
jmp 0x14000e055
cmp dword [rsi + 0x14], 0
je 0x14000e04c
mov rcx, qword [rbx + 0x350]
mov edx, 8
call qword [sym.imp.USER32.dll_ShowWindow]
cmp dword [rsi + 0x1c], 0
je 0x14000e04c
mov rcx, rbx
call fcn.14000e130
mov eax, 1
jmp 0x14000e055
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret