joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6303efe0
Capabilities:
Query environment variable

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x90
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x40], xmm7
movups xmmword [rsp + 0x50], xmm8
movups xmmword [rsp + 0x60], xmm9
movups xmmword [rsp + 0x70], xmm10
movups xmmword [rsp + 0x80], xmm11
movss xmm11, dword [rsp + 0xe0]
mov ebp, dword [rsp + 0xe8]
mov ebx, edx
movups xmm6, xmm2
movups xmm10, xmm3
cmp edx, 2
jbe 0x6303f039
xorps xmm0, xmm0
comiss xmm0, xmm2
jb 0x6303f070
movups xmm6, xmmword [rsp + 0x30]
movups xmm7, xmmword [rsp + 0x40]
movups xmm8, xmmword [rsp + 0x50]
movups xmm9, xmmword [rsp + 0x60]
movups xmm11, xmmword [rsp + 0x80]
movups xmm10, xmmword [rsp + 0x70]
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp 0x6303ea40
mov qword [rsp + 0x28], rcx
xorps xmm7, xmm7
cvtss2sd xmm6, xmm6
cvtss2sd xmm11, xmm11
call fcn.6304fbd0
mov rcx, qword [rsp + 0x28]
movzx esi, word [rax]
call fcn.6304fbe0
cmp bpl, 1
movzx edi, word [rax]
sbb ecx, ecx
cvtsi2sd xmm9, esi
xor r12d, r12d
and ecx, 7
cvtsi2sd xmm8, edi
add ecx, 2
call sub.OPENGL32.dll_glBegin
movupd xmm0, xmm9
movupd xmm1, xmm8
inc r12d
addsd xmm0, xmm6
addsd xmm1, xmm7
call sub.OPENGL32.dll_glVertex2d
cvtss2sd xmm0, xmm10
movupd xmm3, xmm11
movupd xmm2, xmm0
mulsd xmm3, xmm6
movupd xmm1, xmm6
mulsd xmm2, xmm7
mulsd xmm0, xmm1
mulsd xmm7, xmm11
subsd xmm3, xmm2
addsd xmm7, xmm0
movupd xmm6, xmm3
cmp ebx, r12d
ja 0x6303f0b4
movups xmm6, xmmword [rsp + 0x30]
movups xmm7, xmmword [rsp + 0x40]
movups xmm8, xmmword [rsp + 0x50]
movups xmm9, xmmword [rsp + 0x60]
movups xmm11, xmmword [rsp + 0x80]
movups xmm10, xmmword [rsp + 0x70]
add rsp, 0x90
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.63007220

Function at 0x6303f740
Capabilities:
Log keystrokes via polling

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x10
call rsi
mov ecx, 0x11
movsx ebx, ax
call rsi
shr ebx, 0x1f
mov ecx, 0x12
shr eax, 0xe
and eax, 2
or ebx, eax
call rsi
mov ecx, 0x5b
shr eax, 0xd
and eax, 4
or ebx, eax
call rsi
mov ecx, 0x5c
shr eax, 0xc
and eax, 8
or ebx, eax
call rsi
mov ecx, 0x90
shr eax, 0xc
and eax, 8
or ebx, eax
call rsi
mov ecx, 0x91
shl eax, 4
and eax, 0x10
or ebx, eax
call rsi
mov ecx, 0x14
shl eax, 5
and eax, 0x20
or ebx, eax
call rsi
shl eax, 6
and eax, 0x40
or eax, ebx
add rsp, 0x28
pop rbx
pop rsi
ret
Function at 0x6303fdc0
Capabilities:
Query environment variable

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x58
movups xmmword [rsp + 0x20], xmm6
movups xmmword [rsp + 0x30], xmm7
movups xmmword [rsp + 0x40], xmm8
mov r12, rcx
mov ebx, edx
call fcn.630515b0
test al, al
jne 0x6303fe19
movups xmm6, xmmword [rsp + 0x20]
movups xmm7, xmmword [rsp + 0x30]
mov r8d, 0x119
lea rdx, str.src_OpenGL.cpp
movups xmm8, xmmword [rsp + 0x40]
lea rcx, str.rect.isValid__
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.63023040
cmp bl, 1
sbb ecx, ecx
and ecx, 5
add ecx, 2
call sub.OPENGL32.dll_glBegin
mov rcx, r12
call fcn.63051560
mov rcx, r12
mov esi, dword [rax]
call fcn.63051570
mov rcx, r12
mov ebx, dword [rax]
cvtsi2sd xmm8, esi
call fcn.63051650
mov rcx, r12
cvtsi2sd xmm6, ebx
mov edi, dword [rax]
call fcn.630516a0
xorps xmm1, xmm1
add esi, edi
movups xmm0, xmm1
mov r12d, dword [rax]
call sub.OPENGL32.dll_glTexCoord2f
cvtsi2sd xmm7, esi
movupd xmm0, xmm8
movupd xmm1, xmm6
add ebx, r12d
call sub.OPENGL32.dll_glVertex2d
movss xmm0, dword [0x631b7d90]
xorps xmm1, xmm1
call sub.OPENGL32.dll_glTexCoord2f
movupd xmm1, xmm6
movupd xmm0, xmm7
call sub.OPENGL32.dll_glVertex2d
cvtsi2sd xmm6, ebx
movss xmm1, dword [0x631b7d90]
movups xmm0, xmm1
call sub.OPENGL32.dll_glTexCoord2f
movupd xmm0, xmm7
movupd xmm1, xmm6
call sub.OPENGL32.dll_glVertex2d
movss xmm1, dword [0x631b7d90]
xorps xmm0, xmm0
call sub.OPENGL32.dll_glTexCoord2f
movupd xmm1, xmm6
movupd xmm0, xmm8
call sub.OPENGL32.dll_glVertex2d
nop
movups xmm6, xmmword [rsp + 0x20]
movups xmm7, xmmword [rsp + 0x30]
movups xmm8, xmmword [rsp + 0x40]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop r12
jmp fcn.63007220

Function at 0x63040310
Capabilities:
Query environment variable

Disassembly:
xorps xmm1, xmm1
mov rax, qword [rcx + 0x10]
movsd xmm0, qword [rax + 0xd8]
comisd xmm0, xmm1
ja 0x6302f6ca
jmp fcn.63041270
ret
push r12
sub rsp, 0x20
mov r12, rcx
lea rcx, str.DPF_SCALE_FACTOR
call sub.msvcrt.dll_getenv
mov rcx, rax
test rax, rax
je 0x6304033c
call sub.msvcrt.dll_atof
maxsd xmm0, qword [0x631b7ab8]
jmp 0x63040357
test r12, r12
je 0x6304034f
mov rcx, r12
add rsp, 0x20
pop r12
jmp 0x6302f6b0
movsd xmm0, qword [0x631b7ab8]
add rsp, 0x20
pop r12
ret

Function at 0x6304a3e0
Capabilities:
Query environment variable

Disassembly:
mov r8, qword [rcx]
test r8, r8
jne 0x6304a408
mov r9d, 0xf2
lea r8, str.src_.._.._distrho_extra_String.hpp
lea rdx, str.fBuffer___nullptr
lea rcx, [0x631b9e71]
jmp fcn.63026290
cmp byte [rcx + 0x10], 0
je 0x6304a416
mov rcx, r8
jmp fcn.63020d78
ret
Function at 0x6306c720
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x58
movups xmmword [rsp + 0x30], xmm6
movups xmmword [rsp + 0x40], xmm7
mov r12, rdx
mov rbx, r8
mov rdi, rcx
mov edx, 1
mov rcx, r12
call fcn.6306dca0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov esi, 1
xorps xmm7, xmm7
call fcn.6306bef0
mov ebp, 8
mov r14d, 1
xorps xmm6, xmm6
mov r13, rax
rdtsc
mov eax, eax
shl rdx, 0x20
or rdx, rax
xor eax, eax
mov r15, rdx
mov r8, qword [r12]
mov dword [rsp + 0x2c], eax
mov rdx, rbx
mov rcx, r12
call qword [r8]
mov eax, dword [rsp + 0x2c]
inc eax
cmp eax, esi
jne 0x6306c787
rdtsc
shl rdx, 0x20
mov eax, eax
or rdx, rax
cvtsi2sd xmm1, rdx
jns 0x6306c7c9
mov rcx, rdx
and edx, 1
shr rcx, 1
or rcx, rdx
cvtsi2sd xmm1, rcx
addsd xmm1, xmm1
cvtsi2sd xmm0, r15
test r15, r15
jns 0x6306c7e9
mov rcx, r15
and r15d, 1
shr rcx, 1
or rcx, r15
cvtsi2sd xmm0, rcx
addsd xmm0, xmm0
mov rax, qword [rdi + 0x10]
subsd xmm1, xmm0
test rax, rax
je 0x6306c805
mov r8d, 1
mov rcx, rbx
call rax
movupd xmm1, xmm0
comisd xmm7, xmm1
ja 0x6306c759
comisd xmm6, xmm1
ja 0x6306c81a
test r14d, r14d
je 0x6306c81e
movupd xmm6, xmm1
mov r8, r13
mov rdx, rbx
mov rcx, rdi
call fcn.6306bc70
comisd xmm0, xmmword [0x631ba728]
ja 0x6306c841
xor r14d, r14d
dec ebp
jne 0x6306c777
comisd xmm6, xmmword [0x631ba730]
jb 0x6306c87c
xor edx, edx
mov rcx, r12
call fcn.6306dca0
cvtsi2sd xmm0, esi
movups xmm7, xmmword [rsp + 0x40]
divsd xmm6, xmm0
movupd xmm0, xmm6
movups xmm6, xmmword [rsp + 0x30]
add rsp, 0x58
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
add esi, esi
jmp 0x6306c761

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

Disassembly:
sub rsp, 0x28
mov qword [rdx], rcx
mov r10, rdx
mov edx, dword [rsp + 0x50]
mov rcx, r8
mov r11, r8
call fcn.631603a0
mov r8d, eax
cmp eax, 0xffffffff
je 0x63072d90
mov rdx, r11
mov rcx, r10
add rsp, 0x28
jmp fcn.63162cd0
xor eax, eax
add rsp, 0x28
ret
Function at 0x2fc4cac90
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4cb692
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f0108]
test eax, eax
je 0x2fc4cb72a
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f0110]
mov qword [rbp - 8], rax
jmp 0x2fc4cb70e
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 0x2fc4cb702
cmp qword [rbp - 0x10], 0
je 0x2fc4cb702
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 0x2fc4cb6c8
lea rax, [0x2fc4f00e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4cb72b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4cb830
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 0x2fc4cb858
mov eax, 0
jmp 0x2fc4cb8a6
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 0x2fc4cb881
mov eax, 0
jmp 0x2fc4cb8a6
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 0x2fc4cb8a1
mov eax, 0
jmp 0x2fc4cb8a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4cb8ac
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 0x2fc4cb92a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4cb921
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 0x2fc4cb921
mov rax, qword [rbp - 8]
jmp 0x2fc4cb93f
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 0x2fc4cb8f4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d7e00
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d8802
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4fd108]
test eax, eax
je 0x2fc4d889a
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4fd110]
mov qword [rbp - 8], rax
jmp 0x2fc4d887e
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 0x2fc4d8872
cmp qword [rbp - 0x10], 0
je 0x2fc4d8872
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 0x2fc4d8838
lea rax, [0x2fc4fd0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d889b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d89a0
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 0x2fc4d89c8
mov eax, 0
jmp 0x2fc4d8a16
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 0x2fc4d89f1
mov eax, 0
jmp 0x2fc4d8a16
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 0x2fc4d8a11
mov eax, 0
jmp 0x2fc4d8a16
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4d8a1c
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 0x2fc4d8a9a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4d8a91
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 0x2fc4d8a91
mov rax, qword [rbp - 8]
jmp 0x2fc4d8aaf
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 0x2fc4d8a64
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400019f4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001a3e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001a3e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001a3e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001a3e
cmp dword [rcx + 0x84], 0xe
jbe 0x140001a3e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001a40
xor al, al
add rsp, 0x28
ret

Function at 0x1805f0058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1805f01df
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 0x1805f0089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805f006f
add dl, dl
jne 0x1805f0096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805f00f6
xor eax, eax
add dl, dl
jne 0x1805f00a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1805f01ad
add dl, dl
jne 0x1805f00b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f00c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f00d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f00dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1805f00ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1805f007e
mov eax, 1
add dl, dl
jne 0x1805f0106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1805f0113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805f00fb
sub eax, ebx
mov ebx, 1
jne 0x1805f014c
mov ecx, 1
add dl, dl
jne 0x1805f012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805f013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805f0123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805f007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1805f0168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1805f0175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1805f015d
cmp eax, 0x7d00
jae 0x1805f019b
cmp eax, 0x500
jb 0x1805f0196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805f007e
cmp eax, 0x7f
ja 0x1805f019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1805f007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1805f01d2
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 0x1805f007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x2fc4d4990
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4d5392
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f9108]
test eax, eax
je 0x2fc4d542a
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f9110]
mov qword [rbp - 8], rax
jmp 0x2fc4d540e
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 0x2fc4d5402
cmp qword [rbp - 0x10], 0
je 0x2fc4d5402
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 0x2fc4d53c8
lea rax, [0x2fc4f90e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d542b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d5530
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 0x2fc4d5558
mov eax, 0
jmp 0x2fc4d55a6
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 0x2fc4d5581
mov eax, 0
jmp 0x2fc4d55a6
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 0x2fc4d55a1
mov eax, 0
jmp 0x2fc4d55a6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400013b0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov rcx, qword [rsp + 0x90]
call fcn.1400080f0
movzx eax, al
test eax, eax
je 0x1400013f7
lea rdx, str.Shellcode_is_empty.
lea rcx, [rsp + 0x50]
call fcn.140004a20
lea rdx, [0x140038640]
lea rcx, [rsp + 0x50]
call fcn.14000c858
mov rcx, qword [rsp + 0x98]
call fcn.1400080c0
movzx eax, al
test eax, eax
je 0x140001416
mov qword [rsp + 0x28], 0
jmp 0x14000142b
mov rcx, qword [rsp + 0x98]
call fcn.140009860
inc rax
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x90]
call fcn.140009870
add rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, qword [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x14000148a
lea rdx, str.Memory_allocation_failed.
lea rcx, [rsp + 0x68]
call fcn.140004a20
lea rdx, [0x140038640]
lea rcx, [rsp + 0x68]
call fcn.14000c858
mov rcx, qword [rsp + 0x90]
call fcn.140009870
mov qword [rsp + 0x38], rax
mov rcx, qword [rsp + 0x90]
call fcn.140007cb0
mov rcx, qword [rsp + 0x38]
mov r8, rcx
mov rdx, rax
mov rcx, qword [rsp + 0x20]
call fcn.1400279a0
mov rcx, qword [rsp + 0x98]
call fcn.1400080c0
movzx eax, al
test eax, eax
jne 0x140001529
mov rcx, qword [rsp + 0x98]
call fcn.140009860
inc rax
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x98]
call fcn.1400079b0
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x90]
call fcn.140009870
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x40]
mov r8, rcx
mov rcx, qword [rsp + 0x48]
mov rdx, rcx
mov rcx, rax
call fcn.1400279a0
call qword [rsp + 0x20]
mov r8d, 0x8000
xor edx, edx
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualFree]
add rsp, 0x88
ret
Function at 0x140001550
Capabilities:
Create http request
Read data from internet
Receive data

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov rax, qword [0x14003a080]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
mov dword [rsp + 0x34], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, str.MyAgent
call qword [sym.imp.WININET.dll_InternetOpenA]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400015c7
lea rdx, str.InternetOpen_failed.
lea rcx, [rsp + 0x78]
call fcn.140004a20
lea rdx, [0x140038640]
lea rcx, [rsp + 0x78]
call fcn.14000c858
mov rcx, qword [rsp + 0x4d8]
call fcn.1400079b0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x80000000
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetOpenUrlA]
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000162e
lea rdx, str.InternetOpenUrl_failed.
lea rcx, [rsp + 0x90]
call fcn.140004a20
lea rdx, [0x140038640]
lea rcx, [rsp + 0x90]
call fcn.14000c858
lea rcx, [rsp + 0x50]
call fcn.1400040c0
nop
lea r9, [rsp + 0x30]
mov r8d, 0x400
lea rdx, [rsp + 0xb0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x1400016a8
cmp dword [rsp + 0x30], 0
jbe 0x1400016a8
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call fcn.140008130
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov eax, dword [rsp + 0x30]
lea rax, [rsp + rax + 0xb0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb0]
mov r8, qword [rsp + 0x48]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x50]
call fcn.140003360
jmp 0x140001639
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WININET.dll_InternetCloseHandle]
lea rdx, [rsp + 0x50]
mov rcx, qword [rsp + 0x4d0]
call fcn.140003fc0
mov eax, dword [rsp + 0x34]
or eax, 1
mov dword [rsp + 0x34], eax
lea rcx, [rsp + 0x50]
call fcn.140004fd0
mov rax, qword [rsp + 0x4d0]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.14000b9c0
add rsp, 0x4c8
ret