joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401520
Capabilities:
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x808
lea rbp, [rsp + 0x80]
mov dword [rbp + 0x7a0], ecx
mov qword [rbp + 0x7a8], rdx
call sym.__main
mov qword [rbp + 0x778], 0x7c0
cmp dword [rbp + 0x7a0], 1
jg 0x401581
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
lea rax, str.No_iso_name_assigned_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov ecx, 1
call sym.exit
mov rax, qword [rbp + 0x7a8]
mov rax, qword [rax + 8]
mov qword [rbp + 0x770], rax
mov rax, qword [rbp + 0x770]
mov edx, 2
mov rcx, rax
call sym.open
mov dword [rbp + 0x76c], eax
cmp dword [rbp + 0x76c], 0xffffffff
je 0x401767
mov eax, dword [rbp + 0x76c]
mov r8d, 0
mov edx, 0x8847
mov ecx, eax
call sym.lseek
cmp eax, 0xffffffff
sete al
test al, al
jne 0x40176a
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x76c]
mov r8d, 4
mov ecx, eax
call sym.read
mov dword [rbp + 0x768], eax
cmp dword [rbp + 0x768], 0xffffffff
je 0x40176d
cmp dword [rbp + 0x768], 3
jg 0x401647
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x770]
mov r8, rax
lea rax, str.Cannot_read_4_bytes_from__s_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov ecx, 1
call sym.exit
movzx eax, byte [rbp - 0x60]
movzx eax, al
movzx edx, byte [rbp - 0x5f]
movzx edx, dl
shl edx, 8
or edx, eax
movzx eax, byte [rbp - 0x5e]
movzx eax, al
shl eax, 0x10
or edx, eax
movzx eax, byte [rbp - 0x5d]
movzx eax, al
shl eax, 0x18
or eax, edx
mov dword [rbp + 0x764], eax
mov eax, dword [rbp + 0x764]
shl eax, 0xb
lea edx, [rax + 0x40]
mov eax, dword [rbp + 0x76c]
mov r8d, 0
mov ecx, eax
call sym.lseek
cmp eax, 0xffffffff
sete al
test al, al
jne 0x401770
mov rdx, qword [rbp + 0x778]
lea rax, [rbp - 0x60]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sym.memset
mov rax, qword [rbp + 0x778]
mov ecx, eax
lea rdx, [rbp - 0x60]
mov eax, dword [rbp + 0x76c]
mov r8d, ecx
mov ecx, eax
call sym.write
mov dword [rbp + 0x768], eax
cmp dword [rbp + 0x768], 0xffffffff
je 0x401773
mov eax, dword [rbp + 0x768]
cdqe
cmp rax, qword [rbp + 0x778]
jae 0x401741
mov rax, qword [rbp + 0x778]
mov ebx, eax
mov ecx, 2
mov rax, qword [sym.__acrt_iob_func]
call rax
mov rcx, rax
mov rax, qword [rbp + 0x770]
mov r9, rax
mov r8d, ebx
lea rax, str.Cannot_write__d_bytes_to__s_n
mov rdx, rax
call sym.fprintf__iobuf__char_const__::_
mov ecx, 1
call sym.exit
mov eax, dword [rbp + 0x76c]
mov ecx, eax
call sym.close
lea rax, str.done_n
mov rcx, rax
call sym.printf_char_const__::_
mov ecx, 0
call sym.exit
nop
jmp 0x401774
nop
jmp 0x401774
nop
jmp 0x401774
nop
jmp 0x401774
nop
mov rax, qword [rbp + 0x770]
mov rcx, rax
call sym.perror
mov ecx, 1
call sym.exit
nop
nop
nop
Function at 0x401a50
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 sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x401ac0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0040d0b4]
test esi, esi
mov rbx, rcx
jle 0x401bf0
mov rax, qword [0x0040d0b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x401b0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x401b95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x401af0
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov rdi, rax
je 0x401c12
mov rax, qword [0x0040d0b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call sym._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x0040d0b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401bf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x401b8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x401ba0
add dword [0x0040d0b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov r8d, 0x40
mov eax, 4
mov rcx, qword [rsp + 0x20]
cmove r8d, eax
mov rdx, qword [rsp + 0x38]
add rbx, qword [0x0040d0b8]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401b8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
nop dword [rax]
xor esi, esi
jmp 0x401b18
mov rax, qword [0x0040d0b8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [rdi + 8]
mov r8, qword [rax + rbx + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4021b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x0040d120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x40220c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x402203
test eax, eax
jne 0x402203
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4021e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402420
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x402438
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x402440
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x402450
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x40249d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x402494
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x40249f
add rax, 0x28
cmp rax, r9
jne 0x402480
xor eax, eax
ret

Function at 0x4024a0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x402530
mov rdx, qword [0x0040a780]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x40251e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x40251e
cmp word [rax + 0x18], 0x20b
jne 0x40251e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x402530
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x402509
add rbx, 0x28
cmp rbx, rdi
je 0x402530
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x402500
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x402540
Capabilities:
Enumerate pe sections
Parse pe header

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

Function at 0x4025c0
Capabilities:
Parse pe header

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

Function at 0x402600
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x0040a780]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x402620
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x402628
ret
cmp word [rdx + 0x18], 0x20b
jne 0x402620
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x402670
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x402667
test rcx, rcx
je 0x402620
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x402658
xor eax, eax
ret
Function at 0x402680
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040a780]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x40269f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4026a8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x4026c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040a780]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4026e0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4026e8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4026e0
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x4026e0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x402734
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x402740
add rdx, 0x28
cmp r9, rdx
jne 0x402720
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x402750
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x0040a780]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x402772
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x402780
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402772
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x402772
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x402772
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
cmp rax, r9
mov r8, r9
jb 0x4027d5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x4027e8
add rdx, 0x28
cmp r10, rdx
jne 0x4027c0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x4027f7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x402807
mov edx, dword [rax + 0xc]
test edx, edx
je 0x4027de
test ecx, ecx
jg 0x4027f0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1400027b0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400027fa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400027fa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.api_ms_win_crt_runtime_l1_1_0.dll__exit
jne 0x1400027fa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400027fa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400027fa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400027fc
xor al, al
add rsp, 0x28
ret
Function at 0x14006718c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x1400671d4
lea edi, [rsi + 0xd]
jmp 0x14006728f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006728f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140067214
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x140067255
jbe 0x140067255
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x140067238
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140043124
mov rdi, qword [rbp - 0x20]
jmp 0x140067255
sub rdx, rcx
je 0x140067251
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006728f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140004374
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.140020b54
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140067cf0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b4480], eax
call fcn.140068190
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b4480], 0
jne case.default.0x140067d46
mov ecx, 1
call fcn.140068190
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]
mov bh, 0xaf
jbe 0x1401220d4
invalid
or dword [rdi], edx
imul ecx, ebp, 0x3656dfbc
ja 0x1401220aa
push rsi
ja 0x1401220aa
sub eax, dword [rcx + 0x54d15d3c]
push rbx
invalid
Function at 0x1400024a0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
sub rsp, 0x98
cmp byte [0x1400a3f13], 0
xorps xmm0, xmm0
movups xmm3, xmmword [0x1400a3f00]
mov edx, dword [0x1400a3f10]
movups xmmword [rax - 0x60], xmm0
mov dword [rax - 0x68], edx
movups xmmword [rax - 0x78], xmm3
movups xmmword [rax - 0x50], xmm0
movups xmmword [rax - 0x40], xmm0
je 0x14000272e
xor ecx, ecx
cmp dword [0x14011f090], 2
jl 0x1400026fb
movdqa xmm5, xmmword [0x140112510]
movdqa xmm2, xmmword [0x140112470]
movdqa xmm4, xmmword [0x1401124f0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
movaps xmmword [rax - 0x18], xmm6
movdqa xmm6, xmmword [str.77779999]
movaps xmmword [rax - 0x28], xmm7
movdqa xmm7, xmmword [0x140112520]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
movd eax, xmm3
movdqa xmm3, xmmword [0x140112490]
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
andps xmm2, xmm4
movd xmm0, eax
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movd dword [rsp + 0x20], xmm2
movdqa xmm2, xmmword [0x140112480]
movdqa xmm1, xmm2
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
punpckldq xmm1, xmm2
pmuldq xmm0, xmm5
pmuldq xmm1, xmm5
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm3
pmulld xmm0, xmm6
psubd xmm2, xmm0
punpckldq xmm1, xmm3
movd xmm0, dword [rsp + 0x24]
andps xmm2, xmm4
pmuldq xmm1, xmm5
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x24], xmm2
movdqa xmm2, xmmword [0x1401124a0]
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
movdqa xmm1, xmm2
pmulld xmm0, xmm6
psubd xmm3, xmm0
punpckldq xmm1, xmm2
movd xmm0, dword [rsp + 0x28]
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
pmuldq xmm1, xmm5
paddb xmm3, xmm7
xorps xmm3, xmm0
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm5
movd dword [rsp + 0x28], xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
movdqa xmm3, xmmword [0x1401124b0]
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
movdqa xmm1, xmm3
movd xmm0, dword [rsp + 0x2c]
andps xmm2, xmm4
punpckldq xmm1, xmm3
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmm7
pmuldq xmm1, xmm5
xorps xmm2, xmm0
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm5
movd dword [rsp + 0x2c], xmm2
shufps xmm1, xmm0, 0xdd
psrad xmm1, 1
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
movaps xmm6, xmmword [rsp + 0x80]
psubd xmm3, xmm0
andps xmm3, xmm4
movd xmm0, edx
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmm7
movaps xmm7, xmmword [rsp + 0x70]
xorps xmm3, xmm0
movd dword [rsp + 0x30], xmm3
jmp 0x14000272e
lea r8, [rsp + 0x20]
mov eax, 0x29e4129f
lea r8, [r8 + 1]
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul edx, eax, 0x37
movzx eax, cl
inc ecx
sub al, dl
add al, 0x34
xor byte [r8 - 1], al
cmp ecx, 0x14
jl 0x140002700
lea rdx, [rsp + 0x38]
lea rcx, [rsp + 0x20]
call fcn.140003a10
add rsp, 0x98
ret
Function at 0x140004850
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x138
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x1400048b7
lea r8, [r10 + 0x10]
movabs r11, 0xb5026f5aa96619e9
mov rdx, qword [r8]
xor rdx, qword [r8 - 8]
lea r8, [r8 + 8]
and rdx, 0xffffffff80000000
xor rdx, qword [r8 - 8]
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 0x140004872
mov ecx, dword [r10]
jmp 0x1400049d8
cmp ecx, 0x270
jb 0x1400049d8
mov qword [rsp + 0x10], rbx
movabs r11, 0xb5026f5aa96619e9
lea rbx, [r10 + 0x9c8]
mov qword [rsp], rdi
mov rax, qword [rbx]
mov edi, 0x9c
nop word [rax + rax]
mov r9, qword [rbx + 8]
mov r8, rbx
add rbx, 8
mov rdx, r9
xor rdx, rax
and rdx, 0xffffffff80000000
xor rdx, r9
movzx eax, dl
and al, 1
neg al
mov rax, r9
sbb rcx, rcx
shr rdx, 1
and rcx, r11
xor rcx, qword [r8 + 0x4e0]
xor rcx, rdx
mov qword [r8 - 0x9c0], rcx
sub rdi, 1
jne 0x1400048f0
lea rbx, [r10 + 0xea8]
mov edi, 0x9b
mov r9, qword [rbx]
nop dword [rax]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
mov rdx, rbx
xor r9, r8
add rbx, 8
and r9, 0xffffffff80000000
xor r9, r8
movzx eax, r9b
and al, 1
neg al
sbb rcx, rcx
shr r9, 1
and rcx, r11
xor rcx, qword [rdx - 0xea0]
xor rcx, r9
mov r9, r8
mov qword [rdx - 0x9c0], rcx
sub rdi, 1
jne 0x140004950
mov rdx, qword [r10 + 8]
xor rdx, qword [r10 + 0x1380]
mov rdi, qword [rsp]
and rdx, 0xffffffff80000000
xor rdx, qword [r10 + 8]
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
mov qword [r10 + 0x9c0], rcx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov rdx, qword [r10 + rax*8 + 8]
lea eax, [rcx + 1]
mov dword [r10], eax
mov rcx, rdx
mov rax, qword [r10 + 0x1388]
shr rcx, 0x1d
and rax, rcx
movabs rcx, 0x38eb3ffff6d3
xor rdx, rax
mov rax, rdx
and rax, rcx
shl rax, 0x11
xor rdx, rax
mov rax, rdx
and rax, 0xffffffffffffbf77
shl rax, 0x25
xor rdx, rax
mov rax, rdx
shr rax, 0x2b
xor rax, rdx
add rsp, 8
ret
Function at 0x140004dd0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x14011f040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x141445e80]
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 0x140004ea7
mov rax, qword [rdi]
test rax, rax
je 0x140004e65
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140004e65
test rsi, rsi
je 0x140004e65
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 0
mov r8d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x140004e65
cmp dword [rsp + 0x30], ebx
je 0x140004ea7
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x140004e84
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x140004e84
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
jmp 0x140004ea9
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14009e2c0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x14000b250
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push rdi
cmp dword [0x141446054], 0
lea rdi, [0x141446050]
mov r11d, r8d
mov r9d, edx
mov r10, rcx
jne 0x14000b328
mov qword [rsp + 0x10], rbx
xor edx, edx
mov rbx, rdi
nop dword [rax]
mov r8d, edx
lea rbx, [rbx + 4]
and r8d, 1
mov eax, edx
shr eax, 1
neg r8d
and r8d, 0xedb88320
inc edx
xor r8d, eax
mov eax, r8d
shr r8d, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, r8d
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [rbx - 4], eax
cmp edx, 0x100
jb 0x14000b280
mov rbx, qword [rsp + 0x10]
not r11d
mov eax, r11d
test r9d, r9d
jle 0x14000b35e
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [r10]
lea r10, [r10 + 1]
movzx edx, al
xor rdx, rcx
shr eax, 8
xor eax, dword [rdi + rdx*4]
sub r9d, 1
jne 0x14000b340
not eax
pop rdi
ret
movzx r9d, byte [r10]
lea r8, [r10 + 1]
test r9b, r9b
je 0x14000b39f
nop dword [rax + rax]
cmp r9b, 0x23
jne 0x14000b383
cmp byte [r8], r9b
jne 0x14000b383
cmp byte [r8 + 1], r9b
cmove eax, r11d
movzx edx, al
movzx ecx, r9b
movzx r9d, byte [r8]
xor rdx, rcx
shr eax, 8
inc r8
xor eax, dword [rdi + rdx*4]
test r9b, r9b
jne 0x14000b370
not eax
pop rdi
ret
Function at 0x14000b5a0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
mov rdi, r8
test r8, r8
je 0x14000b5b9
mov qword [r8], 0
lea rdx, [0x1400a5040]
call fcn.14000b3b0
mov rbx, rax
test rax, rax
jne 0x14000b5d8
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 0x30], rbp
xor edx, edx
mov r8d, 2
mov qword [rsp + 0x38], rsi
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b69a
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rsi, eax
cmp esi, 0xffffffff
je 0x14000b69a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14000b69a
mov rax, qword [0x14140fa00]
mov rbp, rsi
test rax, rax
je 0x14000b637
inc dword [rax + 0x3c8]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14000b69a
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x14000b687
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x14140fa00]
test rax, rax
je 0x14000b67c
dec dword [rax + 0x3c8]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x14000b6a3
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rdi, rdi
je 0x14000b695
mov qword [rdi], rbp
mov rax, rsi
jmp 0x14000b6a5
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbp, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret