joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140026df0
Capabilities:
Enumerate threads

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x2a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1a8]
mov rax, qword [0x14003e300]
xor rax, rbp
mov qword [rbp + 0x158], rax
lea rcx, [0x140047369]
call fcn.140011b68
nop
mov dword [rbp + 4], 0
xor edx, edx
mov ecx, 4
call fcn.140011564
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
je 0x140027038
mov dword [rbp + 0x48], 0x1c
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.140011712
test eax, eax
je 0x14002702d
mov dword [rbp + 4], 1
mov eax, dword [rbp + 0x48]
cmp rax, 0x10
jb 0x140026fbe
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rbp + 0x54], eax
jne 0x140026fbe
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rbp + 0x50], eax
je 0x140026fbe
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x140026f0d
mov rax, qword [rbp + 0x180]
mov dword [rax + 8], 0x80
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 8]
shl rax, 2
mov r8, rax
xor edx, edx
mov rcx, qword [0x14003e830]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, qword [rbp + 0x180]
mov qword [rcx], rax
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
jne 0x140026f08
mov dword [rbp + 4], 0
jmp 0x140026fda
jmp 0x140026f8e
mov rax, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x180]
mov ecx, dword [rcx + 8]
cmp dword [rax + 0xc], ecx
jb 0x140026f8e
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 8]
shl eax, 1
mov rcx, qword [rbp + 0x180]
mov dword [rcx + 8], eax
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 8]
shl rax, 2
mov r9, rax
mov rax, qword [rbp + 0x180]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14003e830]
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jne 0x140026f7d
mov dword [rbp + 4], 0
jmp 0x140026fda
mov rax, qword [rbp + 0x180]
mov rcx, qword [rbp + 0x88]
mov qword [rax], rcx
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 0xc]
mov rcx, qword [rbp + 0x180]
mov rcx, qword [rcx]
mov edx, dword [rbp + 0x50]
mov dword [rcx + rax*4], edx
mov rax, qword [rbp + 0x180]
mov eax, dword [rax + 0xc]
inc eax
mov rcx, qword [rbp + 0x180]
mov dword [rcx + 0xc], eax
mov dword [rbp + 0x48], 0x1c
lea rdx, [rbp + 0x48]
mov rcx, qword [rbp + 0x28]
call fcn.140011159
test eax, eax
jne 0x140026e7f
cmp dword [rbp + 4], 0
je 0x140026ff2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x140026ff2
mov dword [rbp + 4], 0
cmp dword [rbp + 4], 0
jne 0x14002702d
mov rax, qword [rbp + 0x180]
cmp qword [rax], 0
je 0x14002702d
mov rax, qword [rbp + 0x180]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14003e830]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
mov rax, qword [rbp + 0x180]
mov qword [rax], 0
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [rbp + 4]
mov edi, eax
lea rcx, [rbp - 0x20]
lea rdx, [0x1400381b0]
call fcn.14001193d
mov eax, edi
mov rcx, qword [rbp + 0x158]
xor rcx, rbp
call fcn.140011582
lea rsp, [rbp + 0x168]
pop rdi
pop rbp
ret
Function at 0x140027390
Capabilities:
Suspend thread

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x148
lea rbp, [rsp + 0x20]
lea rcx, [0x140047369]
call fcn.140011b68
nop
mov dword [rbp + 4], 0
mov rax, qword [rbp + 0x140]
mov qword [rax], 0
mov rax, qword [rbp + 0x140]
mov dword [rax + 8], 0
mov rax, qword [rbp + 0x140]
mov dword [rax + 0xc], 0
mov rcx, qword [rbp + 0x140]
call fcn.140026df0
test eax, eax
jne 0x140027406
mov dword [rbp + 4], 9
jmp 0x14002748b
mov rax, qword [rbp + 0x140]
cmp qword [rax], 0
je 0x14002748b
mov dword [rbp + 0x24], 0
jmp 0x140027424
mov eax, dword [rbp + 0x24]
inc eax
mov dword [rbp + 0x24], eax
mov rax, qword [rbp + 0x140]
mov eax, dword [rax + 0xc]
cmp dword [rbp + 0x24], eax
jae 0x14002748b
mov eax, dword [rbp + 0x24]
mov rcx, qword [rbp + 0x140]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
je 0x140027489
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_SuspendThread]
nop
mov r8d, dword [rbp + 0x150]
mov edx, dword [rbp + 0x148]
mov rcx, qword [rbp + 0x48]
call fcn.140028250
nop
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x14002741c
mov eax, dword [rbp + 4]
lea rsp, [rbp + 0x128]
pop rdi
pop rbp
ret

Function at 0x140028640
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x140047369]
call fcn.140011b68
nop
mov rax, qword [rbp + 0x120]
cmp qword [rax], 0
je 0x1400286e8
mov dword [rbp + 4], 0
jmp 0x14002867e
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov rax, qword [rbp + 0x120]
mov eax, dword [rax + 0xc]
cmp dword [rbp + 4], eax
jae 0x1400286ce
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x120]
mov rcx, qword [rcx]
mov r8d, dword [rcx + rax*4]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
je 0x1400286cc
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
nop
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140028676
mov rax, qword [rbp + 0x120]
mov r8, qword [rax]
xor edx, edx
mov rcx, qword [0x14003e830]
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret
Function at 0x140029100
Capabilities:
Check for software breakpoints

Disassembly:
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x108
lea rbp, [rsp + 0x20]
lea rcx, [0x14004743c]
call fcn.140011b68
nop
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
test eax, eax
je 0x140029176
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
cmp eax, 0x90
je 0x140029176
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
cmp eax, 0xcc
je 0x140029176
xor eax, eax
jmp 0x1400291c3
mov dword [rbp + 4], 1
jmp 0x140029187
mov eax, dword [rbp + 4]
inc eax
mov dword [rbp + 4], eax
mov eax, dword [rbp + 0x108]
cmp dword [rbp + 4], eax
jae 0x1400291be
mov eax, dword [rbp + 4]
mov rcx, qword [rbp + 0x100]
movzx eax, byte [rcx + rax]
mov ecx, 1
imul rcx, rcx, 0
mov rdx, qword [rbp + 0x100]
movzx ecx, byte [rdx + rcx]
cmp eax, ecx
je 0x1400291bc
xor eax, eax
jmp 0x1400291c3
jmp 0x14002917f
mov eax, 1
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret

Function at 0x14002ad60
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.140011bd1
movzx eax, al
test eax, eax
jne 0x14002ad80
mov ecx, 7
call fcn.140011956
nop
mov byte [rsp + 0x20], 0
call fcn.1400119b0
mov byte [rsp + 0x21], al
cmp dword [0x14003e840], 1
jne 0x14002ada4
mov ecx, 7
call fcn.140011956
nop
jmp 0x14002adfc
cmp dword [0x14003e840], 0
jne 0x14002adf7
mov dword [0x14003e840], 1
lea rdx, [0x140033770]
lea rcx, [0x140033440]
call fcn.14001155f
test eax, eax
je 0x14002add8
mov eax, 0xff
jmp 0x14002af01
lea rdx, [0x140033330]
lea rcx, [section..rdata]
call fcn.140011992
mov dword [0x14003e840], 2
jmp 0x14002adfc
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011929
call fcn.1400117ee
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x14002ae59
mov rcx, qword [rsp + 0x30]
call fcn.14001146f
movzx eax, al
test eax, eax
je 0x14002ae59
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140048020]
nop
call fcn.14001187a
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x14002ae8d
mov rcx, qword [rsp + 0x38]
call fcn.14001146f
movzx eax, al
test eax, eax
je 0x14002ae8d
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.140011b13
nop
call fcn.14002af70
mov dword [rsp + 0x28], eax
call fcn.1400117a8
movzx eax, al
test eax, eax
jne 0x14002aeac
mov ecx, dword [rsp + 0x28]
call fcn.1400110f5
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x14002aebb
call fcn.140011b2c
nop
xor edx, edx
mov cl, 1
call fcn.140011410
mov eax, dword [rsp + 0x28]
jmp 0x14002af01
add rsp, 0x68
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004046b0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x004046c0]
mov dword [rax], 1
mov rax, qword [0x004046d0]
mov dword [rax], 1
mov rax, qword [0x004046a0]
mov dword [rax], 1
mov rax, qword [0x00404590]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x00404690]
mov dword [0x0040700c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00404650]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00404540]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067
Function at 0x401ce0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x401d50
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00407634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x401ef8
mov rax, qword [0x00407638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401d9c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401e27
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401d80
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x401f32
mov rax, qword [0x00407638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00407638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x401f41
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401e20
sub eax, 4
and eax, 0xfffffffb
jne 0x401eb0
add dword [0x00407634], 1
cmp ebx, 8
jae 0x401e58
test bl, 4
jne 0x401f00
test ebx, ebx
je 0x401e49
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x401f20
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x401e49
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x401e8a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00407638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401e20
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401da7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x401e49
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x401e49
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00407638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x402720
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00407920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00407900]
test rbx, rbx
je 0x402774
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 0x40276b
test r12, r12
je 0x40276b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402750
lea rcx, [0x00407920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x4029a0
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x4029b0
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x4029c0
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402a05
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x4029fc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402a07
add rax, 0x28
cmp rax, r9
jne 0x4029e8
xor eax, eax
ret

Function at 0x402ab0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00404590]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b29
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402b29
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402b26
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402b1d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b29
add r8, 0x28
cmp r8, r9
jne 0x402b08
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402c10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x00404590]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402c7f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402c7f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402c7d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402c74
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402c88
add rax, 0x28
cmp rax, r9
jne 0x402c60
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402ca0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404590]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402d18
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d18
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402d18
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402d18
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402d0c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402d20
add rdx, 0x28
cmp rdx, r10
jne 0x402cf8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402d30
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402d3e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402d15
test r8d, r8d
jg 0x402d28
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x140028974
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001c284
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001c284
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140028ac4
cmp rax, 0xffffffffffffffff
je 0x140028ac4
xor edi, edi
test rbp, rbp
jle 0x140028a6f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001eb98
mov rbx, rax
test rax, rax
jne 0x1400289fc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140028a65
mov edx, 0x8000
mov ecx, r14d
call fcn.140019be8
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001cf60
cmp eax, 0xffffffff
je 0x140028a45
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140028a0c
mov edx, r15d
mov ecx, r14d
call fcn.140019be8
jmp 0x140028a65
cmp byte [rsi + 0x38], dil
je 0x140028a5c
cmp dword [rsi + 0x34], 5
jne 0x140028a5c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140028a65
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001a948
jmp 0x140028ad8
jns 0x140028ad8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001c284
cmp rax, 0xffffffffffffffff
jne 0x140028a90
cmp byte [rsi + 0x30], dil
je 0x140028ad8
mov edi, dword [rsi + 0x2c]
jmp 0x140028ad8
mov ecx, r14d
call fcn.14001871c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140028ad8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140028ad8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140028ad1
mov eax, dword [rsi + 0x2c]
jmp 0x140028ad6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001c284
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140029bd0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140029bf8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140029bf8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x140001040
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0x90
mov edx, 0x47
lea rcx, [entry0]
mov al, byte [rcx + rdx]
xor al, 0x38
add al, 0x92
xor al, 0x2c
mov byte [rcx + rdx], al
inc rdx
cmp rdx, 0x2d9
jl 0x140001068
invalid
Function at 0x140045040
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x140045075
nop
movdqu xmm0, xmmword [rdx + r8]
pxor xmm0, xmmword [r8]
movdqu xmmword [rcx + r8], xmm0
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x140045050
and r10, 0xf
je 0x1400450a5
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
mov al, byte [rdx + r8]
xor al, byte [r8]
mov byte [rcx + r8], al
mov byte [r8], al
lea r8, [r8 + 1]
dec r10
jne 0x140045080
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140045099
mov rax, r8
repz ret

