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

Disassembly:
mov rax, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
pxor xmm15, xmm15
pcmpeqd xmm14, xmm14
psubd xmm15, xmm14
movd xmm14, eax
pshufd xmm14, xmm14, 0
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
pxor xmm4, xmm4
pxor xmm5, xmm5
mov rax, 0x10
movdqu xmm13, xmm15
movdqu xmm12, xmm13
paddd xmm13, xmm15
pcmpeqd xmm12, xmm14
movdqu xmm6, xmmword [rdi]
movdqu xmm7, xmmword [rdi + 0x10]
movdqu xmm8, xmmword [rdi + 0x20]
movdqu xmm9, xmmword [rdi + 0x30]
movdqu xmm10, xmmword [rdi + 0x40]
movdqu xmm11, xmmword [rdi + 0x50]
add rdi, 0x60
pand xmm6, xmm12
pand xmm7, xmm12
pand xmm8, xmm12
pand xmm9, xmm12
pand xmm10, xmm12
pand xmm11, xmm12
pxor xmm0, xmm6
pxor xmm1, xmm7
pxor xmm2, xmm8
pxor xmm3, xmm9
pxor xmm4, xmm10
pxor xmm5, xmm11
dec rax
jne 0x54fa0d
movdqu xmmword [rdx], xmm0
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x30], xmm3
movdqu xmmword [rdx + 0x40], xmm4
movdqu xmmword [rdx + 0x50], xmm5
ret

Function at 0x54faa0
Capabilities:
Encode data using xor

Disassembly:
mov rax, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x10]
mov rdx, qword [rsp + 8]
pxor xmm15, xmm15
pcmpeqd xmm14, xmm14
psubd xmm15, xmm14
movd xmm14, eax
pshufd xmm14, xmm14, 0
pxor xmm0, xmm0
pxor xmm1, xmm1
pxor xmm2, xmm2
pxor xmm3, xmm3
mov rax, 0x10
movdqu xmm13, xmm15
movdqu xmm12, xmm13
paddd xmm13, xmm15
pcmpeqd xmm12, xmm14
movdqu xmm4, xmmword [rdi]
movdqu xmm5, xmmword [rdi + 0x10]
movdqu xmm6, xmmword [rdi + 0x20]
movdqu xmm7, xmmword [rdi + 0x30]
movdqu xmm8, xmmword [rdi + 0x40]
movdqu xmm9, xmmword [rdi + 0x50]
movdqu xmm10, xmmword [rdi + 0x60]
movdqu xmm11, xmmword [rdi + 0x70]
add rdi, 0x80
pand xmm4, xmm12
pand xmm5, xmm12
pand xmm6, xmm12
pand xmm7, xmm12
movdqu xmm12, xmm13
paddd xmm13, xmm15
pcmpeqd xmm12, xmm14
pand xmm8, xmm12
pand xmm9, xmm12
pand xmm10, xmm12
pand xmm11, xmm12
pxor xmm0, xmm4
pxor xmm1, xmm5
pxor xmm2, xmm6
pxor xmm3, xmm7
pxor xmm0, xmm8
pxor xmm1, xmm9
pxor xmm2, xmm10
pxor xmm3, xmm11
dec rax
jne 0x54fae5
movdqu xmmword [rdx], xmm0
movdqu xmmword [rdx + 0x10], xmm1
movdqu xmmword [rdx + 0x20], xmm2
movdqu xmmword [rdx + 0x30], xmm3
ret
Function at 0x561a40
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x561b94
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x88], rbx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x28], xmm0
movups xmm0, xmmword [rax + 0x18]
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x20]
nop
call fcn.00560e60
mov qword [rsp + 0x10], 0
movups xmmword [rsp + 0x48], xmm15
movups xmmword [rsp + 0x50], xmm15
movups xmmword [rsp + 0x60], xmm15
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x88]
xor eax, eax
jmp 0x561ae4
inc rax
mov rcx, rbx
cmp rax, 5
jge 0x561b35
imul rdx, rax, 0x33
mov rsi, rdx
sar rdx, 0x3f
shr rdx, 0x3d
add rdx, rsi
sar rdx, 3
mov rdi, rdx
shl rdx, 3
sub rsi, rdx
cmp rsi, 0x40
sbb rdx, rdx
mov r8, qword [rsp + rax*8 + 0x48]
mov rbx, rcx
mov rcx, rsi
shl r8, cl
and r8, rdx
mov qword [rsp + 0x10], r8
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x18], rdx
xor ecx, ecx
jmp 0x561b60
test byte [rcx], al
mov rax, rcx
mov ebx, 0x20
mov rcx, rbx
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
movzx r8d, byte [rbx + rsi]
or r8d, edx
mov byte [rbx + rsi], r8b
inc rcx
nop dword [rax + rax]
cmp rcx, 8
jge 0x561ade
movzx edx, byte [rsp + rcx + 0x18]
lea rsi, [rdi + rcx]
cmp rsi, 0x20
jge 0x561ade
test byte [rbx], al
nop
cmp rsi, 0x20
jb 0x561b4c
mov rax, rsi
mov ecx, 0x20
call fcn.00462c60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.00460580
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00561a40
Function at 0x5638e0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x563b33
sub rsp, 0x50
mov qword [rsp + 0x48], rbp
lea rbp, [rsp + 0x48]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rcx
mov qword [rsp + 0x58], rax
add qword [rax + 0x58], rcx
mov rsi, qword [rax + 0x50]
test rsi, rsi
jle 0x563a10
nop dword [rax + rax]
cmp rsi, 0x40
ja 0x563b25
mov qword [rsp + 0x70], rdi
mov qword [rsp + 0x60], rbx
lea r8, [rsi - 0x40]
mov r9, r8
neg r8
cmp rcx, r8
cmovl r8, rcx
mov qword [rsp + 0x28], r8
sar r9, 0x3f
and r9, rsi
lea rsi, [rax + r9]
lea rsi, [rsi + 0x10]
cmp rbx, rsi
je 0x563982
mov rax, rsi
mov rcx, r8
call fcn.004635c0
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x28]
mov rsi, qword [rax + 0x50]
add rsi, r8
mov qword [rax + 0x50], rsi
cmp rsi, 0x40
jne 0x5639ec
mov qword [rsp], rax
lea rcx, [rax + 0x10]
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], 0x40
mov qword [rsp + 0x18], 0x40
call fcn.00563e00
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rax, qword [rsp + 0x58]
mov qword [rax + 0x50], 0
mov rcx, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov r8, qword [rsp + 0x28]
cmp rcx, r8
jb 0x563b1c
sub rdi, r8
mov rsi, rcx
sub rcx, r8
mov r9, rdi
neg rdi
sar rdi, 0x3f
and r8, rdi
add rbx, r8
jmp 0x563a20
mov rsi, rcx
mov r9, rdi
nop word [rax + rax]
nop
cmp rcx, 0x40
jl 0x563ac0
mov rdi, rcx
and rcx, 0xffffffffffffffc0
cmp r9, rcx
jb 0x563b14
mov qword [rsp + 0x38], r9
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x20], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rcx
mov qword [rsp + 0x18], r9
call fcn.00563e00
xorps xmm15, xmm15
mov r14, qword gs:[0x28]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x20]
cmp rcx, rax
jb 0x563b0f
mov rdx, qword [rsp + 0x38]
mov rsi, rax
sub rax, rdx
mov rdx, rcx
sub rcx, rsi
sar rax, 0x3f
and rax, rdx
and rax, 0xffffffffffffffc0
mov rdx, qword [rsp + 0x40]
lea rbx, [rdx + rax]
mov rax, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
nop dword [rax]
test rcx, rcx
je 0x563afe
cmp rcx, 0x40
mov edx, 0x40
cmovl rdx, rcx
lea rdi, [rax + 0x10]
cmp rbx, rdi
je 0x563afa
mov qword [rsp + 0x38], rdx
mov rax, rdi
mov rcx, rdx
call fcn.004635c0
mov rax, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x68]
mov qword [rax + 0x50], rdx
mov rax, rsi
xor ebx, ebx
xor ecx, ecx
mov rbp, qword [rsp + 0x48]
add rsp, 0x50
ret
call fcn.00462d20
mov rdx, r9
call fcn.00462ce0
mov rax, r8
nop
call fcn.00462d20
mov rax, rsi
mov ecx, 0x40
call fcn.00462d20
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
mov qword [rsp + 0x20], rdi
call fcn.00460580
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
jmp fcn.005638e0
Function at 0x566e20
Capabilities:
Encode data using base64

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x566f74
sub rsp, 0x78
mov qword [rsp + 0x70], rbp
lea rbp, [rsp + 0x70]
mov qword [rsp + 0x88], rbx
mov rcx, qword [rax]
mov qword [rsp + 0x20], rcx
movups xmm0, xmmword [rax + 8]
movups xmmword [rsp + 0x28], xmm0
movups xmm0, xmmword [rax + 0x18]
movups xmmword [rsp + 0x38], xmm0
lea rax, [rsp + 0x20]
nop
call fcn.00566240
mov qword [rsp + 0x10], 0
movups xmmword [rsp + 0x48], xmm15
movups xmmword [rsp + 0x50], xmm15
movups xmmword [rsp + 0x60], xmm15
mov rcx, qword [rsp + 0x20]
mov qword [rsp + 0x48], rcx
mov rcx, qword [rsp + 0x28]
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0x30]
mov qword [rsp + 0x58], rcx
mov rcx, qword [rsp + 0x38]
mov qword [rsp + 0x60], rcx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x68], rcx
mov rcx, qword [rsp + 0x88]
xor eax, eax
jmp 0x566ec4
inc rax
mov rcx, rbx
cmp rax, 5
jge 0x566f15
imul rdx, rax, 0x33
mov rsi, rdx
sar rdx, 0x3f
shr rdx, 0x3d
add rdx, rsi
sar rdx, 3
mov rdi, rdx
shl rdx, 3
sub rsi, rdx
cmp rsi, 0x40
sbb rdx, rdx
mov r8, qword [rsp + rax*8 + 0x48]
mov rbx, rcx
mov rcx, rsi
shl r8, cl
and r8, rdx
mov qword [rsp + 0x10], r8
mov rdx, qword [rsp + 0x10]
mov qword [rsp + 0x18], rdx
xor ecx, ecx
jmp 0x566f40
test byte [rcx], al
mov rax, rcx
mov ebx, 0x20
mov rcx, rbx
mov rbp, qword [rsp + 0x70]
add rsp, 0x78
ret
movzx r8d, byte [rbx + rsi]
or r8d, edx
mov byte [rbx + rsi], r8b
inc rcx
nop dword [rax + rax]
cmp rcx, 8
jge 0x566ebe
movzx edx, byte [rsp + rcx + 0x18]
lea rsi, [rdi + rcx]
cmp rsi, 0x20
jge 0x566ebe
test byte [rbx], al
nop
cmp rsi, 0x20
jb 0x566f2c
mov rax, rsi
mov ecx, 0x20
call fcn.00462c60
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
nop
call fcn.00460580
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00566e20
Function at 0x570040
Capabilities:
Parse credit card information

