joyce8/EMBER2024-capa huggingface dataset:
Function at 0x8b6090
Capabilities:
Encode data using base64

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov ebp, dword [rsp + 0x90]
mov rdi, rcx
mov rsi, rdx
mov r13, r8
mov r12, r9
mov dword [r8], 0
test ebp, ebp
jle 0x8b6270
mov ebx, dword [rcx + 4]
cmp ebx, 0x50
jg 0x8b6314
movsxd rax, dword [rcx]
sub ebx, eax
cmp ebx, ebp
jg 0x8b62e0
xor r14d, r14d
test eax, eax
jne 0x8b6274
lea r10, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz._
lea r9, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
test byte [rdi + 0x5c], 2
mov rcx, r9
cmovne rcx, r10
test ebx, ebx
jle 0x8b6245
mov r11, rsi
mov r15, r12
xor r8d, r8d
jmp 0x8b6174
movzx r11d, byte [r15 + 1]
add r15, 3
shl r11d, 8
or edx, r11d
movzx r11d, byte [r15 - 1]
or edx, r11d
mov r11d, edx
shr r11d, 0x12
movzx r11d, byte [rcx + r11]
mov byte [rax - 4], r11b
mov r11d, edx
shr r11d, 0xc
and r11d, 0x3f
movzx r11d, byte [rcx + r11]
mov byte [rax - 3], r11b
mov r11d, edx
and edx, 0x3f
shr r11d, 6
and r11d, 0x3f
movzx r11d, byte [rcx + r11]
mov byte [rax - 2], r11b
movzx edx, byte [rcx + rdx]
mov r11, rax
mov byte [rax - 1], dl
sub ebx, 3
je 0x8b61b6
movzx edx, byte [r15]
lea rax, [r11 + 4]
add r8d, 4
shl edx, 0x10
cmp ebx, 2
jg 0x8b6112
je 0x8b6210
mov ebx, edx
shr edx, 0xc
shr ebx, 0x12
and edx, 0x30
movzx ebx, byte [rcx + rbx]
mov byte [r11], bl
movzx edx, byte [rcx + rdx]
mov byte [r11 + 1], dl
mov edx, 0x3d
mov byte [r11 + 2], dl
mov byte [r11 + 3], 0x3d
movsxd r8, r8d
add rsi, r8
add r14, r8
mov byte [rax], 0
movsxd rdx, dword [rdi + 4]
add r12, rdx
sub ebp, edx
test byte [rdi + 0x5c], 1
jne 0x8b61dc
mov byte [rsi], 0xa
add r14, 1
add rsi, 1
mov byte [rsi], 0
mov ebx, dword [rdi + 4]
cmp ebx, ebp
jg 0x8b6250
cmp r14, 0x7fffffff
jbe 0x8b60f4
mov dword [r13], 0
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
movzx ebx, byte [r15 + 1]
shl ebx, 8
or edx, ebx
mov ebx, edx
shr ebx, 0x12
movzx ebx, byte [rcx + rbx]
mov byte [r11], bl
mov ebx, edx
shr edx, 6
shr ebx, 0xc
and edx, 0x3c
and ebx, 0x3f
movzx ebx, byte [rcx + rbx]
mov byte [r11 + 1], bl
movzx edx, byte [rcx + rdx]
jmp 0x8b61ad
mov rax, rsi
jmp 0x8b61bf
cmp r14, 0x7fffffff
ja 0x8b61f3
test ebp, ebp
jne 0x8b6300
mov dword [rdi], ebp
mov eax, 1
mov dword [r13], r14d
jmp 0x8b61fd
xor eax, eax
jmp 0x8b61fd
movsxd r14, ebx
mov rdx, r9
lea rcx, [rcx + rax + 8]
sub ebp, ebx
mov r8, r14
add r12, r14
call sub.msvcrt.dll_memcpy
mov r9d, dword [rdi + 4]
mov rdx, rsi
lea r8, [rdi + 8]
mov rcx, rdi
call fcn.008b5ec0
mov dword [rdi], 0
movsxd r14, eax
add rsi, r14
test byte [rdi + 0x5c], 1
jne 0x8b62bc
mov byte [rsi], 0xa
add r14, 1
add rsi, 1
mov byte [rsi], 0
mov ebx, dword [rdi + 4]
cmp ebp, ebx
jl 0x8b6250
cmp r14, 0x7fffffff
jbe 0x8b60e6
jmp 0x8b61f3
lea rcx, [rcx + rax + 8]
movsxd r8, ebp
mov rdx, r9
call sub.msvcrt.dll_memcpy
add dword [rdi], ebp
mov eax, 1
jmp 0x8b61fd
lea rcx, [rdi + 8]
movsxd r8, ebp
mov rdx, r12
call sub.msvcrt.dll_memcpy
jmp 0x8b6261
mov r8d, 0xab
lea rdx, str.crypto_evp_encode.c
lea rcx, str.assertion_failed:_ctx__length____int_sizeof_ctx__enc_data_
call fcn.008661b0
nop
nop
Function at 0x8b6390
Capabilities:
Encode data using base64

