joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404ae0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rbp, rcx
xor ecx, ecx
mov rsi, rdx
mov edi, r8d
call fcn.00404a10
test eax, eax
mov ebx, eax
je 0x404b2a
mov eax, dword [0x00575290]
test eax, eax
je 0x404b0f
add eax, ebx
cmp eax, 0x45
jg 0x404b50
cmp edi, 0x20
je 0x404b90
mov rdx, rsi
mov rcx, rbp
call fcn.00404a10
add dword [0x00575290], ebx
cmp edi, 0x3a
je 0x404b33
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
mov rdx, rbp
mov ecx, 0x3a
call sub.msvcrt.dll_putc
add dword [0x00575290], 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
ret
lea rcx, str.__n
mov r9, rbp
mov r8d, 4
mov edx, 1
call sub.msvcrt.dll_fwrite
cmp edi, 0x20
mov dword [0x00575290], 0
jne 0x404b14
mov rdx, rsi
mov rcx, rbp
call fcn.00404a10
add dword [0x00575290], ebx
jmp 0x404b2a
mov rdx, rbp
mov ecx, 0x20
call sub.msvcrt.dll_putc
mov rdx, rsi
mov rcx, rbp
add dword [0x00575290], 1
call fcn.00404a10
add dword [0x00575290], ebx
jmp 0x404b2a

Function at 0x40caa0
Capabilities:
Encode data using xor

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x88]
test r9, r9
mov r14, rdx
mov rsi, r8
mov rbp, r9
je 0x40cb9c
lea rdi, [r8 + r9]
xor eax, eax
nop word cs:[rax + rax]
movsx r11d, byte [r8]
add r8, 1
mov r10d, r11d
shl r10d, 0x11
add r10d, r11d
add eax, r10d
mov r9d, eax
shr r9d, 2
xor eax, r9d
cmp rdi, r8
jne 0x40cae0
mov edi, ebp
shl edi, 0x11
add edi, ebp
add edi, eax
mov eax, edi
shr eax, 2
xor edi, eax
test r12, r12
je 0x40cb1d
mov dword [r12], edi
xor edx, edx
mov eax, edi
div dword [r14]
mov rax, qword [rcx]
test rbx, rbx
mov edx, edx
lea r13, [rax + rdx*8]
je 0x40cb35
mov qword [rbx], r13
mov rbx, qword [r13]
test rbx, rbx
je 0x40cba3
xor r12d, r12d
jmp 0x40cb51
mov rax, qword [rbx]
mov r12, rbx
test rax, rax
je 0x40cb8d
mov rbx, rax
cmp edi, dword [rbx + 0x10]
jne 0x40cb43
mov r14, qword [rbx + 8]
mov r8, rbp
mov rdx, rsi
mov rcx, r14
call sub.msvcrt.dll_strncmp
test eax, eax
jne 0x40cb43
cmp byte [r14 + rbp], 0
jne 0x40cb43
test r12, r12
je 0x40cba7
mov rax, qword [rbx]
mov qword [r12], rax
mov rax, qword [r13]
mov qword [rbx], rax
mov qword [r13], rbx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
xor eax, eax
jmp 0x40cb04
xor eax, eax
jmp 0x40cb8d
mov rax, rbx
jmp 0x40cb8d

Function at 0x40d130
Capabilities:
Read file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
xor ebx, ebx
mov rsi, rcx
mov rcx, qword [0x005753d0]
mov rdi, rdx
call sub.msvcrt.dll_feof
test eax, eax
je 0x40d160
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov r9, qword [0x005753d0]
mov r8, rdi
mov edx, 1
mov rcx, rsi
call sub.msvcrt.dll_fread
mov rcx, qword [0x005753d0]
mov rbx, rax
call sub.msvcrt.dll_ferror
test eax, eax
je 0x40d14f
call qword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [rax]
call fcn.004d2ab0
mov rdx, qword [0x005753c8]
lea rcx, str.cant_read_from__s:__s
mov r8, rax
call fcn.00412a70
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
Function at 0x412640
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [0x00575640]
mov rbx, rcx
test eax, eax
jne 0x41269c
test rcx, rcx
mov dword [0x00575640], 1
mov rsi, qword [sym.imp.msvcrt.dll___iob_func]
je 0x4126a3
call rsi
lea rdx, [0x0051d440]
lea rcx, [rax + 0x60]
mov r8, rbx
call sub.msvcrt.dll_fprintf
call rsi
lea rcx, str.Assembler_messages:_n
lea r9, [rax + 0x60]
mov r8d, 0x14
mov edx, 1
call sub.msvcrt.dll_fwrite
nop
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, [rsp + 0x2c]
call fcn.0040dde0
test rax, rax
mov rbx, rax
je 0x41267e
jmp 0x412669

