joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec30
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 [0x004a4d80], 1
je 0x43ec46
call fcn.0043eba0
mov ecx, dword [0x00443478]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
mov rbx, rax
je 0x43ec70
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop rbp
ret
call fcn.0043ea20
cmp qword [0x004a6050], 0
mov rsi, rax
je 0x43ec5a
test rax, rax
je 0x43ec5a
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.0043eae0
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 0x43ed60
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov rdx, rsi
mov ecx, dword [0x00443478]
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 0x43ed60
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 0x442a80
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp fcn.00401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.0043dad0
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.0043dad0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530
Function at 0x180001310
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x180007040]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, rdx
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x28], rdx
call fcn.1800030a0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call fcn.180003760
mov rdx, rbx
lea rcx, [rsp + 0x20]
call fcn.180002bd0
test eax, eax
je 0x180001383
mov r9d, 0x10
lea r8, str.Error
lea rdx, str.Failed_to_attach_hook.
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.180003160
mov rbx, qword [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.1800013b0
mov qword [rax], rbx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180003f60
add rsp, 0x40
pop rbx
ret
Function at 0x1800024b0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
add rdx, 0xffffffffffff0000
mov rdi, rcx
movzx eax, dx
mov rbx, rdx
sub rbx, rax
test rax, rax
cmove rbx, rdx
cmp rbx, rcx
jbe 0x18000258b
nop dword [rax]
cmp rbx, qword [section..data]
jb 0x1800024fe
cmp rbx, qword [0x180007008]
ja 0x1800024fe
sub rbx, 0x8000000
jmp 0x180002582
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000258b
cmp dword [rsp + 0x40], 0x10000
jne 0x180002566
cmp qword [rsp + 0x38], 0x10000
jb 0x180002566
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000258d
sub rbx, 0x10000
jmp 0x180002582
mov rcx, qword [rsp + 0x28]
add rcx, 0xffffffffffff0000
movzx eax, cx
mov rbx, rcx
sub rbx, rax
test rax, rax
cmove rbx, rcx
cmp rbx, rdi
ja 0x1800024e0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x1800025a0
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
movzx eax, cx
mov rdi, rdx
mov rbx, rcx
test rax, rax
je 0x1800025c2
sub rbx, rax
add rbx, 0x10000
cmp rbx, rdi
jae 0x18000267d
nop dword [rax + rax]
cmp rbx, qword [section..data]
jb 0x1800025ee
cmp rbx, qword [0x180007008]
ja 0x1800025ee
add rbx, 0x8000000
jmp 0x180002674
xorps xmm0, xmm0
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rbx
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x18000267d
cmp dword [rsp + 0x40], 0x10000
mov rcx, qword [rsp + 0x38]
jne 0x180002659
cmp rcx, 0x10000
jb 0x180002659
mov edx, 0x10000
mov r9d, 0x40
mov r8d, 0x3000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18000267f
add rbx, 0x10000
jmp 0x180002674
mov rbx, qword [rsp + 0x20]
add rbx, rcx
movzx ecx, bx
test rcx, rcx
je 0x180002674
mov eax, 0x10000
sub rax, rcx
add rbx, rax
cmp rbx, rdi
jb 0x1800025d0
xor eax, eax
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180002690
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x1800026b2
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x1800026ce
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x1800026e5
cmp byte [rcx + 1], 0x25
jne 0x180002729
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x1800026f1
cmp al, 0xe9
jne 0x180002729
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x180002714
cmp rcx, 0xffffffff80000000
jae 0x18000270b
lea rsi, [rcx + 0x7ff80000]
jmp 0x180002729
mov rsi, 0xfffffffffff80000
jmp 0x180002729
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x180002729
mov edi, 0x80000
mov rdx, qword [0x180007158]
mov rax, qword [0x180007150]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x180002750
test rax, rax
je 0x180002767
mov rdx, rax
mov qword [0x180007158], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x180002767
cmp rcx, rdi
jb 0x180002767
cmp rcx, rsi
jbe 0x1800028ba
mov qword [0x180007158], rax
mov rdx, rax
test rax, rax
je 0x1800027b2
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x18000279c
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x18000279c
cmp rax, rdi
jb 0x18000279c
cmp rax, rsi
jbe 0x1800028ba
mov rdx, qword [rdx + 8]
mov qword [0x180007158], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x180002780
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x1800027dc
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.1800024b0
mov rdx, rax
test rax, rax
jne 0x180002868
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x180002802
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.1800025a0
mov rdx, rax
test rax, rax
jne 0x180002868
cmp rbx, 0x40000000
jbe 0x180002822
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.1800025a0
mov rdx, rax
test rax, rax
jne 0x180002868
cmp rbx, rbp
jae 0x18000283e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.1800024b0
mov rdx, rax
test rax, rax
jne 0x180002868
mov rdx, rbx
mov rcx, rdi
call fcn.1800024b0
mov rdx, rax
test rax, rax
jne 0x180002868
mov rdx, rsi
mov rcx, rbx
call fcn.1800025a0
mov rdx, rax
test rax, rax
je 0x1800028f1
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x180007158], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x180007150]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x180007150], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x1800028a2
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x1800028f1
cmp rax, rsi
ja 0x1800028f1
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x1800052a0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x1800028f3
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x180002b50
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
mov rbx, rdx
mov r8d, 0x30
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
nop
mov eax, 0x5a4d
mov rcx, qword [rsp + 0x28]
cmp word [rcx], ax
je 0x180002b7e
xor al, al
jmp 0x180002bc0
movsxd rdx, dword [rcx + 0x3c]
cmp dword [rdx + rcx], 0x4550
je 0x180002b8f
xor al, al
jmp 0x180002bc0
mov r8d, dword [rdx + rcx + 0xe8]
lea rax, [r8 + rcx]
cmp rbx, rax
jb 0x180002bb6
mov eax, dword [rdx + rcx + 0xec]
add rax, r8
add rax, rcx
cmp rbx, rax
jae 0x180002bb6
mov al, 1
jmp 0x180002bc0
xor al, al
add rsp, 0x50
pop rbx
ret
add rsp, 0x50
pop rbx
ret
Function at 0x1800030a0
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
cmp dword [0x180007168], 0
jne 0x180003147
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
xor eax, eax
lock cmpxchg dword [0x180007168], ecx
jne 0x180003147
mov qword [rsp + 0x38], rbx
mov rbx, qword [0x180007150]
mov qword [rsp + 0x20], rdi
xor edi, edi
mov qword [0x180007180], rdi
mov qword [0x180007178], rdi
mov qword [0x180007170], rdi
test rbx, rbx
je 0x180003130
nop word [rax + rax]
lea r9, [rsp + 0x30]
mov edx, 0x10000
mov r8d, 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180003128
mov rbx, qword [rbx + 8]
test rbx, rbx
jne 0x180003100
jmp 0x180003130
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbx, qword [rsp + 0x38]
mov eax, edi
mov dword [0x18000716c], edi
mov rdi, qword [rsp + 0x20]
add rsp, 0x28
ret
mov eax, 0x10dd
add rsp, 0x28
ret
Function at 0x180003760
Capabilities:
Suspend thread

