joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009b2c0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x90
mov rax, qword [0x1400ea3e8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
mov dword [rbp - 0x39], 1
cmp qword [rdx + 0x18], 8
jb 0x14009b2ff
mov rdx, qword [rdx]
xor r12d, r12d
mov qword [rbp - 0x31], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
or rdi, 0xffffffffffffffff
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14009b315
lea rcx, [rbp - 0x31]
call fcn.140012ba4
nop
mov r9, r15
mov r8, rsi
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x31]
call fcn.14009b4ac
mov r14d, eax
lea rcx, [rbp - 0x31]
call fcn.140009ca4
mov dword [rbp - 0x39], 2
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14009b35c
mov rdx, qword [rbx]
mov qword [rbp - 0x31], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x21], xmm0
mov r8, rdi
inc r8
cmp word [rdx + r8*2], r12w
jne 0x14009b36b
lea rcx, [rbp - 0x31]
call fcn.140012ba4
nop
mov r9, r15
mov r8, rsi
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x31]
call fcn.14009b4ac
nop
lea rcx, [rbp - 0x31]
call fcn.140009ca4
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerDesktopNameSpace_]
mov qword [rbp - 9], r12
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
inc rdi
cmp word [rdx + rdi*2], r12w
jne 0x14009b3af
mov r8, rdi
lea rcx, [rbp - 9]
call fcn.140012ba4
nop
mov rdx, rbx
cmp qword [rbx + 0x18], 8
jb 0x14009b3d3
mov rdx, qword [rbx]
mov r8, qword [rbx + 0x10]
lea rcx, [rbp - 9]
call fcn.14002a670
lea rdx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rdx, qword [rbp - 9]
xor r9d, r9d
mov edi, 0x1010b
mov r8d, edi
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
movzx esi, ax
or esi, 0x80070000
test eax, eax
cmovle esi, eax
lea rax, [rbp - 0x11]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, qword [str.SoftwareMicrosoftWindowsCurrentVersionExplorerHideDesktopIconsNewStartPanel]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
test edi, edi
js 0x14009b470
cmp qword [rbx + 0x18], 8
jb 0x14009b44b
mov rbx, qword [rbx]
mov rdx, rbx
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.14009b568
test esi, esi
cmovne edi, esi
test r14d, r14d
cmovne edi, r14d
lea rcx, [rbp - 9]
call fcn.140009ca4
mov eax, edi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14009bdf0
add rsp, 0x90
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x14009ce1c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14009ce66
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14009ce66
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14009ce66
mov eax, SHFlushSFCache
cmp word [rcx + 0x18], ax
jne 0x14009ce66
cmp dword [rcx + 0x84], 0xe
jbe 0x14009ce66
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14009ce68
xor al, al
add rsp, 0x28
ret
Function at 0x450f60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x45112e
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
test rax, rax
je 0x4510e8
mov ecx, dword [rax + 0x18]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], 0
movzx ebx, byte [rsp + 0x88]
mov byte [rsp + 0x28], bl
call fcn.00450840
movsxd rax, dword [rsp + 0x30]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x70]
mov edx, dword [rcx + 0x1c]
mov qword [rsp], rcx
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
mov dword [rsp + 0x10], edx
mov rdx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rdx
mov qword [rsp + 0x20], 0
movzx edx, byte [rsp + 0x88]
mov byte [rsp + 0x28], dl
call fcn.00450840
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
cmp rcx, 0xffffffffffffffff
jne 0x45105c
lea rax, [0x008f3fcd]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov dword [rsp + 0xa0], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
cmp eax, 0xffffffff
je 0x45102c
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rdx + 0x38]
mov rsi, qword [rdx + 0x30]
cmp rcx, rbx
jge 0x45102c
mov rdi, qword [rdx]
mov rdx, qword [rdx + 8]
jae 0x451122
mov ebx, dword [rsi + rcx*4]
cmp rbx, rdx
jae 0x451118
mov dword [rsp + 0x3c], eax
lea rax, [rdi + rbx]
mov qword [rsp + 0x48], rax
mov qword [rsp], rax
call fcn.0044ea60
mov rax, qword [rsp + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x50]
mov qword [rsp + 0x90], rcx
mov qword [rsp + 0x98], rax
mov eax, dword [rsp + 0x3c]
mov dword [rsp + 0xa0], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
lea rax, [0x008f3fcd]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], 1
mov dword [rsp + 0xa0], 0
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov eax, ebx
mov rcx, rdx
call fcn.00463a80
mov rax, rcx
mov rcx, rbx
call fcn.00463a80
nop
call fcn.00461090
jmp fcn.00450f60
Function at 0x4511c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x451322
sub rsp, 0x68
mov qword [rsp + 0x60], rbp
lea rbp, [rsp + 0x60]
mov rax, qword [rsp + 0x70]
mov ecx, dword [rax + 0x14]
mov qword [rsp], rax
mov rdx, qword [rsp + 0x78]
mov qword [rsp + 8], rdx
mov dword [rsp + 0x10], ecx
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x18], rcx
mov rbx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rbx
mov byte [rsp + 0x28], 1
call fcn.00450840
mov eax, dword [rsp + 0x30]
test eax, 7
jne 0x451242
mov dword [rsp + 0x90], eax
mov rbp, qword [rsp + 0x60]
add rsp, 0x68
ret
mov dword [rsp + 0x3c], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp], rax
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 8], rcx
call fcn.00450e00
mov rax, qword [rsp + 0x18]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x10]
mov qword [rsp + 0x58], rcx
mov rdx, qword [rsp + 0x70]
mov rbx, qword [rdx]
mov qword [rsp + 0x48], rbx
movsxd rdx, dword [rdx + 0x14]
mov qword [rsp + 0x40], rdx
call fcn.004376c0
lea rax, [0x008f7edd]
mov qword [rsp], rax
mov qword [rsp + 8], 0x10
call fcn.00438070
mov rax, qword [rsp + 0x58]
mov qword [rsp], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 8], rax
call fcn.00438070
call fcn.00437910
mov rax, qword [rsp + 0x48]
mov qword [rsp], rax
call fcn.00437f00
call fcn.00437910
mov rax, qword [rsp + 0x80]
mov qword [rsp], rax
call fcn.00437f00
call fcn.00437910
mov rax, qword [rsp + 0x40]
mov qword [rsp], rax
call fcn.00437f00
call fcn.00437910
mov eax, dword [rsp + 0x3c]
movsxd rcx, eax
mov qword [rsp], rcx
call fcn.00437e90
call fcn.00437960
call fcn.00437750
mov eax, dword [rsp + 0x3c]
jmp 0x451231
call fcn.00461090
jmp fcn.004511c0
Function at 0x4596f0
Capabilities:
Access peb ldr_data

Disassembly:
mov rcx, qword gs:[0x28]
mov rcx, qword [rcx]
cmp rsp, qword [rcx + 0x10]
jbe 0x4597d0
sub rsp, 0x60
mov qword [rsp + 0x58], rbp
lea rbp, [rsp + 0x58]
mov rax, qword gs:[0x28]
mov rax, qword [rax]
mov qword [rsp + 8], 0
mov qword [rsp + 0x10], 0
xorps xmm0, xmm0
movups xmmword [rsp + 0x18], xmm0
movups xmmword [rsp + 0x28], xmm0
movups xmmword [rsp + 0x38], xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [0x004608f0]
mov qword [rsp + 0x10], rcx
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x18], rcx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 8]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x10]
mov qword [rsp], rax
call fcn.00460f40
mov rax, qword [rsp + 8]
mov qword [rsp + 0x88], rax
mov rbp, qword [rsp + 0x58]
add rsp, 0x60
ret
call fcn.00461090
jmp fcn.004596f0
Function at 0x463030
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
mov rax, qword [0x00cfd760]
mov rcx, qword [rsp + 8]
mov rcx, qword [rcx]
mov rdx, qword [rsp + 0x10]
lea rax, [rdx + rax*8]
xor rcx, rax
movabs rax, 0xea38ec9079f01541
imul rax, rcx
rol rax, 0x1f
movabs rcx, 0x2723a30d96da1399
imul rcx, rax
mov rax, rcx
shr rcx, 0x1d
xor rax, rcx
movabs rcx, 0x83cf8eadf876d2d7
imul rcx, rax
mov rax, rcx
shr rcx, 0x20
xor rax, rcx
mov qword [rsp + 0x18], rax
ret
cmp byte [0x00cfd2a3], 0
je 0x46306d
mov rax, qword [rsp + 8]
movq xmm0, qword [rsp + 0x10]
pinsrq xmm0, qword [rax], 1
aesenc xmm0, xmmword [0x00cfd9c0]
aesenc xmm0, xmmword [0x00cfd9d0]
aesenc xmm0, xmmword [0x00cfd9e0]
movq qword [rsp + 0x18], xmm0
ret
jmp 0x409340
Function at 0x441950
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x005783e0]
jmp fcn.0043d3b0

