joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140105b30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x1401690f8]
test ecx, ecx
je 0x140105c46
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140105b62
mov rdi, rax
cmp qword [rax + 8], 0
jne 0x140105c40
mov ecx, dword [0x1401690f8]
test ecx, ecx
je 0x140105c68
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140105c85
mov rdi, rax
test rax, rax
jne 0x140105bec
mov qword [rsp + 0x28], 0
lea rax, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
mov qword [rsp + 0x20], rax
mov rax, qword [0x1401ac748]
movzx eax, byte [rax]
mov ecx, 0x18
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140105ca4
mov rdi, rax
mov rax, qword [rsp + 0x30]
mov qword [rdi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rdi], xmm0
mov ecx, dword [0x1401690f8]
test ecx, ecx
je 0x140105c91
dec ecx
mov rdx, rdi
call fcn.140166a74
test rsi, rsi
je 0x140105c06
mov rax, qword [rsi]
mov qword [rsi], 0
test rax, rax
je 0x140105c08
mov rax, qword [rsi + 8]
jmp 0x140105c08
xor eax, eax
mov rdx, qword [rdi + 8]
mov rcx, qword [rdi + 0x10]
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x28], rcx
mov qword [rdi + 8], 1
mov qword [rdi + 0x10], rax
test rdx, rdx
je 0x140105c40
test rcx, rcx
je 0x140105c40
lock dec qword [rcx]
jne 0x140105c40
lea rcx, [rsp + 0x28]
call dbg.drop_slow<std::sync::mutex::Mutex<alloc::vec::Vec<u8, alloc::alloc::Global>>, alloc::alloc::Global>
add rdi, 0x10
jmp 0x140105c87
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140105b54
jmp 0x140105b62
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140105b81
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell_core::option::Option_alloc::sync::Arc_std::sync::mutex::Mutex_alloc::vec::Vec_u8__alloc::alloc::Global____alloc::alloc::Global____
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
jmp 0x140105be4
mov ecx, 8
mov edx, 0x18
call dbg.handle_alloc_error
ud2
Function at 0x140105cd0
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov rsi, rcx
mov ecx, dword [0x140169118]
test ecx, ecx
je 0x140105d03
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jb 0x140105d1c
mov rcx, rax
cmp qword [rax + 8], 0
je 0x140105d1c
add rcx, 0x10
jmp 0x140105e19
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 2
jae 0x140105cf0
mov ecx, dword [0x140169118]
test ecx, ecx
je 0x140105dfa
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x140105e17
mov rdi, rax
test rax, rax
jne 0x140105d92
mov rax, qword [0x1401ac748]
movzx eax, byte [rax]
mov ecx, 0x20
mov edx, 8
call sym.__rust_alloc
test rax, rax
je 0x140105e36
mov rdi, rax
lea rax, dbg.destroy_value_core::cell::Cell__usize__bool___
mov qword [rdi], rax
mov qword [rdi + 8], 0
mov ecx, dword [0x140169118]
test ecx, ecx
je 0x140105e23
dec ecx
mov rdx, rdi
call fcn.140166a74
test rsi, rsi
je 0x140105daf
mov rcx, qword [rsi]
mov rax, qword [rsi + 8]
mov rdx, qword [rsi + 0x10]
mov qword [rsi], 0
cmp rcx, 1
je 0x140105de4
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140105ddf
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140105de4
call dbg.fallback_rng
mov qword [rdi + 8], 1
lea rcx, [rdi + 0x10]
mov qword [rdi + 0x10], rax
mov qword [rdi + 0x18], rdx
jmp 0x140105e19
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x140105d3b
xor ecx, ecx
mov rax, rcx
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, dbg.destroy_value_core::cell::Cell__usize__bool___
call sym.std::sys::windows::thread_local_key::StaticKey::init::h41c7057ce68b86c9
mov ecx, eax
jmp 0x140105d8a
mov ecx, 8
mov edx, 0x20
call dbg.handle_alloc_error
ud2
Function at 0x14014d530
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14014d5aa
mov rax, rdx
mov rdx, qword [rsp + 0x70]
mov esi, ecx
shr esi, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov rbx, rax
movzx edi, byte [rax + 1]
add rax, 2
lea r10, [r11 + rdi]
cmp byte [rbx], sil
jne 0x14014d5a0
cmp r11, r10
ja 0x14014d643
cmp r10, rdx
ja 0x14014d657
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14014d5a2
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14014d580
jmp 0x14014d617
ja 0x14014d5aa
mov r11, r10
cmp rax, r8
jne 0x14014d552
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14014d61b
mov r8, qword [rsp + 0x78]
add rdx, r8
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r10, [r8 + 1]
movzx r9d, byte [r8]
test r9b, r9b
js 0x14014d5f0
mov r8, r10
sub ecx, r9d
jns 0x14014d60e
jmp 0x14014d61d
cmp r10, rdx
je 0x14014d629
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14014d61d
xor al, 1
cmp r8, rdx
jne 0x14014d5d0
jmp 0x14014d61d
xor eax, eax
jmp 0x14014d61d
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, [0x14019dca1]
lea r8, [0x1401a0010]
mov edx, 0x2b
call dbg.panic
ud2
lea r8, [0x1401a0028]
mov rcx, r11
mov rdx, r10
call dbg.slice_index_order_fail
ud2
lea r8, [0x1401a0028]
mov rcx, r10
call dbg.slice_end_index_len_fail
ud2
Function at 0x140167650
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x1401676c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401d12e4]
mov rbx, rcx
test esi, esi
jle 0x1401677f0
mov rax, qword [0x1401d12e8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14016770b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140167795
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x1401676f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x140167812
mov rax, qword [0x1401d12e8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401d12e8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1401677f7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14016778e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x1401677a0
add dword [0x1401d12e4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1401d12e8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14016778e
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 esi, esi
jmp 0x140167718
mov rax, qword [0x1401d12e8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140167da0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401d1340]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401d1320]
test rbx, rbx
je 0x140167dfc
mov rbp, qword [sym.imp.kernel32.dll_TlsGetValue]
mov rdi, qword [sym.imp.kernel32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140167df3
test eax, eax
jne 0x140167df3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140167dd8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140168010
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140168028
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140168030
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140168040
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r8d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
test r8w, r8w
je 0x14016808d
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp rdx, r8
jb 0x140168084
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14016808f
add rax, 0x28
cmp rax, r9
jne 0x140168070
xor eax, eax
ret

Function at 0x140168090
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140168120
mov rdx, qword [0x1401ac690]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14016810e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14016810e
cmp word [rax + 0x18], 0x20b
jne 0x14016810e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140168120
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x1401680f9
add rbx, 0x28
cmp rbx, rdi
je 0x140168120
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x1401680f0
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

Function at 0x140168130
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401ac690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140168150
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140168158
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140168150
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1401681ad
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1401681a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140168150
add rax, 0x28
cmp rax, r9
jne 0x140168190
xor eax, eax
ret

Function at 0x1401681b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401ac690]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1401681cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1401681d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1401681cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x1401681f0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1401ac690]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140168210
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140168218
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140168210
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140168260
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140168257
test rcx, rcx
je 0x140168210
sub rcx, 1
add rax, 0x28
cmp rdx, rax
jne 0x140168248
xor eax, eax
ret

Function at 0x140168270
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401ac690]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14016828f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x140168298
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

