joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140086230
Capabilities:
Get system information on windows

Disassembly:
push rsi
sub rsp, 0x50
mov rsi, rcx
xorps xmm0, xmm0
movaps xmmword [rsp + 0x40], xmm0
movaps xmmword [rsp + 0x30], xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
test rax, rax
je 0x140086266
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x140086276
lea rax, str.The_number_of_hardware_threads_is_not_known_for_the_target_platform
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
mov rax, rsi
add rsp, 0x50
pop rsi
ret

Function at 0x140086290
Capabilities:
Get common file path

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x478
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x3f0], 0xfffffffffffffffe
mov qword [rbp + 0x3e0], rcx
mov qword [rbp + 0x3c8], 2
xorps xmm0, xmm0
movups xmmword [rbp + 0x3d0], xmm0
mov r8d, 0x200
mov eax, 2
mov qword [rbp + 0x3e8], rax
xor edi, edi
xor ebx, ebx
xor r12d, r12d
cmp r8, 0x201
jae 0x140086320
jmp 0x14008630f
jae 0x1400863e0
cmp r8, 0x201
jae 0x140086320
mov esi, 0x200
lea r13, [rbp - 0x58]
mov r15, r8
jmp 0x140086378
sub r8, r12
sub rbx, r12
cmp rbx, r8
jae 0x14008634f
lea rcx, [rbp + 0x3c8]
mov rdx, r12
call fcn.14009e980
mov rax, qword [rbp + 0x3c8]
mov qword [rbp + 0x3e8], rax
mov rdi, qword [rbp + 0x3d0]
mov eax, 0xffffffff
cmp rdi, rax
mov r12d, 0xffffffff
cmovb r12, rdi
mov qword [rbp + 0x3d8], r12
mov rbx, rdi
mov rsi, r12
mov r13, qword [rbp + 0x3e8]
mov r15, r12
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, r15d
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov r14d, eax
test eax, eax
jne 0x1400863a1
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140086448
mov r8d, r14d
cmp r15, r8
jne 0x140086300
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14008646b
add r15, r15
mov eax, 0xffffffff
cmp r15, rax
cmovae r15, rax
mov r8, r15
cmp r8, 0x201
jb 0x14008630f
jmp 0x140086320
cmp rsi, r8
jb 0x140086485
lea rcx, [rbp + 0x3a8]
mov rdx, r13
call fcn.1400889e0
movups xmm0, xmmword [rbp + 0x3a8]
movups xmm1, xmmword [rbp + 0x3b8]
mov rsi, qword [rbp + 0x3e0]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
test rdi, rdi
je 0x140086431
add rdi, rdi
mov r8d, 2
mov rcx, qword [rbp + 0x3e8]
mov rdx, rdi
call fcn.140006c10
mov rax, rsi
add rsp, 0x478
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov rsi, qword [rbp + 0x3e0]
mov qword [rsi], rax
mov byte [rsi + 0x18], 2
test rdi, rdi
jne 0x140086419
jmp 0x140086431
lea rcx, str.internal_error:_entered_unreachable_code_rustc_79e9716c980570bfd1f666e3b16ac583f0168962library_alloc_src_vecmod.rs
lea r8, str.library_std_src_syswindowsmod.rs
mov edx, 0x28
call fcn.14009f4b0
jmp 0x14008649a
lea rax, str.library_std_src_syswindowsmod.rs
mov rcx, r8
mov rdx, rsi
mov r8, rax
call fcn.14009fa00
ud2
Function at 0x14008e080
Capabilities:
Write file on windows

Disassembly:
push rsi
push rdi
sub rsp, 0xa8
mov rdi, rdx
mov rsi, rcx
mov rcx, qword [rsp + 0xe0]
movups xmm0, xmmword [0x1400aa238]
movaps xmmword [rsp + 0x60], xmm0
mov eax, 0xffffffff
cmp r9, rax
cmovb rax, r9
test rcx, rcx
je 0x14008e0c4
mov rdx, qword [rsp + 0xe8]
mov qword [rsp + 0x80], rdx
test rcx, rcx
mov qword [rsp + 0x78], rcx
lea rdx, [rsp + 0x80]
cmove rdx, rcx
mov qword [rsp + 0x38], rdx
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x28], r8
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x40], 0
mov rcx, rdi
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.ntdll.dll_NtWriteFile]
cmp eax, 0x103
jne 0x14008e12a
mov rcx, rdi
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [rsp + 0x60]
cmp eax, 0x103
je 0x14008e161
test eax, eax
js 0x14008e13b
mov rax, qword [rsp + 0x68]
mov qword [rsi + 8], rax
xor eax, eax
jmp 0x14008e154
mov ecx, eax
call qword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
shl rax, 0x20
or rax, 2
mov qword [rsi + 8], rax
mov eax, 1
mov qword [rsi], rax
add rsp, 0xa8
pop rdi
pop rsi
ret
mov byte [rsp + 0x5c], 0
mov dword [rsp + 0x58], 0
lea rax, str.fatal_runtime_error:_I_O_error:_operation_failed_to_complete_synchronously_n
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
lea rax, [rsp + 0x50]
mov qword [rsp + 0x88], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rcx, [rsp + 0x58]
lea rdx, [rsp + 0x78]
call fcn.140088610
mov rcx, rax
call fcn.140083e20
mov ecx, 7
int 0x29
ud2

Function at 0x14008eff0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub rsp, 0x38
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call qword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x14008f028
mov rax, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
add rsp, 0x38
ret
call fcn.14008f040
nop
add rsp, 0x38
ret

Function at 0x14008f040
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rbp
sub rsp, 0x80
lea rbp, [rsp + 0x80]
mov qword [rbp - 8], 0xfffffffffffffffe
xorps xmm0, xmm0
movaps xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov edx, 0x10
call qword [sym.imp.ADVAPI32.dll_SystemFunction036]
test al, al
je 0x14008f083
mov rax, qword [rbp - 0x20]
mov rdx, qword [rbp - 0x18]
add rsp, 0x80
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
shl rax, 0x20
or rax, 2
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x10]
mov qword [rbp - 0x30], rax
lea rax, [0x140087020]
mov qword [rbp - 0x28], rax
lea rax, str.fallback_RNG_broken:
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
mov qword [rbp - 0x40], 0
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rbp - 0x60]
call fcn.14009f400
ud2

Function at 0x14008f6e0
Capabilities:
Create thread

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov qword [rbp - 8], 0xfffffffffffffffe
mov rdi, r8
mov r14, rdx
Function at 0x14009c6d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
test r8, r8
je 0x14009c74a
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 0x14009c740
cmp r11, r10
ja 0x14009c7e3
cmp r10, rdx
ja 0x14009c7f7
add r11, r9
xor ebx, ebx
nop dword [rax]
cmp rdi, rbx
je 0x14009c742
lea r14, [rbx + 1]
cmp byte [r11 + rbx], cl
mov rbx, r14
jne 0x14009c720
jmp 0x14009c7b7
ja 0x14009c74a
mov r11, r10
cmp rax, r8
jne 0x14009c6f2
mov rdx, qword [rsp + 0x80]
test rdx, rdx
je 0x14009c7bb
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 0x14009c790
mov r8, r10
sub ecx, r9d
jns 0x14009c7ae
jmp 0x14009c7bd
cmp r10, rdx
je 0x14009c7c9
movzx r10d, byte [r8 + 1]
add r8, 2
and r9d, 0x7f
shl r9d, 8
or r9d, r10d
sub ecx, r9d
js 0x14009c7bd
xor al, 1
cmp r8, rdx
jne 0x14009c770
jmp 0x14009c7bd
xor eax, eax
jmp 0x14009c7bd
mov al, 1
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
ret
lea rcx, str.called__Option::unwrap____on_a__None__valuefrom_str_radix_int:_must_lie_in_the_range___2__36_____found
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.14009f4b0
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.14009fa80
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.14009fa00
ud2

Function at 0x14009e368
Capabilities:
Parse pe header

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

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x70
lea rax, [0x004d1340]
xor r8d, r8d
mov qword [rcx], rax
lea r12, [rsp + 0x30]
mov rbx, rcx
lea rdx, [rsp + 0x28]
mov rcx, r12
lea rsi, [rsp + 0x60]
lea rdi, [rsp + 0x40]
movabs rax, 0x3233697061766461
mov qword [rsp + 0x50], rsi
lea r13, [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [rsp + 0x58], 0xc
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], 0x13
call fcn.004abbf0
mov rdx, qword [rsp + 0x28]
movabs rcx, 0x746e6f4365736165
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x40], rdx
movabs rdx, 0x6c65527470797243
mov qword [rax], rdx
mov edx, 0x7865
mov qword [rax + 8], rcx
mov rcx, r12
mov word [rax + 0x10], dx
mov byte [rax + 0x12], 0x74
mov rax, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov byte [rdx + rax], 0
mov rdx, r13
call fcn.00405b10
mov rcx, qword [rbx + 0x40]
xor edx, edx
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x401ea0
call fcn.004bee60
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x401eaf
call fcn.004bee60
movabs rax, 0x3233697061766461
mov rdx, r13
mov rcx, r12
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rax
movabs rax, 0x7365447470797243
mov qword [rsp + 0x40], rax
mov eax, 0x654b
mov dword [rsp + 0x68], 0x6c6c642e
mov qword [rsp + 0x58], 0xc
mov byte [rsp + 0x6c], 0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x48], 0x796f7274
mov word [rsp + 0x4c], ax
mov byte [rsp + 0x4e], 0x79
mov qword [rsp + 0x38], 0xf
mov byte [rsp + 0x4f], 0
call fcn.00405b10
mov rcx, qword [rbx + 0x38]
call rax
mov rcx, qword [rsp + 0x30]
cmp rcx, rdi
je 0x401f32
call fcn.004bee60
mov rcx, qword [rsp + 0x50]
cmp rcx, rsi
je 0x401f41
call fcn.004bee60
mov rcx, qword [rbx + 8]
call fcn.004bee60
nop
add rsp, 0x70
pop rbx
pop rsi
pop rdi
pop r12
pop r13
ret
Function at 0x402e30
Capabilities:
Hash data via wincrypt

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, qword [rsp + 0xb0]
mov r12, rcx
mov rbx, rdx
mov r13, r8
mov esi, r9d
test rcx, rcx
je 0x402f68
mov rcx, qword [rdx]
test r9d, r9d
je 0x402f68
test rcx, rcx
je 0x402f68
lea r15, [rsp + 0x3c]
mov r8, rbp
mov edx, 2
mov dword [rsp + 0x3c], 0x280
mov dword [rsp + 0x20], 0
mov r14, qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov r9, r15
call r14
mov rcx, qword [rbx]
mov edi, eax
test rcx, rcx
jne 0x402f50
test edi, edi
je 0x402f68
xor r8d, r8d
xor edx, edx
mov r9, rbx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CryptDuplicateHash]
test eax, eax
je 0x402f68
mov rcx, qword [rbx]
test rcx, rcx
je 0x402f68
xor r9d, r9d
mov r8d, esi
mov rdx, r13
mov rsi, qword [sym.imp.ADVAPI32.dll_CryptHashData]
call rsi
test eax, eax
je 0x402f68
xor r9d, r9d
mov r8d, dword [rsp + 0x3c]
mov rcx, qword [rbx]
mov rdx, rbp
call rsi
test eax, eax
je 0x402f68
mov rcx, qword [rbx]
mov r9, r15
mov r8, rbp
mov edx, 2
mov dword [rsp + 0x3c], 0x280
mov dword [rsp + 0x20], 0
call r14
mov rcx, qword [rbx]
mov esi, eax
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
xor eax, eax
mov qword [rbx], 0
test esi, esi
sete al
neg eax
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov qword [rbx], 0
jmp 0x402eaa
mov eax, 0xffffffff
jmp 0x402f3d
Function at 0x418d50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x30
cmp qword [rcx], 0
mov rbx, rcx
jne 0x418d80
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x418d77
mov rax, qword [rsp + 0x20]
mov qword [rbx], rax
jmp 0x418d80
mov qword [rbx], 0xffffffffffffffff
jmp 0x418db2
cmp qword [rbx], 0
jle 0x418db2
lea rcx, [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
test eax, eax
je 0x418db2
mov rax, qword [rbx]
mov r8d, 0x3e8
cqo
idiv r8
mov rcx, rax
mov rax, qword [rsp + 0x28]
cqo
idiv rcx
jmp 0x418dba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov eax, eax
add rsp, 0x30
pop rbx
ret

Function at 0x41945f
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x004c2048], eax
inc eax
jne 0x419479
call sub.msvcrt.dll_abort
nop
add rsp, 0x28
ret

Function at 0x419891
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
mov rbx, rcx
test rcx, rcx
je 0x419931
call fcn.0041937a
dec eax
jne 0x41992a
xor eax, eax
lea rdi, [rsp + 0x25]
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
lea rbx, [rsp + 0x25]
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x4d]
mov ecx, 0x43
rep stosb byte [rdi], al
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
mov edx, 0x27
cmp byte [rbx + rdx], 0
mov eax, edx
je 0x419906
inc rdx
cmp rdx, 0x6b
jne 0x4198f3
jmp 0x41991c
cmp edx, 0x6a
je 0x41991c
inc eax
movsxd rdx, edx
cdqe
mov byte [rsp + rdx + 0x25], 0xa
mov byte [rsp + rax + 0x25], 0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
Function at 0x4199f2
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
cmp dword [0x004f6490], 1
je 0x419a07
call fcn.00419965
mov ecx, dword [0x004c2048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
test rax, rax
jne 0x419b13
call fcn.004197e7
cmp qword [0x004fa050], 0
mov rbx, rax
je 0x419b13
test rax, rax
je 0x419b13
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor r9d, r9d
xor r8d, r8d
mov edx, 1
xor ecx, ecx
mov dword [rbx + 0x70], eax
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.00419891
mov rsi, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rsi
mov qword [rsp + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rdi, rax
call rsi
lea r9, [rbx + 0x28]
mov r8, qword [rsp + 0x48]
mov rdx, rdi
mov dword [rsp + 0x30], 2
mov rcx, rax
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
jne 0x419ad7
call sub.msvcrt.dll_abort
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rbx
mov ecx, dword [0x004c2048]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
mov al, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x419ad2
mov rsi, rbx
mov rax, rsi
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret

Function at 0x41a558
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, rcx
call fcn.004199f2
mov qword [rax + 8], rsi
mov rcx, qword [rax + 0x1d8]
mov rbx, rax
call fcn.0041a01c
test byte [rbx + 0x40], 0x30
jne 0x41a591
lea rcx, [rbx + 0xd0]
mov edx, 1
call qword [sym.imp.msvcrt.dll_longjmp]
mov ecx, dword [0x004c2048]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x41a622
cmp qword [rax + 0x28], 0
mov rcx, qword [rax + 0x30]
jne 0x41a5ce
mov dword [rax], 0xdeadbeef
test rcx, rcx
je 0x41a5c1
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
mov esi, dword [rbx + 8]
jmp 0x41a60c
mov dword [rax + 0xbc], 1
mov esi, dword [rax + 8]
test rcx, rcx
je 0x41a5e6
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x30], 0
test byte [rbx + 0x44], 4
je 0x41a622
mov dword [rbx], 0xdeadbeef
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x28], 0
mov rcx, rbx
call fcn.00419601
xor edx, edx
mov ecx, dword [0x004c2048]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov ecx, esi
call qword [sym.imp.msvcrt.dll__endthreadex]
nop
Function at 0x41c3e4
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
mov rax, qword [0x004f6a98]
xor ebx, ebx
add rax, 0x18
mov rbp, rcx
mov ecx, dword [0x004f6a94]
mov rsi, rdx
mov rdi, r8
cmp ebx, ecx
jge 0x41c432
mov rdx, qword [rax]
cmp rbp, rdx
jb 0x41c42a
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbp, rdx
jb 0x41c512
inc ebx
add rax, 0x28
jmp 0x41c40a
mov rcx, rbp
call fcn.0041ce24
mov r12, rax
test rax, rax
jne 0x41c451
mov rdx, rbp
lea rcx, str.Address__p_has_no_image_section
call fcn.0041c380
movsxd rbx, ebx
mov rax, qword [0x004f6a98]
imul rbx, rbx, 0x28
add rax, rbx
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0041cedb
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x004f6a98]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x41c4b8
mov rax, qword [0x004f6a98]
mov edx, dword [r12 + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.0041c380
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x41c50c
sub eax, 4
and eax, 0xfffffffb
je 0x41c50c
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
add rbx, qword [0x004f6a98]
mov r9, rbx
mov qword [rbx + 8], rcx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x41c50c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0041c380
inc dword [0x004f6a94]
mov ecx, edi
mov rdi, rbp
rep movsb byte [rdi], byte [rsi]
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x41cb40
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x004f6d80]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x004f6d60]
test rbx, rbx
je 0x41cb88
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41cb82
test rsi, rsi
je 0x41cb82
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x41cb5a
lea rcx, [0x004f6d80]
add rsp, 0x28
pop rbx
pop rsi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x41cd40
Capabilities:
Parse pe header

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

Function at 0x41cd64
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r9d, r8d
jbe 0x41cd9e
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp r10, rdx
ja 0x41cd95
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x41cda0
inc r8d
add rax, 0x28
jmp 0x41cd7c
xor eax, eax
ret
Function at 0x41ce24
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, rcx
mov rcx, qword [0x004cb210]
call fcn.0041cd40
test eax, eax
je 0x41ce51
mov rcx, qword [0x004cb210]
mov rdx, r8
sub rdx, rcx
add rsp, 0x28
jmp fcn.0041cd64
xor eax, eax
add rsp, 0x28
ret

Function at 0x42a050
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x18
mov r12, rcx
test r9, r9
je 0x42a1db
lea rbp, [r8 + r9]
mov rax, r8
mov rsi, rdx
xor ecx, ecx
xor r11d, r11d
lea rdi, [0x004d5360]
nop
movzx r10d, byte [rax]
cmp r10b, 0x3d
je 0x42a0bb
movzx r10d, byte [rdi + r10]
cmp r10b, 0xff
je 0x42a0bb
movsxd rbx, r11d
add r11d, 1
add rax, 1
mov byte [rsp + rbx + 0xc], r10b
cmp r11d, 4
je 0x42a0f8
cmp rax, rbp
jne 0x42a080
test cl, cl
je 0x42a160
mov rax, rbp
sub rax, r8
mov r9, rax
mov rax, rsi
sub rax, rdx
test r11d, r11d
jne 0x42a160
movq xmm0, rax
movq xmm1, r9
mov rax, r12
punpcklqdq xmm0, xmm1
movups xmmword [r12], xmm0
add rsp, 0x18
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
movzx ecx, byte [rsp + 0xd]
movzx r10d, byte [rsp + 0xe]
mov ebx, ecx
mov r11d, r10d
sar r10d, 2
sar ebx, 4
shl ecx, 4
and r10d, 0xf
mov r13d, ebx
movzx ebx, byte [rsp + 0xc]
add r10d, ecx
shl r11d, 6
and r13d, 3
add r11b, byte [rsp + 0xf]
lea rcx, [rsi + 3]
mov byte [rsi + 1], r10b
lea ebx, [r13 + rbx*4]
mov byte [rsi + 2], r11b
mov byte [rsi], bl
mov rsi, rcx
cmp rax, rbp
je 0x42a1d3
mov ecx, 1
xor r11d, r11d
jmp 0x42a080
movzx r8d, byte [rsp + 0xd]
movzx ecx, byte [rsp + 0xc]
mov eax, r8d
shl r8d, 4
sar eax, 4
and eax, 3
lea r10d, [rax + rcx*4]
movzx eax, byte [rsp + 0xe]
mov ecx, eax
shl eax, 6
add al, byte [rsp + 0xf]
sar ecx, 2
and ecx, 0xf
add ecx, r8d
mov r8d, r11d
sub r8d, 1
je 0x42a1c8
mov byte [rsi], r10b
cmp r8d, 1
je 0x42a1b1
mov byte [rsi + 1], cl
cmp r8d, 2
je 0x42a1b1
mov byte [rsi + 2], al
lea eax, [r11 - 2]
lea rax, [rsi + rax + 1]
sub rax, rdx
jmp 0x42a0d0
mov rax, rsi
sub rax, rdx
jmp 0x42a0d0
xor r11d, r11d
jmp 0x42a0b8
xor eax, eax
jmp 0x42a0d0
Function at 0x486b80
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
jmp 0x486ba7
call rbp
cmp dword [rax], 4
jne 0x486bc4
mov rcx, rdi
call fcn.00486980
mov r8d, ebx
mov rdx, rsi
mov ecx, eax
call sub.msvcrt.dll__read
movsxd r12, eax
cmp eax, 0xffffffff
je 0x486ba0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140d60058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140d601df
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 0x140d60089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d6006f
add dl, dl
jne 0x140d60096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d600f6
xor eax, eax
add dl, dl
jne 0x140d600a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140d601ad
add dl, dl
jne 0x140d600b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d600c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d600d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d600dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140d600ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140d6007e
mov eax, 1
add dl, dl
jne 0x140d60106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140d60113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d600fb
sub eax, ebx
mov ebx, 1
jne 0x140d6014c
mov ecx, 1
add dl, dl
jne 0x140d6012e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d6013b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d60123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6007e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140d60168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140d60175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140d6015d
cmp eax, 0x7d00
jae 0x140d6019b
cmp eax, 0x500
jb 0x140d60196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6007e
cmp eax, 0x7f
ja 0x140d6019e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140d6007e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140d601d2
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 0x140d6007e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20