Disassembly:
lea ecx, [rax - 0x61]
cmp cl, 0x19
jbe 0x570058
lea ecx, [rax - 0x41]
cmp cl, 0x19
jbe 0x570058
lea ecx, [rax - 0x30]
cmp cl, 9
ja 0x570060
xor eax, eax
ret
cmp rbx, 3
je 0x57006c
cmp rbx, 4
jne 0x570099
cmp al, 0x2c
ja 0x570086
lea ecx, [rax - 0x21]
cmp cl, 1
jbe 0x570096
cmp al, 0x24
je 0x570096
nop dword [rax]
cmp al, 0x26
jae 0x570096
jmp 0x570099
lea ecx, [rax - 0x3a]
cmp cl, 4
jbe 0x570096
cmp al, 0x5b
je 0x570096
cmp al, 0x5d
jne 0x570099
xor eax, eax
ret
cmp al, 0x2f
ja 0x5700d2
nop dword [rax]
cmp al, 0x26
ja 0x5700b1
cmp al, 0x24
je 0x5700f1
cmp al, 0x26
je 0x5700f1
jmp 0x57016b
lea ecx, [rax - 0x2b]
cmp cl, 1
jbe 0x5700f1
lea ecx, [rax - 0x2d]
nop dword [rax]
cmp cl, 1
jbe 0x570168
cmp al, 0x2f
je 0x5700f1
jmp 0x57016b
cmp al, 0x3d
ja 0x5700e9
lea ecx, [rax - 0x3a]
cmp cl, 1
jbe 0x5700f1
nop
cmp al, 0x3d
je 0x5700f1
jmp 0x57016b
lea ecx, [rax - 0x3f]
cmp cl, 1
ja 0x570160
cmp rbx, 2
jg 0x570127
cmp rbx, 1
je 0x570121
nop dword [rax]
cmp rbx, 2
jne 0x57016b
cmp al, 0x2f
je 0x570112
cmp al, 0x3b
je 0x570112
cmp al, 0x2c
jne 0x570119
mov ecx, 1
jmp 0x57011e
cmp al, 0x3f
sete cl
mov eax, ecx
ret
cmp al, 0x3f
sete al
ret
cmp rbx, 5
jne 0x57014a
cmp al, 0x40
je 0x570139
cmp al, 0x2f
je 0x570139
cmp al, 0x3f
jne 0x570142
mov ecx, 1
nop
jmp 0x570147
cmp al, 0x3a
sete cl
mov eax, ecx
ret
cmp rbx, 6
je 0x570159
cmp rbx, 7
jne 0x57016b
xor eax, eax
ret
mov eax, 1
ret
cmp al, 0x5f
je 0x570168
cmp al, 0x7e
jne 0x57016b
xor eax, eax
ret
cmp rbx, 7
jne 0x570181
cmp al, 0x21
je 0x57017d
lea ecx, [rax - 0x28]
cmp cl, 2
ja 0x570181
xor eax, eax
nop
ret
mov eax, 1
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004056f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405700]
mov dword [rax], 1
mov rax, qword [0x00405710]
mov dword [rax], 1
mov rax, qword [0x004056e0]
mov dword [rax], 1
mov rax, qword [0x004055d0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004056d0]
mov dword [0x0040800c], ecx
mov eax, dword [rax]
test eax, eax
jne 0x4010b0
mov ecx, 1
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x00405690]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405580]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 2
call sym.__set_app_type
jmp 0x401084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x401108
cmp dx, 0x20b
jne 0x401067
cmp dword [rax + 0x84], 0xe
jbe 0x401067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x401067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x401067