Disassembly:
test r8d, r8d
jle 0x8b6490
xor eax, eax
lea r10, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
jmp 0x8b6407
movzx ecx, byte [rdx + 1]
add rdx, 3
shl ecx, 8
or ecx, r9d
movzx r9d, byte [rdx - 1]
or ecx, r9d
mov r9d, ecx
shr r9d, 0x12
movzx r9d, byte [r10 + r9]
mov byte [r11 - 4], r9b
mov r9d, ecx
shr r9d, 0xc
and r9d, 0x3f
movzx r9d, byte [r10 + r9]
mov byte [r11 - 3], r9b
mov r9d, ecx
and ecx, 0x3f
shr r9d, 6
and r9d, 0x3f
movzx r9d, byte [r10 + r9]
mov byte [r11 - 2], r9b
movzx ecx, byte [r10 + rcx]
mov byte [r11 - 1], cl
mov rcx, r11
sub r8d, 3
je 0x8b6448
movzx r9d, byte [rdx]
lea r11, [rcx + 4]
add eax, 4
shl r9d, 0x10
cmp r8d, 2
jg 0x8b63a4
je 0x8b6450
mov edx, r9d
shr edx, 0x12
movzx edx, byte [r10 + rdx]
mov byte [rcx], dl
mov edx, r9d
shr edx, 0xc
and edx, 0x30
movzx edx, byte [r10 + rdx]
mov byte [rcx + 1], dl
mov edx, 0x3d
mov byte [rcx + 2], dl
mov byte [rcx + 3], 0x3d
mov byte [r11], 0
ret
movzx edx, byte [rdx + 1]
shl edx, 8
or edx, r9d
mov r8d, edx
shr r8d, 0x12
movzx r8d, byte [r10 + r8]
mov byte [rcx], r8b
mov r8d, edx
shr edx, 6
shr r8d, 0xc
and edx, 0x3c
and r8d, 0x3f
movzx r8d, byte [r10 + r8]
mov byte [rcx + 1], r8b
movzx edx, byte [r10 + rdx]
jmp 0x8b6441
mov r11, rcx
xor eax, eax
mov byte [r11], 0
ret
Function at 0x8bb4d0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0xc8
mov r14, rcx
mov r12, rdx
mov qword [rsp + 0x120], r8
test r8, r8
je 0x8bb5eb
lea rax, [rsp + 0x30]
movzx edx, byte [rcx + 0xc]
lea rbp, [rcx + 0xc]
xor r13d, r13d
mov qword [rsp + 0x20], rax
lea rax, [rsp + 0x38]
movzx r8d, byte [rcx + 0x14]
lea rdi, [rcx + 0x14]
mov qword [rsp + 0x28], rax
lea rsi, [rsp + 0x40]
nop word [rax + rax]
and edx, 0xffffff9f
and r8d, 0xffffff9f
mov ebx, dword [r12 + r13]
mov r15d, dword [r12 + r13 + 4]
or r8d, 0x20
or edx, 0x40
mov rcx, rbp
add r13, 8
mov byte [r14 + 0x14], r8b
mov byte [r14 + 0xc], dl
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x3c], r15d
mov dword [rsp + 0x34], r15d
call fcn.0086b1c0
mov rdx, rsi
mov rcx, rbp
call fcn.0086b340
mov rcx, qword [rsp + 0x20]
mov r8d, 1
mov rdx, rsi
call fcn.00867a50
mov rcx, rdi
call fcn.0086b1c0
mov rdx, rsi
mov rcx, rdi
call fcn.0086b340
mov rcx, qword [rsp + 0x28]
mov r8d, 1
mov rdx, rsi
call fcn.00867a50
mov ecx, dword [rsp + 0x38]
mov r8d, dword [rsp + 0x3c]
xor ecx, ebx
xor r8d, r15d
xor ebx, dword [rsp + 0x30]
xor r15d, dword [rsp + 0x34]
mov dword [r14 + 0x10], r8d
mov edx, ebx
mov r8d, ecx
mov dword [r14 + 0xc], ebx
mov dword [r14 + 0x14], ecx
mov dword [r14 + 0x18], r15d
cmp qword [rsp + 0x120], r13
ja 0x8bb530
add rsp, 0xc8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x8c6c60
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rdi
mov qword [rsp + 0x10], rsi
mov rax, rsp
mov rdi, rcx
mov rsi, rdx
mov rdx, r8
mov rcx, r9
push rbx
push rbp
push r12
push r13
push r14
push r15
lea rdi, [rdi + 0x64]
sub rsp, 0xe8
mov r9, rsi
lea rsi, [rsp + 0x64]
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
lea r15, [0x008c6e40]
mov qword [rsi + 0x74], rcx
cmp rdx, rcx
jb 0x8c6d00
shr rcx, 3
lea r8, [rdi - 0x64]
mov rax, qword [r9]
lea r9, [r9 + 8]
xor rax, qword [r8]
lea r8, [r8 + 8]
sub rdx, 8
mov qword [r8 - 8], rax
sub rcx, 1
jne 0x8c6cc6
mov qword [rsi + 0x64], r9
mov qword [rsi + 0x6c], rdx
call fcn.008c6900
mov r9, qword [rsi + 0x64]
mov rdx, qword [rsi + 0x6c]
mov rcx, qword [rsi + 0x74]
jmp 0x8c6cb9
mov rax, rdx
not qword [rdi - 0x5c]
not qword [rdi - 0x54]
not qword [rdi - 0x24]
not qword [rdi - 4]
not qword [rdi + 0x24]
not qword [rdi + 0x3c]
add rsp, 0xe8
pop r15
pop r14
pop r13
pop r12
pop rbp
pop rbx
mov rdi, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
repz ret
Function at 0x8cc440
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov eax, dword [rcx + 0x28]
mov rdi, qword [rcx + 8]
mov rsi, qword [rcx + 0x10]
mov rbp, qword [rcx + 0x18]
mov rbx, qword [rcx + 0x20]
add qword [rcx], r8
mov r13, rcx
mov r12, rdx
mov r14, r8
test eax, eax
je 0x8cc4ea
mov r15d, 8
lea rcx, [rcx + rax + 0x38]
sub r15d, eax
cmp r8, r15
jb 0x8cc5bc
mov r8, r15
sub r14, r15
add r12, r15
call sub.msvcrt.dll_memcpy
mov rcx, qword [r13 + 0x38]
mov edx, dword [r13 + 0x30]
xor rbx, rcx
test edx, edx
jle 0x8cc4e7
xor eax, eax
nop dword [rax]
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp eax, edx
jne 0x8cc4b0
xor rdi, rcx
mov r9d, r14d
and r14, 0xfffffffffffffff8
lea r8, [r12 + r14]
and r9d, 7
cmp r12, r8
je 0x8cc553
mov edx, dword [r13 + 0x30]
mov rcx, qword [r12]
xor rbx, rcx
test edx, edx
jle 0x8cc547
xor eax, eax
nop
add rdi, rsi
add rbp, rbx
rol rsi, 0xd
add eax, 1
rol rbx, 0x10
xor rsi, rdi
rol rdi, 0x20
xor rbx, rbp
add rbp, rsi
rol rsi, 0x11
add rdi, rbx
rol rbx, 0x15
xor rsi, rbp
xor rbx, rdi
rol rbp, 0x20
cmp edx, eax
jne 0x8cc510
add r12, 8
xor rdi, rcx
cmp r8, r12
jne 0x8cc502
test r9d, r9d
jne 0x8cc5a1
mov qword [rsp + 0x28], rdi
movq xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x28], rsi
mov dword [r13 + 0x28], r9d
movhps xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x28], rbp
movups xmmword [r13 + 8], xmm0
movq xmm0, qword [rsp + 0x28]
mov qword [rsp + 0x28], rbx
movhps xmm0, qword [rsp + 0x28]
movups xmmword [r13 + 0x18], xmm0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r10, [r13 + 0x38]
xor eax, eax
mov edx, eax
add eax, 1
movzx ecx, byte [r8 + rdx]
mov byte [r10 + rdx], cl
cmp eax, r9d
jb 0x8cc5a7
jmp 0x8cc558
call sub.msvcrt.dll_memcpy
add dword [r13 + 0x28], r14d
jmp 0x8cc590
Function at 0x8e00a0
Capabilities:
Encode data using xor
Encrypt data using blowfish
Encrypt data using rc4 prga

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [0x00d827a0]
lea rsi, [0x00d827a0]
mov r11d, 0x48
mov qword [rcx], rax
mov rax, qword [0x00d837e0]
lea rdi, [rcx + 8]
mov rbp, rcx
and rdi, 0xfffffffffffffff8
mov r10, rbp
mov qword [rcx + 0x1040], rax
mov rax, rcx
sub rax, rdi
sub rsi, rax
add eax, 0x1048
shr eax, 3
cmp edx, 0x48
cmovle r11d, edx
mov ecx, eax
mov rax, r8
rep movsq qword [rdi], qword [rsi]
lea rdi, [rbp + 0x48]
movsxd r11, r11d
add r11, r8
lea rcx, [rax + 1]
movzx eax, byte [rax]
cmp r11, rcx
cmovbe rcx, r8
shl eax, 8
movzx edx, byte [rcx]
lea r9, [rcx + 1]
or edx, eax
cmp r11, r9
cmovbe r9, r8
mov eax, edx
shl eax, 8
movzx edx, byte [r9]
lea rcx, [r9 + 1]
or edx, eax
cmp r11, rcx
cmovbe rcx, r8
shl edx, 8
lea rax, [rcx + 1]
movzx ecx, byte [rcx]
or edx, ecx
cmp r11, rax
cmovbe rax, r8
xor dword [r10], edx
add r10, 4
cmp rdi, r10
jne 0x8e0105
mov qword [rsp + 0x28], 0
mov rbx, rbp
lea rsi, [rsp + 0x28]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call fcn.008df2e0
mov eax, dword [rsp + 0x28]
mov dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbx - 4], eax
cmp rbx, rdi
jne 0x8e0170
lea rdi, [rbp + 0x1048]
nop dword [rax]
mov rdx, rbp
mov rcx, rsi
add rbx, 8
call fcn.008df2e0
mov eax, dword [rsp + 0x28]
mov dword [rbx - 8], eax
mov eax, dword [rsp + 0x2c]
mov dword [rbx - 4], eax
cmp rdi, rbx
jne 0x8e01a0
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
Function at 0x8e0320
Capabilities:
Encode data using xor

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov eax, dword [r8 + 8]
mov rsi, rdx
mov edx, dword [rdx + 8]
mov rbx, rcx
mov rdi, r8
cmp edx, eax
jge 0x8e0346
mov edx, eax
mov rax, rsi
mov rsi, r8
mov rdi, rax
mov rcx, rbx
call fcn.00752c40
test rax, rax
je 0x8e04a3
mov eax, dword [rdi + 8]
test eax, eax
jle 0x8e04e0
mov rcx, qword [rsi]
mov r8, qword [rbx]
lea edx, [rax - 1]
mov r9, qword [rdi]
lea r10, [rcx + 0x10]
lea r11, [r8 + 0x10]
cmp r8, r10
setae r10b
cmp rcx, r11
setae dil
or r10d, edi
cmp edx, 2
seta dil
test r10b, dil
je 0x8e04b0
lea r10, [r9 + 0x10]
cmp r8, r10
setae dil
cmp r9, r11
setae r10b
or dil, r10b
je 0x8e04b0
mov r10d, eax
xor edx, edx
shr r10d, 1
shl r10, 4
nop
movdqu xmm0, xmmword [rcx + rdx]
movdqu xmm1, xmmword [r9 + rdx]
pxor xmm0, xmm1
movups xmmword [r8 + rdx], xmm0
add rdx, 0x10
cmp rdx, r10
jne 0x8e03c0
mov edx, eax
and edx, 0xfffffffe
cmp eax, edx
je 0x8e03f2
mov rcx, qword [rcx + rdx*8]
xor rcx, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rcx
mov r11d, dword [rsi + 8]
cmp eax, r11d
jge 0x8e0477
movsxd rdx, eax
mov r9, qword [rsi]
mov r8, qword [rbx]
lea r10, [rdx*8 + 0x10]
lea rcx, [r10 - 0x10]
lea rdi, [r9 + r10]
lea rsi, [r8 + rcx]
add rcx, r9
cmp rsi, rdi
setae dil
add r10, r8
cmp rcx, r10
setae r10b
or dil, r10b
je 0x8e0490
lea r10d, [r11 - 1]
sub r10d, eax
cmp r10d, 3
jbe 0x8e0490
mov edi, r11d
xor edx, edx
sub edi, eax
mov r10d, edi
shr r10d, 1
shl r10, 4
nop
movdqu xmm2, xmmword [rcx + rdx]
movups xmmword [rsi + rdx], xmm2
add rdx, 0x10
cmp rdx, r10
jne 0x8e0450
mov edx, edi
and edx, 0xfffffffe
add eax, edx
cmp edi, edx
je 0x8e0477
cdqe
mov rdx, qword [r9 + rax*8]
mov qword [r8 + rax*8], rdx
mov dword [rbx + 8], r11d
mov rcx, rbx
call fcn.00752dc0
mov eax, 1
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov rax, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], rax
add rdx, 1
cmp r11d, edx
jg 0x8e0490
jmp 0x8e0477
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
mov r11d, edx
xor edx, edx
jmp 0x8e04c3
mov rdx, r10
mov r10, qword [rcx + rdx*8]
xor r10, qword [r9 + rdx*8]
mov qword [r8 + rdx*8], r10
lea r10, [rdx + 1]
cmp rdx, r11
jne 0x8e04c0
jmp 0x8e03f2
xor eax, eax
jmp 0x8e03f2
Function at 0x8f6380
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
cmp eax, 0xffffffff
mov dword [0x00a5bf88], eax
je 0x8f639a
add rsp, 0x28
ret
call sub.msvcrt.dll_abort
nop

Function at 0x8f68a0
Capabilities:
Print debug messages

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x90
test rcx, rcx
mov rbx, rcx
je 0x8f68c3
call fcn.008f94e0
cmp eax, 1
je 0x8f68ce
mov qword [rbx], 0xffffffffffffffff
add rsp, 0x90
pop rbx
pop rsi
pop rdi
ret
lea rdi, [rsp + 0x20]
xor eax, eax
mov ecx, 0xa
lea rsi, str.Error_cleaning_up_spin_keys_for_thread
rep movsd dword [rdi], dword [rsi]
lea rdi, [rsp + 0x48]
mov ecx, 0x43
rep stosb byte [rdi], al
lea rbx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
lea rdx, [rbx + 0x27]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x8f6945
mov eax, 0x28
jmp 0x8f692a
add rax, 1
cmp rax, 0x6b
je 0x8f6937
cmp byte [rbx + rax], 0
mov edx, eax
jne 0x8f6920
cmp eax, 0x6a
jne 0x8f694a
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov edx, 0x27
movsxd rax, edx
mov byte [rsp + rax + 0x20], 0xa
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rax + 0x20], 0
jmp 0x8f6937

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

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
cmp dword [0x010a93a0], 1
je 0x8f6a06
call fcn.008f6960
mov ecx, dword [0x00a5bf88]
call qword [sym.imp.KERNEL32.DLL_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x8f6a30
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.008f67e0
cmp qword [0x010b0050], 0
mov rsi, rax
je 0x8f6a1a
test rax, rax
je 0x8f6a1a
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 [rsi + 0x70], eax
call qword [sym.imp.KERNEL32.DLL_CreateEventA]
lea rcx, [rsi + 0x68]
mov qword [rsi + 0x38], 0xffffffffffffffff
mov qword [rsi + 0x30], rax
call fcn.008f68a0
mov rbx, qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov dword [rsi + 0xb8], 0
mov qword [rsi + 0x28], 0
call rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rdi, rax
call rbx
mov dword [rsp + 0x30], 2
mov r8, rbp
mov rdx, rdi
mov dword [rsp + 0x28], 0
lea r9, [rsi + 0x28]
mov rcx, rax
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_DuplicateHandle]
test eax, eax
je 0x8f6b20
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.DLL_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x00a5bf88]
mov dword [rsi + 0xbc], 0
mov dword [rsi + 0xc0], eax
movzx eax, byte [rsi + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rsi + 0x40], al
call qword [sym.imp.KERNEL32.DLL_TlsSetValue]
test eax, eax
je 0x8f6b20
mov rbx, rsi
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
Function at 0x8f80c0
Capabilities:
Create thread
Resume thread

Disassembly:
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rbp, rcx
mov r13, rdx
mov rsi, r8
mov rdi, r9
call fcn.008f67e0
test rax, rax
mov rbx, rax
je 0x8f8248
test rbp, rbp
je 0x8f80fb
mov rax, qword [rax + 0x1d8]
mov qword [rbp], rax
mov r12, qword [sym.imp.KERNEL32.DLL_Sleep]
mov qword [rbx + 8], rdi
mov rdi, qword [sym.imp.KERNEL32.DLL_CreateEventA]
mov qword [rbx + 0x10], rsi
xor esi, esi
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0x44], 1
mov qword [rbx + 0x28], 0xffffffffffffffff
mov r14, r12
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov edx, 1
call rdi
test rax, rax
mov qword [rbx + 0x30], rax
jne 0x8f8170
test rsi, rsi
je 0x8f8160
mov ecx, 0x14
call r14
cmp esi, 4
je 0x8f8170
add rsi, 1
jmp 0x8f812f
xor ecx, ecx
call r12
jmp 0x8f8159
lea rsi, [rbx + 0x68]
mov qword [rbx + 0x38], 0xffffffffffffffff
mov rcx, rsi
call fcn.008f68a0
cmp qword [rbx + 0x30], 0
mov dword [rbx], 0xbab1f00d
mov dword [rbx + 0xc0], 0
mov dword [rbx + 0xb8], 0
je 0x8f822d
xor edx, edx
test r13, r13
je 0x8f81cd
mov eax, dword [r13]
mov edx, dword [r13 + 0x10]
test al, 8
mov dword [rbx + 0x44], eax
jne 0x8f8300
mov eax, dword [r13 + 0x18]
mov dword [rbx + 0xc0], eax
xor ecx, ecx
mov dword [rsp + 0x20], 4
mov r9, rbx
mov qword [rsp + 0x28], 0
lea r8, [0x008f6ea0]
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov rdi, rax
lea rax, [rax - 1]
cmp rax, 0xfffffffffffffffd
jbe 0x8f8260
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x8f820c
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rcx, [rbx + 0x38]
call fcn.008f5b60
mov rcx, rsi
call fcn.008f68a0
mov qword [rbx + 0x30], 0
mov qword [rbx + 0x28], 0
test rbp, rbp
je 0x8f823a
mov qword [rbp], 0
cmp qword [rbx + 0x1d0], 0
je 0x8f82f0
mov eax, 0xb
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov eax, dword [rbx + 0xc0]
mov edx, 0xfffffff1
cmp eax, 0xfffffff2
jl 0x8f8290
add edx, 0xd
cmp eax, 0xffffffff
jl 0x8f8290
cmp eax, 0xe
mov edx, 0xf
jle 0x8f8320
nop word cs:[rax + rax]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov rcx, qword [rbx + 0x30]
call qword [sym.imp.KERNEL32.DLL_ResetEvent]
test byte [rbx + 0x44], 4
jne 0x8f82d0
mov qword [rbx + 0x28], rdi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
mov rcx, rdi
mov qword [rbx + 0x28], 0
call qword [sym.imp.KERNEL32.DLL_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
jmp 0x8f82b6
mov rcx, rbx
call fcn.008f65a0
jmp 0x8f8248
mov dword [rsp + 0x3c], edx
call fcn.008f69f0
mov edx, dword [rsp + 0x3c]
mov eax, dword [rax + 0xc0]
mov dword [rbx + 0xc0], eax
jmp 0x8f81cd
cmp eax, 2
mov edx, 2
cmovle edx, eax
jmp 0x8f8290
Function at 0x904580
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x138
mov rbx, rcx
call sub.msvcrt.dll__errno
test rbx, rbx
mov dword [rax], 0
je 0x904710
cmp byte [rbx], 0
je 0x9046d1
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x904700
test al, 0x10
je 0x9046d1
lea rdi, [rsp + 0x20]
mov rdx, rbx
mov r8d, 0x104
mov rcx, rdi
mov rbx, rdi
call sub.msvcrt.dll__fullpath
mov edx, dword [rbx]
add rbx, 4
lea eax, [rdx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x9045de
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea rdx, [rbx + 2]
mov ecx, eax
cmove rbx, rdx
add cl, al
sbb rbx, 3
sub rbx, rdi
lea rcx, [rbx + 0x24b]
call sub.msvcrt.dll_malloc
test rax, rax
mov rsi, rax
je 0x9046f0
lea r9, [rax + 0x244]
mov rdx, rdi
lea rbp, [rbx + 1]
mov rcx, r9
mov r8, rbp
call sub.msvcrt.dll_memcpy
cmp byte [rsi + 0x244], 0
mov r9, rax
jne 0x9046b0
add rbx, rax
mov eax, 0x2a
mov ecx, 0x20
lea rdx, [rsi + 0x130]
mov word [rbx], ax
xor eax, eax
mov qword [rsi + 0x238], 0xffffffffffffffff
mov rdi, rdx
mov dword [rsi + 0x240], 0
mov qword [rsi + 0x128], 0
rep stosq qword [rdi], rax
mov dword [rdi], 0
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
movzx eax, byte [rsi + rbx + 0x243]
add rbx, r9
cmp al, 0x5c
je 0x904655
cmp al, 0x2f
je 0x904655
mov edx, 0x5c
mov word [rbx], dx
lea rbx, [r9 + rbp]
jmp 0x904655
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0x14
mov rax, rsi
add rsp, 0x138
pop rbx
pop rsi
pop rdi
pop rbp
ret
call sub.msvcrt.dll__errno
mov dword [rax], 0xc
jmp 0x904697
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 2
jmp 0x904697
call sub.msvcrt.dll__errno
xor esi, esi
mov dword [rax], 0xe
jmp 0x904697
Function at 0x9103c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x010aa3a4]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x910548
mov rax, qword [0x010aa3a8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x91040c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x910495
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x9103f0
mov rcx, rbx
call fcn.00911060
test rax, rax
mov r12, rax
je 0x91057d
mov rax, qword [0x010aa3a8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.00911190
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x010aa3a8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.DLL_VirtualQuery]
test rax, rax
je 0x910560
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x91048e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x9104f0
add dword [0x010aa3a4], 1
cmp edi, 8
jae 0x9104c3
test dil, 4
jne 0x910534
test edi, edi
je 0x9104b8
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x91054f
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x9104b8
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x9104dc
jmp 0x9104b8
add rsi, qword [0x010aa3a8]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
jne 0x91048e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.00a17020
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x9104b8
xor esi, esi
jmp 0x910417
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x9104b8
mov rax, qword [0x010aa3a8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.00a17020
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.00a17020
nop
nop dword [rax]

Function at 0x910cd0
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x010aa680]
call qword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
mov rbx, qword [0x010aa660]
test rbx, rbx
je 0x910d24
mov rbp, qword [sym.imp.KERNEL32.DLL_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.DLL_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x910d1b
test rsi, rsi
je 0x910d1b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x910d00
lea rcx, [0x010aa680]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]