joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10011c878
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x180
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0x170], rax
cmp qword [0x100348608], 0
jne 0x10011c9e5
cmp byte [0x1003485f0], 0
jne 0x10011c966
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x50], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x10011c8d6
cmp dword [rsp + 0x54], 6
setb al
mov byte [0x1003485f1], al
test al, al
jne 0x10011c939
lea rcx, [0x1002c8ca0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbx, rax
test rax, rax
je 0x10011c931
lea rdx, [0x1002a2880]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1003485f8], rax
test rax, rax
je 0x10011c931
lea rdx, [0x1002d5f08]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100332078], rax
test rax, rax
jne 0x10011c942
lea rax, [0x10011c6c8]
mov qword [0x100332078], rax
mov al, 1
mov byte [0x1003485f1], al
mov byte [0x1003485f0], 1
jmp 0x10011c96c
lea rdx, [0x100104290]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x100348600], rax
test rax, rax
je 0x10011c923
mov al, byte [0x1003485f1]
jmp 0x10011c939
mov al, byte [0x1003485f1]
test al, al
jne 0x10011c994
lea r9, [0x100348608]
lea r8, [0x100348618]
lea rdx, [0x1002ad76c]
lea rcx, [0x100040888]
call qword [0x100332078]
jmp 0x10011c9e5
and qword [rsp + 0x48], 0
lea rdx, [0x100348618]
lea rax, [0x100040888]
mov qword [rsp + 0x38], rdx
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x40]
mov r9d, 1
mov r8, rax
mov qword [rsp + 0x20], rcx
lea rcx, [0x10011c63c]
mov qword [0x100348608], rdx
mov qword [rsp + 0x40], rax
call qword [sym.imp.ADVAPI32.dll_RegisterTraceGuidsW]
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1002edf64
add rsp, 0x180
pop rbx
ret

Function at 0x10011cea0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rdi, rdx
mov qword [rsp + 0x40], rbx
cmp rcx, rbx
jne 0x10011cece
lea ecx, [rbx + 0x57]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10011cf4e
cmp rdx, rbx
je 0x10011cefc
lea rax, [rsp + 0x40]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x10011cf44
mov rcx, qword [rsp + 0x40]
cmp rcx, rbx
jne 0x10011cf01
jmp 0x10011cf44
mov qword [rsp + 0x40], rcx
lea rdx, [0x100040898]
cmp rdx, rbx
je 0x10011cf32
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x40]
cmp eax, ebx
mov esi, ebx
sete sil
jmp 0x10011cf37
mov esi, 1
cmp rdi, rbx
je 0x10011cf42
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, esi
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x10011cf60
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
and dword [rax + 8], 0
and dword [rax - 0x18], 0
mov rbx, rdx
mov dword [rax + 0x20], 4
test rcx, rcx
jne 0x10011cf9a
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x10011d029
test rdx, rdx
je 0x10011cfca
lea rax, [rsp + 0x38]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10011cfc6
mov rcx, qword [rsp + 0x38]
test rcx, rcx
jne 0x10011cfcf
mov ecx, eax
jmp 0x10011cf8d
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
lea rdx, [0x100040898]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x10011d008
cmp dword [rsp + 0x68], 4
je 0x10011d00d
lea edi, [rax + 0xd]
and dword [rsp + 0x50], 0
test rbx, rbx
je 0x10011d01d
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x100126ef4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
cmp rcx, rdx
je 0x100126f41
cmp rcx, 0xffffffffffffffff
je 0x100126f41
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x100126f39
cmp dword [rcx + 0x3c], edx
jl 0x100126f39
cmp dword [rcx + 0x3c], 0x10000000
jae 0x100126f39
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x100126f41
mov rax, rdx
add rsp, 0x18
ret

Function at 0x100215ac8
Capabilities:
Hash data using sha256

