joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ad1f0
Capabilities:
Parse pe header

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

Function at 0x1409ea17e
Capabilities:
Execute anti-debugging instructions

Disassembly:
xor edx, edi
cmc
clc
ror edx, 2
add edx, 0x7eb64b28
stc
xor edx, 0x1a277a25
bswap edx
push rdi
xchg di, di
cmp rbp, r9
bsf di, bx
xor dword [rsp], edx
not dil
btr di, 0xc7
neg dil
pop rdi
cmp rdi, r12
movsxd rdx, edx
stc
cmp bh, 0x7e
add rbx, rdx
push rbx
ret
push r15
movabs r11, 0
clc
push r11
and al, spl
sal al, cl
rcl dx, 0xb6
mov r8, qword [rsp + 0x90]
and dil, 0
neg rbx
sbb r10w, bp
xor r8d, 0x44e24873
shl r10w, cl
sub r8d, 0x28db3ac4
cwde
xor r8d, 0x32e42b4e
dec r8d
movsx eax, r12w
rdtsc
cmove si, dx
add r8, r11
and bl, r14b
movabs r10, 0x100000000
sar dx, 0x56
lea r8, [r8 + r10]
rdtsc
bswap di
sal si, cl
mov rsi, rsp
stc
sub rsp, 0x180
dec dl
bt di, r9w
sar ah, cl
and rsp, 0xfffffffffffffff0
rol rdi, 0x9d
cwd
mov rdi, r8
shr dh, cl
rcl edx, 0x7e
rol bh, cl
movabs rax, 0
sbb dl, 0x3a
sub rdx, r9
sub rdi, rax
xadd dx, bx
lea rbx, [0x140913dd2]
movsxd rdx, r14d
movzx dx, r15b
sub r8, 4
mov edx, dword [r8]
cmp r10w, bp
jmp 0x1408cc791
push r14
push rsi
movsx si, r13b
push rbx
xchg bl, bh
push r11
movsx r11, sp
push r9
movsxd r11, ebx
xchg r11, rsi
mov rbx, rdi
push rbp
sete r11b
movsxd r11, r10d
push rdi
push rdx
movzx rdi, r8w
movsx bx, ah
push r12
bswap si
cdq
push rcx
push rax
cwde
cbw
mov r11w, 0x4e2e
pushfq
push r10
adc r10d, 0x487273
push r13
push r8
sub si, 0x598b
jmp 0x140913d1e
Function at 0x4039a0
Capabilities:
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x68
mov rax, qword [rcx + 0xd0]
lea r15, [rsp + 0x20]
mov r13, rcx
test rax, rax
mov rdx, r15
cmove rax, rcx
mov rax, qword [rax + 8]
call qword [rax + 0x1e0]
test eax, eax
jne 0x403b41
mov rbp, qword [rsp + 0x38]
xor r8d, r8d
xor edx, edx
mov rcx, r13
call fcn.0040c350
test rbp, rbp
mov qword [0x004cb0c8], 0
jne 0x403a70
mov rcx, r13
call fcn.00403880
mov rcx, rax
mov qword [0x004cb0c8], rax
call fcn.0048f230
movzx edx, word [rsp + 0x26]
mov rcx, qword [0x004cb0d0]
mov qword [0x004cb0c8], 0
call sub.msvcrt.dll__chmod
mov eax, dword [0x004cb0b0]
test eax, eax
je 0x403a53
mov rax, qword [rsp + 0x48]
mov rcx, qword [0x004cb0d0]
mov rdx, r15
mov qword [rsp + 0x40], rax
call fcn.00404d10
mov qword [0x004cb0d0], 0
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov ecx, 0x2000
xor esi, esi
mov r14d, 0x2000
call fcn.0048c420
mov r12, rax
jmp 0x403aad
mov r8, rdi
mov edx, 1
mov rcx, r12
call sub.msvcrt.dll_fwrite
cmp rdi, rax
jne 0x403b08
add rsi, rbx
cmp rbp, rsi
jbe 0x403af4
mov rbx, rbp
mov r8, r13
mov rcx, r12
sub rbx, rsi
cmp rbx, 0x2000
cmova rbx, r14
mov rdx, rbx
call fcn.0040c0d0
cmp rbx, rax
mov rdi, rax
jne 0x403b2b
mov r9, qword [0x004cb0c8]
test r9, r9
jne 0x403a90
mov rcx, r13
call fcn.00403880
mov r9, rax
mov qword [0x004cb0c8], rax
jmp 0x403a90
mov rcx, r12
call sub.msvcrt.dll_free
mov rcx, qword [0x004cb0c8]
jmp 0x403a0f
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
mov rdx, qword [0x004cb0d0]
lea rcx, str._s:__s
mov r8, rax
call fcn.00405450
mov rax, qword [r13 + 0xd0]
lea rcx, str._s_is_not_a_valid_archive
mov rdx, qword [rax]
call fcn.00405450
mov rdx, qword [r13]
lea rcx, str.internal_stat_error_on__s
call fcn.00405450
nop
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x404d60
Capabilities:
Delete file
Move file

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x60
mov rbx, rdx
mov rdi, rcx
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__stat64]
test eax, eax
je 0x404dc1
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_rename
test eax, eax
mov esi, eax
je 0x404db7
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call sub.msvcrt.dll_strerror
lea rcx, str.unable_to_rename__s__reason:__s
mov r8, rax
mov rdx, rbx
call fcn.00405480
mov rcx, rdi
call fcn.0048f060
mov eax, esi
add rsp, 0x60
pop rbx
pop rsi
pop rdi
ret
mov rcx, rbx
call sub.msvcrt.dll_remove
jmp 0x404d7f
Function at 0x405580
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov r8, rcx
mov rsi, rdx
je 0x4055f5
lea rdx, str._s:_supported_targets:
mov rcx, rsi
call sub.msvcrt.dll_fprintf
call fcn.004125e0
mov r8, qword [rax]
mov rbp, rax
lea rbx, [rax + 8]
lea rdi, [0x0049540f]
test r8, r8
je 0x4055d8
nop dword [rax]
add rbx, 8
mov rdx, rdi
mov rcx, rsi
call sub.msvcrt.dll_fprintf
mov r8, qword [rbx - 8]
test r8, r8
jne 0x4055c0
mov rdx, rsi
mov ecx, 0xa
call sub.msvcrt.dll_fputc
mov rcx, rbp
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp sub.msvcrt.dll_free
lea rcx, str.Supported_targets:
mov r9, rdx
mov r8d, 0x12
mov edx, 1
call sub.msvcrt.dll_fwrite
jmp 0x4055a2
Function at 0x411f20
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov r10d, dword [rcx + 0x18]
mov eax, dword [r8 + 0x10]
mov rbx, rdx
xor edx, edx
mov r9, qword [rcx]
div r10d
mov edx, edx
lea rax, [r9 + rdx*8]
mov rdx, qword [rax]
test rdx, rdx
je 0x40ed10
cmp r8, rdx
jne 0x40ed08
jmp 0x40ed33
cmp r8, rax
je 0x40ed30
mov rdx, rax
mov rax, qword [rdx]
test rax, rax
jne 0x40ed00
lea r8, str.bfd_hash_rename
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_riscv32_esp_elf_src_binutils_bfd_hash.c
mov edx, 0x244
call fcn.0040a320
nop dword [rax + rax]
mov rax, rdx
mov rdx, qword [r8]
test rbx, rbx
mov qword [rax], rdx
mov qword [r8 + 8], rbx
je 0x40eda1
movzx ecx, byte [rbx]
xor eax, eax
lea rdx, [rbx + 1]
test ecx, ecx
je 0x40ed6f
nop
mov r11d, ecx
add rdx, 1
shl r11d, 0x11
add ecx, r11d
add eax, ecx
mov ecx, eax
shr ecx, 2
xor eax, ecx
movzx ecx, byte [rdx - 1]
test ecx, ecx
jne 0x40ed50
sub rdx, rbx
sub edx, 1
add eax, edx
shl edx, 0x11
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
xor edx, edx
mov dword [r8 + 0x10], eax
div r10d
mov eax, edx
lea rax, [r9 + rax*8]
mov rdx, qword [rax]
mov qword [r8], rdx
mov qword [rax], r8
add rsp, 0x20
pop rbx
ret
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_riscv32_esp_elf_src_binutils_bfd_hash.c
mov edx, 0x1b6
call fcn.0040a300
movzx eax, byte [pe_dos_header]
ud2
mov rax, qword [rcx + 0xf8]
lea r8, [rcx - 0x18]
mov qword [rcx], rdx
add rax, 0x60
mov rcx, rax
jmp 0x40ecd0

Function at 0x412420
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rax, rcx
mov rbx, rdx
je 0x412470
lea rdi, str.default
mov ecx, 8
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x412481
test rbx, rbx
je 0x4124b0
and byte [rbx + 0x44], 0xbf
mov rcx, rax
call fcn.00412300
test rax, rax
je 0x4124bd
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
lea rcx, str.GNUTARGET
call sub.msvcrt.dll_getenv
test rax, rax
jne 0x412432
mov rax, qword [0x00491630]
test rax, rax
je 0x4124a2
test rbx, rbx
je 0x41245f
or byte [rbx + 0x44], 0x40
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x00491640]
mov rax, qword [rax]
jmp 0x41248d
mov rcx, rax
call fcn.00412300
test rax, rax
jne 0x41245f
xor eax, eax
jmp 0x41245f
Function at 0x41f7e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx]
mov rbx, rdx
mov rdi, rcx
mov rsi, r8
lea rcx, [rbx + 0x10]
mov rax, qword [rax + 0x370]
movzx ebp, byte [rax + 0x3cd]
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov rax, qword [rdi]
and ebp, 1
call qword [rax + 0x98]
mov word [rsi + 0x30], ax
mov rax, qword [rdi]
lea rcx, [rbx + 0x12]
call qword [rax + 0x98]
mov word [rsi + 0x32], ax
mov rax, qword [rdi]
lea rcx, [rbx + 0x14]
call qword [rax + pe_nt_image_headers64]
test bpl, bpl
mov dword [rsi + 0x28], eax
lea rcx, [rbx + 0x18]
mov rax, qword [rdi]
jne 0x41f900
call qword [rax + pe_nt_image_headers64]
mov qword [rsi + 0x10], rax
mov rax, qword [rdi]
lea rcx, [rbx + 0x1c]
call qword [rax + pe_nt_image_headers64]
mov qword [rsi + 0x18], rax
mov rax, qword [rdi]
lea rcx, [rbx + 0x20]
call qword [rax + pe_nt_image_headers64]
mov qword [rsi + 0x20], rax
mov rax, qword [rdi]
lea rcx, [rbx + 0x24]
call qword [rax + pe_nt_image_headers64]
mov dword [rsi + 0x2c], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x28]
call qword [rax + 0x98]
mov dword [rsi + 0x34], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x2a]
call qword [rax + 0x98]
mov dword [rsi + 0x38], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x2c]
call qword [rax + 0x98]
mov dword [rsi + 0x3c], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x2e]
call qword [rax + 0x98]
mov dword [rsi + 0x40], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x30]
call qword [rax + 0x98]
mov dword [rsi + 0x44], eax
mov rax, qword [rdi]
lea rcx, [rbx + 0x32]
call qword [rax + 0x98]
mov dword [rsi + 0x48], eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
call qword [rax + 0x88]
mov qword [rsi + 0x10], rax
jmp 0x41f85f

