joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41a070
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
lea rsi, [0x00429440]
mov edx, 0x4e9ce2cc
mov r13, rcx
lea rcx, [0x00429480]
call fcn.00417750
lea rdi, [r13 + 2]
mov edx, 0x69fb1ce4
mov rcx, rax
call fcn.00419c60
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r12, qword [rax + 0x20]
lea rbp, [rax + 0x20]
nop
movzx eax, word [r13]
mov rdx, r13
test ax, ax
je 0x41a0f0
nop dword [rax]
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x41a260
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x41a0d0
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
je 0x41a281
mov rax, rcx
lea edx, [rbx - 0x41]
cmp dx, 0x19
ja 0x41a290
add ebx, 0x20
add rax, 2
mov word [rax - 2], bx
movzx ebx, word [rax]
test bx, bx
jne 0x41a104
movzx r14d, word [r13]
movzx ebx, word [rcx]
test r14w, r14w
je 0x41a195
test bx, bx
je 0x41a2a5
mov r10, rdi
mov eax, r14d
sub r10, rcx
jmp 0x41a156
cmp word [rcx], 0
je 0x41a195
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x41a2a5
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x41a150
mov edx, 0x65aef04c
mov rcx, rsi
call fcn.00417750
mov edx, 0x1f7b5564
mov rcx, rax
call fcn.00419c60
cmp r14w, bx
je 0x41a2c4
mov r12, qword [r12]
cmp rbp, r12
jne 0x41a0c0
lea rcx, [0x004292e0]
mov edx, 0x3bdcc72c
call fcn.00417750
lea rbx, [rsp + 0x30]
mov edx, 0x330fae04
mov rcx, rax
call fcn.00419c60
mov rcx, rbx
mov rdx, r13
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x0045de20]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x0045dd90]
mov edx, 0x688d8a44
lea rcx, [0x004292a0]
mov ebx, eax
call fcn.00417750
mov edx, 0x65aef04c
mov rcx, rax
call fcn.00419c60
xor eax, eax
test ebx, ebx
jne 0x41a2c9
mov rax, qword [rsp + 0x28]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x41a0d0
mov rcx, qword [r12 + 0x50]
movzx ebx, word [rcx]
test bx, bx
jne 0x41a101
movzx r14d, word [r13]
jmp 0x41a195
add rax, 2
movzx ebx, word [rax]
test bx, bx
jne 0x41a104
jmp 0x41a124
mov rcx, rsi
mov edx, 0x65aef04c
call fcn.00417750
mov edx, 0x1f7b5564
mov rcx, rax
call fcn.00419c60
jmp 0x41a1b9
mov rax, qword [r12 + 0x20]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x41abc0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
lea rbx, [0x00429440]
mov r14, rcx
mov ebp, edx
mov edx, 0x4e9ce2cc
lea rcx, [0x00429480]
call fcn.00417750
lea rsi, [r14 + 2]
mov edx, 0x69fb1ce4
mov rcx, rax
call fcn.00419c60
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov r13, qword [rax + 0x20]
lea rdi, [rax + 0x20]
movzx eax, word [r14]
mov rdx, r14
test ax, ax
je 0x41ac40
nop
lea ecx, [rax - 0x41]
cmp cx, 0x19
ja 0x41adb0
add eax, 0x20
add rdx, 2
mov word [rdx - 2], ax
movzx eax, word [rdx]
test ax, ax
jne 0x41ac20
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
je 0x41add2
mov rax, rcx
lea edx, [r12 - 0x41]
cmp dx, 0x19
ja 0x41ade0
add r12d, 0x20
add rax, 2
mov word [rax - 2], r12w
movzx r12d, word [rax]
test r12w, r12w
jne 0x41ac55
movzx r15d, word [r14]
movzx r12d, word [rcx]
test r15w, r15w
je 0x41ace5
test r12w, r12w
je 0x41ae00
mov r10, rsi
mov eax, r15d
sub r10, rcx
jmp 0x41aca6
cmp word [rcx], 0
je 0x41ace5
movzx edx, word [rcx]
lea r9d, [rax - 0x41]
lea r8d, [rax + 0x20]
cmp r9w, 0x1a
cmovb eax, r8d
lea r9d, [rdx - 0x41]
lea r8d, [rdx + 0x20]
cmp r9w, 0x1a
cmovb edx, r8d
cmp ax, dx
jne 0x41ae00
mov rax, rcx
add rcx, 2
movzx eax, word [r10 + rax]
test ax, ax
jne 0x41aca0
mov edx, 0x65aef04c
mov rcx, rbx
call fcn.00417750
mov edx, 0x1f7b5564
mov rcx, rax
call fcn.00419c60
cmp r15w, r12w
je 0x41ae1f
mov r13, qword [r13]
cmp rdi, r13
jne 0x41ac13
test ebp, ebp
je 0x41ae34
lea rcx, [0x004292e0]
mov edx, 0x3bdcc72c
call fcn.00417750
lea rbx, [rsp + 0x30]
mov edx, 0x330fae04
mov rcx, rax
call fcn.00419c60
mov rcx, rbx
mov rdx, r14
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x28], 0
call qword [0x0045de20]
mov r8, rbx
xor edx, edx
xor ecx, ecx
lea r9, [rsp + 0x28]
call qword [0x0045dd90]
mov edx, 0x688d8a44
lea rcx, [0x004292a0]
mov ebx, eax
call fcn.00417750
mov edx, 0x65aef04c
mov rcx, rax
call fcn.00419c60
test ebx, ebx
jne 0x41ae52
mov rax, qword [rsp + 0x28]
jmp 0x41ae23
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x41ac20
mov rcx, qword [r13 + 0x50]
movzx r12d, word [rcx]
test r12w, r12w
jne 0x41ac52
movzx r15d, word [r14]
jmp 0x41ace5
add rax, 2
movzx r12d, word [rax]
test r12w, r12w
jne 0x41ac55
jmp 0x41ac7b
mov rcx, rbx
mov edx, 0x65aef04c
call fcn.00417750
mov edx, 0x1f7b5564
mov rcx, rax
call fcn.00419c60
jmp 0x41ad09
mov rax, qword [r13 + 0x20]
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rcx, [0x00429400]
mov edx, 0x5e6447a4
call fcn.00417750
mov edx, 0x73276c6c
mov rcx, rax
call fcn.00419c60
xor eax, eax
jmp 0x41ae23
Function at 0x420910
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x0044ad24]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x420a98
mov rax, qword [0x0044ad28]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x42095c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4209e5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x420940
mov rcx, rbx
call fcn.004215b0
test rax, rax
mov r12, rax
je 0x420acd
mov rax, qword [0x0044ad28]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004216e0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x0044ad28]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x420ab0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4209de
sub eax, 0x40
and eax, 0xffffffbf
jne 0x420a40
add dword [0x0044ad24], 1
cmp edi, 8
jae 0x420a13
test dil, 4
jne 0x420a84
test edi, edi
je 0x420a08
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x420a9f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x420a08
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x420a2c
jmp 0x420a08
add rsi, qword [0x0044ad28]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4209de
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00421b50
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x420a08
xor esi, esi
jmp 0x420967
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x420a08
mov rax, qword [0x0044ad28]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00421b50
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00421b50
nop
nop dword [rax]

