joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800047a0
Capabilities:
Encode data using xor

Disassembly:
movsxd r10, edx
mov r11, rcx
sub r10, 4
movsxd rax, r9d
cmp r10, rax
jbe 0x1800047b5
xor eax, eax
ret
sub edx, 4
je 0x1800047e1
xor r9d, r9d
mov r10d, edx
sub rcx, r8
mov rax, r9
inc r9
and eax, 3
mov al, byte [rax + r11]
xor al, byte [rcx + r8 + 4]
mov byte [r8], al
inc r8
sub r10, 1
jne 0x1800047c3
mov eax, edx
ret

Function at 0x1800047e4
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
movsxd r10, edx
mov rdi, r8
add r10, 4
movsxd rax, r9d
mov ebx, edx
mov rsi, rcx
cmp r10, rax
jbe 0x18000480e
xor eax, eax
jmp 0x180004858
call fcn.180004014
mov r8d, 4
mov dword [rsp + 0x38], eax
lea rdx, [rsp + 0x38]
mov rcx, rdi
call sub.msvcrt.dll_memcpy
xor ecx, ecx
test ebx, ebx
je 0x180004855
lea rdx, [rdi + 4]
sub rsi, rdi
mov r8, rbx
mov rax, rcx
inc rcx
and eax, 3
mov al, byte [rax + rdi]
xor al, byte [rsi + rdx - 4]
mov byte [rdx], al
inc rdx
sub r8, 1
jne 0x18000483a
lea eax, [rbx + 4]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x18000494c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
xor esi, esi
mov r14d, r8d
cmp qword [0x180017168], rsi
mov rbp, rdx
mov rbx, rcx
jne 0x180004983
mov ecx, 0x80004
call sub.msvcrt.dll_malloc
mov qword [0x180017168], rax
mov ecx, dword [rbx]
call sub.WS2_32.dll_htonl
mov rcx, qword [0x180017168]
lea rdx, [rsp + 0x50]
mov r8d, 4
mov dword [rsp + 0x50], eax
call sub.msvcrt.dll_memcpy
mov edi, dword [rbx + 4]
cmp edi, r14d
cmova edi, r14d
test edi, edi
je 0x1800049eb
mov rax, qword [0x180017168]
mov edx, 1
mov r9, qword [rbx + 8]
add rax, 4
mov ecx, esi
add rcx, rax
mov r8d, edi
call sub.msvcrt.dll_fread
mov dword [rsp + 0x50], eax
test eax, eax
je 0x1800049e7
sub dword [rbx + 4], eax
add esi, eax
sub edi, eax
jne 0x1800049b3
jmp 0x1800049eb
and dword [rbx + 4], 0
mov rcx, qword [0x180017168]
lea edx, [rsi + 4]
mov r8d, 8
call rbp
mov rdx, rbp
mov rcx, rbx
call fcn.180004904
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret

Function at 0x180004a1c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rdi, r8
mov r8d, edx
mov rdx, rcx
lea rcx, [rsp + 0x38]
call fcn.180005a80
mov edx, 0x80
lea rcx, [rsp + 0x20]
call fcn.18000270c
lea rcx, [rsp + 0x38]
call fcn.180005a90
mov edx, eax
lea rcx, [rsp + 0x20]
call fcn.18000273c
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov r8d, eax
lea rdx, [0x180010a50]
lea rcx, [rsp + 0x20]
call fcn.180002770
lea rcx, [rsp + 0x20]
call fcn.18000276c
lea rcx, [rsp + 0x20]
mov ebx, eax
call fcn.1800027cc
mov rcx, rax
mov r8d, reloc.WS2_32.dll_shutdown
mov edx, ebx
call rdi
lea rcx, [rsp + 0x20]
call fcn.1800026e8
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x180005104
Capabilities:
Read file on windows
Read pipe

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
and dword [rax + 0x20], 0
lea rax, [rax - 0x18]
mov edi, r8d
mov rbp, rdx
xor ebx, ebx
xor r9d, r9d
and qword [rax - 8], rbx
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x20], rax
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
jne 0x18000514b
or eax, 0xffffffff
jmp 0x1800051ab
cmp dword [rsp + 0x30], ebx
jbe 0x1800051a9
cmp ebx, edi
jae 0x1800051a9
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x68]
mov r8d, edi
mov rdx, rbp
sub r8d, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov eax, dword [rsp + 0x68]
xor r9d, r9d
and qword [rsp + 0x28], 0
add rbp, rax
add ebx, dword [rsp + 0x68]
lea rax, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_PeekNamedPipe]
test eax, eax
je 0x180005146
cmp dword [rsp + 0x30], 0
ja 0x180005151
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x1800054c0
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
and dword [rax + 0x18], 0
xor ebx, ebx
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x18000551a
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x50]
mov r8d, edi
movsxd rdx, ebx
sub r8d, ebx
add rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180005539
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x180005539
add ebx, eax
cmp ebx, edi
jl 0x1800054e8
or eax, 0xffffffff
cmp ebx, edi
cmovne ebx, eax
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
or eax, 0xffffffff
jmp 0x180005524

Function at 0x1800055f4
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov rbx, rdx
mov rdi, rcx
mov rcx, rbx
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
lea rax, [0x180005694]
mov qword [rdi + 8], rbx
mov rbx, qword [rsp + 0x38]
lea rcx, [fcn.180003fa0]
mov qword [rdi + 0x10], rax
lea rax, [0x18000572c]
mov qword [rdi + 0x18], rax
lea rax, [0x18000566c]
mov qword [rdi + 0x20], rax
lea rax, [0x180005720]
mov qword [rdi + 0x30], rax
mov rax, rdi
mov qword [rdi + 0x28], rcx
mov qword [rdi + 0x38], rcx
add rsp, 0x20
pop rdi
ret
Function at 0x18000578c
Capabilities:
Receive data
Receive data on socket

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 r14
sub rsp, 0x20
xor edi, edi
or r14d, 0xffffffff
mov ebx, r8d
mov rsi, rdx
mov rbp, rcx
test r8d, r8d
jle 0x1800057e0
mov r8d, ebx
movsxd rdx, edi
sub r8d, edi
add rdx, rsi
xor r9d, r9d
mov rcx, rbp
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, r14d
je 0x180005803
test eax, eax
je 0x1800057e0
add edi, eax
cmp edi, ebx
jl 0x1800057b9
cmp edi, ebx
cmovne ebx, r14d
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
mov eax, r14d
jmp 0x1800057e8

Function at 0x180005808
Capabilities:
Send data
Send data on socket

Disassembly:
push rbx
sub rsp, 0x20
xor ebx, ebx
test r8d, r8d
jne 0x18000581a
lea eax, [rbx + 1]
jmp 0x18000582b
xor r9d, r9d
call qword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
setne bl
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x180005928
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
sub rsp, 0x828
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x800
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x830]
lea r9, [rsp + 0x838]
mov edx, 0x800
lea rcx, [rsp + 0x20]
call fcn.1800027d0
lea rcx, [rsp + 0x20]
call sub.KERNEL32.dll_OutputDebugStringA
add rsp, 0x828
ret

Function at 0x180005cdc
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005d24
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180006020
test eax, eax
jle 0x180005d10
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180005cfa
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180006140
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180018098]
xor edi, edi
test rbx, rbx
je 0x1800061de
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180006171
cmp dword [rbx + 0xc], eax
jne 0x18000617a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180006153
test eax, eax
jne 0x180006171
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180006171
cmp dword [rbx + 0x10], 0
jne 0x1800061a3
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1800061b7
cmp dword [rbx + 0x10], 2
je 0x180006171
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x1800061d2
mov qword [rdi + 0x28], rax
call fcn.18000847a
mov rbx, qword [rdi + 0x28]
jmp 0x180006153
mov qword [0x180018098], rax
call fcn.18000847a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x180006020
Capabilities:
Set socket configuration

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
and dword [rax + 0x10], 0
xor edi, edi
and dword [rax + 0x18], 0
mov rsi, rcx
cmp qword [0x1800180a0], rdi
mov rbx, qword [0x180018098]
jne 0x180006062
mov ecx, 0x100000
call sub.msvcrt.dll_malloc
mov qword [0x1800180a0], rax
test rbx, rbx
je 0x180006129
mov r14d, 4
mov r15d, 0xffffc
cmp dword [rbx + 4], 1
jne 0x180006119
mov ecx, dword [rbx]
call qword [sym.imp.WS2_32.dll_htonl]
mov rcx, qword [0x1800180a0]
lea rdx, [rsp + 0x50]
mov r8, r14
mov dword [rsp + 0x50], eax
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbx + 0x20]
lea r8, [rsp + 0x48]
mov edx, 0x4004667f
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov r8d, dword [rsp + 0x48]
cmp r8d, r15d
cmova r8d, r15d
mov dword [rsp + 0x48], r8d
cmp eax, 0xffffffff
je 0x1800060e8
test r8d, r8d
je 0x180006119
mov rdx, qword [0x1800180a0]
mov rcx, qword [rbx + 0x20]
add rdx, r14
call fcn.1800061ec
cmp eax, 0xffffffff
jne 0x1800060fd
and dword [rbx + 4], 0
mov r8d, r14d
mov rcx, qword [0x1800180a0]
mov edx, r14d
call rsi
jmp 0x180006119
mov edx, dword [rsp + 0x48]
cmp eax, edx
jne 0x180006119
mov rcx, qword [0x1800180a0]
add edx, r14d
mov r8d, 5
call rsi
inc edi
mov rcx, qword [rbx + 0x28]
mov rbx, rcx
test rcx, rcx
jne 0x180006077
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret

Function at 0x180006140
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
call fcn.180005d24
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea edi, [rax + 0xdac]
mov rcx, rbx
call fcn.180006020
test eax, eax
jle 0x180005d10
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, edi
jb 0x180005cfa
mov rcx, rbx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x180006140
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [0x180018098]
xor edi, edi
test rbx, rbx
je 0x1800061de
mov eax, dword [rbx + 4]
test eax, eax
jne 0x180006171
cmp dword [rbx + 0xc], eax
jne 0x18000617a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc], eax
mov rdi, rbx
mov rbx, qword [rbx + 0x28]
jmp 0x180006153
test eax, eax
jne 0x180006171
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [rbx + 0xc]
cmp eax, 0x3e8
jbe 0x180006171
cmp dword [rbx + 0x10], 0
jne 0x1800061a3
mov rcx, qword [rbx + 0x20]
mov edx, 2
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rbx + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x1800061b7
cmp dword [rbx + 0x10], 2
je 0x180006171
mov rax, qword [rbx + 0x28]
mov rcx, rbx
test rdi, rdi
je 0x1800061d2
mov qword [rdi + 0x28], rax
call fcn.18000847a
mov rbx, qword [rdi + 0x28]
jmp 0x180006153
mov qword [0x180018098], rax
call fcn.18000847a
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x1800061ec
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
test r8d, r8d
jle 0x180006236
mov r8d, esi
xor r9d, r9d
sub r8d, ebx
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_recv]
movsxd rcx, eax
add rbp, rcx
add ebx, ecx
cmp ecx, 0xffffffff
je 0x18000624d
cmp ebx, esi
jl 0x180006210
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov edx, 2
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
or eax, 0xffffffff
jmp 0x180006238

Function at 0x180006ab0
Capabilities:
Enumerate files on windows

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 r14
push r15
sub rsp, 0x20
mov r14, rcx
mov r12d, 0x8000
mov ecx, r12d
mov r15, r8
mov rsi, rdx
call sub.msvcrt.dll_malloc
mov r9, r14
lea r8, [0x180010ab0]
mov edx, r12d
mov rcx, rax
mov rbx, rax
call fcn.1800018d0
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rcx, rbx
mov rbp, rax
call fcn.18000847a
cmp rbp, 0xffffffffffffffff
je 0x180006bbf
lea rdi, [rsi + 0x2c]
test byte [rsi], 0x10
je 0x180006b96
lea rdx, [0x180010ab8]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x180006ba2
lea rdx, [0x180010abc]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x180006ba2
mov rcx, r12
call sub.msvcrt.dll_malloc
mov r9, rdi
lea r8, [0x180010760]
mov rdx, r12
mov rcx, rax
mov rbx, rax
call fcn.1800018d0
mov r9, r15
mov r8, rsi
mov rdx, rdi
mov rcx, r14
call fcn.180006be0
mov r8d, 1
mov rdx, rbx
mov rcx, r14
call r15
mov rcx, rbx
call fcn.18000847a
jmp 0x180006ba2
xor r8d, r8d
mov rdx, rdi
mov rcx, r14
call r15
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x180006b21
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x180007a74
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
lea rbx, [rcx + 8]
mov rdi, rcx
mov rax, qword [rbx]
test rax, rax
jne 0x180007adc
mov eax, dword [rcx + 4]
xor r8d, r8d
mov r9d, dword [rcx]
xor edx, edx
mov rcx, rbx
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180007ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180007ad3
mov r9d, dword [rdi]
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 8
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180007ad9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180007b1c
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
mov rbp, rsp
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov edx, 0x18
lea rcx, [rbp - 0x10]
mov r8d, 0xf0000000
mov rsi, r9
call fcn.1800079ac
lea rcx, [rbp - 0x10]
call fcn.180007a74
xor ebx, ebx
test rax, rax
je 0x180007be9
lea rcx, [rbp - 0x18]
call fcn.1800079ec
mov r9d, dword [rdi + 8]
lea rdx, [rbp - 0x10]
mov r8, qword [rdi]
lea rcx, [rbp - 0x18]
call fcn.180008284
test eax, eax
jne 0x180007be0
lea edx, [rbx + 1]
lea rcx, [rbp - 0x18]
call fcn.180008458
test eax, eax
jne 0x180007be0
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x18]
call fcn.18000840c
test eax, eax
jne 0x180007be0
lea rcx, [rbp - 0x18]
call fcn.1800027cc
test rax, rax
je 0x180007be0
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], esi
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov qword [rsp + 0x20], r14
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
cmp eax, 1
sete bl
lea rcx, [rbp - 0x18]
call fcn.1800079f4
lea rcx, [rbp - 0x10]
call fcn.180007a18
mov rsi, qword [rsp + 0x68]
mov al, bl
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x70]
mov r14, qword [rsp + 0x78]
add rsp, 0x50
pop rbp
ret
Function at 0x180007c10
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r14, r8
mov r15, rdx
mov rdi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rbp - 0x10]
mov rsi, r9
call fcn.1800079ac
lea rcx, [rbp - 0x10]
call fcn.180007a74
xor ebx, ebx
test rax, rax
je 0x180007ce5
lea rcx, [rbp - 0x18]
call fcn.1800079ec
mov r9d, dword [rdi + 8]
lea rdx, [rbp - 0x10]
mov r8, qword [rdi]
lea rcx, [rbp - 0x18]
call fcn.180008284
test eax, eax
jne 0x180007cdc
lea edx, [rbx + 1]
lea rcx, [rbp - 0x18]
call fcn.180008458
test eax, eax
jne 0x180007cdc
mov rdx, qword [rdi + 0x10]
lea rcx, [rbp - 0x18]
call fcn.18000840c
test eax, eax
jne 0x180007cdc
lea rcx, [rbp - 0x18]
call fcn.1800027cc
test rax, rax
je 0x180007cdc
lea rcx, [rbp - 0x20]
mov dword [rsp + 0x30], r14d
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov rcx, rax
mov dword [rbp - 0x20], esi
xor r8d, r8d
mov qword [rsp + 0x20], r15
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
cmp eax, 1
sete bl
lea rcx, [rbp - 0x18]
call fcn.1800079f4
lea rcx, [rbp - 0x10]
call fcn.180007a18
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x180007d0c
Capabilities:
Encrypt or decrypt via wincrypt

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 r14
sub rsp, 0x60
mov r14, r8
mov rdi, rdx
xor r8d, r8d
mov rsi, rcx
lea rcx, [rax - 0x18]
mov rbp, r9
lea edx, [r8 + 1]
call fcn.1800079ac
lea rcx, [rsp + 0x50]
call fcn.180007a74
xor ebx, ebx
test rax, rax
jne 0x180007d5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180007e0a
lea rcx, [rsp + 0x48]
call fcn.1800079ec
mov r9d, dword [rsi + 8]
lea rdx, [rsp + 0x50]
mov r8, qword [rsi]
lea rcx, [rsp + 0x48]
call fcn.180008344
lea rcx, [rsp + 0x48]
call fcn.1800027cc
test rax, rax
je 0x180007dba
xor r9d, r9d
mov dword [rsp + 0x30], r14d
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], ebp
mov qword [rsp + 0x28], rcx
xor edx, edx
mov rcx, rax
mov qword [rsp + 0x20], rdi
lea r8d, [r9 + 1]
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x180007dc2
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180007e00
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x90]
mov qword [rcx], rax
dec eax
movsxd rdx, eax
test eax, eax
jle 0x180007dfe
mov r9, rdi
mov r8, rdi
neg r9
mov al, byte [rdx + rdi]
mov cl, byte [r8]
mov byte [r8], al
inc r8
mov byte [rdx + rdi], cl
dec rdx
lea rax, [r9 + r8]
cmp rax, rdx
jl 0x180007de3
mov bl, 1
lea rcx, [rsp + 0x48]
call fcn.1800079f4
lea rcx, [rsp + 0x50]
call fcn.180007a18
lea r11, [rsp + 0x60]
mov al, bl
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x180007e34
Capabilities:
Decode data using base64 via winapi

Disassembly:
jmp 0x180007e34
sub rsp, 0x48
and qword [rsp + 0x30], 0
and qword [rsp + 0x28], 0
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor eax, eax
add rsp, 0x48
ret

Function at 0x180007e60
Capabilities:
Encode data using base64 via winapi

Disassembly:
jmp 0x180007e60
sub rsp, 0x38
mov qword [rsp + 0x20], r9
mov r9, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xor eax, eax
add rsp, 0x38
ret

Function at 0x180007e80
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

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 r14
sub rsp, 0x50
mov esi, r8d
mov rbp, rdx
mov rdi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rax - 0x20]
mov r14d, r9d
call fcn.1800079ac
lea rcx, [rsp + 0x38]
call fcn.180007a74
xor ebx, ebx
test rax, rax
je 0x180007f49
lea rcx, [rsp + 0x38]
call fcn.180007a74
mov rcx, rax
mov qword [rsp + 0x20], rdi
xor r9d, r9d
xor r8d, r8d
mov edx, r14d
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180007f43
mov rcx, qword [rdi]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x180007f43
mov eax, dword [rsp + 0x88]
xor edx, edx
mov rcx, qword [rsp + 0x80]
mov r8d, eax
mov dword [rsp + 0x30], eax
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x80]
lea r9, [rsp + 0x30]
mov rcx, qword [rdi]
lea edx, [rbx + 2]
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180007f4c
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
lea rcx, [rsp + 0x38]
call fcn.180007a18
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r14
ret
Function at 0x180007fec
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov ebx, r8d
mov r14, rdx
mov rsi, rcx
mov edx, 0x18
mov r8d, 0xf0000000
lea rcx, [rbp - 0x40]
mov r15, r9
call fcn.1800079ac
lea rcx, [rbp - 0x40]
call fcn.180007a74
xor edi, edi
test rax, rax
jne 0x180008042
or edi, 0xffffffff
jmp 0x18000813e
lea rcx, [rbp - 0x48]
call fcn.1800079ec
mov r9d, ebx
lea rdx, [rbp - 0x40]
mov r8, r14
lea rcx, [rbp - 0x48]
call fcn.180008284
test eax, eax
je 0x18000806a
or edi, 0xffffffff
jmp 0x180008135
lea rcx, [rbp - 0x48]
call fcn.1800027cc
lea rcx, [rbp - 0x40]
mov rbx, rax
call fcn.180007a74
mov rcx, rax
mov qword [rsp + 0x20], rsi
xor r9d, r9d
mov r8, rbx
mov edx, 0x8009
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x18000812d
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x28]
call sub.msvcrt.dll_memset
mov eax, dword [rbp + 0x48]
lea r8, [rbp - 0x30]
mov rcx, qword [rsi]
xor r9d, r9d
mov dword [rbp - 0x30], eax
lea edx, [r9 + 5]
call qword [sym.imp.ADVAPI32.dll_CryptSetHashParam]
test eax, eax
je 0x18000812d
mov r8d, dword [rbp + 0x40]
xor r9d, r9d
mov rcx, qword [rsi]
mov rdx, r15
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x18000812d
mov rcx, qword [rsi]
lea r9, [rbp - 0x50]
xor r8d, r8d
mov dword [rbp - 0x50], edi
mov dword [rsp + 0x20], edi
lea ebx, [r8 + 2]
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x18000812d
mov r9, qword [rbp + 0x58]
mov eax, dword [r9]
cmp dword [rbp - 0x50], eax
je 0x180008116
or edi, 0xffffffff
jmp 0x180008135
mov r8, qword [rbp + 0x50]
mov edx, ebx
mov rcx, qword [rsi]
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x180008135
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rcx, [rbp - 0x48]
call fcn.1800079f4
lea rcx, [rbp - 0x40]
call fcn.180007a18
lea r11, [rsp + 0x80]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x180008210
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, r8d
lea rcx, [rsp + 0x20]
xor r8d, r8d
mov rsi, rdx
lea edx, [r8 + 1]
call fcn.1800079ac
lea rcx, [rsp + 0x20]
call fcn.180007a74
xor ebx, ebx
test rax, rax
je 0x180008259
mov r8, rsi
mov edx, edi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x18000825c
or ebx, 0xffffffff
lea rcx, [rsp + 0x20]
call fcn.180007a18
mov rsi, qword [rsp + 0x48]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x180008278
Capabilities:
Generate random numbers via winapi

Disassembly:
mov r8d, 4
jmp fcn.180008210