Function at 0x445b20
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x18]
mov rbx, r8
mov rsi, rdx
xor edx, edx
mov r8, qword [rcx]
mov eax, dword [rbx + 0x10]
mov rdi, rcx
div r10d
lea rdx, [r8 + rdx*8]
mov rax, qword [rdx]
test rax, rax
jne 0x43d58f
jmp 0x43d625
mov rdx, rax
mov rax, qword [rax]
test rax, rax
je 0x43d625
cmp rbx, rax
jne 0x43d580
mov rax, qword [rbx]
test rsi, rsi
mov qword [rdx], rax
mov qword [rbx + 8], rsi
je 0x43d608
movzx ecx, byte [rsi]
lea r9, [rsi + 1]
test ecx, ecx
je 0x43d5f1
xor eax, eax
mov edx, ecx
add r9, 1
shl edx, 0x11
add edx, ecx
movzx ecx, byte [r9 - 1]
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
test ecx, ecx
jne 0x43d5b0
sub r9, rsi
sub r9d, 1
mov edx, r9d
shl edx, 0x11
add edx, r9d
add eax, edx
xor edx, edx
mov ecx, eax
shr ecx, 2
xor ecx, eax
mov eax, ecx
div r10d
lea r8, [r8 + rdx*8]
mov rax, qword [r8]
mov dword [rbx + 0x10], ecx
mov qword [rbx], rax
mov qword [r8], rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, str..._.._.._src_binutils_2.32_bfd_hash.c
mov edx, 0x1b6
call fcn.00438d20
mov r10d, dword [rdi + 0x18]
mov r8, qword [rdi]
jmp 0x43d5a3
lea r8, str.bfd_hash_rename
mov edx, 0x244
lea rcx, str..._.._.._src_binutils_2.32_bfd_hash.c
call fcn.00438d40
nop
nop
mov rax, rdx
add rcx, 0x60
mov rdx, r8
mov qword [rax], r8
lea r8, [rax - 0x18]
jmp 0x43d550

Function at 0x4471f0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov rbx, rcx
mov rsi, rdx
je 0x447238
lea rdx, str.default
mov rcx, rbx
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x447250
test rsi, rsi
je 0x447270
and byte [rsi + 0x43], 0xfb
mov rcx, rbx
call fcn.00447050
test rax, rax
je 0x44722e
mov qword [rsi + 8], rax
add rsp, 0x28
pop rbx
pop rsi
ret
lea rcx, str.GNUTARGET
call sub.msvcrt.dll_getenv
test rax, rax
mov rbx, rax
jne 0x447201
nop dword [rax]
mov rax, qword [0x004f5230]
test rax, rax
je 0x447280
test rsi, rsi
je 0x44722e
or byte [rsi + 0x43], 4
mov qword [rsi + 8], rax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.00447050
mov rax, qword [0x004f5240]
mov rax, qword [rax]
jmp 0x44725c
Function at 0x47d350
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movzx edx, byte [rcx]
lea r8, [rcx + 1]
test dl, dl
je 0x47d376
mov ecx, eax
add r8, 1
shl ecx, 5
add eax, ecx
add eax, edx
movzx edx, byte [r8 - 1]
test dl, dl
jne 0x47d360
ret
Function at 0x4a0ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rbx, r8
mov r8, qword [r9 + 8]
mov r11, rcx
mov r10, rdx
mov ecx, dword [r9 + 0x40]
mov rdx, qword [rsp + 0x60]
mov rax, qword [r8 + 8]
shr rax, cl
test eax, eax
je 0x4a0ff0
mov eax, eax
cmp rax, qword [r9 + 0x28]
jb 0x4a0f90
sub rax, qword [r9 + 0x30]
mov rcx, qword [r9 + 0x38]
mov r9, qword [rcx + rax*8]
test r9, r9
jne 0x4a0f34
jmp 0x4a0fdb
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x4a0f30
movzx ecx, byte [r9 + 0x5d]
or byte [r9 + 0x5c], 0x20
test cl, 0x20
je 0x4a0f66
mov rax, r9
nop word [rax + rax]
mov rax, qword [rax + 0x68]
test byte [rax + 0x5d], 0x20
jne 0x4a0f58
or byte [rax + 0x5c], 0x20
test rdx, rdx
je 0x4a0fd0
and ecx, 0x10
je 0x4a0fd0
mov rcx, qword [r9 + 0x78]
movzx eax, byte [rcx + 0x24]
shr al, 3
xor eax, 1
and eax, 1
mov dword [rdx], eax
mov rax, rcx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rcx, rax
shl rcx, 5
add rcx, qword [r9 + 0x18]
movzx esi, byte [rcx + 0x14]
shr sil, 4
test sil, sil
jne 0x4a0f13
mov qword [rsp + 0x60], rcx
xor r9d, r9d
mov rdx, r11
mov rcx, r10
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
mov qword [rsp + 0x60], 0
jmp 0x4a0fb4
mov rax, qword [r11 + 0x20]
lea rcx, str._F_P:_corrupt_input:__pB_n
mov rdx, qword [r10 + 0xf0]
call qword [rax + 0x58]
xor ecx, ecx
jmp 0x4a0f83
Function at 0x4a1000
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
or byte [rdx + 0x24], 8
mov rbx, rdx
mov rdx, qword [rdx + 0xe0]
mov rsi, rcx
mov rdi, r8
mov rdx, qword [rdx + 0xc0]
test rdx, rdx
je 0x4a103b
test byte [rdx + 0x24], 8
je 0x4a11b0
mov rax, qword [rbx + 0xf0]
test byte [rbx + 0x20], 4
mov rax, qword [rax + 0xf0]
mov rbp, qword [rax + 0x350]
je 0x4a1128
mov eax, dword [rbx + 0x88]
test eax, eax
je 0x4a1128
cmp rbx, rbp
je 0x4a1180
lea r13, [rsp + 0x40]
mov r8, rbx
mov rdx, rsi
mov rcx, r13
call fcn.00494aa0
test eax, eax
je 0x4a11ab
mov r12, qword [rsp + 0x48]
mov r14, qword [rsp + 0x50]
cmp r12, r14
jb 0x4a10b2
jmp 0x4a1270
add r12, 0x18
cmp r12, r14
mov qword [rsp + 0x48], r12
jae 0x4a1270
mov r9, r13
mov r8, rdi
mov rdx, rbx
mov rcx, rsi
call fcn.004a1290
test eax, eax
jne 0x4a10a0
xor r13d, r13d
xor r12d, r12d
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x4a10f4
mov rdx, qword [rbx + 0xe0]
cmp rcx, qword [rdx + 0x98]
je 0x4a10f4
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x4a113a
mov rdx, qword [rbx + 0xf0]
mov rdx, qword [rdx + 0xf0]
cmp rcx, qword [rdx + 0xa8]
je 0x4a113a
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x3c]
jmp 0x4a113a
test rbp, rbp
mov r12d, 1
mov eax, 1
setne r13b
mov rdx, qword [rbx + 0xe0]
test r13b, r13b
mov rcx, rdx
jne 0x4a1187
mov rdx, qword [rcx + 0xd0]
test rdx, rdx
je 0x4a1165
test r12b, r12b
je 0x4a1165
test byte [rdx + 0x24], 8
mov eax, 1
je 0x4a11d0
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rdx, qword [rbx + 0xe0]
cmp qword [rdx + 0xc8], 0
mov rcx, rdx
je 0x4a11c0
lea r12, [rsp + 0x40]
mov r8, rbp
mov rdx, rsi
mov rcx, r12
call fcn.00494aa0
test eax, eax
jne 0x4a11e8
xor eax, eax
jmp 0x4a1165
call fcn.004a1000
test eax, eax
jne 0x4a103b
jmp 0x4a11ab
mov r12d, 1
mov eax, 1
jmp 0x4a1149
mov r8, rdi
mov rcx, rsi
call fcn.004a1000
test eax, eax
setne al
movzx eax, al
jmp 0x4a1165
mov qword [rsp + 0x20], r12
mov rcx, rsi
mov r9, rdi
mov r8, rbp
mov rdx, rbx
call fcn.004a6760
mov rcx, qword [rsp + 0x40]
test eax, eax
setne al
setne r12b
movzx eax, al
test rcx, rcx
je 0x4a1231
mov rdx, qword [rbp + 0xe0]
cmp rcx, qword [rdx + 0x98]
je 0x4a1231
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x4a125f
mov rdx, qword [rbp + 0xf0]
mov rdx, qword [rdx + 0xf0]
cmp rcx, qword [rdx + 0xa8]
je 0x4a125f
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x3c]
mov rcx, qword [rbx + 0xe0]
jmp 0x4a1149
test rbp, rbp
mov r12d, 1
mov eax, 1
setne r13b
jmp 0x4a10cd
Function at 0x4bf860
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx + 8]
mov rax, qword [rax + 0x368]
mov rdi, rcx
mov rbx, rdx
mov rsi, r8
lea rcx, [rdx + 0x10]
movzx ebp, byte [rax + 0x38d]
mov rax, qword [rdx]
and ebp, 1
mov qword [r8], rax
mov rax, qword [rdx + 8]
mov qword [r8 + 8], rax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x12]
mov word [rsi + 0x30], ax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x14]
mov word [rsi + 0x32], ax
mov rax, qword [rdi + 8]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x18]
test bpl, bpl
mov dword [rsi + 0x28], eax
mov rax, qword [rdi + 8]
je 0x4bf990
call qword [rax + 0x88]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi + 8]
lea rcx, [rbx + 0x1c]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x20]
mov qword [rsi + 0x18], rax
mov rax, qword [rdi + 8]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x24]
mov qword [rsi + 0x20], rax
mov rax, qword [rdi + 8]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x28]
mov dword [rsi + 0x2c], eax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x2a]
mov dword [rsi + 0x34], eax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x2c]
mov dword [rsi + 0x38], eax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x2e]
mov dword [rsi + 0x3c], eax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x30]
mov dword [rsi + 0x40], eax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
lea rcx, [rbx + 0x32]
mov dword [rsi + 0x44], eax
mov rax, qword [rdi + 8]
call qword [rax + 0x98]
mov dword [rsi + 0x48], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [rax + pe_nt_image_headers64]
jmp 0x4bf8e0
Function at 0x4c4150
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
movaps xmmword [rsp + 0x20], xmm6
mov eax, dword [rcx + 0x44]
mov ebp, dword [rcx + 0x40]
test eax, eax
mov rsi, rcx
mov rdi, rdx
movd xmm6, r8d
mov ebx, r9d
jne 0x4c4268
xor r13d, r13d
test ebp, ebp
je 0x4c41b0
mov r9d, ebp
xor r13d, r13d
add r9, rdx
nop
movzx ecx, byte [rdx]
add rdx, 1
mov eax, ecx
shl eax, 0x11
add eax, ecx
add eax, r13d
mov r13d, eax
shr r13d, 2
xor r13d, eax
cmp rdx, r9
jne 0x4c4190
xor edx, edx
mov eax, r13d
div dword [rsi + 0x18]
mov rax, qword [rsi]
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x4c4220
mov r14d, ebp
jmp 0x4c41d9
mov r12, qword [r12]
test r12, r12
je 0x4c4220
cmp dword [r12 + 0x10], r13d
jne 0x4c41d0
cmp dword [r12 + 0x18], ebp
jne 0x4c41d0
mov rcx, qword [r12 + 8]
mov r8, r14
mov rdx, rdi
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4c41d0
movd eax, xmm6
cmp dword [r12 + 0x1c], eax
jae 0x4c424a
test ebx, ebx
je 0x4c4373
mov qword [r12 + 0x18], 0
jmp 0x4c4227
xor r12d, r12d
test ebx, ebx
je 0x4c424a
mov r8d, r13d
mov rdx, rdi
mov rcx, rsi
call fcn.0043d210
test rax, rax
mov r12, rax
je 0x4c424a
movd xmm0, ebp
punpckldq xmm0, xmm6
movq qword [rax + 0x18], xmm0
movaps xmm6, xmmword [rsp + 0x20]
mov rax, r12
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
cmp ebp, 1
je 0x4c4312
lea r12d, [rbp - 1]
mov r9d, ebp
xor r11d, r11d
add r12, 1
add r9, rdx
xor ecx, ecx
test ebp, ebp
je 0x4c42f0
mov r10, rdx
xor r11d, r11d
xor ecx, ecx
mov rdx, r10
xor eax, eax
jmp 0x4c42ab
add eax, 1
add rdx, 1
cmp eax, ebp
je 0x4c42f0
cmp byte [rdx], 0
je 0x4c42a0
cmp eax, ebp
je 0x4c42f0
mov rdx, r10
nop word [rax + rax]
movzx r13d, byte [rdx]
add rdx, 1
mov eax, r13d
shl eax, 0x11
add eax, r13d
add eax, ecx
mov ecx, eax
shr ecx, 2
xor ecx, eax
cmp rdx, r9
jne 0x4c42c0
add r10, r12
add r11d, 1
add r9, r12
jmp 0x4c4290
mov eax, r11d
shl eax, 0x11
add eax, r11d
add r11d, 1
add eax, ecx
imul ebp, r11d
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x4c41b0
movzx r13d, byte [rdx]
lea r8, [rdx + 1]
test r13d, r13d
je 0x4c41b0
mov rdx, r8
xor eax, eax
nop dword [rax + rax]
mov ecx, r13d
shl ecx, 0x11
add ecx, r13d
add eax, ecx
mov ecx, eax
shr ecx, 2
xor eax, ecx
mov rcx, rdx
movzx r13d, byte [rdx]
add rdx, 1
test r13d, r13d
jne 0x4c4330
sub ecx, r8d
lea ebp, [rcx + 1]
mov edx, ebp
shl edx, 0x11
add edx, ebp
add ebp, 1
add eax, edx
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x4c41b0
xor r12d, r12d
jmp 0x4c424a
Function at 0x4e48f0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x00568240]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x4e4910
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x4e4918
ret
cmp word [r8 + 0x18], 0x20b
jne 0x4e4910
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x4e496d
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4e4964
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4e4910
add rax, 0x28
cmp rax, r9
jne 0x4e4950
xor eax, eax
ret