Function at 0x401560
Capabilities:
Read file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x28
mov rax, qword [0x00408990]
cmp rax, qword [0x004089a8]
mov rcx, qword [0x00408980]
je 0x4015a0
lea rdx, [rax + 1]
mov qword [0x00408990], rdx
movzx eax, byte [rcx + rax]
mov dword [0x00408998], eax
add rsp, 0x28
pop rbx
pop r12
ret
mov r9, qword [0x00408970]
mov edx, 1
mov r8d, 0x10000
mov qword [0x00408990], 0
call sym.fread
mov rdx, qword [0x00408988]
mov qword [0x004089a8], rax
add rdx, rax
mov qword [0x00408988], rdx
test rax, rax
je 0x4015ef
mov rcx, qword [0x00408980]
mov rax, qword [0x00408990]
jmp 0x40157e
test rdx, rdx
lea rax, str.Error:_Empty_input_file__s_n
mov ecx, 2
mov rbx, qword [0x004089d0]
lea rdx, str.Error:_Truncated_input_file__s_n
cmovne rax, rdx
mov r12, rax
call qword [dbg.__acrt_iob_func]
mov r8, rbx
mov rdx, r12
mov rcx, rax
call sym.fprintf
mov ecx, 1
call sym.exit
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x4016e0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
mov r8, qword [0x004089e0]
test r8, r8
jne 0x401700
add rsp, 0x20
pop rbx
ret
mov r9, qword [0x004089b8]
mov rcx, qword [0x004089c0]
mov edx, 1
call sym.fwrite
cmp rax, qword [0x004089e0]
jne 0x401739
add qword [0x004089a0], rax
mov qword [0x004089e0], 0
add rsp, 0x20
pop rbx
ret
mov rbx, qword [0x00408978]
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.Error:_Cannot_write_output_file__s_n
mov rcx, rax
mov r8, rbx
call sym.fprintf
mov ecx, 1
call sym.exit
nop
nop dword [rax + rax]

Function at 0x401770
Capabilities:
Write file on windows