Function at 0x421220
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x0044b000]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x0044afe0]
test rbx, rbx
je 0x421274
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x42126b
test rsi, rsi
je 0x42126b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x421250
lea rcx, [0x0044b000]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4215b0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00443680]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x42161d
mov rcx, r8
call fcn.00421490
test eax, eax
je 0x42161d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x42161d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x421614
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x42161f
add rax, 0x28
cmp rax, r9
jne 0x421600
xor eax, eax
add rsp, 0x28
ret

Function at 0x421b50
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.004219c0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.004219c0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x140001620
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push r14
mov r14, rcx
mov rsi, r8
mov rbp, rdx
sub r14, qword [r8 + 0x30]
je 0x1400017a2
test byte [r8 + 0x5e], 0x40
jne 0x14000164d
xor eax, eax
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
movzx edx, word [rsi + 0x14]
movzx eax, word [rsi + 6]
add rdx, 0x18
mov r8d, dword [r8 + 0xb0]
add rdx, rsi
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x1400017a2
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001686
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x14000169d
add rdx, 0x28
cmp rdx, r9
jb 0x140001674
mov eax, 1
mov rbp, qword [rsp + 0x30]
pop r14
pop rsi
ret
mov qword [rsp + 0x18], rbx
mov ebx, dword [rdx + 0x14]
sub rbx, rcx
mov qword [rsp + 0x28], r15
mov r15d, dword [rsi + 0xb4]
add rbx, r8
add rbx, rbp
add r15, rbx
test rbx, rbx
je 0x140001798
cmp rbx, r15
jae 0x140001798
mov qword [rsp + 0x20], rdi
mov eax, dword [rbx + 4]
test eax, eax
je 0x140001793
add eax, 0xfffffff8
shr eax, 1
je 0x140001784
lea r11, [rbx + 8]
mov edi, eax
movzx r8d, word [r11]
movzx eax, r8w
shr ax, 0xc
and r8d, 0x80000fff
jge 0x140001712
dec r8d
or r8d, 0xfffff000
inc r8d
cmp ax, 3
je 0x14000171e
cmp ax, 0xa
jne 0x140001776
movzx eax, word [rsi + 0x14]
movzx ecx, word [rsi + 6]
add rax, 0x18
mov r9d, dword [rbx]
add rax, rsi
lea rdx, [rcx + rcx*4]
lea r10, [rax + rdx*8]
cmp rax, r10
jae 0x14000176b
nop dword [rax]
mov edx, dword [rax + 0xc]
cmp r9, rdx
jb 0x140001752
mov ecx, dword [rax + 8]
add ecx, edx
cmp r9, rcx
jb 0x14000175d
add rax, 0x28
cmp rax, r10
jb 0x140001740
jmp 0x14000176b
mov ecx, dword [rax + 0x14]
sub rcx, rdx
add rcx, r9
add rcx, rbp
jne 0x14000176e
mov rcx, rbp
movzx eax, r8w
add qword [rax + rcx], r14
add r11, 2
sub rdi, 1
jne 0x1400016f0
mov eax, dword [rbx + 4]
add rbx, rax
cmp rbx, r15
jb 0x1400016d4
mov rdi, qword [rsp + 0x20]
mov rbx, qword [rsp + 0x18]
mov r15, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x30]
mov eax, 1
pop r14
pop rsi
ret
Function at 0x1400017b0
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
push r13
sub rsp, 0x38
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + 0x18]
mov r10d, dword [r9 + 0x90]
add rdx, rax
movzx eax, word [r9 + 6]
mov r13, r8
mov rbp, r9
lea rcx, [rax + rax*4]
lea r8, [rdx + rcx*8]
cmp rdx, r8
jae 0x140001802
mov ecx, dword [rdx + 0xc]
cmp r10, rcx
jb 0x1400017f9
mov eax, dword [rdx + 8]
add eax, ecx
cmp r10, rax
jb 0x1400018a6
add rdx, 0x28
cmp rdx, r8
jb 0x1400017e3
xor eax, eax
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
test r10d, r10d
je 0x14000187b
cmp dword [r9 + 0x94], 0
je 0x14000187b
lea rbx, [rax + 0x10]
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx - 4]
add rdx, rbp
mov qword [rsp + 0x68], rbx
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000187b
nop word [rax + rax]
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001872
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x1400018b7
add rdx, 0x28
cmp rdx, r9
jb 0x140001860
mov eax, 1
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
pop r13
pop rbp
ret
mov eax, dword [rdx + 0x14]
sub rax, rcx
add rax, r10
add rax, r13
jmp 0x140001804
mov r15d, dword [rdx + 0x14]
sub r15, rcx
add r15, r8
add r15, r13
je 0x14000187b
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov r12, rax
test rax, rax
je 0x1400019ee
movzx edx, word [rbp + 0x14]
movzx eax, word [rbp + 6]
add rdx, 0x18
mov r8d, dword [rbx]
add rdx, rbp
lea rcx, [rax + rax*4]
lea r9, [rdx + rcx*8]
cmp rdx, r9
jae 0x14000191b
nop word [rax + rax]
mov ecx, dword [rdx + 0xc]
cmp r8, rcx
jb 0x140001912
mov eax, dword [rdx + 8]
add eax, ecx
cmp r8, rax
jb 0x140001940
add rdx, 0x28
cmp rdx, r9
jb 0x140001900
xor r14d, r14d
mov rdi, qword [r14]
test rdi, rdi
je 0x1400019d7
jns 0x14000194f
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
movzx edx, di
jmp 0x1400019a0
mov r14d, dword [rdx + 0x14]
sub r14, rcx
add r14, r8
add r14, r13
jmp 0x14000191e
movzx eax, word [rbp + 0x14]
movzx ecx, word [rbp + 6]
add rax, 0x18
add rax, rbp
lea rdx, [rcx + rcx*4]
lea r8, [rax + rdx*8]
cmp rax, r8
jae 0x14000198b
nop dword [rax + rax]
mov edx, dword [rax + 0xc]
cmp rdi, rdx
jb 0x140001982
mov ecx, dword [rax + 8]
add ecx, edx
cmp rdi, rcx
jb 0x1400019e0
add rax, 0x28
cmp rax, r8
jb 0x140001970
xor esi, esi
xor edx, edx
mov rcx, r15
lea r8d, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_LoadLibraryExA]
lea rdx, [rsi + 2]
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov rcx, rbx
sub rdi, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rdi + r12]
mov qword [r14], rax
add r14, 8
mov rdi, qword [r14]
test rdi, rdi
jne 0x14000192a
mov rbx, qword [rsp + 0x68]
add rbx, 0x14
jmp 0x140001835
mov esi, dword [rax + 0x14]
sub rsi, rdx
add rsi, rdi
add rsi, r13
jmp 0x14000198d
jmp 0x140001880
Function at 0x1400041cc
Capabilities:
Parse pe header

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

