joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e1a0
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 rdi, qword [rsp + 0xd0]
mov rax, qword [rdi + 8]
lea rsi, [r9 + 0x10]
mov r13, rcx
mov rbp, rdx
mov r12d, r8d
mov rbx, r9
cmp rsi, rax
jb 0x41e1f0
add rax, 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x004d2c83]
mov r8, r9
sub r8, qword [rdi]
mov r9d, r12d
mov qword [rsp + 0x20], rax
lea rdx, [0x004d2c78]
call sub.msvcrt.dll_fprintf
cmp r12d, 2
je 0x41e3d4
cmp r12d, 4
je 0x41e242
test r12d, r12d
je 0x41e3f3
lea rdx, [0x004d2c98]
mov r8d, r12d
mov rcx, r13
call sub.msvcrt.dll_fprintf
mov rax, qword [rdi + 8]
jmp 0x41e1d1
mov r9, r13
mov r8d, 8
mov edx, 1
lea rcx, [0x004d2c8f]
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp + 8]
lea rcx, [rbx + 0xe]
call qword [rax + 0x50]
lea rcx, [rbx + 0xc]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 8]
call qword [rax + 0x50]
lea rcx, [rbx + 0xa]
mov r15, rax
mov rax, qword [rbp + 8]
call qword [rax + 0x50]
lea rcx, [rbx + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 8]
call qword [rax + 0x50]
lea rcx, [rbx + 4]
mov r14, rax
mov rax, qword [rbp + 8]
call qword [rax + 0x38]
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 8]
call qword [rax + 0x38]
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x30], r15d
lea rdx, [0x004d2cb8]
mov r8, qword [rsp + 0x58]
mov dword [rsp + 0x20], r14d
mov r15d, r15d
mov r9, qword [rsp + 0x48]
lea r14, [rbx + r15*8 + 0x10]
mov dword [rsp + 0x38], ecx
mov rcx, r13
mov dword [rsp + 0x28], r8d
mov r8d, eax
call sub.msvcrt.dll_fprintf
lea eax, [r12 + 1]
mov dword [rsp + 0x48], eax
jmp 0x41e355
mov rdx, qword [rdi + 8]
lea r15, [rsi + 8]
lea rax, [rdx + 1]
cmp r15, rdx
jae 0x41e342
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov rcx, r13
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov qword [rsp + 0x30], rax
call fcn.0041e420
mov rdx, qword [rdi + 8]
cmp rbx, rax
mov rsi, r15
cmovb rbx, rax
cmp rax, rdx
jae 0x41e1d5
cmp rsi, r14
jne 0x41e300
mov r14d, dword [rsp + 0x50]
add r12d, 1
lea r14, [rsi + r14*8]
jmp 0x41e3c0
mov rdx, qword [rdi + 8]
lea r15, [rsi + 8]
lea rax, [rdx + 1]
cmp r15, rdx
jae 0x41e3ad
mov rdx, rbp
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov r8d, r12d
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rsi
mov rcx, r13
mov qword [rsp + 0x30], rax
call fcn.0041e420
mov rdx, qword [rdi + 8]
cmp rbx, rax
mov rsi, r15
cmovb rbx, rax
cmp rax, rdx
jae 0x41e1d5
cmp rsi, r14
jne 0x41e370
cmp rsi, rbx
mov rax, rbx
cmovae rax, rsi
jmp 0x41e1d5
mov r9, r13
mov r8d, 4
mov edx, 1
lea rcx, [0x004d2c8a]
call sub.msvcrt.dll_fwrite
jmp 0x41e25c
mov r9, r13
mov r8d, 4
mov edx, 1
lea rcx, [0x004d2c85]
call sub.msvcrt.dll_fwrite
jmp 0x41e25c
Function at 0x4294f0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbx, qword [rdx + 0xf0]
mov rax, qword [rbx + 8]
mov r14, rdx
mov rsi, rcx
mov rcx, rbx
mov rax, qword [rax + 0x360]
call qword [rax + 0xd8]
mov ecx, dword [r14 + 0x88]
mov eax, 1
test ecx, ecx
jne 0x429540
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rax, qword [rbx + 0xf0]
xor r9d, r9d
xor r8d, r8d
mov rdx, r14
mov rcx, qword [r14 + 0xf0]
mov rdi, qword [rax + 0x80]
mov r12, qword [rax]
mov dword [rsp + 0x20], 0
mov qword [rsp + 0x28], 0
call fcn.004292a0
mov r13, rax
xor eax, eax
test r13, r13
je 0x42952f
mov eax, dword [r14 + 0x88]
lea rax, [rax + rax*2]
lea rbp, [r13 + rax*8]
cmp r13, rbp
jae 0x429673
mov rbx, r13
jmp 0x429606
mov rdx, qword [r14 + 0xf0]
xor r9d, r9d
mov r8, rbx
mov rcx, r14
mov rdx, qword [rdx + 0xf0]
mov rdx, qword [rdx + 8]
mov eax, dword [rdx + rax*4]
mov rdx, rsi
lea rax, [rax + rax*8]
mov rax, qword [r12 + rax*8 + 0x30]
add rax, 8
mov qword [rsp + 0x20], rax
call fcn.00429020
test rax, rax
je 0x4295fd
movzx edx, byte [rax + 0x24]
test dl, 8
jne 0x4295fd
mov rcx, qword [rax + 0xf0]
or edx, 8
mov rcx, qword [rcx + 8]
cmp dword [rcx + 8], 2
mov byte [rax + 0x24], dl
je 0x429650
add rbx, 0x18
cmp rbx, rbp
jae 0x429673
movsxd rax, dword [rbx + 8]
mov r9, qword [rdi + rax*8]
test r9, r9
je 0x4295a0
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
ja 0x429630
nop
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x429620
mov qword [rsp + 0x20], 0
mov r8, rbx
mov rdx, rsi
mov rcx, r14
call fcn.00429020
jmp 0x4295d8
test byte [rax + 0x20], 4
je 0x4295fd
mov edx, dword [rax + 0x88]
test edx, edx
je 0x4295fd
mov rdx, rax
mov rcx, rsi
call fcn.004294f0
test eax, eax
jne 0x4295fd
xor eax, eax
jmp 0x429678
mov eax, 1
mov rdx, qword [r14 + 0xe0]
test rdx, rdx
je 0x42952f
cmp qword [rdx], r13
je 0x42952f
mov rcx, r13
mov dword [rsp + 0x3c], eax
call sub.msvcrt.dll_free
mov eax, dword [rsp + 0x3c]
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x448dd0
Capabilities:
Hash data using djb2