Function at 0x412b20
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rsi, rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
call fcn.004126c0
lea rax, [rsp + 0x58]
mov rbx, qword [sym.imp.msvcrt.dll___iob_func]
mov qword [rsp + 0x28], rax
call rbx
lea rcx, str.Fatal_error:
lea r9, [rax + 0x60]
mov r8d, 0xd
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rdi, qword [rsp + 0x28]
call rbx
lea rcx, [rax + 0x60]
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_vfprintf
call rbx
lea rdx, [rax + 0x60]
mov ecx, 0xa
call sub.msvcrt.dll_putc
mov rax, qword [0x00557880]
mov rcx, qword [rax]
test rcx, rcx
je 0x412ba6
call fcn.004d27f0
mov ecx, 1
call fcn.004d2920
nop
nop dword [rax + rax]
nop word cs:[rax + rax]

Function at 0x41c020
Capabilities:
Write file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x30
mov rbx, qword [0x00557950]
mov rdi, rcx
cmp qword [rbx], 0
je 0x41c0e1
mov r9, rcx
lea rcx, str.frag_chains:_n
mov r8d, 0xd
mov edx, 1
call sub.msvcrt.dll_fwrite
mov rax, qword [rbx]
mov rbp, qword [rax + 0x88]
test rbp, rbp
je 0x41c0e1
lea r12, str._t_p___10s_t_10d_frags_n
nop
mov rax, qword [rbp]
cmp byte [rax], 0x2a
je 0x41c0d8
mov rax, qword [rbp + 0xb0]
test rax, rax
je 0x41c0d8
mov rsi, qword [rax]
test rsi, rsi
je 0x41c0d8
nop dword [rax]
mov rax, qword [rsi]
xor ebx, ebx
test rax, rax
je 0x41c0ac
nop word [rax + rax]
mov rax, qword [rax + 0x38]
add ebx, 1
test rax, rax
jne 0x41c0a0
mov rdx, rdi
mov ecx, 0xa
call sub.msvcrt.dll_fputc
mov dword [rsp + 0x20], ebx
mov r9, qword [rbp]
mov r8, rsi
mov rdx, r12
mov rcx, rdi
call sub.msvcrt.dll_fprintf
mov rsi, qword [rsi + 0x10]
test rsi, rsi
jne 0x41c090
mov rbp, qword [rbp + 0x18]
test rbp, rbp
jne 0x41c070
add rsp, 0x30
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x447df0
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 0x4438f0
cmp r8, rdx
jne 0x4438e8
jmp 0x443913
cmp r8, rax
je 0x443910
mov rdx, rax
mov rax, qword [rdx]
test rax, rax
jne 0x4438e0
lea r8, str.bfd_hash_rename
lea rcx, str._builds_idf_crosstool_NG_.build_HOST_x86_64_w64_mingw32_xtensa_esp32s3_elf_src_binutils_bfd_hash.c
mov edx, 0x244
call fcn.0043f7f0
nop dword [rax + rax]
mov rax, rdx
mov rdx, qword [r8]
test rbx, rbx
mov qword [rax], rdx
mov qword [r8 + 8], rbx
je 0x443981
movzx ecx, byte [rbx]
xor eax, eax
lea rdx, [rbx + 1]
test ecx, ecx
je 0x44394f
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 0x443930
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_xtensa_esp32s3_elf_src_binutils_bfd_hash.c
mov edx, 0x1b6
call fcn.0043f7d0
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 0x4438b0

Function at 0x449560
Capabilities:
Query environment variable

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
mov rax, rcx
mov rbx, rdx
je 0x4495b0
lea rdi, str.default
mov ecx, 8
mov rsi, rax
repe cmpsb byte [rsi], byte [rdi]
je 0x4495c1
test rbx, rbx
je 0x4495f0
and byte [rbx + 0x44], 0xbf
mov rcx, rax
call fcn.00449440
test rax, rax
je 0x4495fd
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 0x449572
mov rax, qword [0x004dc750]
test rax, rax
je 0x4495e2
test rbx, rbx
je 0x44959f
or byte [rbx + 0x44], 0x40
mov qword [rbx + 8], rax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [0x004dc760]
mov rax, qword [rax]
jmp 0x4495cd
mov rcx, rax
call fcn.00449440
test rax, rax
jne 0x44959f
xor eax, eax
jmp 0x44959f
Function at 0x45ea80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, rcx
mov rcx, r8
mov rbx, rdx
mov rsi, r8
mov edi, r9d
call fcn.0045e980
mov ecx, dword [rbp]
mov rdx, qword [rbx]
sub ecx, 1
and eax, ecx
mov rbx, qword [rdx + rax*8]
test rbx, rbx
jne 0x45eacd
jmp 0x45ec10
mov rbx, qword [rbx + 0x68]
test rbx, rbx
je 0x45ec10
mov rax, qword [rbx]
mov rdx, qword [rsi]
test rax, rax
sete r9b
test rdx, rdx
sete cl
cmp r9b, cl
jne 0x45eac0
test rax, rax
je 0x45ec20
mov r8, qword [rbx + 0x10]
mov rcx, qword [rsi + 0x10]
mov r9, r8
xor r9, rcx
test r9b, r9b
jne 0x45eac0
mov r10, qword [rsi + 0x20]
cmp qword [rbx + 0x20], r10
jne 0x45eac0
mov r11, qword [rsi + 0x28]
cmp qword [rbx + 0x28], r11
jne 0x45eac0
mov r11d, dword [rsi + 0x30]
cmp dword [rbx + 0x30], r11d
jne 0x45eac0
mov rax, qword [rax + 0xf8]
shr r8, 8
xor ebp, ebp
mov r9d, dword [rax + 0x8c]
cmp r8d, r9d
jb 0x45eb60
mov rax, qword [rax + 0x2f8]
sub r8d, r9d
mov rbp, qword [rax + r8*8]
movzx eax, byte [rbp + 0x18]
sub eax, 6
cmp al, 1
ja 0x45eb60
mov rbp, qword [rbp + 0x28]
movzx eax, byte [rbp + 0x18]
sub eax, 6
cmp al, 1
jbe 0x45eb51
mov rax, qword [rdx + 0xf8]
shr rcx, 8
mov edx, dword [rax + 0x8c]
cmp ecx, edx
jb 0x45ec4e
mov rax, qword [rax + 0x2f8]
sub ecx, edx
mov r12, qword [rax + rcx*8]
movzx eax, byte [r12 + 0x18]
sub eax, 6
cmp al, 1
ja 0x45eba5
mov r12, qword [r12 + 0x28]
movzx eax, byte [r12 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x45eb93
test byte [r12 + 0x65], 0x10
jne 0x45eac0
mov rcx, rbx
call fcn.0045e920
test eax, eax
je 0x45ec2e
test edi, edi
jne 0x45ebd9
test rbp, rbp
je 0x45ebcc
cmp byte [rbp + 0x18], 4
je 0x45ec2e
test r12, r12
je 0x45ebd9
cmp byte [r12 + 0x18], 4
je 0x45ec2e
mov rdx, qword [rbx + 0x10]
mov rcx, qword [rbx]
shr rdx, 8
call fcn.0045e850
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi]
mov rbp, rax
shr rdx, 8
call fcn.0045e850
cmp rbp, rax
jne 0x45eac0
jmp 0x45ec40
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, dword [rsi + 0x30]
cmp dword [rbx + 0x30], eax
jne 0x45eac0
jmp 0x45ec12
cmp rbp, r12
jne 0x45eac0
test rbp, rbp
je 0x45eac0
mov eax, dword [rsi + 0x34]
cmp dword [rbx + 0x34], eax
jne 0x45eac0
jmp 0x45ec12
xor r12d, r12d
jmp 0x45ebb1
Function at 0x46d470
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 0x46d590
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 0x46d4ef

Function at 0x471850
Capabilities:
Hash data using djb2

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

Disassembly:
push rsi
push rbx
sub rsp, 0x28
test rcx, rcx
mov rbx, rcx
jne 0x48a377
jmp 0x48a400
mov rbx, qword [rbx + 0x28]
movzx eax, byte [rbx + 0x18]
sub eax, 6
cmp al, 1
jbe 0x48a373
cmp dword [rbx + 0x3c], 0xffffffff
je 0x48a400
movzx ecx, byte [rbx + 0x64]
xor eax, eax
test cl, 8
jne 0x48a3f7
movzx eax, byte [rdx]
mov esi, 1
mov r9d, eax
and r9d, 3
cmp r9b, 1
jbe 0x48a3b5
movzx r9d, byte [rbx + 0x65]
xor esi, esi
test r9b, 4
je 0x48a410
movzx ecx, byte [rbx + 0x61]
and ecx, 3
je 0x48a3de
xor eax, eax
cmp cl, 2
jbe 0x48a3f7
cmp cl, 3
jne 0x48a3de
mov rdx, qword [rdx + 0x28]
cmp dword [rdx + 0x40], 1
jne 0x48a3f7
test r8d, r8d
jne 0x48a44c
mov esi, 1
movzx edx, byte [rbx + 0x63]
test dl, 2
jne 0x48a440
and edx, 0xa
mov eax, 1
jne 0x48a3f7
cmp byte [rbx + 0x18], 3
je 0x48a440
add rsp, 0x28
pop rbx
pop rsi
ret
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
test al, 4
mov esi, 1
jne 0x48a3b5
and r9d, 0x10
jne 0x48a3b5
xor esi, esi
test byte [rdx + 6], 2
je 0x48a3b5
shr cl, 4
xor ecx, 1
mov esi, ecx
and esi, 1
jmp 0x48a3b5
mov eax, esi
xor eax, 1
add rsp, 0x28
pop rbx
pop rsi
ret
mov rax, qword [rdx + 0x68]
movzx ecx, byte [rbx + 0x60]
mov rax, qword [rax + 8]
mov rax, qword [rax + 0x370]
call qword [rax + 0x2e8]
test eax, eax
jne 0x48a3de
jmp 0x48a3d9
Function at 0x496770
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 0x496860
mov eax, eax
cmp rax, qword [r9 + 0x28]
jb 0x496820
sub rax, qword [r9 + 0x30]
mov rdx, qword [r9 + 0x38]
mov r9, qword [rdx + rax*8]
test r9, r9
jne 0x4967c4
jmp 0x496869
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x4967c0
movzx edx, byte [r9 + 0x65]
or byte [r9 + 0x64], 0x20
mov rax, r9
test dl, 0x20
je 0x4967f0
mov rax, qword [rax + 0x70]
or byte [rax + 0x64], 0x20
test byte [rax + 0x65], 0x20
jne 0x4967e2
test rsi, rsi
je 0x496844
and edx, 0x10
je 0x496844
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 0x4967a3
mov qword [rsp + 0x60], rdx
xor r9d, r9d
jmp 0x49684d
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 0x496810
Function at 0x4ae060
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x0058a640]
jmp fcn.00443740

Function at 0x4aebe0
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 0x4aecf0
mov r14d, dword [rcx + 0x40]
xor r13d, r13d
test r14d, r14d
je 0x4aec40
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 0x4aec20
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 0x4aecb0
mov r15d, r14d
jmp 0x4aec69
mov r12, qword [r12]
test r12, r12
je 0x4aecb0
cmp r13d, dword [r12 + 0x10]
jne 0x4aec60
cmp r14d, dword [r12 + 0x18]
jne 0x4aec60
mov rcx, qword [r12 + 8]
mov r8, r15
mov rdx, rbp
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x4aec60
cmp dword [r12 + 0x1c], esi
jae 0x4aecd5
test ebx, ebx
je 0x4aedb5
mov dword [r12 + 0x18], 0
mov dword [r12 + 0x1c], 0
jmp 0x4aecb8
test ebx, ebx
je 0x4aedb5
mov r8d, r13d
mov rdx, rbp
mov rcx, rdi
call fcn.00443550
test rax, rax
mov r12, rax
je 0x4aecd5
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 0x4aedbd
lea r13d, [r9 - 1]
xor r12d, r12d
xor eax, eax
mov r10, rdx
add r13, 1
test r9d, r9d
je 0x4aedb0
nop word [rax + rax]
movzx edx, byte [r10]
lea r8, [r10 + 1]
xor ecx, ecx
mov r11, r8
test dl, dl
je 0x4aed3e
jmp 0x4aed70
add r11, 1
cmp byte [r11 - 1], 0
jne 0x4aed70
add ecx, 1
cmp r9d, ecx
jne 0x4aed33
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 0x4aec40
lea r11, [r10 + r13]
jmp 0x4aed88
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 0x4aed80
add r12d, 1
test r9d, r9d
jne 0x4aed20
xor r14d, r14d
jmp 0x4aed4d
xor r12d, r12d
jmp 0x4aecd5
lea r8, [rdx + 1]
movzx edx, byte [rdx]
test edx, edx
je 0x4aee0d
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 0x4aedd0
mov r13d, r14d
add eax, r14d
shl r13d, 0x11
add eax, r13d
mov r13d, eax
shr r13d, 2
xor r13d, eax
jmp 0x4aed61
xor r13d, r13d
xor r14d, r14d
jmp 0x4aed61
Function at 0x4c8930
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 0x4c8977
test esi, esi
jne 0x4c8951
cmp dl, 0x5a
je 0x4c895e
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.004c8200
lea rdx, [rax + 1]
mov qword [rcx + 0x18], rdx
cmp byte [rax + 1], 0x5a
jne 0x4c8951
add rax, 2
mov edx, esi
mov qword [rcx + 0x18], rax
call fcn.004c8200
test esi, esi
mov rdi, rax
je 0x4c8953
test byte [rbx + 0x10], 1
je 0x4c8953
mov rdx, qword [rbx + 0x18]
cmp byte [rdx], 0x2e
jne 0x4c8953
movzx eax, byte [rdx + 1]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x4c8a2e
cmp al, 0x5f
je 0x4c8a2e
sub eax, 0x30
cmp al, 9
ja 0x4c8953
movzx eax, byte [rdx]
mov r8, rdx
cmp al, 0x2e
jne 0x4c8a04
nop dword [rax + rax]
movzx eax, byte [r8 + 1]
sub eax, 0x30
cmp al, 9
ja 0x4c8a04
movzx eax, byte [r8 + 2]
lea r9, [r8 + 2]
mov r8, r9
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x4c89c7
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x30]
cmp cl, 9
jbe 0x4c89f0
cmp al, 0x2e
je 0x4c89d0
mov qword [rbx + 0x18], r8
mov rcx, rbx
sub r8d, edx
call fcn.004c0610
mov r8, rdi
mov r9, rax
mov edx, 0x4e
mov rcx, rbx
call fcn.004bffc0
mov rdi, rax
jmp 0x4c89a1
movzx eax, byte [rdx + 2]
lea r8, [rdx + 2]
lea ecx, [rax - 0x61]
cmp cl, 0x19
ja 0x4c8a50
nop
add r8, 1
movzx eax, byte [r8]
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x4c8a40
cmp al, 0x5f
je 0x4c8a40
jmp 0x4c89c7
Function at 0x4d0e10
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.004d0920

Function at 0x4d31c0
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 [0x0058ae84]
mov rdi, rdx
mov rbp, r8
test ecx, ecx
jle 0x4d32d8
mov rax, qword [0x0058ae88]
xor ebx, ebx
add rax, 8
mov rdx, qword [rax]
cmp rsi, rdx
jb 0x4d320c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rsi, rdx
jb 0x4d32be
add ebx, 1
add rax, 0x18
cmp ebx, ecx
jne 0x4d31f0
mov rcx, rsi
call fcn.004d3e20
test rax, rax
mov r12, rax
je 0x4d3310
movsxd rbx, ebx
lea rbx, [rbx + rbx*2]
shl rbx, 3
mov r13, rbx
add r13, qword [0x0058ae88]
mov qword [r13 + 0x10], rax
mov dword [r13], 0
call fcn.004d3f70
mov edx, dword [r12 + 0xc]
mov r8d, 0x30
add rax, rdx
lea rdx, [rsp + 0x20]
mov qword [r13 + 8], rax
mov rax, qword [0x0058ae88]
mov rcx, qword [rax + rbx + 8]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4d32f3
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x4d32b7
sub eax, 4
and eax, 0xfffffffb
je 0x4d32b7
add rbx, qword [0x0058ae88]
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 0x4d32df
add dword [0x0058ae84], 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 0x4d3217
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004d3150
mov rax, qword [0x0058ae88]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 8]
call fcn.004d3150
lea rcx, str.Address__p_has_no_image_section
mov rdx, rsi
call fcn.004d3150
nop

Function at 0x4d3a90
Capabilities:
Get thread local storage value

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