Disassembly:
push rdi
sub rsp, 0x20
mov eax, dword [0x18000716c]
mov rdi, rcx
test eax, eax
jne 0x180003803
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp rdi, rax
jne 0x18000378a
xor eax, eax
add rsp, 0x20
pop rdi
ret
mov ecx, 0x10
mov qword [rsp + 0x30], rbx
call fcn.180003f80
mov rbx, rax
test rax, rax
jne 0x1800037a6
lea edi, [rax + 8]
jmp 0x1800037c9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x1800037e7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov edx, 0x10
mov rcx, rbx
call fcn.180004334
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov dword [0x18000716c], edi
mov qword [0x180007170], 0
add rsp, 0x20
pop rdi
ret
mov rax, qword [0x180007178]
mov qword [rbx], rax
xor eax, eax
mov qword [rbx + 8], rdi
mov qword [0x180007178], rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140002460
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140007040]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov ebx, r8d
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x30], rax
xor esi, esi
lea rbp, [0x1400078e0]
mov qword [rsp + 0x30], rbp
mov word [0x1400078e0], si
mov qword [0x1400078e8], rsi
mov qword [0x1400078f0], rsi
mov qword [0x1400078f8], rsi
mov dword [0x140007900], esi
mov qword [0x140007908], rsi
mov dword [0x140007910], esi
mov qword [0x140007918], rsi
mov qword [0x140007920], rsi
xorps xmm0, xmm0
movups xmmword [0x140007928], xmm0
movups xmmword [0x140007938], xmm0
movups xmmword [0x140007948], xmm0
mov qword [0x140007958], rsi
lea edx, [rsi + 2]
lea rcx, [0x140007910]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
nop
lea rcx, [0x140007960]
call qword [sym.imp.MSVCP140.dll__Cnd_init_in_situ]
nop
test ebx, ebx
je 0x140002647
mov edi, ebx
mov eax, reloc.WS2_32.dll_recv
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov qword [0x140007908], rax
test rax, rax
je 0x140002624
mov byte [0x1400078e0], 1
mov dword [0x140007900], ebx
shl rdi, 4
mov r8, rdi
xor edx, edx
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
lea rdi, [0x1400022f0]
dec ebx
mov ecx, reloc.WS2_32.dll_recv
call fcn.140002d90
mov qword [rax], rbp
mov qword [rax + 8], rdi
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], esi
mov r9, rax
lea r8, [0x1400028e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov qword [rsp + 0x40], rax
test rax, rax
je 0x140002614
mov ecx, ebx
shl rcx, 4
add rcx, qword [0x140007908]
cmp dword [rcx + 8], 0
jne 0x14000260d
xorps xmm0, xmm0
movaps xmm1, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
movups xmmword [rcx], xmm1
cmp dword [rsp + 0x48], 0
jne 0x14000260d
test ebx, ebx
jne 0x140002574
mov rax, rbp
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140002d70
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_terminate]
nop
mov dword [rsp + 0x48], esi
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
lea rdx, str.Unable_to_allocate_memory_for_the_threads_needed_for_the_thread_pool.
lea rcx, [rsp + 0x40]
call fcn.1400020c0
lea rdx, [0x140005ae0]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
lea rdx, str.threads_argument_cannot_be_zero
lea rcx, [rsp + 0x40]
call fcn.140001a10
lea rdx, [0x1400059d8]
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x140002cbc
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140002cf6
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140002cfb
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140002d44
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, reloc.WS2_32.dll_accept
cmp byte [rcx + rax], 0
je 0x140002d44
dec r8
sub rdx, 1
jne 0x140002d2a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140003794
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400037de
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400037de
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400037de
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400037de
cmp dword [rcx + 0x84], 0xe
jbe 0x1400037de
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400037e0
xor al, al
add rsp, 0x28
ret
Function at 0x140010800
Capabilities:
Inspect section memory permissions

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rsi, rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x38], r8
lea rax, [rdx + 0x34]
cmp byte [rdx + 4], 0
lea rcx, [rdx + 0x11c]
cmove rax, rcx
mov ebx, dword [rax]
call sub.KERNEL32.dll_GetCurrentProcess
mov rdi, rax
mov qword [rsp + 0x30], rbx
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, rdi
mov r9d, 2
call fcn.1400dea10
mov rax, qword [rsi + 0x208]
test rax, rax
je 0x140010955
mov rbx, qword [rsi + 0x200]
shl rax, 3
lea r13, [rax + rax*4]
xor esi, esi
lea r14, [rsp + 0x64]
lea r15, [rsp + 0x40]
lea r12, [rsp + 0x30]
nop word cs:[rax + rax]
mov ecx, dword [rbx + rsi + 0x24]
mov eax, ecx
and eax, 0xe0000000
mov r9d, 2
cmp eax, 0x40000000
je 0x140010910
mov edx, ecx
and edx, 0x20000000
cmp ecx, 0xc0000000
jb 0x1400108d2
mov r9d, 4
test edx, edx
je 0x140010910
cmp ecx, 0xc0000000
jb 0x1400108e4
mov r9d, 0x40
test edx, edx
jne 0x140010910
cmp eax, 0x20000000
je 0x1400108fd
mov r9d, 0x20
cmp eax, 0x60000000
je 0x140010910
jmp 0x1400109b5
mov r9d, 0x10
nop word cs:[rax + rax]
mov eax, dword [rbx + rsi + 0xc]
add rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov eax, dword [rbx + rsi + 8]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x20], r14
mov rcx, rdi
mov rdx, r15
mov r8, r12
call fcn.1400dea10
mov ebp, eax
mov rcx, rdi
call fcn.1400de5e0
test ebp, ebp
jne 0x140010964
add rsi, 0x28
cmp r13, rsi
jne 0x1400108a0
mov rax, qword [rsp + 0x28]
mov qword [rax + 8], 0
jmp 0x1400109a4
mov qword [rsp + 0x20], 0x14
lea rdx, [0x1401937eb]
lea r9, [0x140193830]
lea rcx, [rsp + 0x48]
mov r8d, 0x26
call fcn.140010f50
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 0x10], rax
mov rax, rcx
movups xmm0, xmmword [rsp + 0x48]
movups xmmword [rcx], xmm0
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x20], 0x14
lea rdx, [0x140193811]
lea r9, [0x140193830]
lea rcx, [rsp + 0x48]
mov r8d, 0x1f
jmp 0x140010986
Function at 0x140010cd0
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x60
mov r12, r8
mov rdi, rdx
mov r15, rcx
mov rax, qword [rsp + 0xc0]
test rax, rax
je 0x140010d43
cmp rax, 1
jne 0x140010d79
lea rsi, [rdi + r12]
test r12, r12
je 0x140010dbe
setns al
js 0x140010f42
movzx ebp, byte [r9]
movzx r14d, al
mov rcx, r12
mov rdx, r14
call fcn.14000e8b0
test rax, rax
je 0x140010d6c
mov qword [r15], r12
mov qword [r15 + 8], rax
cmp r12, 8
jae 0x140010dee
xor ecx, ecx
mov rbx, rdi
jmp 0x140010efc
test r12, r12
je 0x140010dd2
setns al
js 0x140010f42
movzx r14d, al
mov rcx, r12
mov rdx, r14
call fcn.14000e8b0
mov rcx, rax
test rax, rax
jne 0x140010dd7
mov rcx, r12
mov rdx, r14
call fcn.14018fcb0
ud2
add r12, rdi
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], rdi
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0
lea rdx, [rsp + 0x20]
mov rcx, r15
call fcn.140011480
jmp 0x140010f17
mov qword [r15], 0
mov qword [r15 + 8], 1
jmp 0x140010f13
mov ecx, 1
mov qword [r15], r12
mov qword [r15 + 8], rcx
mov rdx, rdi
mov r8, r12
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140010f13
movzx r8d, bpl
cmp r12, 0x20
jae 0x140010dff
xor ecx, ecx
jmp 0x140010ebb
mov rcx, r12
and rcx, 0xffffffffffffffe0
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
pshufd xmm0, xmm0, 0
lea rdx, [rcx - 0x20]
mov r9, rdx
shr r9, 5
inc r9
test rdx, rdx
je 0x140010f29
mov rdx, r9
and rdx, 0xfffffffffffffffe
xor ebx, ebx
nop dword [rax]
movdqu xmm1, xmmword [rdi + rbx]
movdqu xmm2, xmmword [rdi + rbx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rax + rbx], xmm1
movdqu xmmword [rax + rbx + 0x10], xmm2
movdqu xmm1, xmmword [rdi + rbx + 0x20]
movdqu xmm2, xmmword [rdi + rbx + 0x30]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rax + rbx + 0x20], xmm1
movdqu xmmword [rax + rbx + 0x30], xmm2
add rbx, 0x40
add rdx, 0xfffffffffffffffe
jne 0x140010e40
test r9b, 1
je 0x140010eac
movdqu xmm1, xmmword [rdi + rbx]
movdqu xmm2, xmmword [rdi + rbx + 0x10]
pxor xmm1, xmm0
pxor xmm2, xmm0
movdqu xmmword [rax + rbx], xmm1
movdqu xmmword [rax + rbx + 0x10], xmm2
cmp rcx, r12
je 0x140010f13
test r12b, 0x18
je 0x140010f3a
mov rdx, rcx
mov rcx, r12
and rcx, 0xfffffffffffffff8
lea rbx, [rdi + rcx]
movd xmm0, r8d
punpcklbw xmm0, xmm0
pshuflw xmm0, xmm0, 0
nop word [rax + rax]
movq xmm1, qword [rdi + rdx]
pxor xmm1, xmm0
movq qword [rax + rdx], xmm1
add rdx, 8
cmp rcx, rdx
jne 0x140010ee0
cmp rcx, r12
je 0x140010f13
add rax, rcx
nop
movzx ecx, byte [rbx]
xor cl, bpl
inc rbx
mov byte [rax], cl
inc rax
cmp rbx, rsi
jne 0x140010f00
mov qword [r15 + 0x10], r12
mov rax, r15
add rsp, 0x60
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
xor ebx, ebx
test r9b, 1
jne 0x140010e8e
jmp 0x140010eac
add rdi, rcx
jmp 0x140010d3b
call fcn.140173890
ud2
Function at 0x140011280
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
mov r9, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x1400112c7
mov r15d, 8
sub r15, r11
cmp r8, r15
mov rax, r15
cmovb rax, r8
cmp rax, 3
jbe 0x1400112cf
mov r14d, dword [rdx]
mov r10d, 4
mov rcx, r10
or rcx, 1
cmp rcx, rax
jb 0x1400112e1
jmp 0x1400112f8
xor r15d, r15d
jmp 0x140011383
xor r10d, r10d
xor r14d, r14d
mov rcx, r10
or rcx, 1
cmp rcx, rax
jae 0x1400112f8
movzx edi, word [rdx + r10]
lea ecx, [r10*8]
shl rdi, cl
or r14, rdi
or r10, 2
cmp r10, rax
jae 0x14001130f
movzx eax, byte [rdx + r10]
shl r10d, 3
mov ecx, r10d
shl rax, cl
or r14, rax
lea ecx, [r11*8]
shl r14, cl
or r14, qword [r9 + 0x38]
mov qword [r9 + 0x38], r14
cmp r15, r8
jbe 0x14001132f
add r11, r8
jmp 0x140011469
mov rdi, qword [r9 + 0x18]
mov rcx, qword [r9 + 0x10]
mov rax, qword [r9]
add rax, rcx
rol rcx, 0xd
xor rdi, r14
xor rcx, rax
rol rax, 0x20
mov rsi, qword [r9 + 8]
add rsi, rdi
rol rdi, 0x10
xor rdi, rsi
add rax, rdi
rol rdi, 0x15
xor rdi, rax
add rsi, rcx
rol rcx, 0x11
mov qword [r9 + 0x18], rdi
xor rcx, rsi
rol rsi, 0x20
mov qword [r9 + 0x10], rcx
mov qword [r9 + 8], rsi
xor rax, r14
mov qword [r9], rax
sub r8, r15
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r15, r8
jae 0x140011402
mov rax, qword [r9 + 0x18]
mov rsi, qword [r9]
mov rcx, qword [r9 + 8]
mov rdi, qword [r9 + 0x10]
nop word cs:[rax + rax]
add rsi, rdi
rol rdi, 0xd
mov rbx, qword [rdx + r15]
xor rdi, rsi
rol rsi, 0x20
xor rax, rbx
add rcx, rax
rol rax, 0x10
xor rax, rcx
add rsi, rax
rol rax, 0x15
add rcx, rdi
rol rdi, 0x11
xor rdi, rcx
rol rcx, 0x20
xor rax, rsi
xor rsi, rbx
add r15, 8
cmp r15, r8
jb 0x1400113b0
mov qword [r9 + 0x18], rax
mov qword [r9], rsi
mov qword [r9 + 0x10], rdi
mov qword [r9 + 8], rcx
cmp r11d, 3
jbe 0x140011420
mov esi, dword [rdx + r15]
mov r8d, 4
mov rax, r8
or rax, 1
cmp rax, r11
jb 0x140011431
jmp 0x14001144b
xor r8d, r8d
xor esi, esi
mov rax, r8
or rax, 1
cmp rax, r11
jae 0x14001144b
lea rax, [r8 + r15]
movzx eax, word [rdx + rax]
lea ecx, [r8*8]
shl rax, cl
or rsi, rax
or r8, 2
cmp r8, r11
jae 0x140011465
add r15, r8
movzx eax, byte [rdx + r15]
shl r8d, 3
mov ecx, r8d
shl rax, cl
or rsi, rax
mov qword [r9 + 0x38], rsi
mov qword [r9 + 0x40], r11
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret