joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14075bfe0
Capabilities:
Terminate process

Disassembly:
push 0x4f
invalid
cld
pop r11
jmp 0x14075bfed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14075bffd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14075bfe5
lea eax, [rcx + 1]
jmp 0x14075c00b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14075c01e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14075c004
sub eax, 3
jb 0x14075c03e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14075c08d
sar eax, 1
movsxd rbp, eax
jb 0x14075c074
jmp 0x14075c04c
add ebx, ebx
jne 0x14075c04a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14075c074
inc ecx
add ebx, ebx
jne 0x14075c05a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14075c074
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14075c06d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14075c05c
add ecx, 2
jmp 0x14075c079
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14075bfa2
jmp 0x14075bfed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x758000]
mov eax, dword [rdi]
or eax, eax
je 0x14075c0f9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x75c1e4]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14075c09d
jns 0x14075c0d2
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14075c0dc
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14075c0f3
mov qword [rbx], rax
add rbx, 8
jmp 0x14075c0bd
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14075c13d
cmp al, 0xef
ja 0x14075c125
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14075c105
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14075c114
mov eax, dword [rdi]
add rdi, 4
jmp 0x14075c114
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x24f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14075c191
sub rsp, 0xffffffffffffff80
jmp 0x1406f0dfc
Function at 0x1406db108
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1406db28f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1406db139
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406db11f
add dl, dl
jne 0x1406db146
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406db1a6
xor eax, eax
add dl, dl
jne 0x1406db155
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1406db25d
add dl, dl
jne 0x1406db166
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db173
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db180
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db18d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1406db19a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1406db12e
mov eax, 1
add dl, dl
jne 0x1406db1b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1406db1c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406db1ab
sub eax, ebx
mov ebx, 1
jne 0x1406db1fc
mov ecx, 1
add dl, dl
jne 0x1406db1de
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406db1eb
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406db1d3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406db12e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1406db218
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1406db225
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1406db20d
cmp eax, 0x7d00
jae 0x1406db24b
cmp eax, 0x500
jb 0x1406db246
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406db12e
cmp eax, 0x7f
ja 0x1406db24e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1406db12e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1406db282
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1406db12e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401820
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.00407970
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.00407970
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]

