joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000ae38
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x140013148]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
xor ebx, ebx
xor edi, edi
xor esi, esi
call qword [sym.imp.api_ms_win_core_libraryloader_l1_2_0.dll_GetModuleFileNameW]
mov ebp, 0x80070000
test eax, eax
jne 0x14000aea9
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
lea rcx, str.GetModuleFileName_failed__0x_08X__n
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.14000c950
test ebx, ebx
js 0x14000afb7
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_OpenSCManagerW]
test rax, rax
je 0x14000aec1
mov rdi, rax
jmp 0x14000aedf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
lea rcx, str.OpenSCManager_failed__0x_08X__n
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.14000c950
test ebx, ebx
js 0x14000afa5
lea rax, [0x14000e670]
mov r9d, 0x14
mov qword [rsp + 0x60], rax
lea r8, [0x14000ee70]
lea rax, str..LocalSystem
mov rcx, rdi
mov qword [rsp + 0x58], rax
lea rdx, str.PerceptionSimulation
lea rax, str.rpcss
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
and qword [rsp + 0x48], rsi
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CreateServiceW]
test rax, rax
je 0x14000af5e
mov rsi, rax
jmp 0x14000af7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ebx, ax
lea rcx, str.CreateService_failed__0x_08X__n
or ebx, ebp
test eax, eax
cmovle ebx, eax
mov edx, ebx
call fcn.14000c950
test ebx, ebx
js 0x14000af93
lea rdx, str.PerceptionSimulation
lea rcx, str._ls_is_installed.
call fcn.14000c950
test rsi, rsi
je 0x14000afa5
mov rcx, rsi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000aff8
test rdi, rdi
je 0x14000afb7
mov rcx, rdi
call qword [sym.imp.api_ms_win_service_management_l1_1_0.dll_CloseServiceHandle]
test eax, eax
je 0x14000afe2
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14000b710
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, ebp
test eax, eax
cmovle ecx, eax
call fcn.140003d00
int3
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
movzx ecx, ax
or ecx, ebp
test eax, eax
cmovle ecx, eax
call fcn.140003d00
int3
Function at 0x14000b738
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.api_ms_win_core_debug_l1_1_0.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140013700], eax
call fcn.14000c0f0
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_UnhandledExceptionFilter]
cmp dword [0x140013700], 0
jne case.default.0x14000b78e
mov ecx, 1
call fcn.14000c0f0
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
enter 0xffffffffffffa52f, 0xffffffffffffffa0
xor al, 0xa7
rcr byte [rcx + 0x66], cl
lodsd eax, dword [rsi]
test al, 0x6d
test eax, 0x4d7d53a5
call 0xd7e22d33
invalid
Function at 0x10010a80
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x10010b10
cmp r10, r11
jb 0x10010b86
cmp r10, rdx
ja 0x10010b9a
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x10010b12
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x10010af0
jmp 0x10010b74
ja 0x10010b1a
mov r11, r10
cmp rax, r8
jne 0x10010ab4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x10010b50
mov rdi, r8
sub ecx, edx
jns 0x10010b6b
jmp 0x10010b76
cmp r8, rsi
je 0x10010bab
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x10010b76
xor al, 1
cmp rdi, rsi
jne 0x10010b30
jmp 0x10010b76
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.1000f090
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1000e630
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_eb26296b556cef10fb713a38f3d16b9886080f26library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.1000ea10
ud2
Function at 0x10012760
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x48
movdqa xmmword [rsp + 0x30], xmm9
movdqa xmmword [rsp + 0x20], xmm8
movdqa xmmword [rsp + 0x10], xmm7
movdqa xmmword [rsp], xmm6
cmp r8, 0x80
jb 0x1001297d
movdqu xmm4, xmmword [rdx]
movdqu xmm3, xmmword [rdx + 0x10]
movdqu xmm2, xmmword [rdx + 0x20]
movdqu xmm1, xmmword [rdx + 0x30]
not ecx
movd xmm0, ecx
pxor xmm0, xmm4
add rdx, 0x40
add r8, 0xffffffffffffffc0
movabs rax, 0x154442bd4
movq xmm4, rax
movdqa xmm5, xmmword [0x1004f0e0]
nop word cs:[rax + rax]
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm7, xmm0
pclmulqdq xmm7, xmm5, 0x11
movdqu xmm0, xmmword [rdx]
pxor xmm0, xmm6
pxor xmm0, xmm7
movdqu xmm6, xmmword [rdx + 0x10]
movdqu xmm7, xmmword [rdx + 0x20]
movdqu xmm8, xmmword [rdx + 0x30]
movdqa xmm9, xmm3
pclmulqdq xmm9, xmm4, 0
pxor xmm9, xmm6
pclmulqdq xmm3, xmm5, 0x11
pxor xmm3, xmm9
movdqa xmm6, xmm2
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm7
pclmulqdq xmm2, xmm5, 0x11
pxor xmm2, xmm6
movdqa xmm6, xmm1
pclmulqdq xmm6, xmm4, 0
pxor xmm6, xmm8
pclmulqdq xmm1, xmm5, 0x11
pxor xmm1, xmm6
add rdx, 0x40
add r8, 0xffffffffffffffc0
cmp r8, 0x3f
ja 0x100127d0
movabs rax, 0x1751997d0
movq xmm4, rax
movdqa xmm6, xmm0
pclmulqdq xmm6, xmm4, 0
movdqa xmm5, xmmword [0x1004f0f0]
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm6
pxor xmm0, xmm3
movdqa xmm3, xmm0
pclmulqdq xmm3, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm3
pxor xmm0, xmm2
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
pxor xmm0, xmm1
cmp r8, 0x10
jb 0x100128fa
nop word cs:[rax + rax]
movdqu xmm1, xmmword [rdx]
add r8, 0xfffffffffffffff0
add rdx, 0x10
movdqa xmm2, xmm0
pclmulqdq xmm2, xmm4, 0
pxor xmm2, xmm1
pclmulqdq xmm0, xmm5, 0x11
pxor xmm0, xmm2
cmp r8, 0xf
ja 0x100128d0
movdqa xmm1, xmmword [0x1004f0f0]
pclmulqdq xmm1, xmm0, 1
psrldq xmm0, 8
pxor xmm0, xmm1
pxor xmm1, xmm1
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
movabs rax, 0x163cd6124
movq xmm3, rax
pclmulqdq xmm3, xmm2, 0
psrldq xmm0, 4
pxor xmm0, xmm3
pxor xmm2, xmm2
pblendw xmm2, xmm0, 3
pclmulqdq xmm2, xmmword [0x1004f100], 0x10
pblendw xmm2, xmm1, 0xfc
movabs rax, 0x1db710641
movq xmm1, rax
pclmulqdq xmm1, xmm2, 0
pxor xmm1, xmm0
pextrd ecx, xmm1, 1
not ecx
test r8, r8
je 0x1001299b
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
jmp fcn.100122f0
mov eax, ecx
movaps xmm6, xmmword [rsp]
movaps xmm7, xmmword [rsp + 0x10]
movaps xmm8, xmmword [rsp + 0x20]
movaps xmm9, xmmword [rsp + 0x30]
add rsp, 0x48
ret
Function at 0x10021aa0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x10021afb
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x10021afb
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x10021b16
cmp eax, 0x42
jne 0x10021afb
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x10021bc6
cmp byte [r9 + r11], 0x5f
jne 0x10021bc6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x10021c2e
mov rcx, rsi
xor edx, edx
call fcn.1001d0a0
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.1001d0a0
test al, al
jne 0x10021cc1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10021b52
lea rdx, [0x100c6943]
mov r8d, 1
call fcn.1000e6b0
test al, al
jne 0x10021cc1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x10021b0a
xor r14d, r14d
lea rbx, [0x100c6d36]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x10021b84
cmp byte [rax + rcx], 0x45
je 0x10021cea
sub r14, 1
jb 0x10021ba9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10021ba9
mov r8d, 2
mov rdx, rbx
call fcn.1000e6b0
test al, al
jne 0x10021cc1
mov rcx, rsi
call fcn.10021d00
test al, al
jne 0x10021cc1
mov rax, qword [rsi]
test rax, rax
jne 0x10021b70
jmp 0x10021b0a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x10021c88
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x10021c22
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x10021c0c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x10021bfb
add dl, 0xa9
jmp 0x10021c0a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x10021c88
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x10021c88
movzx edx, bl
add rax, rdx
jae 0x10021bd0
jmp 0x10021c88
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x10021c88
cmp rax, rcx
jae 0x10021c85
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x10021cc9
cmp qword [rsi + 0x20], 0
je 0x10021cf6
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.10021aa0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x10021b0c
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10021cd8
lea rax, [0x100c6d01]
lea rdx, str.recursion_limit_reachedinvalid_syntax
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
or r8, 0x10
call fcn.1000e6b0
test al, al
je 0x10021cd8
mov dil, 2
jmp 0x10021b0a
mov dil, 1
xor r8d, r8d
mov rcx, qword [rsi + 0x20]
test rcx, rcx
jne 0x10021c93
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x10021b0a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x10021b0a
xor edi, edi
jmp 0x10021b0a
Function at 0x10024f10
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1004e060]
test ecx, ecx
je 0x10024f40
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x10024f59
mov rdi, rax
cmp qword [rax + 8], 0
je 0x10024f59
add rdi, 0x10
jmp 0x10025039
lea rcx, [0x1004e048]
call fcn.10025870
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x10024f2d
mov ecx, dword [0x1004e060]
test ecx, ecx
je 0x1002501a
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x10025037
mov rsi, rax
test rax, rax
jne 0x10024fea
movzx eax, byte [0x100cf160]
mov rcx, qword [0x100cf0d0]
test rcx, rcx
jne 0x10024fab
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x10025053
mov rcx, rax
mov qword [0x100cf0d0], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x10025053
mov rsi, rax
lea rax, [0x1004e048]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1004e060]
test ecx, ecx
je 0x10025043
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
cmp qword [rsi + 8], 0
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 8], 1
xorps xmm0, xmm0
movups xmmword [rsi + 0x10], xmm0
je 0x10025039
test rcx, rcx
je 0x10025039
lock dec qword [rcx]
jne 0x10025039
call fcn.10025080
jmp 0x10025039
lea rcx, [0x1004e048]
call fcn.10025870
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x10024f78
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1004e048]
call fcn.10025870
mov ecx, eax
jmp 0x10024fe2
mov ecx, 8
mov edx, 0x20
call fcn.1000cd70
ud2
Function at 0x10025870
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x100258ee
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.kernel32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x1002592f
cmp dword [rsp + 0x2c], 0
je 0x10025913
call sub.kernel32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x10025949
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x100cf0d8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x100cf0d8], rsi
jne 0x100258d0
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
jmp 0x10025925
call sub.kernel32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x10025995
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x10025918
mov edi, dword [rsp + 0x28]
jmp 0x10025925
mov edi, dword [rsi + 0x18]
jmp 0x10025923
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.kernel32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.100259d0
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.kernel32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x100c96d8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.1000dd10
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, [0x100c96d8]
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.10025a40
ud2
Function at 0x100276f0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1004e040]
test ecx, ecx
je 0x1002771d
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jbe 0x10027736
cmp qword [rax + 8], 0
je 0x10027736
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1004e028]
call fcn.10025870
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
ja 0x1002770c
mov ecx, dword [0x1004e040]
test ecx, ecx
je 0x100277e1
dec ecx
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
je 0x100277fe
mov rsi, rax
test rax, rax
jne 0x100277c3
movzx eax, byte [0x100cf160]
mov rcx, qword [0x100cf0d0]
test rcx, rcx
jne 0x10027788
call sub.kernel32.dll_GetProcessHeap
test rax, rax
je 0x10027816
mov rcx, rax
mov qword [0x100cf0d0], rax
mov r8d, 0x20
xor edx, edx
call sub.kernel32.dll_HeapAlloc
test rax, rax
je 0x10027816
mov rsi, rax
lea rax, [0x1004e028]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1004e040]
test ecx, ecx
je 0x10027806
dec ecx
mov rdx, rsi
call sub.kernel32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1004e028]
call fcn.10025870
mov ecx, eax
call sub.kernel32.dll_TlsGetValue
cmp rax, 1
jne 0x10027755
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1004e028]
call fcn.10025870
mov ecx, eax
jmp 0x100277bb
mov ecx, 8
mov edx, 0x20
call fcn.1000cd70
ud2
Function at 0x1002a400
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
mov rdi, rdx
movzx ebp, byte [rdx + 0x38]
xor ebx, ebx
cmp bpl, 1
setne dl
mov eax, 0
sbb eax, eax
mov rsi, rcx
or al, dl
movzx ecx, al
cmp cl, 0xff
je 0x1002a430
test ecx, ecx
jne 0x1002a480
movzx ebx, byte [rdi + 0x3a]
cmp al, 0xff
je 0x1002a43c
test ecx, ecx
jne 0x1002a480
mov rcx, rdi
call fcn.1002a2e0
movzx eax, al
test bpl, bpl
jne 0x1002a487
lea rdx, [rdi + 0x10]
xor ecx, ecx
cmp byte [rdi + 0x10], 6
cmove rdx, rcx
je case.0x1002a473.2
movzx r8d, byte [rdx]
mov ecx, 6
lea r9, [0x1002a5f8]
movsxd r8, dword [r9 + r8*4]
add r8, r9
jmp r8
mov rcx, qword [rdx + 0x10]
add rcx, 4
jmp case.0x1002a473.2
xor eax, eax
test bpl, bpl
je 0x1002a44c
xor ecx, ecx
add rax, rcx
movzx r10d, bl
lea rcx, [rax + r10]
mov rdx, qword [rdi + 8]
cmp rdx, rcx
jb 0x1002a5d9
mov r11, qword [rdi]
lea r8, [r11 + rcx]
cmp rdx, rcx
jne 0x1002a4ba
movzx r9d, byte [rdi + 0x10]
xor r10d, r10d
jmp 0x1002a539
movzx r9d, byte [rdi + 0x10]
add rax, r10
sub rax, rdx
inc rax
lea rdi, [rdx + r11]
dec rdi
xor r10d, r10d
cmp r9b, 3
jae 0x1002a500
nop dword [rax + rax]
cmp byte [rdi], 0x5c
je 0x1002a51b
inc rax
dec rdi
cmp rax, 1
jne 0x1002a4e0
jmp 0x1002a539
movzx ebx, byte [rdi]
cmp ebx, 0x2f
je 0x1002a51b
cmp ebx, 0x5c
je 0x1002a51b
inc rax
dec rdi
cmp rax, 1
jne 0x1002a500
jmp 0x1002a539
neg rax
add rcx, rax
inc rcx
cmp rdx, rcx
jb 0x1002a5e7
add r11, rcx
mov r10d, 1
mov r8, r11
sub rdx, rcx
je 0x1002a563
mov al, 9
cmp rdx, 2
je 0x1002a567
cmp rdx, 1
jne 0x1002a577
cmp byte [r8], 0x2e
jne 0x1002a577
xor eax, eax
cmp r9b, 3
setae al
lea eax, [rax + rax*2]
add eax, 7
jmp 0x1002a577
mov al, 0xa
jmp 0x1002a577
cmp byte [r8], 0x2e
jne 0x1002a577
cmp byte [r8 + 1], 0x2e
sete al
xor al, 9
add r10, rdx
mov qword [rsi], r10
mov byte [rsi + 8], al
mov qword [rsi + 0x10], r8
mov qword [rsi + 0x18], rdx
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
ret
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 8
jmp case.0x1002a473.2
mov rcx, qword [rdx + 0x10]
mov rdx, qword [rdx + 0x20]
lea r8, [rdx + 1]
test rdx, rdx
cmove r8, rdx
add rcx, r8
add rcx, 2
jmp case.0x1002a473.2
mov ecx, 2
jmp case.0x1002a473.2
lea r8, [0x100c7fc8]
call fcn.1000e5b0
ud2
lea r8, [0x100c7fe0]
call fcn.1000e5b0
ud2
Function at 0x1004bf30
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x100cf724]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x1004c0b8
mov rax, qword [0x100cf728]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x1004bf7c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x1004c005
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x1004bf60
mov rcx, rbx
call fcn.1004cbd0
test rax, rax
mov r12, rax
je 0x1004c0ed
mov rax, qword [0x100cf728]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.1004cd00
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x100cf728]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1004c0d0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x1004bffe
sub eax, 0x40
and eax, 0xffffffbf
jne 0x1004c060
add dword [0x100cf724], 1
cmp edi, 8
jae 0x1004c033
test dil, 4
jne 0x1004c0a4
test edi, edi
je 0x1004c028
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x1004c0bf
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 0x1004c028
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 0x1004c04c
jmp 0x1004c028
add rsi, qword [0x100cf728]
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 0x1004bffe
call qword [sym.imp.kernel32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1004d330
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x1004c028
xor esi, esi
jmp 0x1004bf87
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x1004c028
mov rax, qword [0x100cf728]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.1004d330
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.1004d330
nop
nop dword [rax]

Function at 0x1004c840
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x100cfa00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x100cf9e0]
test rbx, rbx
je 0x1004c894
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 0x1004c88b
test rsi, rsi
je 0x1004c88b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1004c870
lea rcx, [0x100cfa00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x1004cbd0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x100c9bd0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x1004cc3d
mov rcx, r8
call fcn.1004cab0
test eax, eax
je 0x1004cc3d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x1004cc3d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1004cc34
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1004cc3f
add rax, 0x28
cmp rax, r9
jne 0x1004cc20
xor eax, eax
add rsp, 0x28
ret

Function at 0x1004cf00
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rdx]
movdqu xmm0, xmmword [r8]
sub r8, 0x10
pxor xmm1, xmm0
movdqu xmm0, xmmword [r8]
sub r8, 0x10
aesdec xmm1, xmm0
sub cl, 1
cmp cl, 1
jne 0x1004cf11
movdqu xmm0, xmmword [r8]
aesdeclast xmm1, xmm0
movdqu xmmword [r9], xmm1
ret

Function at 0x1004cf80
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
movdqu xmm1, xmmword [rcx]
movdqu xmmword [rdx], xmm1
add rdx, 0x10
aeskeygenassist xmm2, xmm1, 1
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 2
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 4
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 8
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 0x10
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 0x20
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 0x40
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 0x80
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 0x1b
call fcn.1004cffc
aeskeygenassist xmm2, xmm1, 0x36
call fcn.1004cffc
jmp 0x1004d029
ret

Function at 0x1004d330
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x100013a0]
jmp 0x10001380
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.1004cec0
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.1004cec0
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 0x10001390