joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14004d9a0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], r8
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov rsi, rdx
lea r13, [rsp + 0xa8]
movabs r12, 0xff00ff00ff00ff00
mov qword [r11 - 0x70], r12
mov qword [r11 - 0x68], r13
mov rdi, qword [r13]
xor rdi, r12
mov qword [r11 - 0x78], rdi
xor ebp, ebp
mov qword [r13], rbp
mov qword [rdx], rbp
mov dword [rdx + 8], ebp
mov qword [r11 + 0x10], 0xc
mov qword [r11 + 0x20], rdx
lea rcx, [rsp + 0xa8]
mov qword [r11 - 0x58], r12
mov qword [r11 - 0x50], rcx
mov rax, qword [rcx]
xor rax, r12
mov qword [r11 - 0x60], rax
mov qword [rcx], rbp
mov ebx, ebp
lea r15, [0x14004ed30]
lea r14, [0x140000000]
mov rax, qword [0x14008dbd0]
test rax, rax
je 0x14004da78
mov ecx, ebp
cmp rax, r15
je 0x14004da67
inc ebx
mov qword [rsp + 0xb0], 1
lea rcx, [rsp + 0xb0]
call fcn.14004cf70
mov ecx, ebx
mov rax, qword [r14 + rbx*8 + 0x8dbd0]
test rax, rax
jne 0x14004da36
jmp 0x14004da78
mov r10, qword [r14 + rcx*8 + 0x8aca0]
test r10, r10
jne 0x14004db5f
mov edx, 0x1f4
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r10, rax
test rax, rax
jne 0x14004daa1
mov r10, rbp
jmp 0x14004db3e
mov rax, r15
mov rcx, r10
mov edx, 3
nop dword [rax]
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14004dab0
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
mov rax, qword [0x14008cbf0]
mov qword [r14 + rax*8 + 0x8dbd0], r15
mov qword [r14 + rax*8 + 0x8aca0], r10
inc rax
mov qword [0x14008cbf0], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0xc0]
lea rdx, [0x14008ab10]
lea rcx, [0x140040310]
call r10
nop
xor rdi, r12
mov qword [r13], rdi
mov rax, rsi
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004dbb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rdx
mov qword [r11 + 8], rcx
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x70
lea r13, [rsp + 0xa8]
movabs r12, 0xff00ff00ff00ff00
mov qword [r11 - 0x68], r12
mov qword [r11 - 0x60], r13
mov rdi, qword [r13]
xor rdi, r12
mov qword [r11 - 0x70], rdi
mov qword [r13], 0
mov dword [r11 + 8], 0
mov qword [r11 + 0x20], 4
lea rax, [r11 + 8]
mov qword [r11 - 0x78], rax
lea rax, [rsp + 0xa8]
mov qword [r11 - 0x50], r12
mov qword [r11 - 0x48], rax
mov rsi, qword [rax]
xor rsi, r12
mov qword [r11 - 0x58], rsi
mov qword [rax], 0
xor ebx, ebx
lea r15, [0x14004ed30]
lea r14, [0x140000000]
mov rax, qword [0x14008bf60]
test rax, rax
je 0x14004dc92
xor ecx, ecx
nop
cmp rax, r15
je 0x14004dc81
inc ebx
mov qword [rsp + 0xc0], 1
lea rcx, [rsp + 0xc0]
call fcn.14004cf70
mov ecx, ebx
mov rax, qword [r14 + rbx*8 + 0x8bf60]
test rax, rax
jne 0x14004dc50
jmp 0x14004dc92
mov r10, qword [r14 + rcx*8 + 0x8cf20]
test r10, r10
jne 0x14004dd71
mov edx, 0x1f4
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r10, rax
test rax, rax
je 0x14004dd50
mov rax, r15
mov rcx, r10
mov edx, 3
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14004dcc2
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
mov rax, qword [0x14008e550]
mov qword [r14 + rax*8 + 0x8bf60], r15
mov qword [r14 + rax*8 + 0x8cf20], r10
inc rax
mov qword [0x14008e550], rax
lea rax, [rsp + 0xc8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
lea r8, [rsp + 0xb8]
lea rdx, [0x14008ab10]
lea rcx, [0x140040310]
call r10
nop
xor rsi, r12
lea rax, [rsp + 0xa8]
mov qword [rax], rsi
mov eax, dword [rsp + 0xb0]
xor rdi, r12
mov qword [r13], rdi
add rsp, 0x70
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x14004dfb0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
movss dword [rsp + 0x18], xmm2
mov r11, rsp
mov qword [r11 + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x78
lea r15, [rsp + 0xa8]
movabs r14, 0xff00ff00ff00ff00
mov qword [r11 - 0x68], r14
mov qword [r11 - 0x60], r15
mov rdi, qword [r15]
xor rdi, r14
mov qword [r11 - 0x70], rdi
mov qword [r11 + 0x10], 4
mov qword [r11 + 0x20], rdx
lea rax, [r11 + 0x18]
mov qword [r11 - 0x78], rax
lea rax, [rsp + 0xa8]
mov qword [r11 - 0x50], r14
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x58], r14
mov qword [rax], 0
xor ebx, ebx
lea rbp, [0x14004ed30]
lea rsi, [0x140000000]
mov rax, qword [0x14008e890]
test rax, rax
je 0x14004e082
xor ecx, ecx
nop word [rax + rax]
cmp rax, rbp
je 0x14004e071
inc ebx
mov qword [rsp + 0xb0], 1
lea rcx, [rsp + 0xb0]
call fcn.14004cf70
mov ecx, ebx
mov rax, qword [rsi + rbx*8 + 0x8e890]
test rax, rax
jne 0x14004e040
jmp 0x14004e082
mov r10, qword [rsi + rcx*8 + 0x8d8a0]
test r10, r10
jne 0x14004e161
mov edx, 0x1f4
xor ecx, ecx
mov r9d, 0x40
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r10, rax
test rax, rax
je 0x14004e140
mov rax, rbp
mov rcx, r10
mov edx, 3
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
lea rcx, [rcx + 0x80]
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx - 0x10], xmm1
lea rax, [rax + 0x80]
sub rdx, 1
jne 0x14004e0b2
movups xmm0, xmmword [rax]
movups xmmword [rcx], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + 0x10], xmm1
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x20], xmm0
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x30], xmm1
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x40], xmm0
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x50], xmm1
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x60], xmm0
mov eax, dword [rax + 0x70]
mov dword [rcx + 0x70], eax
mov rax, qword [0x14008e558]
mov qword [rsi + rax*8 + 0x8e890], rbp
mov qword [rsi + rax*8 + 0x8d8a0], r10
inc rax
mov qword [0x14008e558], rax
lea rax, [rsp + 0xb8]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xc8]
lea r8, [rsp + 0x30]
lea rdx, [0x14008ab10]
lea rcx, [0x140040370]
call r10
nop
movd xmm0, eax
cvtdq2ps xmm0, xmm0
xor rdi, r14
mov qword [r15], rdi
add rsp, 0x78
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14004fda0
Capabilities:
Hash data with md5

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x10], rdx
push rdi
push r14
push r15
sub rsp, 0xc0
mov rsi, rdx
mov rdi, rcx
xor r15d, r15d
mov byte [rsp + 0x50], r15b
mov qword [rax - 0x44], r15
mov dword [rax - 0x3c], 0x67452301
mov dword [rax - 0x38], 0xefcdab89
mov dword [rax - 0x34], 0x98badcfe
mov dword [rax - 0x30], 0x10325476
cmp qword [rdx + 0x18], 0xf
jbe 0x14004fdf7
mov rdx, qword [rdx]
mov r8d, dword [rsi + 0x10]
lea rcx, [rsp + 0x50]
call fcn.14004fa70
lea rcx, [rsp + 0x50]
call fcn.14004fb40
cmp byte [rsp + 0x50], 0
jne 0x14004fe30
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
jmp 0x14004ff70
lea rbx, [rsp + 0xac]
lea rbp, [rsp + 0x28]
mov r14d, 0x10
nop dword [rax]
nop word [rax + rax]
movzx r8d, byte [rbx]
lea rdx, [0x14005a190]
mov rcx, rbp
call fcn.140019520
add rbp, 2
lea rbx, [rbx + 1]
sub r14, 1
jne 0x14004fe50
mov byte [rsp + 0x48], r14b
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], r15
lea rax, [rsp + 0x28]
mov rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x14004fe90
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x14004ffdc
cmp rbx, 0xf
ja 0x14004fed7
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], 0xf
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rbx + rdi], 0
jmp 0x14004ff70
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x14004ff0c
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140050370
test rax, rax
je 0x14004ff41
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x14004ff50
mov rbp, rax
mov ecx, 0x16
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
test rcx, rcx
jne 0x14004ff29
mov r14, r15
jmp 0x14004ff50
cmp rcx, 0x1000
jb 0x14004ff48
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x14004ffe2
jmp 0x14004fef1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140050370
mov r14, rax
mov qword [rdi], r14
mov qword [rdi + 0x10], rbx
mov qword [rdi + 0x18], rbp
mov r8, rbx
lea rdx, [rsp + 0x28]
mov rcx, r14
call sub.VCRUNTIME140.dll_memcpy
mov byte [r14 + rbx], 0
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x14004ffa6
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x14004ffa1
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14004ffd5
mov rcx, r8
call fcn.1400500b8
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rax, rdi
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14003ff80
nop
call fcn.14003fee0
int3
Function at 0x140050a98
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140050ae2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140050ae2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140050ae2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140050ae2
cmp dword [rcx + 0x84], 0xe
jbe 0x140050ae2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140050ae4
xor al, al
add rsp, 0x28
ret
Function at 0x1417e1058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1417e11df
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 0x1417e1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417e106f
add dl, dl
jne 0x1417e1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417e10f6
xor eax, eax
add dl, dl
jne 0x1417e10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417e11ad
add dl, dl
jne 0x1417e10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417e10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417e107e
mov eax, 1
add dl, dl
jne 0x1417e1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417e1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417e10fb
sub eax, ebx
mov ebx, 1
jne 0x1417e114c
mov ecx, 1
add dl, dl
jne 0x1417e112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417e113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417e1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417e107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417e1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417e1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417e115d
cmp eax, 0x7d00
jae 0x1417e119b
cmp eax, 0x500
jb 0x1417e1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417e107e
cmp eax, 0x7f
ja 0x1417e119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417e107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417e11d2
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 0x1417e107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x004054f0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x00405500]
mov dword [rax], 1
mov rax, qword [0x00405510]
mov dword [rax], 1
mov rax, qword [0x004054e0]
mov dword [rax], 1
mov rax, qword [0x004053d0]
cmp word [rax], 0x5a4d
jne 0x401067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x4010c0
mov rax, qword [0x004054d0]
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 [0x00405490]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x00405380]
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 0x401f20
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 0x401f90
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 0x402138
mov rax, qword [0x00408618]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x401fdc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402067
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x401fc0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x402172
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 0x402181
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402060
sub eax, 4
and eax, 0xfffffffb
jne 0x4020f0
add dword [0x00408614], 1
cmp ebx, 8
jae 0x402098
test bl, 4
jne 0x402140
test ebx, ebx
je 0x402089
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x402160
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 0x402089
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 0x4020ca
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 0x402060
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 0x401fe7
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402089
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402089
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 0x402960
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 0x4029b4
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 0x4029ab
test r12, r12
je 0x4029ab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x402990
lea rcx, [0x00408900]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x402be0
Capabilities:
Parse pe header

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

Function at 0x402c00
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 0x402c45
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 0x402c3c
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402c47
add rax, 0x28
cmp rax, r9
jne 0x402c28
xor eax, eax
ret

Function at 0x402cf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004053d0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402d69
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402d69
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 0x402d66
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 0x402d5d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402d69
add r8, 0x28
cmp r8, r9
jne 0x402d48
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x402e50
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x004053d0]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x402ebf
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402ebf
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 0x402ebd
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 0x402eb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x402ec8
add rax, 0x28
cmp rax, r9
jne 0x402ea0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x402ee0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x004053d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x402f58
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402f58
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x402f58
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402f58
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 0x402f4c
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x402f60
add rdx, 0x28
cmp rdx, r10
jne 0x402f38
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x402f70
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x402f7e
mov edx, dword [rax + 0xc]
test edx, edx
je 0x402f55
test r8d, r8d
jg 0x402f68
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1400012b0
Capabilities:
Download url
Receive data

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rbx, rdx
mov rdx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x1400012e5
mov r8, qword [rcx]
add r8, qword [rcx + 0x10]
mov rdx, qword [rcx]
jmp 0x1400012ec
mov r8, qword [rcx + 0x10]
add r8, rcx
lea rcx, [rsp + 0x50]
call fcn.1400036c0
nop
cmp qword [rbx + 0x18], 0xf
jbe 0x14000130a
mov r8, qword [rbx]
add r8, qword [rbx + 0x10]
mov rbx, qword [rbx]
jmp 0x140001311
mov r8, qword [rbx + 0x10]
add r8, rbx
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400036c0
lea r8, [rsp + 0x30]
cmp qword [rsp + 0x48], 7
cmova r8, qword [rsp + 0x30]
lea rdx, [rsp + 0x50]
cmp qword [rsp + 0x68], 7
cmova rdx, qword [rsp + 0x50]
xor edi, edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor ecx, ecx
call qword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov ebx, eax
shr ebx, 0x1f
xor bl, 1
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x14000139f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000139a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000139a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003d34
movdqa xmm0, xmmword [0x140005660]
movdqu xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x30], di
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400013f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400013f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400013f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003d34
movzx eax, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.140003cd0
mov rbx, qword [rsp + 0x90]
add rsp, 0x80
pop rdi
ret