Function at 0x140001d40
Capabilities:
Write file on windows

Disassembly:
push rsi
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], r8
mov qword [rsp + 0x58], r9
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov ecx, 2
call fcn.140002290
lea rcx, str.Mingw_w64_runtime_failure:_n
mov edx, 0x1b
mov r8d, 1
mov r9, rax
call sub.msvcrt.dll_fwrite
mov ecx, 2
call fcn.140002290
mov r8, qword [rsp + 0x28]
mov rcx, rax
mov rdx, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
int3

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

Disassembly:
mov rax, qword [0x14000b008]
movzx edx, word [rax]
cmp edx, 0x5a4d
jne 0x14000241c
movsxd rdx, dword [rax + 0x3c]
cmp dword [rax + rdx], 0x4550
jne 0x14000241c
add rax, rdx
movzx edx, word [rax + 0x18]
cmp edx, 0x20b
jne 0x14000241c
movzx edx, word [rax + 6]
test edx, edx
je 0x14000241c
sub rcx, qword [0x14000b008]
movzx r8d, word [rax + 0x14]
add rax, r8
add rax, 0x18
jmp 0x140002408
add rax, 0x28
dec edx
je 0x14000241c
mov r8d, dword [rax + 0xc]
cmp rcx, r8
jb 0x140002400
add r8d, dword [rax + 8]
cmp rcx, r8
jae 0x140002400
jmp 0x14000241e
xor eax, eax
ret

Function at 0x140002420
Capabilities:
Parse pe header

Disassembly:
mov rcx, qword [0x14000b008]
movzx edx, word [rcx]
xor eax, eax
cmp edx, 0x5a4d
jne 0x140002455
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rcx + rdx], 0x4550
jne 0x140002455
movzx r8d, word [rcx + rdx + 0x18]
cmp r8d, 0x20b
jne 0x140002455
movzx eax, word [rcx + rdx + 6]
ret

Function at 0x1400024d0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000b008]
movzx ecx, word [rax]
cmp ecx, 0x5a4d
jne 0x1400024fc
movsxd rcx, dword [rax + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x1400024fc
movzx ecx, word [rax + rcx + 0x18]
cmp ecx, 0x20b
je 0x1400024fe
xor eax, eax
ret
Function at 0x140e82ee0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140e82eed
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140e82efd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140e82ee5
lea eax, [rcx + 1]
jmp 0x140e82f0b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x140e82f1e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140e82f04
sub eax, 3
jb 0x140e82f3e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140e82f8d
sar eax, 1
movsxd rbp, eax
jb 0x140e82f74
jmp 0x140e82f4c
add ebx, ebx
jne 0x140e82f4a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140e82f74
inc ecx
add ebx, ebx
jne 0x140e82f5a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x140e82f74
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140e82f6d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140e82f5c
add ecx, 2
jmp 0x140e82f79
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.140e82ea2
jmp 0x140e82eed
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0xe72000]
mov eax, dword [rdi]
or eax, eax
je 0x140e82fed
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xe834ec]
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 0x140e82f9d
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 0x140e82fe7
mov qword [rbx], rax
add rbx, 8
jmp 0x140e82fbd
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 0x140e83031
cmp al, 0xef
ja 0x140e83019
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140e82ff9
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x140e83008
mov eax, dword [rdi]
add rdi, 4
jmp 0x140e83008
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 + 0x1af]
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
mov byte [fcn.140e830b0], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.140e830b0
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140e830a0
sub rsp, 0xffffffffffffff80
jmp 0x1400014e0
Function at 0x1400012ac
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov rbx, rcx
lea rcx, [rax - 0x18]
lea r8d, [rdi + 0x10]
xor edx, edx
mov qword [rax + 8], rdi
call sub.msvcrt.dll_memset
cmp rbx, rdi
je 0x1400012f2
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140006fe8
jmp 0x1400012f7
mov eax, 0xffff9f00
cmp eax, edi
jne 0x140001466
movzx eax, byte [rsp + 0x21]
movzx r8d, byte [rsp + 0x20]
movzx edx, byte [rsp + 0x28]
movzx ecx, byte [rsp + 0x24]
shl r8d, 8
shl edx, 8
or r8d, eax
movzx eax, byte [rsp + 0x22]
shl ecx, 8
shl r8d, 8
mov qword [rbx + 0xd8], rdi
mov qword [rbx + 0x58], rdi
or r8d, eax
movzx eax, byte [rsp + 0x23]
mov r9d, 4
shl r8d, 8
or r8, rax
movzx eax, byte [rsp + 0x25]
or ecx, eax
movzx eax, byte [rsp + 0x26]
shl r8, 0x20
shl ecx, 8
or eax, ecx
movzx ecx, byte [rsp + 0x2c]
shl eax, 8
shl ecx, 8
or r8, rax
movzx eax, byte [rsp + 0x27]
or r8, rax
movzx eax, byte [rsp + 0x29]
or edx, eax
movzx eax, byte [rsp + 0x2a]
mov qword [rbx + 0x118], r8
shl edx, 8
or edx, eax
movzx eax, byte [rsp + 0x2b]
shl edx, 8
or rdx, rax
movzx eax, byte [rsp + 0x2d]
or ecx, eax
movzx eax, byte [rsp + 0x2e]
shl rdx, 0x20
shl ecx, 8
or eax, ecx
shl eax, 8
or rdx, rax
movzx eax, byte [rsp + 0x2f]
or rdx, rax
mov qword [rbx + 0x98], rdx
mov ecx, edx
mov rax, r8
shr rdx, 1
shl rax, 0x3f
and ecx, 1
or rdx, rax
mov rax, r8
shr rax, 1
imul ecx, ecx, 0xe1000000
shl rcx, 0x20
mov r8, rcx
xor r8, rax
movsxd rax, r9d
sar r9d, 1
cmp r9d, edi
mov qword [rbx + rax*8 + 0x58], rdx
mov qword [rbx + rax*8 + 0xd8], r8
jg 0x1400013c2
mov edx, 2
mov rcx, rdx
cmp rcx, 1
lea rax, [rbx + rcx*8 + 0x58]
lea r8, [rbx + rcx*8 + 0xd8]
mov rdi, qword [r8]
mov rsi, qword [rax]
jle 0x140001457
lea r9, [rax + 8]
lea r10, [rbx + 0x60]
sub r8, rax
lea r11, [rcx - 1]
mov rax, qword [r10 + 0x80]
xor rax, rdi
mov qword [r8 + r9], rax
mov rax, qword [r10]
add r10, 8
xor rax, rsi
mov qword [r9], rax
add r9, 8
sub r11, 1
jne 0x140001432
lea eax, [rdx + rdx]
add rcx, rcx
cmp eax, 8
mov edx, eax
jle 0x14000140a
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140001948
Capabilities:
Encode data using xor

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
sub rsp, 0x30
mov rbp, qword [rcx + 0x158]
mov rdi, qword [rcx + 0x160]
mov r12, rdx
lea rdx, [rcx + 0x168]
mov rsi, rcx
mov r8d, InitCommonControls
mov rcx, r12
shl rbp, 3
shl rdi, 3
call sub.msvcrt.dll_memcpy
xor ebx, ebx
cmp rbp, rbx
jne 0x1400019a2
cmp rdi, rbx
je 0x140001a9a
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0x10]
call sub.msvcrt.dll_memset
mov rax, rdi
mov r11, rdi
shr rax, 0x30
shr r11, 0x38
mov byte [rsp + 0x27], dil
mov byte [rsp + 0x21], al
mov rax, rdi
mov byte [rsp + 0x2f], bpl
shr rax, 0x28
mov byte [rsp + 0x20], r11b
mov rcx, rbx
mov byte [rsp + 0x22], al
mov rax, rdi
shr rax, 0x20
mov byte [rsp + 0x23], al
mov rax, rdi
shr rax, 0x18
mov byte [rsp + 0x24], al
mov rax, rdi
shr rax, 0x10
mov byte [rsp + 0x25], al
mov rax, rdi
shr rax, 8
mov byte [rsp + 0x26], al
mov rax, rbp
shr rax, 0x38
mov byte [rsp + 0x28], al
mov rax, rbp
shr rax, 0x30
mov byte [rsp + 0x29], al
mov rax, rbp
shr rax, 0x28
mov byte [rsp + 0x2a], al
mov rax, rbp
shr rax, 0x20
mov byte [rsp + 0x2b], al
mov rax, rbp
shr rax, 0x18
mov byte [rsp + 0x2c], al
mov rax, rbp
shr rax, 0x10
mov byte [rsp + 0x2d], al
mov rax, rbp
shr rax, 8
mov byte [rsp + 0x2e], al
mov al, byte [rsp + rcx + 0x20]
add rcx, 1
xor byte [rsi + rcx + 0x187], al
cmp rcx, 0x10
jb 0x140001a5a
lea r8, [rsi + 0x188]
lea rdx, [rsi + 0x188]
mov rcx, rsi
call fcn.1400015a0
mov al, byte [rsi + rbx + 0x188]
xor byte [rbx + r12], al
add rbx, 1
cmp rbx, 0x10
jb 0x140001a85
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
xor eax, eax
add rsp, 0x30
pop r12
ret