Function at 0x401890
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x0040d0c4]
mov r12, rcx
test ebx, ebx
jle 0x4019c0
mov rax, qword [0x0040d0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x4018dc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401963
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x4018c0
mov rcx, r12
call fcn.00402240
mov rsi, rax
test rax, rax
je 0x4019e2
mov rax, qword [0x0040d0c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.00402370
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0040d0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4019c7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40195c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x401970
add dword [0x0040d0c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x0040d0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40195c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00401820
nop dword [rax]
xor ebx, ebx
jmp 0x4018e7
mov rax, qword [0x0040d0c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.00401820
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00401820
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x401eb0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0040d120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0040d100]
test rbx, rbx
je 0x401f04
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x401efb
test r12, r12
je 0x401efb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x401ee0
lea rcx, [0x0040d120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x402240
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x0040a700]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x402260
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x402268
ret
cmp word [r8 + 0x18], 0x20b
jne 0x402260
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x4022b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x4022ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402260
add rax, 0x28
cmp rax, r9
jne 0x402298
xor eax, eax
ret

Function at 0x4022c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040a700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x4022e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4022e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x4022e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x402370
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x0040a700]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x402390
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x402398
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x407a40
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push r12
push rdi
push rsi
push rbx
mov rbx, rcx
sub rsp, 0x38
mov rax, qword [rcx]
mov dword [rsp + 0x2c], 0
test byte [rax + 0x17], 0x20
je 0x407a62
call fcn.00407fd0
mov rax, qword [rbx]
mov rcx, qword [rbx + 0x20]
lea r9, [rsp + 0x2c]
mov r8d, 4
mov edx, dword [rax + 0x50]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
mov esi, eax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r12d, eax
test eax, eax
je 0x407a9e
xor r12d, r12d
test esi, esi
setne r12b
mov rcx, qword [rbx + 0x18]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_HeapUnlock]
mov r8, qword [rbx + 0x20]
mov rdi, qword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
cmove r12d, esi
test r8, r8
je 0x407ad6
xor edx, edx
mov rcx, qword [rbx + 0x18]
call rdi
mov qword [rbx + 0x20], 0
test eax, eax
cmove r12d, esi
mov rcx, qword [rbx + 0x18]
xor esi, esi
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov r8, rbx
test eax, eax
cmove r12d, esi
xor edx, edx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rcx, qword [rax + 0x30]
call rdi
test eax, eax
cmove r12d, esi
add rsp, 0x38
pop rbx
pop rsi
mov eax, r12d
pop rdi
pop r12
ret

Function at 0x407bc0
Capabilities:
Access peb ldr_data

Disassembly:
push rbx
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rbx, qword [rax + 0x20]
movzx eax, word [rbx + 0x38]
cmp eax, ecx
jbe 0x407be6
xor eax, eax
jmp 0x407bfb
mov rcx, rdx
mov rdx, qword [rbx + 0x40]
call fcn.004087c0
test rax, rax
je 0x407be2
movzx eax, word [rbx + 0x38]
add rsp, 0x20
pop rbx
ret
Function at 0x407ce0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push rbx
mov r10, rcx
mov r9, rdx
xor eax, eax
mov byte [r9 + rax], al
inc rax
cmp rax, 0x100
jne 0x407ce9
xor ecx, ecx
xor ebx, ebx
mov eax, ecx
xor edx, edx
mov r11b, byte [r9 + rcx]
div r8d
mov al, byte [r10 + rdx]
add eax, r11d
add eax, ebx
movzx ebx, al
movzx eax, al
add rax, r9
mov dl, byte [rax]
mov byte [r9 + rcx], dl
inc rcx
mov byte [rax], r11b
cmp rcx, 0x100
jne 0x407cfc
xor eax, eax
pop rbx
ret

Function at 0x407d40
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbx
mov rbx, rcx
sub rsp, 0x40
mov rax, qword [rcx]
mov dword [rsp + 0x3c], 0
mov dx, word [rax + 0x16]
test dh, 0x20
je 0x407dec
mov rcx, qword [rcx + 0x20]
mov r13d, dword [rax + 0x28]
xor r8d, r8d
mov edx, 1
add r13, rcx
call r13
movzx r12d, al
test r12d, r12d
je 0x407de7
mov rax, qword [rbx + 0x20]
mov qword [0x00409070], r13
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x28], 0
lea r8, [0x00408340]
xor ecx, ecx
mov qword [0x00409080], rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov r13, rax
test rax, rax
je 0x407de7
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x3c]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
jne 0x407e0d
cmp dword [rsp + 0x3c], 1
ja 0x407e0d
xor r12d, r12d
jmp 0x407e0d
and dl, 2
je 0x407de7
mov eax, dword [rax + 0x28]
mov r12d, 1
add rax, qword [rbx + 0x20]
mov rdx, qword gs:[0x30]
mov rcx, qword [rdx + 0x60]
call rax
add rsp, 0x40
mov eax, r12d
pop rbx
pop r12
pop r13
ret
Function at 0x408100
Capabilities:
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
xor r12d, r12d
push rbp
mov ebp, 8
push rdi
push rsi
mov rsi, rcx
push rbx
xor ebx, ebx
sub rsp, 0x38
mov rax, qword [rcx]
mov r13, qword [rcx + 0x20]
mov dword [rsp + 0x2c], 0
lea r14, [rsp + 0x2c]
movzx edx, word [rax + 0x14]
lea rdi, [rax + rdx + 0x18]
mov rax, qword [rsi]
movzx eax, word [rax + 6]
cmp eax, r12d
jbe 0x40821d
mov ecx, dword [rdi + 0xc]
test ecx, ecx
je 0x408211
mov edx, dword [rdi + 0x10]
test edx, edx
je 0x408211
mov eax, dword [rdi + 0x24]
add rcx, r13
test eax, 0xe0000000
je 0x4081e9
mov r9d, eax
and r9d, 0x40000000
setne r11b
test eax, 0xa0000000
jne 0x408187
test r11b, r11b
jne 0x4081f0
mov r10d, eax
mov r15d, eax
shr r10d, 0x1f
and r15d, 0x20000000
sete r8b
and r8b, r10b
je 0x4081a6
test r11b, r11b
jne 0x4081f7
test r15d, r15d
setne r11b
test r10b, r10b
je 0x4081c5
test r11b, r11b
je 0x4081c5
cmp r9d, 1
sbb ebx, ebx
and ebx, 0x40
add ebx, 0x40
jmp 0x4081fc
test eax, eax
js 0x4081dc
test r11b, r11b
je 0x4081dc
cmp r9d, 1
sbb ebx, ebx
and ebx, 0xfffffff0
add ebx, 0x20
jmp 0x4081fc
test r9d, r9d
jne 0x4081fc
test r8b, r8b
cmovne ebx, ebp
jmp 0x4081fc
mov ebx, 1
jmp 0x4081fc
mov ebx, 2
jmp 0x4081fc
mov ebx, 4
bt eax, 0x1a
jae 0x408205
or bh, 2
mov r9, r14
mov r8d, ebx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
inc r12d
add rdi, 0x28
jmp 0x40813a
xor r8d, r8d
xor edx, edx
or rcx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
setne al
add rsp, 0x38
pop rbx
movzx eax, al
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x408660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
mov r11, rcx
xor r10d, r10d
push rdi
xor edi, edi
push rsi
xor esi, esi
push rbx
mov rbx, rdx
cmp r9d, r10d
jbe 0x4086af
lea eax, [rsi + 1]
movzx esi, al
movzx eax, al
add rax, r11
mov dl, byte [rax]
lea ecx, [rdx + rdi]
movzx edi, cl
movzx ecx, cl
add rcx, r11
mov r14b, byte [rcx]
mov byte [rax], r14b
mov byte [rcx], dl
add dl, byte [rax]
movzx edx, dl
mov al, byte [r11 + rdx]
xor al, byte [rbx + r10]
mov byte [r8 + r10], al
inc r10
jmp 0x408672
pop rbx
xor eax, eax
pop rsi
pop rdi
pop r14
ret

Function at 0x408910
Capabilities:
Hash data using fnv

Disassembly:
mov r8, rcx
mov eax, 0x811c9dc5
mov ecx, edx
xor edx, edx
cmp ecx, edx
jle 0x408933
movsx r9d, byte [r8 + rdx]
inc rdx
xor eax, r9d
imul eax, eax, 0x1000193
jmp 0x40891c
ret

Function at 0x408970
Capabilities:
Create thread

Disassembly:
push r12
push rbx
mov rbx, rdx
sub rsp, 0x58
call fcn.00401600
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x3c], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [0x004090a0], rax
test rax, rax
je 0x4089d5
lea rax, [rsp + 0x3c]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rax
lea r8, [0x00408870]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [0x00409090], rax
test rax, rax
jne 0x4089e3
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x68]
jmp 0x408a5b
mov rdx, qword [0x004090a0]
or r9d, 0xffffffff
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov ecx, 2
mov qword [rsp + 0x40], rdx
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
test eax, eax
jne 0x408a54
mov rcx, qword [0x004090a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x004087e0]
mov qword [0x004090a0], 0
call fcn.00401500
mov r12, qword [rbx]
xor edx, edx
mov ecx, 4
call fcn.00408710
xor r8d, r8d
mov ecx, 2
mov rdx, r12
call fcn.00408370
jmp 0x408a59
call fcn.00408810
xor eax, eax
add rsp, 0x58
pop rbx
pop r12
ret
Function at 0x140002db0
Capabilities:
Parse pe header

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

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

Function at 0x140005ca8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140005aa4
Function at 0x14000a9a4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14000aa2b
mov rsi, rbx
cmp word [rax], bp
je 0x14000a9ea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14000a9d4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14000a9d0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140008958
mov rdi, rax
test rax, rax
je 0x14000aa18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140002540
mov rbp, rdi
xor ecx, ecx
call fcn.140007d24
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140017cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x140017ecd
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x14018a890]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x140017d20
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x14018a8a0]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x140017e4a
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x140017e20
movdqa xmm1, xmmword [0x14018a8a0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x14018a8b0], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x140017eeb
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.140017840
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x14002ab20
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
mov al, 1
test rdx, rdx
je 0x14002ac2e
movzx r9d, byte [rcx]
mov r10, qword [r8]
movzx r10d, byte [r10]
not r10b
test r9b, r10b
jne 0x14002ac2e
mov r10, qword [r8 + 0x10]
test r10, r10
je 0x14002ac34
mov r8, qword [r8 + 8]
xor byte [r8], r9b
mov r11d, 1
cmp r10, 1
je 0x14002ac28
lea rbx, [rdx - 1]
lea rdi, [r10 - 2]
cmp rbx, rdi
mov rsi, rdi
cmovb rsi, rbx
lea r9, [r8 + 1]
inc rsi
cmp rsi, 0x10
jbe 0x14002abfe
cmp rbx, rdi
cmovb rdi, rbx
lea rbx, [rcx + rdi]
add rbx, 2
cmp r9, rbx
jae 0x14002abae
add rdi, r8
add rdi, 2
lea rbx, [rcx + 1]
cmp rbx, rdi
jb 0x14002abfe
mov r11d, esi
and r11d, 0xf
mov r14d, 0x10
cmovne r14, r11
mov rdi, rsi
sub rdi, r14
lea rbx, [r9 + rdi]
neg r14
lea r11, [rsi + r14]
inc r11
xor esi, esi
nop word cs:[rax + rax]
movups xmm0, xmmword [rcx + rsi + 1]
movups xmm1, xmmword [r9 + rsi]
xorps xmm1, xmm0
movups xmmword [r9 + rsi], xmm1
add rsi, 0x10
cmp rdi, rsi
jne 0x14002abe0
mov r9, rbx
add r8, r10
nop word cs:[rax + rax]
cmp rdx, r11
je 0x14002ac2e
movzx r10d, byte [rcx + r11]
xor byte [r9], r10b
inc r11
inc r9
cmp r9, r8
jne 0x14002ac10
cmp r11, rdx
setne al
pop rbx
pop rdi
pop rsi
pop r14
ret
ud2
Function at 0x140056880
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400568c2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x1400568ca
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400568db
jmp 0x1400568f2
xor r10d, r10d
jmp 0x14005697d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400568f2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x140056909
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x140056929
add r11, r8
jmp 0x140056a5a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400569f2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x1400569a0
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x140056a10
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x140056a22
jmp 0x140056a3c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x140056a3c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140056a56
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret