joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402530
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x40259a
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x40259a
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x40263c
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
jmp 0x4025d6
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x40263c
cmp dword [rbp + 0x1c], 0
js 0x4025c6
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4025c0
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4025c0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4025c0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4026c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x40288e
mov rsi, rdx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
mov r13d, dword [rdi + rcx + 0x1c]
add r13, rcx
cmp esi, 0xffff
ja 0x402711
movzx eax, si
mov ecx, dword [rbx + rdi + 0x10]
sub rax, rcx
mov r12d, dword [r13 + rax*4]
add r12, rbx
jmp 0x402891
mov ebp, dword [rbx + rdi + 0x18]
test ebp, ebp
je 0x40288e
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov r14d, dword [rbx + rdi + 0x20]
mov r15d, dword [rbx + rdi + 0x24]
add r14, rbx
add r15, rbx
xor r12d, r12d
nop word [rax + rax]
mov ecx, dword [r14]
add rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x402766
add ebp, 0xffffffff
add r14, 4
add r15, 2
test ebp, ebp
jne 0x402740
jmp 0x402891
movzx eax, word [r15]
mov r12d, dword [r13 + rax*4]
cmp edi, r12d
ja 0x402709
mov rax, qword [rsp + 0x38]
add edi, dword [rbx + rax + 0x8c]
cmp r12d, edi
jae 0x402709
add r12, rbx
mov rcx, r12
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov r14, rax
add r14, 1
mov rsi, r14
sub rsi, r12
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x40288e
mov rbx, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, r12
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x0041406c]
mov dword [rbx + rsi*2], eax
movzx eax, word [0x00414070]
mov word [rbx + rsi*2 + 4], ax
lea rdx, str.api_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x40281c
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x40286a
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.004019b0
test rax, rax
je 0x40286a
mov rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x40288e
mov rbx, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.004026c0
mov r12, rax
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x402891
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x40d4e0
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.0040f160
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.0040f160
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 0x40d550
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x0041a634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40d6f8
mov rax, qword [0x0041a638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40d59c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40d627
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40d580
mov rcx, r12
call fcn.0040e2b0
mov rbp, rax
test rax, rax
je 0x40d732
mov rax, qword [0x0041a638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040e3e0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0041a638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d741
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40d620
sub eax, 4
and eax, 0xfffffffb
jne 0x40d6b0
add dword [0x0041a634], 1
cmp ebx, 8
jae 0x40d658
test bl, 4
jne 0x40d700
test ebx, ebx
je 0x40d649
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40d720
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 0x40d649
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 0x40d68a
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 [0x0041a638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40d620
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040d4e0
nop dword [rax]
xor edi, edi
jmp 0x40d5a7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40d649
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40d649
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040d4e0
mov rax, qword [0x0041a638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040d4e0
nop
nop dword [rax]
Function at 0x40df20
Capabilities:
Get thread local storage value

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

Function at 0x40e2b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x00416360]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x40e329
mov rcx, r10
call fcn.0040e180
test eax, eax
je 0x40e329
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 0x40e326
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 0x40e31d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x40e329
add r8, 0x28
cmp r8, r9
jne 0x40e308
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x40e620
Capabilities:
Allocate thread local storage

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [0x0041a908]
mov edi, ecx
mov rsi, rdx
test eax, eax
jne 0x40dfb0
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov edx, 0x18
mov ecx, 1
call sub.msvcrt.dll_calloc
mov rbx, rax
test rax, rax
je 0x40e003
mov dword [rax], edi
lea rcx, [0x0041a920]
mov qword [rax + 8], rsi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x0041a900]
lea rcx, [0x0041a920]
mov qword [0x0041a900], rbx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
or eax, 0xffffffff
jmp 0x40dfa6
push r12
push rbx
sub rsp, 0x28
mov rbx, rcx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x40e650
mov rdx, r12
mov dword [rbx], eax
add rsp, 0x28
pop rbx
pop r12
jmp 0x40f350
add rsp, 0x28
pop rbx
pop r12
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
test rdx, rdx
jne 0x40f360
xor eax, eax
ret
jmp 0x40df90

Function at 0x40e690
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
sub rsp, 0x28
mov r12d, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, r12d
mov r13d, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r13d
mov r12, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x28
pop r12
pop r13
ret

Function at 0x40e6d0
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x40e6e8
xor eax, eax
add rsp, 0x28
ret
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_GetLastError]
Function at 0x1400204e0
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.14001ffc0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14002051f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x140060290]
jmp 0x140020529
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret
Function at 0x14003a070
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x140040840
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.140019640
lea rcx, [rsp + 0x40]
call fcn.140040800
movzx eax, al
test eax, eax
jne 0x140040888
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.140040730
mov rax, qword [rsp + 0x70]
jmp 0x140040a59
lea rcx, [rsp + 0x40]
call fcn.1400196d0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.1400407b0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.1400196d0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.140040600
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14004092e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.140040730
mov rax, qword [rsp + 0x80]
jmp 0x140040a59
mov r9d, 0x66
lea r8, [0x14000a240]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.14002a800
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.140019640
lea rcx, [rsp + 0x48]
call fcn.140019680
movzx eax, al
test eax, eax
jne 0x140040995
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.14001a2a0
lea rcx, [rsp + 0x40]
call fcn.140040730
mov rax, qword [rsp + 0x88]
jmp 0x140040a59
lea rcx, [rsp + 0x48]
call fcn.1400196d0
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.1400196d0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.140040600
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x140040a2b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.14001a2a0
lea rcx, [rsp + 0x40]
call fcn.140040730
mov rax, qword [rsp + 0xa0]
jmp 0x140040a59
lea rcx, [rsp + 0x48]
call fcn.1400196a0
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.14001a2a0
lea rcx, [rsp + 0x40]
call fcn.140040730
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret
Function at 0x14004c420
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14003e5f0
lea rcx, [rsp + 0x48]
call fcn.14003e5f0
call fcn.140039bc0
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14003dae0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14004c48f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14003e6b0
lea rcx, [rsp + 0x78]
call fcn.14003e6b0
mov eax, dword [rsp + 0x24]
jmp 0x14004c520
call fcn.140039bc0
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14003dae0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14004c4d6
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14003e6b0
lea rcx, [rsp + 0x78]
call fcn.14003e6b0
mov eax, dword [rsp + 0x2c]
jmp 0x14004c520
lea rcx, [rsp + 0x48]
call fcn.140039d70
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140039d70
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14003e6b0
lea rcx, [rsp + 0x78]
call fcn.14003e6b0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x140052820
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400579e0
sub rsp, rax
mov rax, qword [0x1400010c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005b990]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x60], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140052a12
lea rax, [rsp + 0x147f]
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x38], rax
jae 0x140052966
mov rax, qword [rsp + 0x50]
cmp qword [rsp + 0x48], rax
jae 0x140052966
mov rax, qword [rsp + 0x48]
movzx eax, byte [rax]
mov byte [rsp + 0x31], al
mov rax, qword [rsp + 0x48]
inc rax
mov qword [rsp + 0x48], rax
movzx eax, byte [rsp + 0x31]
mov byte [rsp + 0x30], al
movsx eax, byte [rsp + 0x30]
cmp eax, 0xa
jne 0x14005294b
mov eax, dword [rsp + 0x70]
inc eax
mov dword [rsp + 0x70], eax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0xd
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, byte [rsp + 0x30]
mov byte [rax], cl
mov rax, qword [rsp + 0x38]
inc rax
mov qword [rsp + 0x38], rax
jmp 0x1400528e8
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
mov dword [rsp + 0x40], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8d, dword [rsp + 0x40]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x1400529d2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x68], eax
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140052a31
mov eax, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x6c]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x6c], eax
mov eax, dword [rsp + 0x40]
cmp dword [rsp + 0x44], eax
jae 0x140052a0d
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140052a31
jmp 0x1400528be
lea rax, [rsp + 0x68]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140016550
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140052a50
Capabilities:
Write file on windows

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x1498
call fcn.1400579e0
sub rsp, rax
mov rax, qword [0x1400010c0]
xor rax, rsp
mov qword [rsp + 0x1480], rax
mov eax, dword [rsp + 0x14b8]
sar eax, 6
cdqe
lea rcx, [0x14005b990]
mov edx, dword [rsp + 0x14b8]
and edx, 0x3f
movsxd rdx, edx
imul rdx, rdx, 0x48
mov rax, qword [rcx + rax*8]
mov rax, qword [rax + rdx + 0x28]
mov qword [rsp + 0x68], rax
mov eax, dword [rsp + 0x14c8]
mov rcx, qword [rsp + 0x14c0]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x70]
mov rdi, rax
xor eax, eax
mov ecx, 0xc
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x14c0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140052c5d
lea rax, [rsp + 0x147e]
mov qword [rsp + 0x60], rax
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
cmp qword [rsp + 0x38], rax
jae 0x140052ba9
mov rax, qword [rsp + 0x58]
cmp qword [rsp + 0x50], rax
jae 0x140052ba9
mov rax, qword [rsp + 0x50]
movzx eax, word [rax]
mov word [rsp + 0x40], ax
mov rax, qword [rsp + 0x50]
add rax, 2
mov qword [rsp + 0x50], rax
movzx eax, word [rsp + 0x40]
mov word [rsp + 0x30], ax
movzx eax, word [rsp + 0x30]
cmp eax, 0xa
jne 0x140052b89
mov eax, dword [rsp + 0x78]
add eax, 2
mov dword [rsp + 0x78], eax
mov eax, 0xd
mov rcx, qword [rsp + 0x38]
mov word [rcx], ax
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
movzx ecx, word [rsp + 0x30]
mov word [rax], cx
mov rax, qword [rsp + 0x38]
add rax, 2
mov qword [rsp + 0x38], rax
jmp 0x140052b18
lea rax, [rsp + 0x80]
mov rcx, qword [rsp + 0x38]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov eax, eax
shl rax, 1
mov dword [rsp + 0x44], eax
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x48]
mov r8d, dword [rsp + 0x44]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x140052c1d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x70], eax
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140052c7c
mov eax, dword [rsp + 0x48]
mov ecx, dword [rsp + 0x74]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x44]
cmp dword [rsp + 0x48], eax
jae 0x140052c58
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
jmp 0x140052c7c
jmp 0x140052aee
lea rax, [rsp + 0x70]
mov rdi, qword [rsp + 0x14b0]
mov rsi, rax
mov ecx, 0xc
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x14b0]
mov rcx, qword [rsp + 0x1480]
xor rcx, rsp
call fcn.140016550
add rsp, 0x1498
pop rdi
pop rsi
ret
Function at 0x140025d20
Capabilities:
Encode data using xor