Function at 0x423bc0
Capabilities:
Hash data using djb2

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [rsp + 0x60]
mov rbx, r8
mov r8, qword [r9 + 8]
mov r11, rcx
mov ecx, dword [r9 + 0x40]
mov r10, rdx
mov rax, qword [r8 + 8]
shr rax, cl
test eax, eax
je 0x448bd0
mov eax, eax
cmp rax, qword [r9 + 0x28]
jb 0x448b90
sub rax, qword [r9 + 0x30]
mov rdx, qword [r9 + 0x38]
mov r9, qword [rdx + rax*8]
test r9, r9
jne 0x448b34
jmp 0x448bd9
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x448b30
movzx edx, byte [r9 + 0x65]
or byte [r9 + 0x64], 0x20
mov rax, r9
test dl, 0x20
je 0x448b60
mov rax, qword [rax + 0x70]
or byte [rax + 0x64], 0x20
test byte [rax + 0x65], 0x20
jne 0x448b52
test rsi, rsi
je 0x448bb4
and edx, 0x10
je 0x448bb4
mov rax, qword [r9 + 0x80]
movzx edx, byte [rax + 0x2c]
shr dl, 3
xor edx, 1
and edx, 1
mov dword [rsi], edx
add rsp, 0x28
pop rbx
pop rsi
ret
mov rdx, rax
shl rdx, 5
add rdx, qword [r9 + 0x18]
movzx ecx, byte [rdx + 0x14]
shr cl, 4
test cl, cl
jne 0x448b13
mov qword [rsp + 0x60], rdx
xor r9d, r9d
jmp 0x448bbd
mov qword [rsp + 0x60], 0
mov rdx, r11
mov rcx, r10
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [r11 + 0x20]
mov rdx, qword [r10 + 0xf8]
lea rcx, str._F_P:_corrupt_input:__pB_n
call qword [rax + 0x58]
xor eax, eax
jmp 0x448b80
Function at 0x4667e0
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x004cf460]
jmp fcn.0040eb60