Disassembly:
mov eax, 0x1505
movzx edx, byte [rcx]
lea r8, [rcx + 1]
test dl, dl
je 0x448df6
mov ecx, eax
add r8, 1
shl ecx, 5
add edx, ecx
add eax, edx
movzx edx, byte [r8 - 1]
test dl, dl
jne 0x448de0
ret
Function at 0x46a990
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 r10, rdx
mov ecx, dword [r9 + 0x40]
mov rax, qword [r8 + 8]
shr rax, cl
test eax, eax
je 0x46aa80
mov eax, eax
cmp qword [r9 + 0x28], rax
jbe 0x46a9f3
mov rdx, rax
shl rdx, 5
add rdx, qword [r9 + 0x18]
movzx ecx, byte [rdx + 0x14]
shr cl, 4
test cl, cl
jne 0x46a9f3
mov qword [rsp + 0x60], rdx
xor r9d, r9d
mov rdx, r11
mov rcx, r10
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
jmp rax
sub rax, qword [r9 + 0x30]
mov rdx, qword [r9 + 0x38]
mov r9, qword [rdx + rax*8]
test r9, r9
jne 0x46aa26
mov rax, qword [r11 + 0x20]
lea rcx, str._F_P:_corrupt_input:__B_n
mov rdx, qword [r10 + 0xf0]
call qword [rax + 0x58]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
mov r9, qword [r9 + 0x28]
movzx eax, byte [r9 + 0x18]
sub eax, 6
cmp al, 1
jbe 0x46aa22
movzx edx, byte [r9 + 0x5d]
or byte [r9 + 0x5c], 0x20
test dl, 0x20
je 0x46aa52
mov rax, r9
mov rax, qword [rax + 0x68]
test byte [rax + 0x5d], 0x20
jne 0x46aa44
or byte [rax + 0x5c], 0x20
test rsi, rsi
jne 0x46aa65
mov qword [rsp + 0x60], 0
jmp 0x46a9e1
and edx, 0x10
je 0x46aa57
mov rax, qword [r9 + 0x78]
movzx edx, byte [rax + 0x24]
shr dl, 3
xor edx, 1
and edx, 1
mov dword [rsi], edx
jmp 0x46aa1b
xor eax, eax
jmp 0x46aa1b
Function at 0x46aa90
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
mov rax, qword [rdx + 0xe0]
or byte [rdx + 0x24], 8
mov rbx, rdx
mov rdx, qword [rax + 0xc0]
mov rdi, rcx
mov rbp, r8
test rdx, rdx
je 0x46aacb
test byte [rdx + 0x24], 8
je 0x46ac70
mov rax, qword [rbx + 0xf0]
test byte [rbx + 0x20], 4
mov rax, qword [rax + 0xf0]
mov rsi, qword [rax + 0x350]
je 0x46ab80
mov eax, dword [rbx + 0x88]
test eax, eax
je 0x46ab80
cmp rbx, rsi
je 0x46abd0
lea r13, [rsp + 0x40]
mov r8, rbx
mov rdx, rdi
mov rcx, r13
call fcn.0045eb50
test rsi, rsi
setne r14b
test eax, eax
je 0x46abbe
mov rax, qword [rsp + 0x48]
cmp qword [rsp + 0x50], rax
ja 0x46ab4d
jmp 0x46ac82
mov rax, qword [rsp + 0x48]
add rax, 0x18
cmp rax, qword [rsp + 0x50]
mov qword [rsp + 0x48], rax
jae 0x46ac82
mov r9, r13
mov r8, rbp
mov rdx, rbx
mov rcx, rdi
call fcn.0046aca0
test eax, eax
jne 0x46ab34
xor r14d, r14d
xor r12d, r12d
xor eax, eax
mov rdx, rbx
mov rcx, r13
mov dword [rsp + 0x3c], eax
call fcn.00457cc0
mov eax, dword [rsp + 0x3c]
jmp 0x46ab92
test rsi, rsi
mov r12d, 1
mov eax, 1
setne r14b
test r14b, r14b
mov rdx, qword [rbx + 0xe0]
jne 0x46abd7
mov rdx, qword [rdx + 0xd0]
test rdx, rdx
je 0x46abbe
test r12b, r12b
je 0x46abbe
test byte [rdx + 0x24], 8
mov eax, 1
je 0x46ac55
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
je 0x46ac10
lea r13, [rsp + 0x40]
mov rdx, rdi
mov r8, rsi
mov rcx, r13
xor r12d, r12d
call fcn.0045eb50
mov edx, eax
xor eax, eax
test edx, edx
jne 0x46ac20
mov rdx, qword [rbx + 0xe0]
jmp 0x46ab9e
mov r12d, 1
mov eax, 1
jmp 0x46ab9e
mov r9, rbp
mov r8, rsi
mov rdx, rbx
mov qword [rsp + 0x20], r13
mov rcx, rdi
call fcn.004707c0
mov rdx, rsi
mov rcx, r13
test eax, eax
setne r12b
movzx eax, r12b
mov dword [rsp + 0x3c], eax
call fcn.00457cc0
mov eax, dword [rsp + 0x3c]
jmp 0x46abff
mov r8, rbp
mov rcx, rdi
call fcn.0046aa90
test eax, eax
setne al
movzx eax, al
jmp 0x46abbe
call fcn.0046aa90
test eax, eax
jne 0x46aacb
jmp 0x46abbe
mov r12d, 1
mov eax, 1
jmp 0x46ab6a
Function at 0x478600
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 rdi, qword [rsp + 0xd0]
mov rax, qword [rdi + 8]
lea rsi, [r9 + 0x10]
mov r13, rcx
mov rbp, rdx
mov r12d, r8d
mov rbx, r9
cmp rsi, rax
jb 0x478650
add rax, 1
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea rax, [0x004e1cbb]
mov r8, r9
sub r8, qword [rdi]
mov r9d, r12d
mov qword [rsp + 0x20], rax
lea rdx, str._03x__.s
call sub.msvcrt.dll_fprintf
cmp r12d, 2
je 0x478834
cmp r12d, 4
je 0x4786a2
test r12d, r12d
je 0x478853
lea rdx, str._unknown_directory_type:__d__n
mov r8d, r12d
mov rcx, r13
call sub.msvcrt.dll_fprintf
mov rax, qword [rdi + 8]
jmp 0x478631
mov r9, r13
mov r8d, 8
mov edx, 1
lea rcx, str.Language
call sub.msvcrt.dll_fwrite
mov rax, qword [rbp + 8]
lea rcx, [rbx + 0xe]
call qword [rax + 0x50]
lea rcx, [rbx + 0xc]
mov qword [rsp + 0x50], rax
mov rax, qword [rbp + 8]
call qword [rax + 0x50]
lea rcx, [rbx + 0xa]
mov r15, rax
mov rax, qword [rbp + 8]
call qword [rax + 0x50]
lea rcx, [rbx + 8]
mov qword [rsp + 0x58], rax
mov rax, qword [rbp + 8]
call qword [rax + 0x50]
lea rcx, [rbx + 4]
mov r14, rax
mov rax, qword [rbp + 8]
call qword [rax + 0x38]
mov rcx, rbx
mov qword [rsp + 0x48], rax
mov rax, qword [rbp + 8]
call qword [rax + 0x38]
mov ecx, dword [rsp + 0x50]
mov dword [rsp + 0x30], r15d
lea rdx, str._Table:_Char:__d__Time:__08lx__Ver:__d__d__Num_Names:__d__IDs:__d_n
mov r8, qword [rsp + 0x58]
mov dword [rsp + 0x20], r14d
mov r15d, r15d
mov r9, qword [rsp + 0x48]
lea r14, [rbx + r15*8 + 0x10]
mov dword [rsp + 0x38], ecx
mov rcx, r13
mov dword [rsp + 0x28], r8d
mov r8d, eax
call sub.msvcrt.dll_fprintf
lea eax, [r12 + 1]
mov dword [rsp + 0x48], eax
jmp 0x4787b5
mov rdx, qword [rdi + 8]
lea r15, [rsi + 8]
lea rax, [rdx + 1]
cmp r15, rdx
jae 0x4787a2
mov r8d, dword [rsp + 0x48]
mov rdx, rbp
mov qword [rsp + 0x28], rdi
mov rcx, r13
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rsi
mov r9d, 1
mov qword [rsp + 0x30], rax
call fcn.00478880
mov rdx, qword [rdi + 8]
cmp rbx, rax
mov rsi, r15
cmovb rbx, rax
cmp rax, rdx
jae 0x478635
cmp rsi, r14
jne 0x478760
mov r14d, dword [rsp + 0x50]
add r12d, 1
lea r14, [rsi + r14*8]
jmp 0x478820
mov rdx, qword [rdi + 8]
lea r15, [rsi + 8]
lea rax, [rdx + 1]
cmp r15, rdx
jae 0x47880d
mov rdx, rbp
mov qword [rsp + 0x28], rdi
xor r9d, r9d
mov r8d, r12d
mov rax, qword [rsp + 0xd8]
mov qword [rsp + 0x20], rsi
mov rcx, r13
mov qword [rsp + 0x30], rax
call fcn.00478880
mov rdx, qword [rdi + 8]
cmp rbx, rax
mov rsi, r15
cmovb rbx, rax
cmp rax, rdx
jae 0x478635
cmp rsi, r14
jne 0x4787d0
cmp rsi, rbx
mov rax, rbx
cmovae rax, rsi
jmp 0x478635
mov r9, r13
mov r8d, 4
mov edx, 1
lea rcx, str.Name
call sub.msvcrt.dll_fwrite
jmp 0x4786bc
mov r9, r13
mov r8d, 4
mov edx, 1
lea rcx, str.Type
call sub.msvcrt.dll_fwrite
jmp 0x4786bc
Function at 0x48a2d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov rax, qword [rcx]
mov rax, qword [rax + 0x360]
mov rbx, rdx
mov rdi, rcx
mov rsi, r8
lea rcx, [rbx + 0x10]
movzx ebp, byte [rax + 0x37d]
mov rax, qword [rdx]
mov rdx, qword [rdx + 8]
and ebp, 1
mov qword [r8], rax
mov qword [r8 + 8], rdx
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x12]
mov word [rsi + 0x30], ax
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x14]
mov word [rsi + 0x32], ax
mov rax, qword [rdi]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x18]
test bpl, bpl
mov dword [rsi + 0x28], eax
mov rax, qword [rdi]
jne 0x48a3f0
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]
lea rcx, [rbx + 0x20]
mov qword [rsi + 0x18], rax
mov rax, qword [rdi]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x24]
mov qword [rsi + 0x20], rax
mov rax, qword [rdi]
call qword [rax + pe_nt_image_headers64]
lea rcx, [rbx + 0x28]
mov dword [rsi + 0x2c], eax
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x2a]
mov dword [rsi + 0x34], eax
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x2c]
mov dword [rsi + 0x38], eax
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x2e]
mov dword [rsi + 0x3c], eax
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x30]
mov dword [rsi + 0x40], eax
mov rax, qword [rdi]
call qword [rax + 0x98]
lea rcx, [rbx + 0x32]
mov dword [rsi + 0x44], eax
mov rax, qword [rdi]
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 0x48a34f

Function at 0x494b00
Capabilities:
Encode data using xor

Disassembly:
xor r9d, r9d
mov r8d, 1
mov rdx, rcx
lea rcx, [0x00518a40]
jmp fcn.004108a0
Function at 0x495580
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 r13d, dword [rcx + 0x40]
test eax, eax
mov rsi, rcx
mov r12, rdx
mov edi, r8d
mov ebp, r9d
jne 0x495650
test r13d, r13d
je 0x4957a5
lea eax, [r13 - 1]
xor r14d, r14d
lea r8, [rdx + rax + 1]
add rdx, 1
movzx ecx, byte [rdx - 1]
mov eax, ecx
shl eax, 0x11
add eax, ecx
add r14d, eax
mov eax, r14d
shr eax, 2
xor r14d, eax
cmp rdx, r8
jne 0x4955c0
xor edx, edx
mov eax, r14d
div dword [rsi + 0x18]
mov rax, qword [rsi]
mov edx, edx
mov rbx, qword [rax + rdx*8]
test rbx, rbx
je 0x495710
mov r15d, r13d
jmp 0x49560c
mov rbx, qword [rbx]
test rbx, rbx
je 0x495710
cmp dword [rbx + 0x10], r14d
jne 0x495600
cmp dword [rbx + 0x18], r13d
jne 0x495600
mov rcx, qword [rbx + 8]
mov r8, r15
mov rdx, r12
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x495600
cmp dword [rbx + 0x1c], edi
jae 0x495735
test ebp, ebp
je 0x4957b0
mov qword [rbx + 0x18], 0
jmp 0x495718
cmp r13d, 1
je 0x495750
lea ebx, [r13 - 1]
mov r9, rdx
xor r11d, r11d
xor eax, eax
add rbx, 1
nop word [rax + rax]
test r13d, r13d
je 0x4956a3
movzx edx, byte [r9]
lea r8, [r9 + 1]
xor ecx, ecx
mov r10, r8
test dl, dl
je 0x49569b
jmp 0x4956d0
add r10, 1
cmp byte [r10 - 1], 0
jne 0x4956d0
add ecx, 1
cmp ecx, r13d
jne 0x495690
mov r14d, r11d
add eax, r11d
shl r14d, 0x11
imul r11d, r13d
add eax, r14d
mov r14d, eax
shr r14d, 2
add r13d, r11d
xor r14d, eax
jmp 0x4955e0
lea r10, [r9 + rbx]
jmp 0x4956e8
movzx edx, byte [r8]
add r8, 1
movzx ecx, dl
mov r9, r8
mov edx, ecx
shl edx, 0x11
add edx, ecx
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
cmp r8, r10
jne 0x4956e0
add r11d, 1
jmp 0x495670
test ebp, ebp
je 0x4957b0
mov r8d, r14d
mov rdx, r12
mov rcx, rsi
call fcn.004106c0
test rax, rax
mov rbx, rax
je 0x495735
mov dword [rax + 0x18], r13d
mov dword [rax + 0x1c], edi
mov rax, rbx
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r8, [rdx + 1]
movzx edx, byte [rdx]
test edx, edx
je 0x4957a5
xor r13d, r13d
xor eax, eax
jmp 0x495765
mov r13d, ecx
mov ecx, edx
add r8, 1
shl ecx, 0x11
add edx, ecx
lea ecx, [r13 + 1]
add eax, edx
mov edx, eax
shr edx, 2
xor eax, edx
movzx edx, byte [r8 - 1]
test edx, edx
jne 0x495762
mov r14d, ecx
add eax, ecx
add r13d, 2
shl r14d, 0x11
add eax, r14d
mov r14d, eax
shr r14d, 2
xor r14d, eax
jmp 0x4955e0
xor r14d, r14d
jmp 0x4955e0
xor ebx, ebx
jmp 0x495735
Function at 0x4bd9e0
Capabilities:
Query environment variable

Disassembly:
mov r9d, 1
jmp fcn.004bd4a0

Function at 0x4becf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x005190c4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4bee78
mov rax, qword [0x005190c8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4bed3c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x4bedc5
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x4bed20
mov rcx, rbx
call fcn.004bf990
test rax, rax
mov r12, rax
je 0x4beead
mov rax, qword [0x005190c8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.004bfac0
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x005190c8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x4bee90
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x4bedbe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x4bee20
add dword [0x005190c4], 1
cmp edi, 8
jae 0x4bedf3
test dil, 4
jne 0x4bee64
test edi, edi
je 0x4bede8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4bee7f
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 0x4bede8
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 0x4bee0c
jmp 0x4bede8
add rsi, qword [0x005190c8]
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 0x4bedbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.004c2ee0
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x4bede8
xor esi, esi
jmp 0x4bed47
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x4bede8
mov rax, qword [0x005190c8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.004c2ee0
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.004c2ee0
nop
nop dword [rax]

Function at 0x4bf600
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x005193a0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00519380]
test rbx, rbx
je 0x4bf654
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 0x4bf64b
test rsi, rsi
je 0x4bf64b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x4bf630
lea rcx, [0x005193a0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x4bf990
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00505cc0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x4bf9fd
mov rcx, r8
call fcn.004bf870
test eax, eax
je 0x4bf9fd
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 0x4bf9fd
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 0x4bf9f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4bf9ff
add rax, 0x28
cmp rax, r9
jne 0x4bf9e0
xor eax, eax
add rsp, 0x28
ret

Function at 0x4bfc90
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 0x4bfe20
cmp byte [rbx], 0
je 0x4bfde1
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4bfe10
test al, 0x10
je 0x4bfde1
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
mov rbx, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rbx]
add rbx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x4bfcee
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
mov ecx, eax
cmove rbx, rdx
add cl, al
sbb rbx, 3
sub rbx, rdi
lea rcx, [rbx + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x4bfe00
lea r9, [rax + 0x244]
mov rdx, rdi
lea rbp, [rbx + 1]
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rsi + 0x244], 0
mov r9, rax
jne 0x4bfdc0
add rbx, rax
mov eax, 0x2a
mov ecx, 0x20
lea rdx, [rsi + 0x130]
mov word [rbx], ax
xor eax, eax
mov qword [rsi + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [rsi + 0x240], 0
mov qword [rsi + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, byte [rsi + rbx + 0x243]
add rbx, r9
cmp al, 0x5c
je 0x4bfd65
cmp al, 0x2f
je 0x4bfd65
mov edx, 0x5c
mov word [rbx], dx
lea rbx, [r9 + rbp]
jmp 0x4bfd65
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0x14
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x4bfda7
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 2
jmp 0x4bfda7
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0xe
jmp 0x4bfda7
Function at 0x4c2ee0
Capabilities:
Write file on windows

Disassembly:
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.004c1900
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.004c1900
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
push rbp
mov rbp, rsp
pop rbp
jmp fcn.00401530
Function at 0x140011000
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x430
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x420], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x400
call fcn.140012540
mov r8d, 5
lea rdx, [0x14001c470]
lea rcx, [rsp + 0x20]
lea rbx, [rsp + 0x448]
call qword [sym.imp.KERNEL32.dll_lstrcpynA]
mov rdx, qword [rsp + 0x440]
lea rcx, [rsp + 0x24]
mov r8, rbx
call qword [sym.imp.USER32.dll_wvsprintfA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x420]
xor rcx, rsp
call fcn.1400118c0
add rsp, 0x430
pop rbx
ret

Function at 0x1400110a0
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0x830
mov rax, qword [0x140026008]
xor rax, rsp
mov qword [rsp + 0x820], rax
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call fcn.140012540
mov r8d, 5
lea rdx, str.ECB:
lea rcx, [rsp + 0x20]
lea rbx, [rsp + 0x848]
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov rdx, qword [rsp + 0x840]
lea rcx, [rsp + 0x28]
mov r8, rbx
call qword [sym.imp.USER32.dll_wvsprintfW]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rsp + 0x820]
xor rcx, rsp
call fcn.1400118c0
add rsp, 0x830
pop rbx
ret