Disassembly:
test r8d, r8d
je 0x140025e0f
xchg r10, rbx
mov qword [rsp + 0x10], r10
xchg r10, rbx
xchg rbp, rbx
mov qword [rsp + 0x18], rbx
xchg rbx, rbp
push rsi
sub rsp, 0x20
mov qword [rsp + 0x30], rdi
xchg rbp, rdx
mov rbx, rbp
xchg rdx, rbp
xchg r13, rdi
mov r13, rcx
xchg rdi, r13
mov esi, r8d
sub rdi, rdx
mov rbp, rcx
neg rdi
add rdi, 0xffffffffffffff10
neg rdi
dec rsi
shr rsi, 2
shr rsi, 2
inc rsi
nop dword [rax]
movups xmm0, xmmword [rbx]
xchg r15, rbp
mov rdx, r15
xchg rbp, r15
xchg rcx, r9
mov r9, rbx
xchg rcx, r9
call fcn.140026300
mov ecx, 0x10
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
xor byte [rbx], al
inc rbx
sub rcx, 1
jne 0x140025dae
add rdi, 0xfffffffffffffff0
xchg rbp, r14
movups xmmword [r14 + 0xf0], xmm0
xchg rbp, r14
sub rsi, 1
jne 0x140025d82
mov rdi, qword [rsp + 0x30]
xchg rbx, r9
mov r9, qword [rsp + 0x38]
xchg r9, rbx
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
push rdx
push rax
push rbx
push rax
push rdx
push rcx
push rax
push rbx
xchg qword [rsp + 0x40], rsi
pop rbx
pop rax
pop rcx
pop rdx
pop rax
pop rbx
pop rax
pop rdx
add rsp, 8
ret

Function at 0x140025e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
xchg rdi, rsi
mov qword [rsp + 0x18], rdi
xchg rdi, rsi
nop
sub rsp, 8
mov qword [rsp], rdi
sub rsp, 0x20
mov edi, r8d
xchg rbx, r11
mov r11, rdx
xchg rbx, r11
lea r9, [rcx + 0xf0]
mov rsi, rcx
test r8d, r8d
je 0x140025ed2
dec rdi
shr rdi, 2
shr rdi, 1
shr rdi, 1
inc rdi
nop dword [rax]
nop word [rax + rax]
xchg rbx, rbp
mov rax, rbp
xchg rbp, rbx
sub r9, rbx
mov edx, 0x10
nop dword [rax + rax]
movzx ecx, byte [r9 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140025e84
xchg rsi, r11
mov rdx, r11
xchg rsi, r11
xchg rcx, rbx
mov rbx, rcx
xchg rcx, rbx
call fcn.140025f60
xchg rbx, r9
mov rbx, r9
xchg r9, rbx
nop
add rbx, 0x38ff0399
sub rbx, 0x38ff0389
sub rdi, 1
jne 0x140025e6e
xchg rbx, r9
movups xmm0, xmmword [rbx]
xchg rbx, r9
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
xchg rsi, rdx
movups xmmword [rdx + 0xf0], xmm0
xchg rsi, rdx
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
nop
xchg qword [rsp], rdi
add rsp, 8
ret
Function at 0x1400271d0
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x10
xchg rbx, r10
mov r10, rdx
xchg rbx, r10
xchg rbp, r10
mov rbp, rcx
xchg rbp, r10
test r8b, 0xf
je 0x14002720b
xor al, al
mov rbx, qword [rsp + 0x20]
add rsp, 0x10
nop
xchg qword [rsp], rdi
add rsp, 8
ret
xor edx, edx
test r8d, r8d
je 0x140027297
movdqa xmm2, xmmword [rsp]
nop
xchg rdx, rdi
movdqu xmm1, xmmword [rdi + rbx]
xchg rdi, rdx
test edx, edx
jne 0x14002723d
xchg r10, rbp
movdqu xmm2, xmmword [rbp + 0x200]
xchg rbp, r10
movdqa xmm0, xmm1
lea rax, [r10 + 0x1c0]
xorps xmm0, xmmword [r10 + 0x1d0]
mov ecx, 0xd
nop word [rax + rax]
aesdec xmm0, xmmword [rax]
lea rax, [rax - 0x10]
sub rcx, 1
jne 0x14002725b
aesdeclast xmm0, xmmword [r10 + 0x1e0]
xorps xmm0, xmm2
movdqa xmm2, xmm1
xchg r13, rdx
movups xmmword [r13 + r9], xmm0
xchg rdx, r13
sub edx, 0xfffffff0
cmp edx, r8d
jb 0x14002721c
mov rbx, qword [rsp + 0x20]
mov al, 1
add rsp, 0x10
push rdx
xchg qword [rsp + 8], rdi
pop rdx
add rsp, 8
ret