Function at 0x467360
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov eax, dword [rcx + 0x44]
mov rdi, rcx
mov rbp, rdx
mov esi, r8d
mov ebx, r9d
test eax, eax
jne 0x467470
mov r14d, dword [rcx + 0x40]
xor r13d, r13d
test r14d, r14d
je 0x4673c0
lea eax, [r14 - 1]
xor r13d, r13d
lea r8, [rdx + rax + 1]
nop
add rdx, 1
movzx ecx, byte [rdx - 1]
mov eax, ecx
shl eax, 0x11
add eax, ecx
add r13d, eax
mov eax, r13d
shr eax, 2
xor r13d, eax
cmp rdx, r8
jne 0x4673a0
xor edx, edx
mov eax, r13d
div dword [rdi + 0x18]
mov rax, qword [rdi]
mov edx, edx
mov r12, qword [rax + rdx*8]
test r12, r12
je 0x467430
mov r15d, r14d
jmp 0x4673e9
mov r12, qword [r12]
test r12, r12
je 0x467430
cmp r13d, dword [r12 + 0x10]
jne 0x4673e0
cmp r14d, dword [r12 + 0x18]
jne 0x4673e0
mov rcx, qword [r12 + 8]
mov r8, r15
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4673e0
cmp dword [r12 + 0x1c], esi
jae 0x467455
test ebx, ebx
je 0x467535
mov dword [r12 + 0x18], 0
mov dword [r12 + 0x1c], 0
jmp 0x467438
test ebx, ebx
je 0x467535
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call fcn.0040e970
test rax, rax
mov r12, rax
je 0x467455
mov dword [rax + 0x18], r14d
mov dword [rax + 0x1c], esi
mov rax, r12
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov r9d, dword [rcx + 0x40]
cmp r9d, 1
je 0x46753d
lea r13d, [r9 - 1]
xor r12d, r12d
xor eax, eax
mov r10, rdx
add r13, 1
test r9d, r9d
je 0x467530
nop word [rax + rax]
movzx edx, byte [r10]
lea r8, [r10 + 1]
xor ecx, ecx
mov r11, r8
test dl, dl
je 0x4674be
jmp 0x4674f0
add r11, 1
cmp byte [r11 - 1], 0
jne 0x4674f0
add ecx, 1
cmp r9d, ecx
jne 0x4674b3
mov r14d, r12d
imul r14d, r9d
add eax, r12d
shl r12d, 0x11
add eax, r12d
mov r13d, eax
shr r13d, 2
xor r13d, eax
add r14d, r9d
jmp 0x4673c0
lea r11, [r10 + r13]
jmp 0x467508
movzx edx, byte [r8]
add r8, 1
movzx ecx, dl
mov r10, r8
mov edx, ecx
shl edx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
cmp r8, r11
jne 0x467500
add r12d, 1
test r9d, r9d
jne 0x4674a0
xor r14d, r14d
jmp 0x4674cd
xor r12d, r12d
jmp 0x467455
lea r8, [rdx + 1]
movzx edx, byte [rdx]
test edx, edx
je 0x46758d
xor r14d, r14d
xor eax, eax
nop dword [rax]
mov ecx, edx
add r14d, 1
add r8, 1
shl ecx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
movzx edx, byte [r8 - 1]
test edx, edx
jne 0x467550
mov r13d, r14d
add eax, r14d
shl r13d, 0x11
add eax, r13d
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x4674e1
xor r13d, r13d
xor r14d, r14d
jmp 0x4674e1
Function at 0x483080
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rax, qword [rcx + 0x18]
mov esi, edx
mov rbx, rcx
movzx edx, byte [rax]
cmp dl, 0x5f
je 0x4830c7
test esi, esi
jne 0x4830a1
cmp dl, 0x5a
je 0x4830ae
xor edi, edi
mov rax, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
add rax, 1
xor edx, edx
mov rcx, rbx
mov qword [rbx + 0x18], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp fcn.00482950
lea rdx, [rax + 1]
mov qword [rcx + 0x18], rdx
cmp byte [rax + 1], 0x5a
jne 0x4830a1
add rax, 2
mov edx, esi
mov qword [rcx + 0x18], rax
call fcn.00482950
test esi, esi
mov rdi, rax
je 0x4830a3
test byte [rbx + 0x10], 1
je 0x4830a3
mov rdx, qword [rbx + 0x18]
cmp byte [rdx], 0x2e
jne 0x4830a3
movzx eax, byte [rdx + 1]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x48317e
cmp al, 0x5f
je 0x48317e
sub eax, 0x30
cmp al, 9
ja 0x4830a3
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x2e
jne 0x483154
nop dword [rax + rax]
movzx eax, byte [r8 + 1]
sub eax, 0x30
cmp al, 9
ja 0x483154
movzx eax, byte [r8 + 2]
lea r9, [r8 + 2]
mov r8, r9
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x483117
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x483140
cmp al, 0x2e
je 0x483120
mov qword [rbx + 0x18], r8
mov rcx, rbx
sub r8d, edx
call fcn.0047ad60
mov r8, rdi
mov r9, rax
mov edx, 0x4e
mov rcx, rbx
call fcn.0047a710
mov rdi, rax
jmp 0x4830f1
movzx eax, byte [rdx + 2]
lea r8, [rdx + 2]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x4831a0
nop
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x483190
cmp al, 0x5f
je 0x483190
jmp 0x483117
Function at 0x48b540
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.0048b050