Disassembly:
xor eax, eax
mov dword [rcx], 0x6a09e667
mov dword [rcx + 4], 0xbb67ae85
mov dword [rcx + 8], 0x3c6ef372
mov dword [rcx + 0xc], 0xa54ff53a
mov dword [rcx + 0x10], 0x510e527f
mov dword [rcx + 0x20], eax
mov dword [rcx + 0x24], eax
mov dword [rcx + 0x14], 0x9b05688c
mov dword [rcx + 0x18], 0x1f83d9ab
mov dword [rcx + 0x1c], 0x5be0cd19
ret
Function at 0x1002166f0
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x90
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov esi, dword [rcx + 0x24]
mov edi, 0x40
mov rbp, rdx
mov eax, esi
mov rbx, rcx
and eax, 0x3f
sub edi, eax
cmp edi, 8
ja 0x10021672e
add edi, 0x40
lea r8d, [rdi - 8]
lea rcx, [rsp + 0x30]
xor edx, edx
call sub.msvcrt.dll_memset
mov edx, dword [rbx + 0x20]
mov eax, esi
shr eax, 0x1d
shl edx, 3
lea rcx, [rsp + rdi + 0x28]
or edx, eax
lea eax, [rsi*8]
mov r8d, 2
mov dword [rsp + 0x20], edx
lea rdx, [rsp + 0x20]
mov byte [rsp + 0x30], 0x80
mov dword [rsp + 0x24], eax
call fcn.100216804
lea rdx, [rsp + 0x30]
mov r8d, edi
mov rcx, rbx
call fcn.1002165b4
mov r8d, 8
mov rdx, rbx
mov rcx, rbp
call fcn.100216804
xor eax, eax
lea rdi, [rbx + 0x28]
mov ecx, 0x40
mov dword [rbx], 0x6a09e667
mov dword [rbx + 4], 0xbb67ae85
mov dword [rbx + 8], 0x3c6ef372
mov dword [rbx + 0xc], 0xa54ff53a
mov dword [rbx + 0x10], 0x510e527f
mov dword [rbx + 0x14], 0x9b05688c
mov dword [rbx + 0x18], 0x1f83d9ab
mov dword [rbx + 0x1c], 0x5be0cd19
mov dword [rbx + 0x20], eax
mov dword [rbx + 0x24], eax
rep stosb byte [rdi], al
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0xc0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x1002d5038
Capabilities:
Create new key via cryptacquirecontext
Initialize hashing via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
and qword [rax + 0x10], 0
and qword [rax + 0x18], 0
mov rbp, rdx
mov r12, rcx
test rdx, rdx
jne 0x1002d506a
mov ebx, 0x80070057
jmp 0x1002d5159
call fcn.1002d4e98
mov ebx, eax
test eax, eax
jne 0x1002d5137
lea r9d, [rax + 0x18]
lea rcx, [rsp + 0x58]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1002d5106
lea rdi, [0x10001f180]
lea ecx, [rbx + 0x27]
mov rsi, rbp
repe cmpsw word [rsi], word [rdi]
jne 0x1002d50b2
mov edx, 0x8004
jmp 0x1002d50e7
mov eax, 0x28
lea rdi, [0x10001f130]
mov rsi, rbp
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d50d0
mov edx, 0x800c
jmp 0x1002d50e7
lea rdi, [0x10001f0e0]
mov rsi, rbp
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d5132
mov edx, 0x800e
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x1002d511c
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1002d5137
mov rax, qword [rsp + 0x58]
mov qword [r12 + 0x10], rax
mov rax, qword [rsp + 0x60]
mov qword [r12 + 0x18], rax
jmp 0x1002d5159
mov ebx, 0x80049e5b
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x1002d5147
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1002d5159
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x1002d5528
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
xor ebx, ebx
mov r15, r9
mov r12, rcx
mov dword [rax + 0x10], ebx
mov rbp, rbx
cmp rdx, rbx
je 0x1002d573d
cmp r9, rbx
je 0x1002d573d
mov r13, qword [rsp + 0xb0]
cmp r13, rbx
je 0x1002d573d
cmp qword [rcx + 0x30], rbx
jne 0x1002d5583
mov ebx, 0x80049e51
jmp 0x1002d5742
mov eax, dword [r13]
lea rdi, [0x10001efe0]
mov rsi, rdx
mov dword [rsp + 0x40], eax
mov eax, 0x2c
mov dword [r13], ebx
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d55b1
cmp dword [r12 + 0xc], 1
lea edi, [rax - 0x1c]
jmp 0x1002d55f1
lea rdi, [0x10001ef80]
mov rsi, rdx
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d55d0
cmp dword [r12 + 0xc], 2
mov edi, 0x18
jmp 0x1002d55f1
lea rdi, [0x10001ef20]
mov rsi, rdx
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d5736
cmp dword [r12 + 0xc], 3
mov edi, 0x20
je 0x1002d55fd
mov ebx, 0x80049e2e
jmp 0x1002d5742
mov rcx, qword [r12 + 0x30]
lea r14d, [rdi + r8]
xor r9d, r9d
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], r14d
lea r8d, [r9 + 1]
mov qword [rsp + 0x28], rax
xor edx, edx
mov dword [rsp + 0x98], r14d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp eax, ebx
je 0x1002d5703
mov esi, dword [rsp + 0x98]
mov dword [r13], esi
cmp qword [rsp + 0xb8], rbx
je 0x1002d5742
cmp dword [rsp + 0x40], esi
jae 0x1002d5665
mov ebx, 0x80049e19
jmp 0x1002d5742
mov rcx, rsi
mov dword [rsp + 0x98], r14d
call fcn.10004c2c0
mov rbp, rax
cmp rax, rbx
jne 0x1002d5687
mov ebx, 0x8007000e
jmp 0x1002d5742
mov r8, rsi
xor edx, edx
mov rcx, rax
call sub.msvcrt.dll_memset
mov r8d, dword [rsp + 0xa0]
mov r13d, edi
lea rcx, [r13 + rbp]
mov rdx, r15
call sub.msvcrt.dll_memcpy
xor ecx, ecx
call qword [sym.imp.msvcrt.dll_time]
mov rcx, rax
call qword [sym.imp.msvcrt.dll_srand]
cmp edi, ebx
jbe 0x1002d56d5
mov rdi, rbp
call qword [sym.imp.msvcrt.dll_rand]
mov byte [rdi], al
inc rdi
sub r13, 1
jne 0x1002d56c4
mov rcx, qword [r12 + 0x30]
xor r9d, r9d
lea rax, [rsp + 0x98]
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], rax
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp eax, ebx
jne 0x1002d571c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
movzx eax, ax
or eax, 0x80070000
cmp edx, ebx
cmovle eax, edx
mov ebx, eax
jmp 0x1002d5742
mov r8d, dword [rsp + 0x98]
mov rcx, qword [rsp + 0xb8]
mov rdx, rbp
call sub.msvcrt.dll_memcpy
jmp 0x1002d5742
mov ebx, 0x80049e5b
jmp 0x1002d5742
mov ebx, 0x80070057
mov rcx, rbp
call fcn.10004c2e4
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1002d5764
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor ebx, ebx
mov r14, r9
mov r12, rcx
mov dword [rax + 0x10], ebx
mov rbp, rbx
cmp rdx, rbx
je 0x1002d58d2
cmp r9, rbx
je 0x1002d58d2
mov r13, qword [rsp + 0x80]
cmp r13, rbx
je 0x1002d58d2
cmp qword [rcx + 0x30], rbx
jne 0x1002d57c1
mov ebx, 0x80049e51
jmp 0x1002d58d7
mov r15d, dword [r13]
mov eax, 0x2c
lea rdi, [0x10001efe0]
mov rcx, rax
mov rsi, rdx
mov dword [r13], ebx
repe cmpsw word [rsi], word [rdi]
jne 0x1002d57e8
cmp dword [r12 + 0xc], 1
jmp 0x1002d581e
lea rdi, [0x10001ef80]
mov rsi, rdx
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d5802
cmp dword [r12 + 0xc], 2
jmp 0x1002d581e
lea rdi, [0x10001ef20]
mov rsi, rdx
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d58cb
cmp dword [r12 + 0xc], 3
je 0x1002d582a
mov ebx, 0x80049e2e
jmp 0x1002d58d7
mov ecx, r8d
mov dword [rsp + 0x68], r8d
call fcn.10004c2c0
mov rbp, rax
cmp rax, rbx
jne 0x1002d5849
mov ebx, 0x8007000e
jmp 0x1002d58d7
mov r8d, dword [rsp + 0x68]
mov rdx, r14
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, qword [r12 + 0x30]
lea rdx, [rsp + 0x68]
mov qword [rsp + 0x28], rdx
xor r9d, r9d
xor edx, edx
lea r8d, [r9 + 1]
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp eax, ebx
jne 0x1002d5899
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
movzx eax, ax
or eax, 0x80070000
cmp edx, ebx
cmovle eax, edx
mov ebx, eax
jmp 0x1002d58d7
mov eax, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x88]
add eax, 0xfffffff0
mov dword [r13], eax
cmp rcx, rbx
je 0x1002d58d7
cmp r15d, eax
jae 0x1002d58bd
mov ebx, 0x80049e19
jmp 0x1002d58d7
lea rdx, [rbp + 0x10]
mov r8d, eax
call sub.msvcrt.dll_memcpy
jmp 0x1002d58d7
mov ebx, 0x80049e5b
jmp 0x1002d58d7
mov ebx, 0x80070057
mov rcx, rbp
call fcn.10004c2e4
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1002d5fa8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
sub rsp, 0x30
mov r12, r8
mov r13d, edx
mov rdi, rcx
test r8, r8
je 0x1002d610f
cmp edx, 0x14
jbe 0x1002d610f
mov rcx, qword [rcx + 0x20]
call fcn.10004c2e4
mov rcx, qword [rdi + 0x10]
and qword [rdi + 0x20], 0
call fcn.10004c2e4
and qword [rdi + 0x10], 0
and dword [rdi + 0x18], 0
lea rbp, [rdi + 0x30]
mov rcx, qword [rbp]
test rcx, rcx
je 0x1002d6013
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp], 0
mov ecx, dword [r12 + 0xc]
shr ecx, 3
mov dword [rdi + 0x28], ecx
mov eax, dword [r12 + 0x10]
mov dword [rdi + 0x2c], eax
mov eax, ecx
shr eax, 1
lea eax, [rax + rax*4 + 0x14]
lea ecx, [rax + rcx*2]
cmp r13d, ecx
jne 0x1002d610f
mov rcx, qword [rdi + 0x20]
call fcn.10004c2e4
mov ecx, dword [rdi + 0x28]
and qword [rdi + 0x20], 0
call fcn.10004c2c0
mov qword [rdi + 0x20], rax
test rax, rax
jne 0x1002d6063
mov ebx, 0x8007000e
jmp 0x1002d6114
mov r8d, dword [rdi + 0x28]
lea rdx, [r12 + 0x14]
mov rcx, rax
call sub.msvcrt.dll_memcpy
lea rdx, [rdi + 0x2c]
mov r8d, 4
mov rcx, rdi
call fcn.1002d5350
mov ebx, eax
test eax, eax
jne 0x1002d6114
mov r8d, dword [rdi + 0x28]
mov rdx, qword [rdi + 0x20]
mov rcx, rdi
call fcn.1002d5350
mov ebx, eax
test eax, eax
jne 0x1002d6114
cmp qword [rdi + 0x38], 0
jne 0x1002d60cc
lea r9d, [rax + 0x18]
lea rcx, [rdi + 0x38]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1002d60f0
mov rcx, qword [rdi + 0x38]
xor r9d, r9d
mov r8d, r13d
mov rdx, r12
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1002d6106
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1002d6114
mov dword [rdi + 0xc], 4
jmp 0x1002d6114
mov ebx, 0x80070057
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret
Function at 0x1002d6f70
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r13d, r9d
mov r14, r8
mov rsi, rdx
mov r12, rcx
mov ebx, r15d
mov rbp, r15
cmp rdx, r15
je 0x1002d71a1
cmp qword [rsp + 0x80], r15
je 0x1002d71a1
mov rcx, qword [rcx + 0x20]
call fcn.10004c2e4
mov rcx, qword [r12 + 0x10]
mov qword [r12 + 0x20], r15
call fcn.10004c2e4
lea rdi, [r12 + 0x30]
mov qword [r12 + 0x10], r15
mov rcx, qword [rdi]
mov dword [r12 + 0x18], r15d
mov qword [rsp + 0x68], rdi
cmp rcx, r15
je 0x1002d6ff5
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov qword [rdi], r15
xor edi, edi
cmp qword [r12 + 0x38], rdi
jne 0x1002d7034
lea r9d, [rdi + 0x18]
lea rcx, [r12 + 0x38]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
cmp eax, edi
jne 0x1002d7034
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
cmp eax, edi
jmp 0x1002d7195
cmp r14, rdi
je 0x1002d709f
mov rcx, qword [r12 + 0x10]
call fcn.10004c2e4
or r8, 0xffffffffffffffff
xor eax, eax
mov qword [r12 + 0x10], rdi
mov rcx, r8
mov rdi, r14
repne scasw ax, word [rdi]
lea eax, [r8 + 3]
not rcx
dec rcx
mov dword [r12 + 0x18], ecx
inc ecx
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.10004c2c0
xor edi, edi
mov rcx, rax
mov qword [r12 + 0x10], rax
cmp rax, rdi
je 0x1002d70b3
mov edx, dword [r12 + 0x18]
mov r8, r14
inc edx
call fcn.100076c88
mov ebx, eax
cmp eax, edi
jne 0x1002d71a6
lea r14d, [r13 + 0xc]
mov ecx, r14d
call fcn.10004c2c0
mov rbp, rax
cmp rax, rdi
jne 0x1002d70bd
mov ebx, 0x8007000e
jmp 0x1002d71a6
mov byte [rax], 8
mov byte [rax + 1], 2
mov word [rax + 2], di
cmp r13d, 0x10
jne 0x1002d70f0
lea rdi, [0x10001efe0]
lea ecx, [r13 + 0x1c]
repe cmpsw word [rsi], word [rdi]
jne 0x1002d712e
mov dword [rax + 4], 0x660e
mov dword [r12 + 0xc], 1
jmp 0x1002d7145
cmp r13d, 0x18
jne 0x1002d7118
lea rdi, [0x10001ef80]
lea ecx, [r13 + 0x14]
repe cmpsw word [rsi], word [rdi]
jne 0x1002d712e
mov dword [rax + 4], 0x660f
mov dword [r12 + 0xc], 2
jmp 0x1002d7145
cmp r13d, 0x20
jne 0x1002d719a
lea rdi, [0x10001ef20]
lea ecx, [r13 + 0xc]
repe cmpsw word [rsi], word [rdi]
je 0x1002d7135
mov ebx, 0x80049e2f
jmp 0x1002d71a6
mov dword [rax + 4], 0x6610
mov dword [r12 + 0xc], 3
mov rdx, qword [rsp + 0x80]
lea rcx, [rax + 0xc]
mov r8, r13
mov dword [rax + 8], r13d
call sub.msvcrt.dll_memcpy
mov rdx, qword [rsp + 0x68]
mov rcx, qword [r12 + 0x38]
mov qword [rsp + 0x28], rdx
and dword [rsp + 0x20], r15d
mov rdx, rbp
xor r9d, r9d
mov r8d, r14d
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x1002d71a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
jmp 0x1002d71a6
mov ebx, 0x80049e2e
jmp 0x1002d71a6
mov ebx, 0x80070057
mov rcx, rbp
call fcn.10004c2e4
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1002d71d0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rsi, r8
mov r12, rdx
mov rbx, rcx
test rdx, rdx
je 0x1002d7366
test r8, r8
je 0x1002d7366
mov rcx, qword [rcx + 0x20]
call fcn.10004c2e4
mov rcx, qword [rbx + 0x10]
and qword [rbx + 0x20], 0
call fcn.10004c2e4
mov rcx, qword [rbx + 0x30]
and qword [rbx + 0x10], 0
and dword [rbx + 0x18], 0
test rcx, rcx
je 0x1002d723c
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbx + 0x30], 0
cmp qword [rbx + 0x38], 0
jne 0x1002d7268
lea rcx, [rbx + 0x38]
mov r9d, 0x18
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0xf0000000
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1002d7349
mov rcx, qword [rbx + 0x10]
call fcn.10004c2e4
and qword [rbx + 0x10], 0
or r8, 0xffffffffffffffff
xor eax, eax
mov rcx, r8
mov rdi, rsi
repne scasw ax, word [rdi]
lea eax, [r8 + 3]
not rcx
dec rcx
mov dword [rbx + 0x18], ecx
inc ecx
mul rcx
cmovo rax, r8
mov rcx, rax
call fcn.10004c2c0
mov rcx, rax
mov qword [rbx + 0x10], rax
test rax, rax
jne 0x1002d72b9
mov ebp, 0x8007000e
jmp 0x1002d736f
mov edx, dword [rbx + 0x18]
mov r8, rsi
inc edx
call fcn.100076c88
mov ebp, eax
test eax, eax
jne 0x1002d736b
lea eax, [rbp + 0x2c]
lea rdi, [0x10001efe0]
mov rsi, r12
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d72f3
mov edx, 0x660e
mov dword [rbx + 0xc], 1
jmp 0x1002d7331
lea rdi, [0x10001ef80]
mov rsi, r12
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d7313
mov edx, 0x660f
mov dword [rbx + 0xc], 2
jmp 0x1002d7331
lea rdi, [0x10001ef20]
mov rsi, r12
mov rcx, rax
repe cmpsw word [rsi], word [rdi]
jne 0x1002d735f
mov edx, 0x6610
mov dword [rbx + 0xc], 3
mov rcx, qword [rbx + 0x38]
lea r9, [rbx + 0x30]
mov r8d, 1
call qword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
jne 0x1002d736b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebp, ax
or ebp, 0x80070000
test eax, eax
cmovle ebp, eax
jmp 0x1002d736b
mov ebp, 0x80049e2e
jmp 0x1002d736f
mov ebp, 0x80070057
test ebp, ebp
jns 0x1002d738f
mov rcx, qword [rbx + 0x20]
call fcn.10004c2e4
mov rcx, qword [rbx + 0x10]
and qword [rbx + 0x20], 0
call fcn.10004c2e4
and qword [rbx + 0x10], 0
and dword [rbx + 0x18], 0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
add rsp, 0x30
pop r14
pop r13
pop r12
ret

Function at 0x1002e2380
Capabilities:
Encrypt data using rc4 prga

Disassembly:
add rcx, 7
mov eax, 8
shr rcx, 3
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
jmp fcn.10004c2c0
Function at 0x1002e2658
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0xd0
mov rax, qword [0x100347ae0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov edi, edx
mov rbx, rcx
mov dword [rsp + 0x20], 0x94
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1002e26ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x1002e26f4
cmp dword [rsp + 0x24], 5
jb 0x1002e26e1
mov edx, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x1002e26dd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x1002e26f4
xor eax, eax
jmp 0x1002e26f4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
nop
xor eax, eax
jmp 0x1002e26f4
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1002edf64
mov rbx, qword [rsp + 0xf0]
add rsp, 0xd0
pop rdi
ret
Function at 0x1002fe8f8
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov r10, rdx
mov r9, rcx
test r8d, r8d
je 0x1002fe963
mov r11d, r8d
inc byte [r9 + 0x100]
movzx r8d, byte [r9 + 0x100]
mov al, byte [r8 + r9]
add byte [r9 + 0x101], al
movzx edx, byte [r9 + 0x101]
mov al, byte [r8 + r9]
mov cl, byte [rdx + r9]
mov byte [rdx + r9], al
mov byte [r8 + r9], cl
movzx eax, byte [r9 + 0x101]
movzx ecx, byte [r9 + 0x100]
mov cl, byte [rcx + r9]
add cl, byte [rax + r9]
movzx eax, cl
mov cl, byte [rax + r9]
xor byte [r10], cl
inc r10
sub r11, 1
jne 0x1002fe906
repz ret
Function at 0x140011258
Capabilities:
Terminate process

Disassembly:
jmp 0x140014050
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x140011302
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400153a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400153c0
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400153d3
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400153fd
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140015411
xor al, al
jmp 0x140015441
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140015423
xor al, al
jmp 0x140015441
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001543f
xor al, al
jmp 0x140015441
mov al, 1
add rsp, 0x38
ret