joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180007d80
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x180007e0c
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x48]
add rdx, rcx
mov rcx, rdx
xor r9d, r9d
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180007df1
mov eax, 0xffffffff
jmp 0x180007e21
cmp dword [rsp + 0x24], 0
jne 0x180007dfa
jmp 0x180007e0c
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
jmp 0x180007da3
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
je 0x180007e1d
mov eax, 0xffffffff
jmp 0x180007e21
mov eax, dword [rsp + 0x50]
add rsp, 0x38
ret

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

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
cmp dword [rsp + 0x50], 0
jne 0x180007e51
mov eax, 1
jmp 0x180007e7d
xor r9d, r9d
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_send]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0xffffffff
jne 0x180007e78
xor eax, eax
jmp 0x180007e7d
mov eax, 1
add rsp, 0x38
ret

Function at 0x180008080
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x838
mov r8d, 0x800
xor edx, edx
lea rcx, [rsp + 0x30]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x848]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x20]
mov r8, qword [rsp + 0x840]
mov edx, 0x800
lea rcx, [rsp + 0x30]
call fcn.1800035e0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x30]
call sub.KERNEL32.dll_OutputDebugStringA
add rsp, 0x838
ret
Function at 0x180008c90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x2c], 0
mov rax, qword [0x18001c320]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
cmp qword [0x18001c328], 0
jne 0x180008ce8
mov ecx, 0x100000
call sub.msvcrt.dll_malloc
mov qword [0x18001c328], rax
cmp qword [rsp + 0x38], 0
je 0x180008e2d
mov rax, qword [rsp + 0x38]
cmp dword [rax + 4], 1
je 0x180008d0f
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x180008ce8
mov rax, qword [rsp + 0x38]
mov ecx, dword [rax]
call qword [sym.imp.WS2_32.dll_htonl]
mov dword [rsp + 0x2c], eax
mov r8d, 4
lea rdx, [rsp + 0x2c]
mov rcx, qword [0x18001c328]
call sub.msvcrt.dll_memcpy
lea r8, [rsp + 0x20]
mov edx, 0x4004667f
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x20], 0xffffc
jbe 0x180008d66
mov dword [rsp + 0x20], 0xffffc
cmp dword [rsp + 0x30], 0xffffffff
jne 0x180008d94
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18001c328]
call qword [rsp + 0x50]
jmp 0x180008e1a
cmp dword [rsp + 0x20], 0
jbe 0x180008e1a
mov rax, qword [0x18001c328]
add rax, 4
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax + 0x20]
call fcn.180008fc0
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x180008deb
mov rax, qword [rsp + 0x38]
mov dword [rax + 4], 0
mov r8d, 4
mov edx, 4
mov rcx, qword [0x18001c328]
call qword [rsp + 0x50]
jmp 0x180008e1a
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x24], eax
jne 0x180008e1a
mov eax, dword [rsp + 0x20]
add rax, 4
mov r8d, 5
mov edx, eax
mov rcx, qword [0x18001c328]
call qword [rsp + 0x50]
mov eax, dword [rsp + 0x28]
inc eax
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x38], rax
jmp 0x180008ce8
mov eax, dword [rsp + 0x28]
add rsp, 0x48
ret
Function at 0x180008e40
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [0x18001c320]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
cmp qword [rsp + 0x28], 0
je 0x180008fb3
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x180008ebb
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0xc], 0
jne 0x180008ebb
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
mov dword [rcx + 0xc], eax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180008fae
mov rax, qword [rsp + 0x28]
cmp dword [rax + 4], 0
jne 0x180008f96
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov rcx, qword [rsp + 0x28]
sub eax, dword [rcx + 0xc]
cmp eax, 0x3e8
jbe 0x180008f96
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 0
jne 0x180008f02
mov edx, 2
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rax, qword [rsp + 0x28]
mov rcx, qword [rax + 0x20]
call qword [sym.imp.WS2_32.dll_closesocket]
test eax, eax
je 0x180008f3d
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x10], 2
jne 0x180008f3d
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180008e6e
cmp qword [rsp + 0x30], 0
jne 0x180008f6a
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [0x18001c320], rax
mov rcx, qword [rsp + 0x28]
call fcn.18000cc84
mov qword [rsp + 0x28], 0
jmp 0x180008f94
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 0x28]
mov qword [rax + 0x28], rcx
mov rcx, qword [rsp + 0x28]
call fcn.18000cc84
mov rax, qword [rsp + 0x30]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180008fae
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x28], rax
jmp 0x180008e6e
add rsp, 0x48
ret

Function at 0x180008fc0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x24], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x20], eax
jge 0x18000906d
mov eax, dword [rsp + 0x20]
mov ecx, dword [rsp + 0x50]
sub ecx, eax
mov eax, ecx
xor r9d, r9d
mov r8d, eax
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_recv]
mov dword [rsp + 0x24], eax
movsxd rax, dword [rsp + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov eax, dword [rsp + 0x24]
mov ecx, dword [rsp + 0x20]
add ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x24], 0xffffffff
jne 0x18000906b
mov edx, 2
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_shutdown]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0xffffffff
jmp 0x180009071
jmp 0x180008fed
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret
Function at 0x18000a230
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov ecx, 0x8000
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x40]
lea r8, str._s
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.180001cc0
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov qword [rsp + 0x28], rax
mov rcx, qword [rsp + 0x20]
call fcn.18000cc84
cmp qword [rsp + 0x28], 0xffffffffffffffff
jne 0x18000a299
jmp 0x18000a393
mov rax, qword [rsp + 0x48]
mov eax, dword [rax]
and eax, 0x10
test eax, eax
je 0x18000a358
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rdx, [0x18001b1fc]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x18000a356
mov rax, qword [rsp + 0x48]
add rax, 0x2c
lea rdx, [0x18001b200]
mov rcx, rax
call sub.msvcrt.dll_strcmp
test eax, eax
je 0x18000a356
mov ecx, 0x8000
call sub.msvcrt.dll_malloc
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, rax
lea r8, [0x18001b204]
mov edx, 0x8000
mov rcx, qword [rsp + 0x20]
call fcn.180001cc0
mov rax, qword [rsp + 0x48]
add rax, 0x2c
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x48]
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call fcn.18000a3a0
mov r8d, 1
mov rdx, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rcx, qword [rsp + 0x20]
call fcn.18000cc84
jmp 0x18000a370
mov rax, qword [rsp + 0x48]
add rax, 0x2c
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rsp + 0x40]
call qword [rsp + 0x50]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18000a299
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_FindClose]
add rsp, 0x38
ret

Function at 0x18000b5b0
Capabilities:
Create thread
Terminate process

Disassembly:
sub rsp, 0x48
mov ecx, 0x37
call fcn.180008160
movzx eax, ax
mov dword [rsp + 0x34], eax
mov ecx, 0x27
call fcn.180008160
movzx eax, ax
mov dword [rsp + 0x30], eax
call fcn.180001000
cmp dword [rsp + 0x34], 1
jne 0x18000b609
cmp dword [rsp + 0x30], 1
jne 0x18000b5ff
xor eax, eax
cmp eax, 1
je 0x18000b5fd
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x18000b5e9
jmp 0x18000b607
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitThread]
jmp 0x18000b64d
cmp dword [rsp + 0x30], 1
jne 0x18000b645
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
mov r8, qword [sym.imp.KERNEL32.dll_ExitProcess]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x18000b64d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x48
ret
Function at 0x18000ba20
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov rax, qword [rsp + 0x50]
cmp qword [rax + 8], 0
je 0x18000ba43
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
jmp 0x18000bad8
mov dword [rsp + 0x30], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov rcx, qword [rsp + 0x50]
mov ecx, dword [rcx + 4]
mov dword [rsp + 0x20], ecx
mov rcx, qword [rsp + 0x50]
mov r9d, dword [rcx]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000bacf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
cmp dword [rsp + 0x30], 0x80090016
jne 0x18000bac5
mov rax, qword [rsp + 0x50]
add rax, 8
mov dword [rsp + 0x20], 8
mov rcx, qword [rsp + 0x50]
mov r9d, dword [rcx]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x18000bac3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
jmp 0x18000bacf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov rax, qword [rsp + 0x50]
mov rax, qword [rax + 8]
add rsp, 0x48
ret
Function at 0x18000bb30
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov dword [rsp + 0x60], 0
mov r8d, 0xf0000000
mov edx, 0x18
lea rcx, [rsp + 0x48]
call fcn.18000b870
nop
lea rcx, [rsp + 0x48]
call fcn.18000ba20
test rax, rax
jne 0x18000bb97
mov byte [rsp + 0x30], 0
lea rcx, [rsp + 0x48]
call fcn.18000b970
movzx eax, byte [rsp + 0x30]
jmp 0x18000bd12
lea rcx, [rsp + 0x38]
call fcn.18000b8e0
nop
mov rax, qword [rsp + 0x80]
mov r9d, dword [rax + 8]
mov rax, qword [rsp + 0x80]
mov r8, qword [rax]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x38]
call fcn.18000c9a0
test eax, eax
je 0x18000bbf0
mov byte [rsp + 0x31], 0
lea rcx, [rsp + 0x38]
call fcn.18000b930
nop
lea rcx, [rsp + 0x48]
call fcn.18000b970
movzx eax, byte [rsp + 0x31]
jmp 0x18000bd12
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.18000cc50
test eax, eax
je 0x18000bc27
mov byte [rsp + 0x32], 0
lea rcx, [rsp + 0x38]
call fcn.18000b930
nop
lea rcx, [rsp + 0x48]
call fcn.18000b970
movzx eax, byte [rsp + 0x32]
jmp 0x18000bd12
mov rax, qword [rsp + 0x80]
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x38]
call fcn.18000cba0
test eax, eax
je 0x18000bc65
mov byte [rsp + 0x33], 0
lea rcx, [rsp + 0x38]
call fcn.18000b930
nop
lea rcx, [rsp + 0x48]
call fcn.18000b970
movzx eax, byte [rsp + 0x33]
jmp 0x18000bd12
lea rcx, [rsp + 0x38]
call fcn.18000bae0
test rax, rax
jne 0x18000bc95
mov byte [rsp + 0x34], 0
lea rcx, [rsp + 0x38]
call fcn.18000b930
nop
lea rcx, [rsp + 0x48]
call fcn.18000b970
movzx eax, byte [rsp + 0x34]
jmp 0x18000bd12
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x58], eax
lea rcx, [rsp + 0x38]
call fcn.18000bae0
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x88]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
mov dword [rsp + 0x5c], eax
cmp dword [rsp + 0x5c], 1
jne 0x18000bce7
mov dword [rsp + 0x40], 1
jmp 0x18000bcef
mov dword [rsp + 0x40], 0
movzx eax, byte [rsp + 0x40]
mov byte [rsp + 0x35], al
lea rcx, [rsp + 0x38]
call fcn.18000b930
nop
lea rcx, [rsp + 0x48]
call fcn.18000b970
movzx eax, byte [rsp + 0x35]
add rsp, 0x78
ret
Function at 0x18000bd20
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov dword [rsp + 0x70], 0
mov r8d, 0xf0000000
mov edx, 0x18
lea rcx, [rsp + 0x58]
call fcn.18000b870
nop
lea rcx, [rsp + 0x58]
call fcn.18000ba20
test rax, rax
jne 0x18000bd8a
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x58]
call fcn.18000b970
movzx eax, byte [rsp + 0x40]
jmp 0x18000bf13
lea rcx, [rsp + 0x48]
call fcn.18000b8e0
nop
mov rax, qword [rsp + 0x90]
mov r9d, dword [rax + 8]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x48]
call fcn.18000c9a0
test eax, eax
je 0x18000bde3
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x48]
call fcn.18000b930
nop
lea rcx, [rsp + 0x58]
call fcn.18000b970
movzx eax, byte [rsp + 0x41]
jmp 0x18000bf13
mov edx, 1
lea rcx, [rsp + 0x48]
call fcn.18000cc50
test eax, eax
je 0x18000be1a
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0x48]
call fcn.18000b930
nop
lea rcx, [rsp + 0x58]
call fcn.18000b970
movzx eax, byte [rsp + 0x42]
jmp 0x18000bf13
mov rax, qword [rsp + 0x90]
mov rdx, qword [rax + 0x10]
lea rcx, [rsp + 0x48]
call fcn.18000cba0
test eax, eax
je 0x18000be58
mov byte [rsp + 0x43], 0
lea rcx, [rsp + 0x48]
call fcn.18000b930
nop
lea rcx, [rsp + 0x58]
call fcn.18000b970
movzx eax, byte [rsp + 0x43]
jmp 0x18000bf13
lea rcx, [rsp + 0x48]
call fcn.18000bae0
test rax, rax
jne 0x18000be8b
mov byte [rsp + 0x44], 0
lea rcx, [rsp + 0x48]
call fcn.18000b930
nop
lea rcx, [rsp + 0x58]
call fcn.18000b970
movzx eax, byte [rsp + 0x44]
jmp 0x18000bf13
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x48]
call fcn.18000bae0
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov dword [rsp + 0x6c], eax
cmp dword [rsp + 0x6c], 1
jne 0x18000bee8
mov dword [rsp + 0x50], 1
jmp 0x18000bef0
mov dword [rsp + 0x50], 0
movzx eax, byte [rsp + 0x50]
mov byte [rsp + 0x45], al
lea rcx, [rsp + 0x48]
call fcn.18000b930
nop
lea rcx, [rsp + 0x58]
call fcn.18000b970
movzx eax, byte [rsp + 0x45]
add rsp, 0x88
ret
Function at 0x18000bf20
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x88
mov qword [rsp + 0x78], 0xfffffffffffffffe
xor r8d, r8d
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.18000b870
nop
mov dword [rsp + 0x50], 0
lea rcx, [rsp + 0x68]
call fcn.18000ba20
test rax, rax
jne 0x18000bf91
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x40], 0
lea rcx, [rsp + 0x68]
call fcn.18000b970
movzx eax, byte [rsp + 0x40]
jmp 0x18000c132
lea rcx, [rsp + 0x58]
call fcn.18000b8e0
nop
mov rax, qword [rsp + 0x90]
mov r9d, dword [rax + 8]
mov rax, qword [rsp + 0x90]
mov r8, qword [rax]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x58]
call fcn.18000caa0
lea rcx, [rsp + 0x58]
call fcn.18000bae0
test rax, rax
jne 0x18000bfff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x41], 0
lea rcx, [rsp + 0x58]
call fcn.18000b930
nop
lea rcx, [rsp + 0x68]
call fcn.18000b970
movzx eax, byte [rsp + 0x41]
jmp 0x18000c132
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x58]
call fcn.18000bae0
mov ecx, dword [rsp + 0xa0]
mov dword [rsp + 0x30], ecx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x98]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
jne 0x18000c07c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov byte [rsp + 0x42], 0
lea rcx, [rsp + 0x58]
call fcn.18000b930
nop
lea rcx, [rsp + 0x68]
call fcn.18000b970
movzx eax, byte [rsp + 0x42]
jmp 0x18000c132
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xb0]
mov qword [rcx], rax
mov dword [rsp + 0x48], 0
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax]
dec rax
mov dword [rsp + 0x4c], eax
jmp 0x18000c0bb
mov eax, dword [rsp + 0x48]
inc eax
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0x4c]
dec eax
mov dword [rsp + 0x4c], eax
mov eax, dword [rsp + 0x4c]
cmp dword [rsp + 0x48], eax
jge 0x18000c113
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x98]
movzx eax, byte [rcx + rax]
mov byte [rsp + 0x43], al
movsxd rax, dword [rsp + 0x4c]
movsxd rcx, dword [rsp + 0x48]
mov rdx, qword [rsp + 0x98]
mov r8, qword [rsp + 0x98]
movzx eax, byte [r8 + rax]
mov byte [rdx + rcx], al
movsxd rax, dword [rsp + 0x4c]
mov rcx, qword [rsp + 0x98]
movzx edx, byte [rsp + 0x43]
mov byte [rcx + rax], dl
jmp 0x18000c0a7
mov byte [rsp + 0x44], 1
lea rcx, [rsp + 0x58]
call fcn.18000b930
nop
lea rcx, [rsp + 0x68]
call fcn.18000b970
movzx eax, byte [rsp + 0x44]
add rsp, 0x88
ret

Function at 0x18000c140
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x60]
mov r8d, 1
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
xor eax, eax
add rsp, 0x48
ret
Function at 0x18000c1a0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8d, 1
mov edx, dword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
xor eax, eax
add rsp, 0x38
ret

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

Disassembly:
mov dword [rsp + 0x20], r9d
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov dword [rsp + 0x30], 0
mov r8d, 0xf0000000
mov edx, 0x18
lea rcx, [rsp + 0x50]
call fcn.18000b870
nop
lea rcx, [rsp + 0x50]
call fcn.18000ba20
test rax, rax
jne 0x18000c259
mov dword [rsp + 0x34], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000b970
mov eax, dword [rsp + 0x34]
jmp 0x18000c398
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x60], rax
lea rcx, [rsp + 0x50]
call fcn.18000ba20
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, dword [rsp + 0x98]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
mov dword [rsp + 0x38], eax
cmp dword [rsp + 0x38], 0
jne 0x18000c2c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x3c], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000b970
mov eax, dword [rsp + 0x3c]
jmp 0x18000c398
xor r9d, r9d
mov r8d, dword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x18000c30d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x40], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000b970
mov eax, dword [rsp + 0x40]
jmp 0x18000c398
mov eax, dword [rsp + 0xa8]
mov dword [rsp + 0x44], eax
mov eax, dword [rsp + 0xa8]
mov r8d, eax
xor edx, edx
mov rcx, qword [rsp + 0xa0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x44]
mov r8, qword [rsp + 0xa0]
mov edx, 2
mov rax, qword [rsp + 0x80]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x18000c382
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x48], 0xffffffff
lea rcx, [rsp + 0x50]
call fcn.18000b970
mov eax, dword [rsp + 0x48]
jmp 0x18000c398
mov dword [rsp + 0x4c], 0
lea rcx, [rsp + 0x50]
call fcn.18000b970
mov eax, dword [rsp + 0x4c]
add rsp, 0x78
ret