Function at 0x48b560
Capabilities:
Get common file path

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [0x004cf4e0]
test rax, rax
je 0x48b580
add rsp, 0x28
pop rbx
pop rsi
ret
xor edx, edx
xor ecx, ecx
mov rsi, qword [sym.imp.KERNEL32.dll_GetTempPathA]
call rsi
test eax, eax
mov ebx, eax
jne 0x48b5b5
mov rax, qword [0x004cf4e0]
test rax, rax
jne 0x48b572
nop
lea rcx, [0x004bebd0]
call fcn.0048c4f0
mov qword [0x004cf4e0], rax
jmp 0x48b572
mov ecx, eax
call fcn.0048c420
mov ecx, ebx
mov qword [0x004cf4e0], rax
mov rdx, rax
call rsi
test eax, eax
jne 0x48b593
mov rcx, qword [0x004cf4e0]
call sub.msvcrt.dll_free
mov qword [0x004cf4e0], 0
jmp 0x48b5a0

Function at 0x48ce70
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
mov rsi, rcx
mov ecx, dword [0x004cfc64]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x48cf88
mov rax, qword [0x004cfc68]
xor ebx, ebx
add rax, 8
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x48cebc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x48cf6e
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x48cea0
mov rcx, rsi
call fcn.0048dad0
test rax, rax
mov r12, rax
je 0x48cfc0
movsxd rbx, ebx
lea rbx, [rbx + rbx*2]
shl rbx, 3
mov r13, rbx
add r13, qword [0x004cfc68]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.0048dc20
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x004cfc68]
mov rcx, qword [rax + rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x48cfa3
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x48cf67
sub eax, 4
and eax, 0xfffffffb
je 0x48cf67
add rbx, qword [0x004cfc68]
mov r8d, 0x40
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x20]
mov r9, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x48cf8f
add dword [0x004cfc64], 1
mov r8, rbp
mov rdx, rdi
mov rcx, rsi
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
jmp sub.msvcrt.dll_memcpy
xor ebx, ebx
jmp 0x48cec7
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0048ce00
mov rax, qword [0x004cfc68]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 8]
call fcn.0048ce00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.0048ce00
nop
Function at 0x48d740
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004cff40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004cff20]
test rbx, rbx
je 0x48d794
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 0x48d78b
test rsi, rsi
je 0x48d78b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x48d770
lea rcx, [0x004cff40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x48dad0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004bf680]
xor edx, edx
mov r8, rcx
cmp word [r9], 0x5a4d
je 0x48daf0
mov rax, rdx
add rsp, 0x28
ret
mov rcx, r9
call fcn.0048d9b0
test eax, eax
je 0x48dae8
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add rax, r9
movzx edx, word [rax + 0x14]
lea rdx, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x48db4d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x48db44
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x48dae8
add rdx, 0x28
cmp rdx, r9
jne 0x48db30
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x48de10
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 0x48df9c
cmp byte [rbx], 0
je 0x48df64
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x48df80
test al, 0x10
je 0x48df64
lea rdi, [rsp + 0x20]
mov r8d, 0x104
mov rdx, rbx
mov rcx, rdi
mov rsi, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rsi]
add rsi, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x48de6e
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rsi + 2]
mov ecx, eax
cmove rsi, rdx
add cl, al
sbb rsi, 3
sub rsi, rdi
lea rcx, [rsi + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rbx, rax
je 0x48df8f
lea r9, [rax + 0x244]
lea rbp, [rsi + 1]
mov rdx, rdi
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rbx + 0x244], 0
mov r9, rax
je 0x48df00
movzx eax, byte [rbx + rsi + 0x243]
cmp al, 0x2f
je 0x48df00
cmp al, 0x5c
je 0x48df00
mov r8d, 0x5c
mov word [r9 + rsi], r8w
mov rsi, rbp
mov eax, 0x2a
xor edx, edx
xor ecx, ecx
mov word [r9 + rsi], ax
mov word [rbx + 0x12c], dx
lea rdx, [rbx + 0x130]
mov word [rbx + 0x12e], cx
xor eax, eax
mov ecx, 0x20
mov rdi, rdx
mov qword [rbx + 0x238], 0xffffffffffffffff
mov dword [rbx + 0x240], 0
mov dword [rbx + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
xor ebx, ebx
call sub.msvcrt.dll__errno
mov dword [rax], 0x14
mov rax, rbx
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
xor ebx, ebx
mov dword [rax], 2
jmp 0x48df55
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x48df55
call sub.msvcrt.dll__errno
mov dword [rax], 0xe
jmp 0x48df55
Function at 0x1400110fa
Capabilities:
Get process image filename

Disassembly:
jmp 0x140016407
jmp qword [sym.imp.KERNEL32.dll_K32GetProcessImageFileNameW]

Function at 0x140011208
Capabilities:
Enumerate process modules
Get process image filename

Disassembly:
jmp 0x140014520
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x19b8
call fcn.14001114f
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4e6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x19d8]
mov rax, qword [0x140024040]
xor rax, rbp
mov qword [rbp + 0x1988], rax
lea rcx, [0x14002a0f4]
call fcn.140011677
lea r8, [rbp + 0x1024]
mov edx, 0x1000
lea rcx, [rbp + 0x10]
call fcn.1400112da
test eax, eax
jne 0x14001458f
xor eax, eax
jmp 0x140014717
mov eax, dword [rbp + 0x1024]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rbp + 0x1044], eax
mov dword [rbp + 0x1064], 0
jmp 0x1400145bf
mov eax, dword [rbp + 0x1064]
inc eax
mov dword [rbp + 0x1064], eax
mov eax, dword [rbp + 0x1044]
cmp dword [rbp + 0x1064], eax
jae 0x140014715
mov eax, dword [rbp + 0x1064]
cmp dword [rbp + rax*4 + 0x10], 0
je 0x140014710
mov eax, dword [rbp + 0x1064]
mov r8d, dword [rbp + rax*4 + 0x10]
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x1088], rax
cmp qword [rbp + 0x1088], 0
je 0x140014710
mov r8d, 0x104
lea rdx, [rbp + 0x10b0]
mov rcx, qword [rbp + 0x1088]
call fcn.1400110fa
test eax, eax
je 0x140014703
lea rdx, [rbp + 0x10b0]
lea rcx, [rbp + 0x12d8]
call fcn.14001123f
nop
mov r8, 0xffffffffffffffff
lea rdx, [0x1400205b8]
lea rcx, [rbp + 0x12d8]
call fcn.14001146f
mov qword [rbp + 0x1318], rax
mov rax, qword [rbp + 0x1318]
inc rax
mov r9, 0xffffffffffffffff
mov r8, rax
lea rdx, [rbp + 0x1338]
lea rcx, [rbp + 0x12d8]
call fcn.140011195
lea rcx, [rbp + 0x1338]
call fcn.14001124e
mov rdx, qword [rbp + 0x19b0]
mov rcx, rax
call qword [sym.imp.ucrtbased.dll__wcsicmp]
test eax, eax
jne 0x1400146ea
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp + 0x1064]
mov eax, dword [rbp + rax*4 + 0x10]
mov dword [rbp + 0x1974], eax
lea rcx, [rbp + 0x1338]
call fcn.1400115dc
nop
lea rcx, [rbp + 0x12d8]
call fcn.1400115dc
mov eax, dword [rbp + 0x1974]
jmp 0x140014717
lea rcx, [rbp + 0x1338]
call fcn.1400115dc
nop
lea rcx, [rbp + 0x12d8]
call fcn.1400115dc
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400145b1
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14001ffd0]
call fcn.1400115a0
mov rax, rdi
mov rcx, qword [rbp + 0x1988]
xor rcx, rbp
call fcn.14001134d
lea rsp, [rbp + 0x1998]
pop rdi
pop rbp
ret