Function at 0x1400450b0
Capabilities:
Encode data using xor

Disassembly:
sub rdx, r8
sub rcx, r8
mov r10, r9
shr r9, 4
je 0x1400450ed
nop
movdqu xmm0, xmmword [rdx + r8]
movdqa xmm1, xmmword [r8]
pxor xmm1, xmm0
movdqu xmmword [rcx + r8], xmm1
movdqa xmmword [r8], xmm0
lea r8, [r8 + 0x10]
dec r9
jne 0x1400450c0
pxor xmm1, xmm1
and r10, 0xf
je 0x140045123
mov r9d, reloc.WS2_32.dll_recv
sub r9, r10
xor eax, eax
xor r11, r11
mov r11b, byte [rdx + r8]
mov al, byte [r8]
xor al, r11b
mov byte [rcx + r8], al
mov byte [r8], r11b
lea r8, [r8 + 1]
dec r10
jne 0x1400450fb
xor eax, eax
mov byte [r8], al
lea r8, [r8 + 1]
dec r9
jne 0x140045117
mov rax, r8
repz ret

Function at 0x140047f20
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140047f40
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
repz ret

Function at 0x140047f80
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesdec xmm2, xmm1
aesdec xmm3, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesdec xmm2, xmm0
aesdec xmm3, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140047fa0
aesdec xmm2, xmm1
aesdec xmm3, xmm1
aesdeclast xmm2, xmm0
aesdeclast xmm3, xmm0
repz ret

Function at 0x140047fe0
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movups xmm0, xmmword [rcx]
shl eax, 4
movups xmm1, xmmword [rcx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm0
xorps xmm4, xmm0
movups xmm0, xmmword [rcx + 0x20]
lea rcx, [rcx + rax + 0x20]
neg rax
add rax, 0x10
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
movups xmm1, xmmword [rcx + rax]
add rax, 0x20
aesenc xmm2, xmm0
aesenc xmm3, xmm0
aesenc xmm4, xmm0
movups xmm0, xmmword [rcx + rax - 0x10]
jne 0x140048003
aesenc xmm2, xmm1
aesenc xmm3, xmm1
aesenc xmm4, xmm1
aesenclast xmm2, xmm0
aesenclast xmm3, xmm0
aesenclast xmm4, xmm0
repz ret