joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18006d59c
Capabilities:
Create process memory minidump
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x180163140]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
and dword [rsp + 0x54], 0
lea rcx, [rbp - 0x80]
mov qword [rsp + 0x4c], rbx
xor edx, edx
mov ebx, 0x104
mov dword [rsp + 0x48], eax
mov r8d, ebx
call fcn.1800ce680
mov r8d, ebx
lea rcx, [rbp + 0x90]
xor edx, edx
call fcn.1800ce680
lea rdx, [rbp + 0x90]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathA]
lea r9, [rbp - 0x80]
xor r8d, r8d
lea rdx, str.boiii_
lea rcx, [rbp + 0x90]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameA]
xorps xmm0, xmm0
lea rax, [rbp - 0x80]
xorps xmm1, xmm1
or r8, 0xffffffffffffffff
movups xmmword [rsp + 0x58], xmm0
movdqu xmmword [rsp + 0x68], xmm1
inc r8
cmp byte [rax + r8], 0
jne 0x18006d645
lea rdx, [rbp - 0x80]
lea rcx, [rsp + 0x58]
call fcn.180013f64
cmp qword [rsp + 0x70], 0xf
lea rcx, [rsp + 0x58]
mov edx, 0xc0000000
cmova rcx, qword [rsp + 0x58]
xor r9d, r9d
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x4000100
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdx, qword [rsp + 0x70]
mov rdi, rax
cmp rdx, 0xf
jbe 0x18006d6d6
mov rcx, qword [rsp + 0x58]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006d6d1
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006d77a
call fcn.1800a40c0
movdqa xmm0, xmmword [0x18014ef90]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x48]
and qword [rsp + 0x28], 0
mov r9d, 0x21934
mov qword [rsp + 0x20], rcx
mov r8, rdi
mov rcx, rax
mov edx, ebx
call qword [sym.imp.dbghelp.dll_MiniDumpWriteDump]
test eax, eax
jne 0x18006d753
lea r9d, [rax + 0x10]
xor ecx, ecx
lea r8, str.Minidump_Error
lea rdx, str.There_was_an_error_creating_the_minidump__Hit_OK_to_close_the_program.
call qword [sym.imp.USER32.dll_MessageBoxA]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x7b
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, rdi
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1800a40a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1800aa574
int3
Function at 0x18006d780
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x1f70]
mov eax, 0x2070
call fcn.1800a52a0
sub rsp, rax
mov rax, qword [0x180163140]
xor rax, rsp
mov qword [rbp + 0x1f60], rax
mov rdi, rdx
mov rbx, rcx
mov qword [rsp + 0x30], rcx
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x18014ef90]
movdqu xmmword [rsp + 0x50], xmm1
mov byte [rsp + 0x40], 0
and dword [rsp + 0x30], 0
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
mov r8d, 0x2000
lea rdx, [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18006d84a
mov r8d, dword [rsp + 0x30]
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.180021944
cmp dword [rsp + 0x30], 0x2000
je 0x18006d7f6
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rbx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rbx + 0x10], xmm1
jmp 0x18006d89e
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
and qword [rbx + 0x10], 0
and qword [rbx + 0x10], 0
mov qword [rbx + 0x18], 0xf
mov byte [rbx], 0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x18006d89e
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006d899
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18006d8c5
call fcn.1800a40c0
mov rax, rbx
mov rcx, qword [rbp + 0x1f60]
xor rcx, rsp
call fcn.1800a40a0
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.1800aa574
int3
Function at 0x1800713dc
Capabilities:
Hash data using murmur3

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180163140]
xor rax, rsp
mov qword [rbp - 0x10], rax
xor r9d, r9d
mov r11, rcx
mov dword [rbp - 0x38], r9d
mov rbx, rdx
mov dword [rbp - 0x20], r9d
mov edx, r9d
mov qword [rbp - 0x18], rdx
mov ecx, 0x24234428
mov dword [rbp - 0x40], ecx
mov edi, 0x85ebca77
mov dword [rbp - 0x3c], edi
mov esi, 0x61c8864f
mov dword [rbp - 0x34], esi
mov r10d, r9d
mov r8d, r9d
test r11, r11
je 0x18007150f
test rbx, rbx
je 0x18007150f
mov qword [rbp - 0x18], rbx
mov rdx, rbx
cmp rbx, 0x10
jae 0x180071479
mov cl, byte [r11]
inc r11
mov eax, r8d
mov byte [rbp + rax - 0x30], cl
mov r8d, dword [rbp - 0x20]
inc r8d
mov dword [rbp - 0x20], r8d
sub rbx, 1
jne 0x180071456
jmp 0x180071507
lea r8, [r11 + rbx]
lea rbx, [r8 - 0x10]
jmp 0x1800714d5
imul eax, dword [r11], 0x7a143589
sub ecx, eax
imul eax, dword [r11 + 4], 0x7a143589
ror ecx, 0x13
imul ecx, ecx, 0x9e3779b1
sub edi, eax
imul eax, dword [r11 + 8], 0x7a143589
ror edi, 0x13
imul edi, edi, 0x9e3779b1
sub r10d, eax
imul eax, dword [r11 + 0xc], 0x7a143589
ror r10d, 0x13
imul r10d, r10d, 0x9e3779b1
sub esi, eax
ror esi, 0x13
imul esi, esi, 0x9e3779b1
add r11, 0x10
cmp r11, rbx
jbe 0x180071483
sub r8d, r11d
mov dword [rbp - 0x40], ecx
mov dword [rbp - 0x20], r8d
mov dword [rbp - 0x3c], edi
mov dword [rbp - 0x38], r10d
mov dword [rbp - 0x34], esi
je 0x18007150f
mov ecx, r9d
inc r9d
mov al, byte [rcx + r11]
mov byte [rbp + rcx - 0x30], al
mov r8d, dword [rbp - 0x20]
cmp r9d, r8d
jb 0x1800714f0
mov r10d, dword [rbp - 0x38]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x180071536
mov eax, dword [rbp - 0x3c]
mov ecx, dword [rbp - 0x34]
ror eax, 0x19
add eax, edx
ror ecx, 0xe
mov edx, dword [rbp - 0x40]
ror r10d, 0x14
add ecx, r10d
ror edx, 0x1f
add eax, ecx
add edx, eax
jmp 0x18007153f
add edx, 0x165667b1
add edx, r10d
mov eax, r8d
lea r9, [rbp - 0x30]
lea r8, [rbp - 0x30]
add r8, rax
lea rax, [rbp - 0x2c]
jmp 0x18007156d
imul eax, dword [r9], 0x3d4d51c3
sub edx, eax
ror edx, 0xf
imul edx, edx, 0x27d4eb2f
add r9, 4
lea rax, [r9 + 4]
cmp rax, r8
jbe 0x180071553
jmp 0x18007158c
movzx eax, byte [r9]
imul ecx, eax, 0x165667b1
add ecx, edx
ror ecx, 0x15
imul edx, ecx, 0x9e3779b1
inc r9
cmp r9, r8
jne 0x180071574
mov eax, edx
shr eax, 0xf
xor eax, edx
imul ecx, eax, 0x85ebca77
mov eax, ecx
shr eax, 0xd
xor eax, ecx
imul ecx, eax, 0xc2b2ae3d
mov eax, ecx
shr eax, 0x10
xor eax, ecx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1800a40a0
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret
Function at 0x180071c04
Capabilities:
Get session user name

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x180163140]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov qword [rsp + 0x20], rcx
lea rdx, [rsp + 0x20]
mov rbx, rcx
mov dword [rsp + 0x20], 0x101
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
test eax, eax
jne 0x180071c70
mov qword [rbx + 0x10], 3
mov qword [rbx + 0x18], 0xf
mov ecx, dword [0x180128414]
mov word [rbx], cx
mov cl, byte [0x180128416]
mov byte [rbx + 2], cl
mov byte [rbx + 3], al
jmp 0x180071c8f
and qword [rbx + 0x10], 0
lea rdx, [rsp + 0x30]
and qword [rbx + 0x18], 0
mov rcx, rbx
mov r8d, dword [rsp + 0x20]
dec r8d
call fcn.180013f64
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1800a40a0
add rsp, 0x150
pop rbx
ret
Function at 0x18007fd4c
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movzx eax, word [r8 + 0x1c]
lea r12, [r9 - 1]
mov r15, rcx
add r12, rax
mov cl, byte [r8 + 0x1e]
mov rbp, r9
shr r12, cl
mov ecx, 0x68
lea r13d, [r12 + 0x3f]
shr r13d, 6
call fcn.1800af714
xorps xmm0, xmm0
mov rbx, rax
mov edi, 1
movups xmmword [rsp + 0x20], xmm0
test rax, rax
je 0x18007feda
mov ecx, r13d
shl rcx, 4
call fcn.1800af714
and dword [rsp + 0x88], 0
mov r14, rax
test rax, rax
je 0x18007fed2
test byte [r15], dil
je 0x18007fdf5
mov rdx, rbp
lea rcx, [rsp + 0x20]
call fcn.180081c28
mov rdx, qword [rsp + 0x28]
mov esi, eax
mov dword [rsp + 0x88], 4
jmp 0x18007fe30
test rbp, rbp
jne 0x18007fdff
lea esi, [rbp + 2]
jmp 0x18007fe26
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbp
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
jne 0x18007fe1f
mov esi, edi
jmp 0x18007fe26
mov qword [rsp + 0x20], rax
xor esi, esi
mov rdx, qword [rsp + 0x20]
mov qword [rsp + 0x28], rdx
test esi, esi
jne 0x18007fec8
mov eax, dword [r15]
shr eax, 2
test dil, al
je 0x18007fe58
mov rcx, rbp
shr rcx, 2
test rcx, rcx
je 0x18007fe58
mov eax, dword [r15 + 0xc]
mov rdi, rdx
rep stosd dword [rdi], eax
mov r8d, r13d
xor edx, edx
shl r8, 4
mov rcx, r14
call fcn.1800ce680
mov rax, qword [rsp + 0x80]
xor ecx, ecx
movups xmm0, xmmword [rsp + 0x20]
mov qword [rbx + 0x10], rcx
mov qword [rbx + 0x18], rcx
mov qword [rbx + 0x20], rax
mov eax, dword [rsp + 0x88]
mov dword [rbx + 0x40], eax
lea rax, [r14 + r13*8]
mov qword [rbx + 0x60], rax
mov rax, qword [rsp + 0x78]
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
movdqu xmmword [rbx + 0x28], xmm0
mov qword [rax], rbx
xor eax, eax
mov qword [rbx + 0x38], rbp
mov dword [rbx + 0x44], r12d
mov dword [rbx + 0x48], ecx
mov dword [rbx + 0x4c], r12d
mov dword [rbx + 0x50], ecx
mov dword [rbx + 0x54], r12d
mov qword [rbx + 0x58], r14
jmp 0x18007fedc
mov rcx, r14
call fcn.1800aaec0
mov edi, esi
mov rcx, rbx
call fcn.1800aaec0
mov eax, edi
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180088c00
Capabilities:
Hash data using sha256

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x180088c50
and dword [rcx + 0x28], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x6a09e667
mov dword [rcx + 0xc], 0xbb67ae85
mov dword [rcx + 0x10], 0x3c6ef372
mov dword [rcx + 0x14], 0xa54ff53a
mov dword [rcx + 0x18], 0x510e527f
mov dword [rcx + 0x1c], 0x9b05688c
mov dword [rcx + 0x20], 0x1f83d9ab
mov dword [rcx + 0x24], 0x5be0cd19
add rsp, 0x28
ret
mov r8d, 0xc6
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srchashes_sha2_sha256.c
lea rcx, str.md___NULL
call fcn.18008edbc
int3
Function at 0x1800892a4
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
mov r9d, dword [rcx + 4]
lea r14, [0x180000000]
mov rbx, rcx
mov eax, r9d
shr eax, 0x10
mov r8d, r9d
shr r8, 0x18
mov rdi, rdx
movzx edx, al
mov esi, 8
mov eax, dword [rcx]
shr rax, 0x18
mov r10, qword [r14 + r8*8 + 0x116990]
xor r10, qword [r14 + rdx*8 + 0x116190]
xor r10, qword [r14 + rax*8 + 0x114990]
mov eax, r9d
shr eax, 8
movzx ecx, al
mov eax, dword [rbx]
shr eax, 0x10
xor r10, qword [r14 + rcx*8 + 0x115990]
movzx ecx, al
mov eax, dword [rbx]
shr eax, 8
xor r10, qword [r14 + rcx*8 + 0x114190]
movzx ecx, al
movzx eax, r9b
xor r10, qword [r14 + rcx*8 + 0x113990]
xor r10, qword [r14 + rax*8 + 0x115190]
movzx eax, byte [rbx]
xor r10, qword [r14 + rax*8 + 0x113190]
mov r11, r10
shr r11, 0x20
mov r9d, r10d
mov eax, r10d
xor eax, dword [rdi + 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi]
lea rdi, [rdi + 0x10]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0x117840]
xor edx, dword [r14 + rax*4 + 0x10ed70]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x117940]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x10eb70]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x10f070]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x117a40]
xor edx, dword [r14 + r8*4 + 0x10ec70]
xor edx, dword [r14 + r9*4 + 0x10ef70]
xor r11d, edx
mov r9d, r11d
mov eax, r11d
xor eax, dword [rdi - 4]
mov r8d, eax
mov ecx, eax
shr rax, 0x10
and eax, 0x3f
ror r9d, 4
xor r9d, dword [rdi - 8]
shr rcx, 0x18
and ecx, 0x3f
mov edx, dword [r14 + rcx*4 + 0x117840]
xor edx, dword [r14 + rax*4 + 0x10ed70]
mov eax, r8d
shr rax, 8
and r8d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x117940]
mov eax, r9d
shr rax, 0x18
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x10eb70]
mov eax, r9d
shr rax, 0x10
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x10f070]
mov eax, r9d
shr rax, 8
and r9d, 0x3f
and eax, 0x3f
xor edx, dword [r14 + rax*4 + 0x117a40]
xor edx, dword [r14 + r8*4 + 0x10ec70]
xor edx, dword [r14 + r9*4 + 0x10ef70]
xor r10d, edx
sub rsi, 1
jne 0x18008934a
mov rsi, qword [rsp + 0x10]
mov eax, r10d
mov rdi, qword [rsp + 0x18]
shr eax, 0x10
movzx ecx, al
mov edx, r10d
shr rdx, 0x18
mov eax, r11d
shr rax, 0x18
mov r8, qword [r14 + rdx*8 + 0x112970]
xor r8, qword [r14 + rcx*8 + 0x112170]
xor r8, qword [r14 + rax*8 + 0x110970]
mov eax, r10d
shr eax, 8
movzx ecx, al
mov eax, r11d
shr eax, 0x10
xor r8, qword [r14 + rcx*8 + 0x111970]
movzx ecx, al
mov eax, r11d
shr eax, 8
xor r8, qword [r14 + rcx*8 + 0x110170]
movzx ecx, al
movzx eax, r10b
xor r8, qword [r14 + rcx*8 + 0x10f970]
xor r8, qword [r14 + rax*8 + 0x111170]
movzx eax, r11b
xor r8, qword [r14 + rax*8 + 0x10f170]
mov r14, qword [rsp + 0x20]
mov dword [rbx], r8d
shr r8, 0x20
mov dword [rbx + 4], r8d
mov rbx, qword [rsp + 8]
ret
Function at 0x18008a3a8
Capabilities:
Hash data using sha1

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x18008a3e3
and dword [rcx + 0x1c], 0
and qword [rcx], 0
xor eax, eax
mov dword [rcx + 8], 0x67452301
mov dword [rcx + 0xc], 0xefcdab89
mov dword [rcx + 0x10], 0x98badcfe
mov dword [rcx + 0x14], 0x10325476
mov dword [rcx + 0x18], 0xc3d2e1f0
add rsp, 0x28
ret
mov r8d, 0x9f
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srchashes_sha1.c
lea rcx, str.md___NULL
call fcn.18008edbc
int3

Function at 0x18008c414
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, r8
mov r11d, edx
mov r10, rcx
test r9, r9
je 0x18008c576
lea ecx, [rdx + 2]
mov edi, 0xaaaaaaab
mov eax, edi
mul ecx
shr edx, 1
shl edx, 2
inc edx
cmp dword [r9], edx
jae 0x18008c45a
mov dword [r9], edx
mov eax, 6
jmp 0x18008c566
test r10, r10
je 0x18008c590
test rbx, rbx
je 0x18008c5aa
cmp r10, rbx
jne 0x18008c47b
mov eax, 0x10
jmp 0x18008c566
mov eax, edi
lea rsi, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
mul r11d
shr edx, 1
lea ecx, [rdx + rdx*2]
xor edx, edx
test ecx, ecx
je 0x18008c501
dec ecx
mov eax, edi
mul ecx
shr edx, 1
inc edx
mov edi, edx
lea edx, [rdx + rdx*2]
movzx eax, byte [r10]
shr rax, 2
mov al, byte [rax + rsi]
mov byte [r8], al
movzx eax, byte [r10 + 1]
movzx ecx, byte [r10]
shr eax, 4
and ecx, 3
shl ecx, 4
add ecx, eax
mov al, byte [rcx + rsi]
mov byte [r8 + 1], al
movzx eax, byte [r10 + 2]
movzx ecx, byte [r10 + 1]
shr eax, 6
and ecx, 0xf
lea eax, [rax + rcx*4]
mov al, byte [rax + rsi]
mov byte [r8 + 2], al
movzx eax, byte [r10 + 2]
add r10, 3
and eax, 0x3f
mov al, byte [rax + rsi]
mov byte [r8 + 3], al
add r8, 4
sub rdi, 1
jne 0x18008c4a1
cmp edx, r11d
jae 0x18008c55a
movzx edi, byte [r10]
inc edx
cmp edx, r11d
jae 0x18008c518
movzx ecx, byte [r10 + 1]
jmp 0x18008c51a
xor ecx, ecx
mov rax, rdi
shl edi, 4
shr rax, 2
mov al, byte [rax + rsi]
mov byte [r8], al
mov eax, ecx
shr eax, 4
add eax, edi
and eax, 0x3f
mov al, byte [rax + rsi]
mov byte [r8 + 1], al
cmp edx, r11d
jae 0x18008c54b
and ecx, 0xf
shl ecx, 2
mov cl, byte [rcx + rsi]
jmp 0x18008c54d
mov cl, 0x3d
mov byte [r8 + 2], cl
mov byte [r8 + 3], 0x3d
add r8, 4
mov byte [r8], 0
sub r8d, ebx
mov dword [r9], r8d
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov r8d, 0x28
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.outlen___NULL
call fcn.18008edbc
int3
mov r8d, 0x38
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.in___NULL
call fcn.18008edbc
int3
mov r8d, 0x39
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srcmisc_base64_base64_encode.c
lea rcx, str.out___NULL
call fcn.18008edbc
int3
Function at 0x18008cc0c
Capabilities:
Hash data using sha512

Disassembly:
sub rsp, 0x28
test rcx, rcx
je 0x18008cc94
and dword [rcx + 0x48], 0
movabs rax, 0x6a09e667f3bcc908
and qword [rcx], 0
mov qword [rcx + 8], rax
movabs rax, 0xbb67ae8584caa73b
mov qword [rcx + 0x10], rax
movabs rax, 0x3c6ef372fe94f82b
mov qword [rcx + 0x18], rax
movabs rax, 0xa54ff53a5f1d36f1
mov qword [rcx + 0x20], rax
movabs rax, 0x510e527fade682d1
mov qword [rcx + 0x28], rax
movabs rax, 0x9b05688c2b3e6c1f
mov qword [rcx + 0x30], rax
movabs rax, 0x1f83d9abfb41bd6b
mov qword [rcx + 0x38], rax
movabs rax, 0x5be0cd19137e2179
mov qword [rcx + 0x40], rax
xor eax, eax
add rsp, 0x28
ret
mov r8d, 0xa9
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srchashes_sha2_sha512.c
lea rcx, str.md___NULL
call fcn.18008edbc
int3
Function at 0x18008f06c
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov ebx, edx
mov rdi, rcx
test rcx, rcx
je 0x18008f198
and qword [rax + 0x18], 0
lea r8, [0x18014af08]
mov r9d, 1
mov dword [rax - 0x38], 0xf0000020
xor edx, edx
lea rcx, [rax + 0x18]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18008f0e7
lea r9d, [rax + 1]
mov dword [rsp + 0x20], 0xf0000028
lea r8, [0x18014af08]
xor edx, edx
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x18008f117
mov rcx, qword [rsp + 0x70]
mov r8, rdi
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
mov rcx, qword [rsp + 0x70]
xor edx, edx
cmp eax, 1
jne 0x18008f111
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
test ebx, ebx
je 0x18008f117
mov eax, ebx
jmp 0x18008f17b
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor r13d, r13d
xor ebp, ebp
mov r15d, ebx
test ebx, ebx
je 0x18008f179
dec r15d
xor esi, esi
lea r14d, [rsi + 8]
dec r14d
call fcn.1800cddf0
mov r12d, eax
jmp 0x18008f13c
xor ebp, 1
call fcn.1800cddf0
cmp r12d, eax
je 0x18008f139
call fcn.1800cddf0
mov r12d, eax
jmp 0x18008f154
xor r13d, 1
call fcn.1800cddf0
cmp r12d, eax
je 0x18008f150
cmp ebp, r13d
je 0x18008f12f
add esi, esi
or esi, ebp
test r14d, r14d
jne 0x18008f12c
mov byte [rdi], sil
inc rdi
test r15d, r15d
jne 0x18008f123
jmp 0x18008f10d
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov r8d, 0x83
lea rdx, str.D:NEWWanted_shielddepslibtomcrypt_srcprngs_rng_get_bytes.c
lea rcx, str.out___NULL
call fcn.18008edbc
int3
Function at 0x180092830
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x180163140]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov r15d, edx
mov rdi, rcx
mov qword [rcx], rbx
mov qword [rcx + 8], rbx
xor edx, edx
mov r14d, r8d
mov esi, ebx
lea ecx, [rbx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbp, rax
cmp rax, 0xffffffffffffffff
je 0x1800929cf
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x180092971
lea esi, [rbx + 1]
cmp dword [rsp + 0x20], 0x10
jb 0x18009292c
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [rsp + 0x2c], eax
jne 0x18009292c
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [rsp + 0x28], eax
je 0x18009292c
mov rdx, qword [rdi]
test rdx, rdx
jne 0x1800928ee
mov rcx, qword [0x18016cfb8]
mov r8d, 0x200
mov dword [rdi + 8], 0x80
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rdi], rax
mov rdx, rax
test rax, rax
je 0x180092955
jmp 0x18009291f
mov eax, dword [rdi + 8]
cmp dword [rdi + 0xc], eax
jb 0x18009291f
mov rcx, qword [0x18016cfb8]
add eax, eax
mov r9d, eax
mov r8, rdx
shl r9, 2
xor edx, edx
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov rdx, rax
test rax, rax
je 0x180092955
mov qword [rdi], rax
mov ecx, dword [rdi + 0xc]
mov eax, dword [rsp + 0x28]
mov dword [rdx + rcx*4], eax
inc dword [rdi + 0xc]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x1c
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x18009289c
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0x180092971
mov esi, ebx
cmp qword [rdi], rbx
je 0x180092971
mov r8, qword [rdi]
xor edx, edx
mov rcx, qword [0x18016cfb8]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rdi], rbx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1800929cf
cmp qword [rdi], rbx
je 0x1800929d4
mov esi, ebx
cmp dword [rdi + 0xc], ebx
jbe 0x1800929d4
mov r8, qword [rdi]
xor edx, edx
mov eax, esi
lea ecx, [rdx + 0x5a]
mov r8d, dword [r8 + rax*4]
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbp, rax
test rax, rax
je 0x1800929c6
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov r8d, r14d
mov edx, r15d
mov rcx, rbp
call fcn.180092694
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [rdi + 0xc]
jb 0x18009298a
jmp 0x1800929d4
mov ebx, 9
mov eax, ebx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800a40a0
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret