joyce8/EMBER2024-capa huggingface dataset:
Function at 0x2fc4e0050
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4e0a52
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc505108]
test eax, eax
je 0x2fc4e0aea
lea rax, [0x2fc5050e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc505110]
mov qword [rbp - 8], rax
jmp 0x2fc4e0ace
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 0x2fc4e0ac2
cmp qword [rbp - 0x10], 0
je 0x2fc4e0ac2
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 0x2fc4e0a88
lea rax, [0x2fc5050e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4e0aeb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4e0bf0
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 0x2fc4e0c18
mov eax, 0
jmp 0x2fc4e0c66
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 0x2fc4e0c41
mov eax, 0
jmp 0x2fc4e0c66
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 0x2fc4e0c61
mov eax, 0
jmp 0x2fc4e0c66
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4e0c6c
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 0x2fc4e0cea
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4e0ce1
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 0x2fc4e0ce1
mov rax, qword [rbp - 8]
jmp 0x2fc4e0cff
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 0x2fc4e0cb4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140d68058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140d681df
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 0x140d68089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6806f
add dl, dl
jne 0x140d68096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d680f6
xor eax, eax
add dl, dl
jne 0x140d680a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d681ad
add dl, dl
jne 0x140d680b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d680c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d680d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d680dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d680ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d6807e
mov eax, 1
add dl, dl
jne 0x140d68106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d68113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d680fb
sub eax, ebx
mov ebx, 1
jne 0x140d6814c
mov ecx, 1
add dl, dl
jne 0x140d6812e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6813b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d68123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6807e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d68168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d68175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6815d
cmp eax, 0x7d00
jae 0x140d6819b
cmp eax, 0x500
jb 0x140d68196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6807e
cmp eax, 0x7f
ja 0x140d6819e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6807e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d681d2
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 0x140d6807e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001070
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x110
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rsp + 0x108], rax
movsxd r8, dword [rdx + 0x3c]
lea rax, [rsp + 0x10]
mov r13, qword [rsp + 0x160]
lea rax, [rax + 0x80]
add r8, rdx
mov qword [rsp], rcx
xor edi, edi
xor r10d, r10d
mov r12, r9
mov rbp, rdx
mov esi, 1
movups xmm0, xmmword [r8 + 0x18]
movups xmm1, xmmword [r8 + 0x28]
movups xmmword [rax - 0x80], xmm0
movups xmm0, xmmword [r8 + 0x38]
movups xmmword [rax - 0x70], xmm1
movups xmm1, xmmword [r8 + 0x48]
movups xmmword [rax - 0x60], xmm0
movups xmm0, xmmword [r8 + 0x58]
movups xmmword [rax - 0x50], xmm1
movups xmm1, xmmword [r8 + 0x68]
movups xmmword [rax - 0x40], xmm0
movups xmm0, xmmword [r8 + 0x78]
movups xmmword [rax - 0x30], xmm1
movups xmmword [rax - 0x20], xmm0
movups xmm0, xmmword [r8 + 0x88]
add r8, 0x98
movups xmmword [rax - 0x10], xmm0
movups xmm1, xmmword [r8]
movups xmm0, xmmword [r8 + 0x10]
movups xmmword [rax], xmm1
movups xmm1, xmmword [r8 + 0x20]
movups xmmword [rax + 0x10], xmm0
movups xmm0, xmmword [r8 + 0x30]
movups xmmword [rax + 0x20], xmm1
movups xmm1, xmmword [r8 + 0x40]
movups xmmword [rax + 0x30], xmm0
movups xmm0, xmmword [r8 + 0x50]
movups xmmword [rax + 0x40], xmm1
movups xmm1, xmmword [r8 + 0x60]
movups xmmword [rax + 0x50], xmm0
movups xmmword [rax + 0x60], xmm1
mov eax, dword [rsp + 0x80]
add rax, rdx
mov r11d, dword [rax + 0x20]
mov r15d, dword [rax + 0x1c]
add r11, rdx
mov ebx, dword [rax + 0x24]
add r15, rdx
mov r14d, dword [rax + 0x14]
add rbx, rdx
test r14d, r14d
je 0x14000123a
nop word [rax + rax]
movzx eax, word [rbx]
mov r9d, dword [r11]
add r9, rbp
mov r8d, dword [r15 + rax*4]
mov rax, r12
add r8, rbp
sub r9, r12
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x1400011c3
inc rax
test ecx, ecx
jne 0x1400011b0
test edx, edx
je 0x1400011cb
test esi, esi
jne 0x1400011ea
mov eax, dword [r8]
mov dword [rsp + 0x100], 0xb8d18b4c
cmp eax, dword [rsp + 0x100]
jne 0x1400011e6
cmp al, 0xe9
jne 0x1400011fc
inc edi
xor esi, esi
inc r10d
add rbx, 2
add r11, 4
cmp r10d, r14d
jb 0x140001190
jmp 0x14000123a
movzx eax, byte [r8 + 4]
sub ax, di
mov word [rsp + 0x100], 0x50f
mov word [r13], ax
movzx eax, word [rsp + 0x100]
cmp word [r8], ax
je 0x14000122a
inc r8
cmp word [r8], ax
jne 0x140001221
mov rax, qword [rsp]
mov qword [r13 + 8], r8
movups xmm0, xmmword [r13]
movups xmmword [rax], xmm0
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140001e90
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x140001590
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xe0
mov rax, qword [0x140005040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov r12, rcx
mov ecx, 0x7c8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rcx, qword gs:[0x60]
lea rbx, [rbp + 7]
mov r15, rax
lea rsi, [rbp - 9]
lea rax, str.NtQueryInformationProcess
xorps xmm0, xmm0
mov qword [rbp - 9], rax
xor r13d, r13d
mov rdx, qword [rcx + 0x18]
lea rax, str.NtReadVirtualMemory
movups xmmword [rbp + 7], xmm0
mov qword [rbp - 1], rax
mov edi, r13d
movups xmmword [rbp + 0x17], xmm0
mov rcx, qword [rdx + 0x20]
mov rdx, qword [rcx]
mov r14, qword [rdx + 0x20]
nop word [rax + rax]
movups xmm0, xmmword [rbx]
mov r9, qword [rsi]
lea rax, [rbp - 0x69]
mov rdx, r14
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x59]
movaps xmmword [rbp - 0x69], xmm0
call fcn.140001070
inc edi
lea rbx, [rbx + 0x10]
lea rsi, [rsi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbx - 0x10], xmm0
cmp edi, 2
jb 0x140001620
mov rdx, qword [rbp + 0xf]
xorps xmm0, xmm0
movzx ecx, word [rbp + 7]
movups xmmword [rbp - 0x39], xmm0
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm0
call fcn.140001e50
mov r9d, 0x30
mov qword [rsp + 0x20], r13
lea r8, [rbp - 0x39]
xor edx, edx
mov rcx, r12
call fcn.140001e68
test eax, eax
jne 0x1400017ac
mov rdx, qword [rbp + 0x1f]
movzx ecx, word [rbp + 0x17]
call fcn.140001e50
mov rdx, qword [rbp - 0x31]
mov r9d, 0x7c8
mov r8, r15
mov qword [rsp + 0x20], r13
mov rcx, r12
call fcn.140001e68
test eax, eax
jne 0x1400017ac
cmp r15, 0xffffffffffffffff
je 0x1400017ac
mov rax, qword [r15 + 0x10]
mov ecx, 0x2000
mov qword [rbp - 0x69], rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0x2000
mov rcx, rax
mov r13, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword gs:[0x60]
lea rax, str.NtReadVirtualMemory
xorps xmm0, xmm0
mov qword [rbp - 0x79], rax
movups xmmword [rbp - 9], xmm0
xor edi, edi
lea rbx, [rbp - 9]
mov rdx, qword [rcx + 0x18]
lea rsi, [rbp - 0x79]
mov rcx, qword [rdx + 0x20]
mov rdx, qword [rcx]
mov r14, qword [rdx + 0x20]
nop word [rax + rax]
movups xmm0, xmmword [rbx]
mov r9, qword [rsi]
lea rax, [rbp - 0x59]
mov rdx, r14
mov qword [rsp + 0x20], rax
lea rcx, [rbp - 0x49]
movaps xmmword [rbp - 0x59], xmm0
call fcn.140001070
inc edi
lea rbx, [rbx + 0x10]
lea rsi, [rsi + 8]
movups xmm0, xmmword [rax]
movups xmmword [rbx - 0x10], xmm0
cmp edi, 1
jb 0x140001730
mov rdx, qword [rbp - 1]
movzx ecx, word [rbp - 9]
call fcn.140001e50
mov rdx, qword [rbp - 0x69]
mov r9d, 0x2000
mov r8, r13
mov qword [rsp + 0x20], 0
mov rcx, r12
call fcn.140001e68
movsxd rdx, dword [r13 + 0x3c]
mov rcx, r12
mov r8, qword [r15 + 0x10]
add rdx, 0x90
add rdx, r13
call fcn.140001270
jmp 0x1400017b3
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140001e90
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x14001154b
Capabilities:
Parse pe header

Disassembly:
jmp 0x140025190
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400251b0
xor al, al
jmp 0x140025231
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400251c3
xor al, al
jmp 0x140025231
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400251ed
xor al, al
jmp 0x140025231
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140025201
xor al, al
jmp 0x140025231
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140025213
xor al, al
jmp 0x140025231
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14002522f
xor al, al
jmp 0x140025231
mov al, 1
add rsp, 0x38
ret
Function at 0x1400116c2
Capabilities:
Terminate process

Disassembly:
jmp 0x140023dc0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x2fc4d7690
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8092
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fc108]
test eax, eax
je 0x2fc4d812a
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fc110]
mov qword [rbp - 8], rax
jmp 0x2fc4d810e
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 0x2fc4d8102
cmp qword [rbp - 0x10], 0
je 0x2fc4d8102
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 0x2fc4d80c8
lea rax, [0x2fc4fc0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d812b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d8230
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 0x2fc4d8258
mov eax, 0
jmp 0x2fc4d82a6
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 0x2fc4d8281
mov eax, 0
jmp 0x2fc4d82a6
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 0x2fc4d82a1
mov eax, 0
jmp 0x2fc4d82a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d82ac
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 0x2fc4d832a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8321
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 0x2fc4d8321
mov rax, qword [rbp - 8]
jmp 0x2fc4d833f
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 0x2fc4d82f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x180015060
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 0x1800150c7
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 0x180015082
mov ecx, dword [r10]
jmp 0x1800151e8
cmp ecx, 0x270
jb 0x1800151e8
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 0x180015100
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 0x180015160
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 0x180015710
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x1801b5040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rdi, qword [0x180255850]
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 0x1800157e7
mov rax, qword [rdi]
test rax, rax
je 0x1800157a5
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x1800157a5
test rsi, rsi
je 0x1800157a5
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 0x1800157a5
cmp dword [rsp + 0x30], ebx
je 0x1800157e7
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x1800157c4
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x1800157c4
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 0x1800157e9
mov al, 1
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180150350
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180019a20
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 0x180019a98
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x180019a98
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x180019a85
nop
cmp rbx, rcx
jae 0x180019a98
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x180019a70
cmp rbx, rcx
jae 0x180019a98
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
jmp 0x180019a9a
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

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

Disassembly:
sub rsp, 0x48
mov rax, qword [0x1801b5040]
xor rax, rsp
mov qword [rsp + 0x30], rax
cmp byte [0x18021fae4], 0
jne 0x180019eaf
lea rcx, [rsp + 0x20]
mov byte [0x18021fae4], 1
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x28]
mov qword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
xorps xmm1, xmm1
cvtsi2ss xmm0, qword [rsp + 0x28]
cvtsi2ss xmm1, qword [rsp + 0x20]
movss dword [0x18021fb2c], xmm0
movss dword [0x18021f934], xmm1
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2ss xmm0, qword [rsp + 0x20]
subss xmm0, dword [0x18021f934]
divss xmm0, dword [0x18021fb2c]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180150350
add rsp, 0x48
ret
Function at 0x18002f9b0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x78
mov rax, qword [0x1801b5040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rdx, qword [0x180250e58]
movabs rax, 0x7fffffffffffffff
mov r8, qword [rcx + 0x10]
sub rax, rdx
cmp rax, r8
jb 0x18002fa4d
cmp qword [0x180250e60], 0xf
lea r9, [0x180250e48]
cmova r9, qword [0x180250e48]
cmp qword [rcx + 0x18], 0xf
jbe 0x18002fa01
mov rcx, qword [rcx]
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], rdx
call fcn.180011d20
cmp qword [rsp + 0x60], 0xf
lea rcx, [rsp + 0x48]
cmova rcx, qword [rsp + 0x48]
call qword [sym.imp.api_ms_win_crt_filesystem_l1_1_0.dll_remove]
lea rcx, [rsp + 0x48]
call fcn.180010470
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.180150350
add rsp, 0x78
ret
call fcn.1800051b0
int3
Function at 0x180040ef0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
not r8d
test edx, edx
je 0x180040f1f
mov r9d, edx
lea r10, [0x180192eb0]
movzx edx, word [rcx]
lea rcx, [rcx + 2]
mov eax, r8d
shr r8d, 8
xor rdx, rax
movzx eax, dl
xor r8d, dword [r10 + rax*4]
sub r9, 1
jne 0x180040f01
not r8d
mov eax, r8d
ret