Disassembly:
mov rax, qword [0x004089e0]
lea rdx, [rax + 1]
mov qword [0x004089e0], rdx
mov rdx, qword [0x004089c0]
mov byte [rdx + rax], cl
cmp qword [0x004089e0], 0x10000
je 0x4017a0
ret
jmp sym.save_output
Function at 0x401850
Capabilities:
Write file on windows

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov ecx, 0x10000
call sym.malloc
mov ecx, 0x10000
mov qword [0x00408980], rax
mov rbx, rax
call sym.malloc
mov qword [0x004089c0], rax
test rbx, rbx
je 0x401985
test rax, rax
je 0x401985
mov qword [0x00408988], 0
lea rsi, [0x004089b0]
mov qword [0x00408990], 0
mov qword [0x004089a8], 0
mov qword [0x004089e0], 0
mov qword [0x004089a0], 0
mov dword [0x004089c8], 0
mov dword [0x004089d8], 0
mov dword [0x004089b0], 1
call dbg.read_interlaced_elias_gamma
mov edi, eax
test eax, eax
jle 0x401913
xor ebx, ebx
nop word [rax + rax]
call dbg.read_byte
add ebx, 1
mov ecx, eax
call dbg.write_byte
cmp edi, ebx
jne 0x401900
call sym.read_bit
test eax, eax
jne 0x401958
call dbg.read_interlaced_elias_gamma
mov edx, eax
jmp 0x401948
call dbg.read_byte
shl ebx, 7
mov dword [0x004089d8], 1
sar eax, 1
sub ebx, eax
mov dword [rsi], ebx
call dbg.read_interlaced_elias_gamma
lea edx, [rax + 1]
mov ecx, dword [rsi]
call sym.write_bytes
call sym.read_bit
test eax, eax
je 0x4018ea
call dbg.read_interlaced_elias_gamma
mov dword [rsi], eax
mov ebx, eax
cmp eax, 0x100
jne 0x401928
call sym.save_output
mov rax, qword [0x004089a8]
cmp qword [0x00408990], rax
jne 0x4019b4
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov ecx, 2
call qword [dbg.__acrt_iob_func]
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Error:_Insufficient_memory_n
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym.exit
mov rbx, qword [0x004089d0]
mov ecx, 2
call qword [dbg.__acrt_iob_func]
lea rdx, str.Error:_Input_file__s_too_long_n
mov rcx, rax
mov r8, rbx
call sym.fprintf
mov ecx, 1
call sym.exit
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x401ea0
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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]
Function at 0x401f10
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00408614]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x4020b8
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401f5c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x401fe7
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401f40
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x4020f2
mov rax, qword [0x00408618]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00408618]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x402101
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x401fe0
sub eax, 4
and eax, 0xfffffffb
jne 0x402070
add dword [0x00408614], 1
cmp ebx, 8
jae 0x402018
test bl, 4
jne 0x4020c0
test ebx, ebx
je 0x402009
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x4020e0
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 0x402009
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 0x40204a
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 [0x00408618]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x401fe0
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor edi, edi
jmp 0x401f67
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402009
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402009
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
mov rax, qword [0x00408618]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x4028e0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00408900]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004088e0]
test rbx, rbx
je 0x402934
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x40292b
test r12, r12
je 0x40292b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402910
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402b60
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x402b70
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x402b80
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402bc5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x402bbc
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402bc7
add rax, 0x28
cmp rax, r9
jne 0x402ba8
xor eax, eax
ret

Function at 0x402c70
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004055d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402ce9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ce9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402ce6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402cdd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402ce9
add r8, 0x28
cmp r8, r9
jne 0x402cc8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402dd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004055d0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402e3f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402e3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x402e3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x402e34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402e48
add rax, 0x28
cmp rax, r9
jne 0x402e20
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004055d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402ed8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ed8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402ed8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402ed8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x402ecc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402ee0
add rdx, 0x28
cmp rdx, r10
jne 0x402eb8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402ef0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402efe
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402ed5
test r8d, r8d
jg 0x402ee8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1409d14f8
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409d167f
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1409d1529
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409d150f
add dl, dl
jne 0x1409d1536
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409d1596
xor eax, eax
add dl, dl
jne 0x1409d1545
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409d164d
add dl, dl
jne 0x1409d1556
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d1563
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d1570
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d157d
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409d158a
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1409d151e
mov eax, 1
add dl, dl
jne 0x1409d15a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409d15b3
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409d159b
sub eax, ebx
mov ebx, 1
jne 0x1409d15ec
mov ecx, 1
add dl, dl
jne 0x1409d15ce
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409d15db
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409d15c3
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409d151e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1409d1608
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1409d1615
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1409d15fd
cmp eax, 0x7d00
jae 0x1409d163b
cmp eax, 0x500
jb 0x1409d1636
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409d151e
cmp eax, 0x7f
ja 0x1409d163e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1409d151e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409d1672
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1409d151e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20