Function at 0x4e4970
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00568240]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x4e498f
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4e4998
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x4e498f
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x4e4a30
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x00568240]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x4e4a4f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x4e4a58
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x4e4c10
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x4e4d50
cmp byte [rbx], 0
je 0x4e4d18
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4e4d60
test al, 0x10
je 0x4e4d18
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
call sub.msvcrt.dll__fullpath
mov rcx, rdi
call sub.msvcrt.dll_strlen
lea rcx, [rax + 0x24b]
mov rsi, rax
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x4e4d6f
lea rbp, [rsi + 1]
mov rdx, rdi
lea rcx, [rax + 0x244]
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov rcx, rax
je 0x4e4cc0
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x5c
je 0x4e4cc0
cmp al, 0x2f
jne 0x4e4d38
lea rdx, [rbx + 0x130]
mov eax, 0x2a
mov word [rcx + rsi], ax
mov rdi, rdx
xor eax, eax
mov ecx, 0x20
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov qword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov rax, rbx
mov dword [rdi], 0
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov edx, 0x5c
mov word [rcx + rsi], dx
mov rsi, rbp
jmp 0x4e4cc0
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xe
jmp 0x4e4d25
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x4e4d25
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 0xc
jmp 0x4e4d25
Function at 0x4e53c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
test rcx, rcx
mov ebx, edx
je 0x4e5410
cmp edx, 7
ja 0x4e5410
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4e541d
xor edx, edx
test al, 0x10
jne 0x4e53ed
test al, 1
je 0x4e53ed
and ebx, 2
mov edx, ebx
jne 0x4e53fa
mov eax, edx
add rsp, 0x20
pop rbx
ret
cmp eax, 5
jne 0x4e5410
call sub.msvcrt.dll__errno
mov dword [rax], 0xd
or edx, 0xffffffff
jmp 0x4e53ed
call sub.msvcrt.dll__errno
mov dword [rax], 0x16
jmp 0x4e5405
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 3
ja 0x4e53f5
cmp eax, 1
jbe 0x4e5410
call sub.msvcrt.dll__errno
mov dword [rax], 2
jmp 0x4e5405
Function at 0x140011041
Capabilities:
Execute command
Set console window title

Disassembly:
jmp 0x140017030
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x14002a0f8]
call fcn.14001168b
lea rax, [rbp + 0xc4]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rbp + 0xe4]
lea rcx, [rbp + 0xc4]
call fcn.140014a70
mov rcx, rax
call fcn.14001148d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleA]
call fcn.140011190
lea rcx, str.pause___nul
call qword [sym.imp.ucrtbased.dll_system]
xor eax, eax
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret