joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002ec70
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x14002ecb2
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 3
jbe 0x14002ecba
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x14002eccb
jmp 0x14002ece2
xor r10d, r10d
jmp 0x14002ed6d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x14002ece2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x14002ecf9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x14002ed19
add r11, r8
jmp 0x14002ee4a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x14002ede2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x14002ed90
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 3
jbe 0x14002ee00
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x14002ee12
jmp 0x14002ee2c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14002ee2c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x14002ee46
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x14003d290
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
movdqa xmmword [rsp + 0xb0], xmm13
movdqa xmmword [rsp + 0xa0], xmm12

Function at 0x140045a50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov r14, rdx
cmp byte [rdx], 0
mov rsi, rcx
mov qword [rsp + 0x28], 1
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
js 0x140045acc
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x50]
mov ebx, 1
lea r9, [rsp + 0x70]
mov edx, 1
mov r8d, 0x28
call case.0x14002210d.988
cmp qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
je 0x140045b25
movabs rax, 0x8000000000000001
cmp rcx, rax
jne 0x140045b15
xor edx, edx
jmp 0x140045d56
mov qword [rsp + 0x78], 0
lea rcx, [rsp + 0x50]
mov ebx, 1
lea r9, [rsp + 0x70]
mov edx, 1
mov r8d, 0x29
call case.0x14002210d.988
cmp qword [rsp + 0x50], 0
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x68], rsi
je 0x140045b3d
movabs rax, 0x8000000000000001
cmp rcx, rax
je 0x140045b4e
test rcx, rcx
jne 0x140045ebf
call fcn.14007ff80
ud2
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x28
xor edx, edx
mov rbx, rcx
jmp 0x140045d56
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0x29
mov rbx, rcx
movzx eax, byte [r14 + 0x13]
mov ecx, eax
neg cl
movzx edx, byte [r14 + 0x12]
mov r8d, edx
neg r8b
test al, al
mov byte [r14 + 0x13], cl
mov rdx, qword [rsp + 0x60]
call fcn.140162fc0
ud2

Function at 0x14004a020
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov qword [rsp + 0xd8], r9
mov r15, r8
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rcx
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0x20], 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x28], xmm0
lea rcx, [rsp + 0x20]
mov r8d, 0x14
xor edx, edx
call fcn.1401639e0
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
movups xmm0, xmmword [str._version_:_name_:___description_:__players_:_online_:__enforcesSecureChat_:false__enforcesSecureChat_:true_id_:_00000000_0000_0000_0000_000000000000___name_:_Anonymous_Player_TIMEL__TIMER__crates_ncan_src_net_verify.rs]
movups xmmword [rax + rdi], xmm0
mov dword [rax + rdi + 0x10], 0x223a2265
add rdi, 0x14
mov qword [rsp + 0x30], rdi
mov rdx, rcx
sub rdx, rdi
cmp rdx, 5
jbe 0x14004ad24
lea rcx, [rsp + 0x20]
Function at 0x140081ea0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
and rsp, 0xffffffffffffffc0
test edx, edx
je 0x140082046
mov rsi, r9
mov rdi, r8
mov r12d, edx
mov r13d, edx
lea rdx, [r13*8]
mov eax, ecx
cmp rdx, rax
cmova rax, rdx
lea rcx, [r13*4]
mov rdx, rax
or rdx, rcx
movabs r8, 0x700000000
test rdx, r8
je 0x14008200a
xor edx, edx
div rcx
mov rbx, rax
lea r14, [rbx*4 - 1]
cmp r14, rsi
jae 0x140082021
mov rdx, r14
shl rdx, 0xa
add rdx, rdi
lea r15, [rsp + 0x40]
mov r8d, 0x400
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
cmp r12d, 2
jb 0x140081fca
shl rbx, 2
mov eax, 1
nop
mov rcx, rax
imul rcx, rbx
add rcx, r14
cmp rcx, rsi
jae 0x140082035
inc rax
shl rcx, 0xa
add rcx, rdi
xor edx, edx
nop
lea r8, [rdx*8]
movaps xmm0, xmmword [rsp + rdx*8 + 0x40]
movaps xmm1, xmmword [rsp + rdx*8 + 0x50]
movaps xmm2, xmmword [rsp + rdx*8 + 0x60]
xorps xmm0, xmmword [rcx + rdx*8]
xorps xmm1, xmmword [rcx + rdx*8 + 0x10]
movaps xmm3, xmmword [rsp + rdx*8 + 0x70]
movaps xmmword [rsp + rdx*8 + 0x40], xmm0
movaps xmmword [rsp + rdx*8 + 0x50], xmm1
or r8, 0x20
xorps xmm2, xmmword [rcx + r8]
xorps xmm3, xmmword [rcx + r8 + 0x10]
movaps xmmword [rsp + rdx*8 + 0x60], xmm2
movaps xmmword [rsp + rdx*8 + 0x70], xmm3
add rdx, 8
cmp rdx, 0x80
jne 0x140081f70
cmp rax, r13
jne 0x140081f50
mov r9, qword [rbp + 0x468]
mov r8, qword [rbp + 0x460]
mov qword [rsp + 0x30], r15
mov qword [rsp + 0x38], 0x400
lea rcx, [rsp + 0x30]
mov edx, 1
call fcn.140082060
nop
lea rsp, [rbp + 0x3f8]
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
xor edx, edx
div ecx
mov ebx, eax
lea r14, [rbx*4 - 1]
cmp r14, rsi
jb 0x140081f1e
lea r8, str.C:Usersmqnu7.cargo_registry_src_rsproxy.cn_0dccff568467c15b_argon2_0.5.2_srclib.rs
mov rcx, r14
mov rdx, rsi
call fcn.140163340
ud2
lea r8, str.C:Usersmqnu7.cargo_registry_src_rsproxy.cn_0dccff568467c15b_argon2_0.5.2_srclib.rs
mov rdx, rsi
call fcn.140163340
ud2
lea rcx, str.attempt_to_divide_by_zeroInvalidBufferSizeargon2dargon2iargon2idC:Usersmqnu7.cargo_registry_src_rsproxy.cn_0dccff568467c15b_argon2_0.5.2_src_blake2b_long.rs
lea r8, str.C:Usersmqnu7.cargo_registry_src_rsproxy.cn_0dccff568467c15b_argon2_0.5.2_srcparams.rs
mov edx, 0x19
call fcn.140163440
ud2
Function at 0x14008d8b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x14008d940
cmp r11, r10
ja 0x14008d9b6
cmp r10, rdx
ja 0x14008d9ca
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x14008d942
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x14008d920
jmp 0x14008d9a4
ja 0x14008d94a
mov r11, r10
cmp rax, r8
jne 0x14008d8e4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x14008d980
mov rdi, r8
sub ecx, edx
jns 0x14008d99b
jmp 0x14008d9a6
cmp r8, rsi
je 0x14008d9db
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x14008d9a6
xor al, 1
cmp rdi, rsi
jne 0x14008d960
jmp 0x14008d9a6
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.C:Usersmqnu7.rustup_toolchains_nightly_x86_64_pc_windows_gnulib_rustlib_src_rustlibrarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140163650
ud2
lea r8, str.C:Usersmqnu7.rustup_toolchains_nightly_x86_64_pc_windows_gnulib_rustlib_src_rustlibrarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1401633c0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value
lea r8, str.C:Usersmqnu7.rustup_toolchains_nightly_x86_64_pc_windows_gnulib_rustlib_src_rustlibrarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140163440
ud2
Function at 0x140092990
Capabilities:
Encrypt data using aes
Reference aes constants
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
push rax
mov r14, rcx
mov r10d, dword [rdx]
mov r8d, dword [rdx + 4]
mov r9d, dword [rdx + 8]
movzx eax, byte [rdx + 0xc]
movzx ecx, byte [rdx + 0xd]
movzx r11d, byte [rdx + 0xf]
lea rdi, [0x140197ddc]
movzx esi, byte [r11 + rdi]
mov ebx, r11d
shl ebx, 0x18
movzx edx, byte [rdx + 0xe]
movzx r11d, byte [rdx + rdi]
mov ebp, edx
shl ebp, 0x10
or ebp, ebx
movzx ebx, byte [rcx + rdi]
shl ecx, 8
lea edx, [rax + rcx]
or edx, ebp
xor ebx, 1
movzx eax, byte [rax + rdi]
shl eax, 0x18
shl esi, 0x10
shl r11d, 8
or r11d, ebx
or r11d, eax
or r11d, esi
xor r11d, r10d
mov esi, r11d
xor esi, r8d
mov dword [r14], r10d
mov dword [r14 + 4], r8d
mov dword [r14 + 8], r9d
mov dword [r14 + 0xc], edx
mov dword [r14 + 0x10], r11d
mov dword [r14 + 0x14], esi
xor esi, r9d
mov eax, esi
xor eax, edx
movzx ecx, ah
movzx ecx, byte [rcx + rdi]
xor ecx, 2
movzx r10d, al
mov ebx, eax
mov dword [r14 + 0x18], esi
mov dword [r14 + 0x1c], eax
shr eax, 0x10
movzx eax, al
movzx r9d, byte [rax + rdi]
movzx eax, byte [r10 + rdi]
shl eax, 0x18
shr ebx, 0x18
movzx r10d, byte [rbx + rdi]
shl r10d, 0x10
shl r9d, 8
or r9d, ecx
or r9d, eax
or r9d, r10d
mov r10d, r9d
xor r10d, r11d
xor r9d, r8d
mov ecx, r9d
xor ecx, edx
movzx eax, ch
movzx eax, byte [rax + rdi]
xor eax, 4
mov r8d, ecx
shr r8d, 0x10
movzx r8d, r8b
movzx r11d, byte [r8 + rdi]
movzx r8d, cl
movzx r8d, byte [r8 + rdi]
shl r8d, 0x18
mov ebx, ecx
shr ebx, 0x18
movzx ebx, byte [rbx + rdi]
shl ebx, 0x10
shl r11d, 8
or r11d, eax
or r11d, r8d
or r11d, ebx
xor r11d, r10d
mov r15d, r11d
xor r15d, r9d
mov ebp, r11d
xor ebp, esi
mov eax, ebp
xor eax, ecx
movzx ebx, ah
movzx r8d, byte [rbx + rdi]
xor r8d, 8
mov ebx, eax
shr ebx, 0x10
movzx ebx, bl
movzx ebx, byte [rbx + rdi]
movzx r12d, al
movzx r12d, byte [r12 + rdi]
shl r12d, 0x18
mov r13d, eax
shr r13d, 0x18
movzx r13d, byte [r13 + rdi]
shl r13d, 0x10
shl ebx, 8
or ebx, r8d
or ebx, r12d
or ebx, r13d
mov r8d, ebx
xor r8d, r9d
mov dword [r14 + 0x20], r10d
mov dword [r14 + 0x24], r9d
mov r12d, r9d
xor r12d, esi
mov r9d, ebx
xor r9d, r11d
mov dword [rsp], r9d
xor ebx, edx
movzx edx, bh
movzx edx, byte [rdx + rdi]
xor edx, 0x10
mov r10d, ebx
shr r10d, 0x10
movzx r10d, r10b
movzx r10d, byte [r10 + rdi]
movzx esi, bl
movzx esi, byte [rsi + rdi]
shl esi, 0x18
mov r13d, ebx
shr r13d, 0x18
movzx r13d, byte [r13 + rdi]
shl r13d, 0x10
shl r10d, 8
or r10d, edx
or r10d, esi
or r10d, r13d
xor r10d, r9d
mov esi, r10d
xor esi, ebp
mov dword [r14 + 0x28], r12d
mov dword [r14 + 0x2c], ecx
mov edx, esi
xor edx, ebx
movzx ecx, dh
mov r13d, edx
mov dword [rsp + 4], edx
movzx ecx, byte [rcx + rdi]
xor ecx, 0x20
shr edx, 0x10
Function at 0x140093130
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x98
mov rsi, rcx
mov rdx, qword [rcx + 0x20]
mov rax, qword [rcx + 0x30]
mov r14, rdx
mov qword [rsp + 0x50], rax
sub r14, rax
jbe 0x1400933ea
mov qword [rsp + 0x70], rdx
mov qword [rsp + 0x58], rsi
cmp dword [rsi + 0x38], 0
je 0x1400933d7
add al, byte [rax]
invalid
mov rdx, qword [rsp + 0x58]
lea rax, [rdx + 0x3c]
mov qword [rsp + 0x88], rax
mov dword [rsp + 0x88], eax
mov rax, qword [rsp + 0x50]
add rax, qword [rdx + 0x10]
add eax, dword [rdx + 0x10]
Function at 0x4015a0
Capabilities:
Access peb ldr_data
Check for peb beingdebugged flag
Encode data using xor
Get kernel32 base address
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
mov rax, qword gs:[0x30]
mov rax, qword [rax + 0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
mov rax, qword [rax]
mov r11, qword [rax + 0x30]
movsxd rax, dword [r11 + 0x3c]
mov r10d, dword [r11 + rax + 0x88]
mov r14d, dword [r11 + r10 + 0x18]
lea r8, [r11 + 2]
lea r9, [0x00413004]
jmp 0x401605
mov eax, dword [r11 + r10 + 0x1c]
mov edx, dword [r11 + r10 + 0x24]
add rax, r11
add rdx, r11
movzx edx, word [rdx + r14*2]
mov eax, dword [rax + rdx*4]
mov eax, dword [r11 + rax + 4]
mov dword [rcx], eax
sub r14, 1
jb 0x401666
mov eax, dword [0x00413004]
test eax, eax
je 0x4015ff
mov ecx, dword [r11 + r10 + 0x20]
add rcx, r11
mov esi, dword [rcx + r14*4]
add rsi, r8
mov rcx, r9
nop word cs:[rax + rax]
nop dword [rax + rax]
mov ebp, 0x811c9dc5
mov rdi, rsi
nop dword [rax + rax]
mov ebx, ebp
movsx edx, byte [rdi]
add rdi, 1
xor ebp, edx
imul ebp, ebp, 0x1000193
test edx, edx
jne 0x401640
cmp ebx, eax
je 0x4015e0
mov eax, dword [rcx + 4]
add rcx, 4
test eax, eax
jne 0x401630
jmp 0x4015ff
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret

Function at 0x4017e0
Capabilities:
Check for outputdebugstring error
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x401878
call fcn.004018a0
cmp byte [rax + 2], 0
jne 0x401878
test byte [rax + 0xbc], 0x70
jne 0x401878
call fcn.00401ef0
call fcn.004015a0
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x00416408]
mov edx, dword [rax]
mov rax, qword [0x00416460]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x00416400]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.00401670
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.0040d000
nop
add rsp, 0x20
pop rbp
jmp 0x4017e0
Function at 0x401880
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x38
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, str._api_
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x401878
call fcn.004018a0
cmp byte [rax + 2], 0
jne 0x401878
test byte [rax + 0xbc], 0x70
jne 0x401878
call fcn.00401ef0
call fcn.004015a0
mov qword [rsp + 0x30], 0xffffffffffffffff
mov rax, qword [0x00416408]
mov edx, dword [rax]
mov rax, qword [0x00416460]
mov eax, dword [rax]
mov dword [rsp + 0x20], eax
mov rcx, qword [0x00416400]
lea r8, [rsp + 0x30]
mov r9d, 1
call fcn.00401670
test rax, rax
sete al
cmp qword [rsp + 0x30], 0xffffffffffffffff
sete cl
or cl, al
movzx eax, cl
neg eax
add rsp, 0x38
ret
xor ecx, ecx
call sub.msvcrt.dll_exit
int3
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call fcn.0040d000
nop
add rsp, 0x20
pop rbp
jmp 0x4017e0

Function at 0x4018b0
Capabilities:
Access peb ldr_data

Disassembly:
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
ret
Function at 0x402450
Capabilities:
Allocate or change rwx memory

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov r15, rdx
mov r12, rcx
movsxd r13, dword [rcx + 0x3c]
mov ebx, dword [rcx + r13 + 0x54]
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4024ba
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
mov r8d, 0x40
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4024ba
mov rcx, r15
mov rdx, r12
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rcx, r15
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, word [r12 + r13 + 6]
test ax, ax
je 0x40255c
movsxd rcx, dword [r12 + 0x3c]
lea rbp, [rcx + r12]
add rbp, 0x110
xor r14d, r14d
jmp 0x4024f6
movzx eax, word [r12 + r13 + 6]
add r14, 1
movzx ecx, ax
add rbp, 0x28
cmp r14, rcx
jae 0x40255c
cmp dword [rbp + 0x1c], 0
js 0x4024e6
mov ebx, dword [rbp]
mov esi, dword [rbp + 4]
lea rdi, [r12 + rsi]
add rsi, r15
mov rcx, rdi
mov rdx, rsi
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
je 0x4024e0
mov rcx, rsi
mov rdx, rbx
mov r8d, 0x40
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x4024e0
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
call sub.msvcrt.dll_memcpy
mov r8d, dword [rsp + 0x24]
mov rcx, rsi
mov rdx, rbx
lea r9, [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x4024e0
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x4025e0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
test rcx, rcx
je 0x4027ae
mov rsi, rdx
mov rbx, rcx
movsxd rax, dword [rcx + 0x3c]
mov edi, dword [rax + rcx + 0x88]
mov r13d, dword [rdi + rcx + 0x1c]
add r13, rcx
cmp esi, 0xffff
ja 0x402631
movzx eax, si
mov ecx, dword [rbx + rdi + 0x10]
sub rax, rcx
mov r12d, dword [r13 + rax*4]
add r12, rbx
jmp 0x4027b1
mov ebp, dword [rbx + rdi + 0x18]
test ebp, ebp
je 0x4027ae
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r8
mov r14d, dword [rbx + rdi + 0x20]
mov r15d, dword [rbx + rdi + 0x24]
add r14, rbx
add r15, rbx
xor r12d, r12d
nop word [rax + rax]
mov ecx, dword [r14]
add rcx, rbx
mov rdx, rsi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x402686
add ebp, 0xffffffff
add r14, 4
add r15, 2
test ebp, ebp
jne 0x402660
jmp 0x4027b1
movzx eax, word [r15]
mov r12d, dword [r13 + rax*4]
cmp edi, r12d
ja 0x402629
mov rax, qword [rsp + 0x38]
add edi, dword [rbx + rax + 0x8c]
cmp r12d, edi
jae 0x402629
add r12, rbx
mov rcx, r12
mov edx, 0x2e
call sub.msvcrt.dll_strchr
mov r14, rax
add r14, 1
mov rsi, r14
sub rsi, r12
lea rcx, [rsi + 4]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x4027ae
mov rbx, rax
lea r8, [rsi + 1]
mov qword [rsp + 0x20], rsi
xor ecx, ecx
mov rdx, rax
mov r9, r12
call qword [sym.imp.msvcrt.dll_mbstowcs_s]
mov eax, dword [0x00414016]
mov dword [rbx + rsi*2], eax
movzx eax, word [0x0041401a]
mov word [rbx + rsi*2 + 4], ax
lea rdx, [0x00414002]
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
je 0x40273c
lea rdx, str.ext_
mov r8d, 4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__wcsnicmp]
test eax, eax
jne 0x40278a
lea r8, [rsp + 0x40]
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call fcn.004018d0
test rax, rax
je 0x40278a
mov rsi, rax
mov rcx, rbx
call sub.msvcrt.dll_free
mov rdi, qword [rsp + 0x40]
lea rcx, [rdi + 1]
mov edx, 2
call sub.msvcrt.dll_calloc
test rax, rax
je 0x4027ae
mov rbx, rax
add rdi, rdi
mov rcx, rax
mov rdx, rsi
mov r8, rdi
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.004025e0
mov r12, rax
mov rcx, rbx
call sub.msvcrt.dll_free
jmp 0x4027b1
xor r12d, r12d
mov rax, r12
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x40d400
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
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.0040f080
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.0040f080
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x40d470
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00419614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x40d618
mov rax, qword [0x00419618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x40d4bc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x40d547
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x40d4a0
mov rcx, r12
call fcn.0040e1d0
mov rbp, rax
test rax, rax
je 0x40d652
mov rax, qword [0x00419618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.0040e300
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00419618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x40d661
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x40d540
sub eax, 4
and eax, 0xfffffffb
jne 0x40d5d0
add dword [0x00419614], 1
cmp ebx, 8
jae 0x40d578
test bl, 4
jne 0x40d620
test ebx, ebx
je 0x40d569
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x40d640
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x40d569
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x40d5aa
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rdi, qword [0x00419618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x40d540
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0040d400
nop dword [rax]
xor edi, edi
jmp 0x40d4c7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x40d569
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x40d569
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.0040d400
mov rax, qword [0x00419618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.0040d400
nop
nop dword [rax]