Function at 0x1401682b0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401ac690]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1401682d0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1401682d8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1401682d0
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x1401682d0
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x140168324
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140168330
add rdx, 0x28
cmp rdx, r9
jne 0x140168310
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

Function at 0x140168340
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov r11, qword [0x1401ac690]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140168362
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140168370
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140168362
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140168362
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140168362
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x1401683c5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x1401683d8
add rdx, 0x28
cmp r10, rdx
jne 0x1401683b0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1401683e7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1401683f7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1401683ce
test ecx, ecx
jg 0x1401683e0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x1809df0b0
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1809df237
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 0x1809df0e1
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809df0c7
add dl, dl
jne 0x1809df0ee
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809df14e
xor eax, eax
add dl, dl
jne 0x1809df0fd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1809df205
add dl, dl
jne 0x1809df10e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809df11b
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809df128
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809df135
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1809df142
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1809df0d6
mov eax, 1
add dl, dl
jne 0x1809df15e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1809df16b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809df153
sub eax, ebx
mov ebx, 1
jne 0x1809df1a4
mov ecx, 1
add dl, dl
jne 0x1809df186
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1809df193
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809df17b
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809df0d6
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1809df1c0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1809df1cd
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1809df1b5
cmp eax, 0x7d00
jae 0x1809df1f3
cmp eax, 0x500
jb 0x1809df1ee
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809df0d6
cmp eax, 0x7f
ja 0x1809df1f6
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1809df0d6
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1809df22a
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 0x1809df0d6
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140003f20
Capabilities:
Check for time delay via queryperformancecounter
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
mov edx, dword [0x140057770]
mov rax, qword gs:[0x58]
mov esi, 0x28
mov rbx, qword [rax + rdx*8]
mov eax, dword [rbx + rsi]
cmp dword [0x140051938], eax
jg 0x140004020
mov eax, dword [rbx + rsi]
cmp dword [0x140051940], eax
jg 0x140004073
cmp byte [0x14005193c], 0
je 0x140003fa4
mov eax, dword [rbx + rsi]
cmp dword [0x140051950], eax
jg 0x140003fe1
lea rdx, [0x140051948]
lea rcx, [rsp + 0x38]
call fcn.140004140
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea rcx, [rsp + 0x38]
call fcn.140004160
jmp 0x140003faf
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x30]
mulsd xmm0, qword [0x140051930]
cvttsd2si rdx, xmm0
mov rcx, rdi
call fcn.140002cf0
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
lea rcx, [0x140051950]
call fcn.140039fb4
cmp dword [0x140051950], 0xffffffff
jne 0x140003f7c
lea rcx, [0x140051948]
call fcn.1400040b0
lea rcx, [0x14003bf20]
call fcn.140039dc4
nop
lea rcx, [0x140051950]
call fcn.140039f48
jmp 0x140003f7c
lea rcx, [0x140051938]
call fcn.140039fb4
cmp dword [0x140051938], 0xffffffff
jne 0x140003f59
lea rcx, [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xorps xmm0, xmm0
cvtsi2sd xmm0, qword [rsp + 0x38]
movsd xmm1, qword [0x14003d9c0]
divsd xmm1, xmm0
movsd qword [0x140051930], xmm1
lea rcx, [0x140051938]
call fcn.140039f48
jmp 0x140003f59
lea rcx, [0x140051940]
call fcn.140039fb4
cmp dword [0x140051940], 0xffffffff
jne 0x140003f68
call qword [sym.imp.KERNEL32.dll_GetVersion]
cmp al, 6
setb byte [0x14005193c]
lea rcx, [0x140051940]
call fcn.140039f48
jmp 0x140003f68
Function at 0x140033ee0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
mov ecx, dword [rcx + 0x10]
mov r10d, ecx
and r10d, 7
je 0x140033f14
cmp ecx, r10d
jge 0x140033f02
mov rcx, rbx
call fcn.14002d6f0
mov eax, dword [rbx + 0x14]
mov ecx, r10d
shr eax, cl
sub dword [rbx + 0x10], r10d
mov ecx, dword [rbx + 0x10]
mov dword [rbx + 0x14], eax
xor r8d, r8d
mov eax, ecx
test ecx, ecx
jle 0x140033f4e
mov ecx, dword [rbx + 0x14]
lea rdx, [rsp + 0x30]
movzx r9d, cl
nop dword [rax]
shr ecx, 8
inc r8d
mov byte [rdx], r9b
lea rdx, [rdx + 1]
sub eax, 8
mov dword [rbx + 0x14], ecx
movzx r9d, cl
test eax, eax
jg 0x140033f30
mov dword [rbx + 0x10], eax
test eax, eax
jns 0x140033f7d
mov edx, dword [0x140057770]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.Corrupt_PNG
mov qword [rcx + rax], rdx
xor eax, eax
add rsp, 0x20
pop rbx
ret
movsxd rcx, r8d
cmp rcx, 4
jge 0x140033faf
mov r8, qword [rbx + 8]
mov rax, qword [rbx]
nop dword [rax]
cmp rax, r8
jb 0x140033f99
xor dl, dl
jmp 0x140033fa2
movzx edx, byte [rax]
inc rax
mov qword [rbx], rax
mov byte [rsp + rcx + 0x30], dl
inc rcx
cmp rcx, 4
jl 0x140033f90
movzx eax, byte [rsp + 0x30]
movzx r8d, byte [rsp + 0x31]
movzx ecx, byte [rsp + 0x33]
shl r8d, 8
add r8d, eax
shl ecx, 8
movzx eax, byte [rsp + 0x32]
add ecx, eax
mov eax, r8d
xor eax, 0xffff
cmp ecx, eax
jne 0x140033f52
mov rcx, qword [rbx]
mov qword [rsp + 0x38], rdi
mov edi, r8d
add rcx, rdi
cmp rcx, qword [rbx + 8]
jbe 0x140034024
mov edx, dword [0x140057770]
mov rax, qword gs:[0x58]
mov ecx, 0x20
mov rax, qword [rax + rdx*8]
lea rdx, str.Corrupt_PNG
mov qword [rcx + rax], rdx
mov rdi, qword [rsp + 0x38]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov rdx, qword [rbx + 0x18]
lea rax, [r8 + rdx]
cmp rax, qword [rbx + 0x28]
jbe 0x14003403e
mov rcx, rbx
call fcn.140039230
test eax, eax
je 0x140034017
mov rdx, qword [rbx]
mov r8, rdi
mov rcx, qword [rbx + 0x18]
call sub.VCRUNTIME140.dll_memcpy
add qword [rbx], rdi
mov eax, 1
add qword [rbx + 0x18], rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret

Function at 0x14003a514
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14003a55e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14003a55e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14003a55e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14003a55e
cmp dword [rcx + 0x84], 0xe
jbe 0x14003a55e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14003a560
xor al, al
add rsp, 0x28
ret
Function at 0x14003a960
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x20
lea rax, vtable.DefaultErrStreamBuf.0
mov rsi, rcx
mov qword [rcx], rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
cmp rax, rbx
je 0x14003a9ff
mov rcx, rsi
mov qword [rsp + 0x30], rdi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov ecx, 2
sub rdi, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r9, rbx
mov r8, rdi
mov rcx, rax
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov r8, rbx
mov rcx, rsi
mov rdx, rax
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::setp_char____ptr64__char____ptr64____ptr64]
mov rdi, qword [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rcx, rax
call fcn.140039ddc
mov rcx, rsi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rsi
jmp qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::destructor_void____ptr64]