joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001128f
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400144e0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014500
xor al, al
jmp 0x140014581
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014513
xor al, al
jmp 0x140014581
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 0x14001453d
xor al, al
jmp 0x140014581
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014551
xor al, al
jmp 0x140014581
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014563
xor al, al
jmp 0x140014581
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001457f
xor al, al
jmp 0x140014581
mov al, 1
add rsp, 0x38
ret
Function at 0x18000316c
Capabilities:
Get disk information

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rcx, rdx
mov rdi, r8
call fcn.1800038f4
mov edx, 0x80
mov rcx, rdi
mov ebx, eax
call fcn.180003a64
mov edx, ebx
mov rcx, rdi
call fcn.180003afc
call qword [sym.imp.KERNEL32.dll_GetLogicalDrives]
xor edx, edx
lea rcx, [rsp + 0x20]
mov ebx, eax
lea r8d, [rdx + 0x20]
call sub.msvcrt.dll_memset
mov r9d, ebx
lea r8, [0x180010270]
mov edx, 0x20
lea rcx, [rsp + 0x20]
call fcn.18000381c
lea rcx, [rsp + 0x20]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x1800031e3
mov r8d, eax
lea rdx, [rsp + 0x20]
mov rcx, rdi
call fcn.180003ab8
mov eax, 0x16
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.18000e520
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
Function at 0x1800034dc
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rax - 0xb8]
sub rsp, 0x190
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rbp + 0x80], rax
mov r15, r8
mov rbx, rdx
mov rcx, rdx
call fcn.1800038f4
mov edi, eax
and dword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.180003928
movsxd r8, dword [rsp + 0x30]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180003868
nop
mov edx, 0x200000
mov rcx, r15
call fcn.180003a64
mov edx, edi
mov rcx, r15
call fcn.180003afc
lea r13, [0x1800106a0]
mov qword [rsp + 0x38], r13
mov r8d, 2
lea rdx, [0x180010274]
mov rdi, qword [rsp + 0x40]
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_strncmp]
or r14, 0xffffffffffffffff
test eax, eax
jne 0x18000365d
mov ebx, 0x104
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x70]
call sub.msvcrt.dll_memset
lea rdx, [rsp + 0x70]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea rax, [rsp + 0x70]
mov rbx, r14
inc rbx
cmp byte [rax + rbx], 0
jne 0x1800035bf
test rbx, rbx
je 0x1800035f0
lea rcx, [rbx + 1]
call qword [sym.imp.msvcrt.dll_malloc]
mov rsi, rax
mov r8, rbx
lea rdx, [rsp + 0x70]
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov byte [rsi + rbx], 0
jmp 0x1800035fa
mov rsi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x38]
test rdi, rdi
je 0x180003628
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x180003628
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
and qword [rsp + 0x40], 0
and qword [rsp + 0x48], 0
mov r8, rbx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.180003868
test rsi, rsi
je 0x180003658
test rbx, rbx
je 0x180003658
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov rcx, rsi
call qword [sym.imp.msvcrt.dll_free]
mov rdi, qword [rsp + 0x40]
inc r14
cmp byte [rdi + r14], 0
jne 0x18000365d
mov r8d, r14d
mov rdx, rdi
mov rcx, r15
call fcn.180003ab8
mov r8d, 1
lea rdx, [0x180010278]
mov rcx, r15
call fcn.180003ab8
lea rax, [0x180010618]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], r15
lea r9, [rsp + 0x50]
xor r8d, r8d
mov rdx, rdi
lea rcx, [rsp + 0x38]
call fcn.1800042e4
nop
test eax, eax
je 0x1800036d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov qword [rsp + 0x20], rdi
xor r9d, r9d
mov r8d, eax
lea edx, [r9 + 0x34]
mov rcx, r15
call fcn.180003bc4
mov ebx, 0x1f
jmp 0x1800036de
mov ebx, 0x16
mov qword [rsp + 0x38], r13
test rdi, rdi
je 0x180003705
mov r8, qword [rsp + 0x48]
test r8, r8
je 0x180003705
xor edx, edx
mov rcx, rdi
call sub.msvcrt.dll_memset
mov rcx, rdi
call qword [sym.imp.msvcrt.dll_free]
mov eax, ebx
mov rcx, qword [rbp + 0x80]
xor rcx, rsp
call fcn.18000e520
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
Function at 0x180003734
Capabilities:
Delete directory
Delete file
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov qword [rax + 8], rcx
push rdi
sub rsp, 0x40
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
movsxd r9, dword [rdx + 0x14]
mov rcx, qword [rdx + 8]
mov r8d, dword [rdx + 0x10]
cmp r8d, r9d
jge 0x180003765
xor ecx, ecx
jmp 0x180003774
lea rax, [rcx + r9]
mov qword [rdx + 8], rax
sub r8d, r9d
mov dword [rdx + 0x10], r8d
mov r8, r9
mov rdx, rcx
lea rcx, [rsp + 0x28]
call fcn.180003868
nop
lea rdi, [0x1800106a0]
mov qword [rsp + 0x60], rdi
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
je 0x1800037d5
lea rax, [0x1800106b8]
mov qword [rsp + 0x50], rax
lea r9, [rsp + 0x50]
mov r8b, 1
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1800042e4
nop
test rbx, rbx
je 0x1800037e4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll__rmdir]
jmp 0x1800037e4
test rbx, rbx
je 0x1800037e4
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_remove]
nop
mov qword [rsp + 0x60], rdi
test rbx, rbx
je 0x18000380b
mov r8, qword [rsp + 0x30]
test r8, r8
je 0x18000380b
xor edx, edx
mov rcx, rbx
call sub.msvcrt.dll_memset
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_free]
mov eax, 0x21
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x1800041c0
Capabilities:
Encode data using base64 via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rdi, r9
mov qword [rsp + 0x20], r9
mov r9, r8
mov rbx, r8
mov r8d, 1
call qword [sym.imp.CRYPT32.dll_CryptBinaryToStringA]
test eax, eax
jne 0x1800041f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x180004225
mov eax, dword [rdi]
xor ecx, ecx
test eax, eax
je 0x180004221
cmp byte [rbx], 0x3d
jne 0x180004206
mov byte [rbx], 0
dec eax
jmp 0x180004218
cmp byte [rbx], 0x2f
jne 0x180004210
mov byte [rbx], 0x5f
jmp 0x180004218
cmp byte [rbx], 0x2b
jne 0x180004218
mov byte [rbx], 0x2d
inc ecx
inc rbx
cmp ecx, dword [rdi]
jb 0x1800041fa
mov dword [rdi], eax
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
push rbx
sub rsp, 0x40
xor ebx, ebx
test edx, edx
je 0x18000426c
mov rax, rcx
mov r10d, edx
cmp byte [rax], 0x5f
jne 0x18000424c
mov byte [rax], 0x2f
jmp 0x180004254
cmp byte [rax], 0x2d
jne 0x180004254
mov byte [rax], 0x2b
inc rax
sub r10, 1
jne 0x180004242
jmp 0x18000426c
cmp edx, r8d
ja 0x1800042a5
mov eax, edx
inc edx
mov byte [rax + rcx], 0x3d
test dl, 3
jne 0x18000425f
mov rax, qword [rsp + 0x70]
mov r8d, 1
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
jne 0x18000429d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov eax, ebx
add rsp, 0x40
pop rbx
ret
mov eax, 6
jmp 0x18000429f
Function at 0x1800042e4
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov r14b, r8b
mov rsi, rdx
mov r15, rcx
mov r12d, 0x104
mov r8d, r12d
lea rcx, [rbp + 0x170]
xor edx, edx
mov rdi, r9
call sub.msvcrt.dll_memset
test rsi, rsi
je 0x180004469
lea r8, [0x180010338]
mov rdx, rsi
lea rcx, [rbp + 0x170]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180004463
lea rdx, [rsp + 0x20]
lea rcx, [rbp + 0x170]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x180004463
mov dl, byte [rsp + 0x4c]
cmp dl, byte [0x18001033c]
mov cl, byte [rsp + 0x4d]
jne 0x180004396
cmp cl, byte [0x18001033d]
je 0x180004440
cmp dl, byte [0x180010340]
jne 0x1800043b6
cmp cl, byte [0x180010341]
jne 0x1800043b6
mov al, byte [rsp + 0x4e]
cmp al, byte [0x180010342]
je 0x180004440
xor edx, edx
mov r8, r12
test byte [rsp + 0x20], 0x10
je 0x180004402
lea rcx, [rbp + 0x60]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rbp + 0x60]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180004440
test r14b, r14b
je 0x1800043f9
mov r9, rdi
lea rdx, [rbp + 0x60]
mov r8b, 1
mov rcx, r15
call fcn.1800042e4
mov r8b, 1
lea rdx, [rbp + 0x60]
jmp 0x180004432
lea rcx, [rbp + 0x280]
call sub.msvcrt.dll_memset
lea r8, [rsp + 0x4c]
mov rdx, rsi
lea rcx, [rbp + 0x280]
call qword [sym.imp.SHLWAPI.dll_PathCombineA]
test rax, rax
je 0x180004440
xor r8d, r8d
lea rdx, [rbp + 0x280]
mov rax, qword [rdi]
lea r9, [rsp + 0x20]
mov rcx, rdi
call qword [rax + reloc.WS2_32.dll_htonl]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x18000437a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x18000446c
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.18000e520
add rsp, 0x4a0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1800069e8
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov eax, dword [rcx + 4]
lea rbx, [rcx + 8]
mov r9d, dword [rcx]
mov rdi, rcx
mov rcx, rbx
mov dword [rsp + 0x20], eax
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x180006a45
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x180006a3f
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 0x180006a45
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [rbx]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov dword [rax + 0x20], r9d
push rdi
sub rsp, 0x40
and qword [rax - 0x10], 0
mov rbx, rcx
lea rcx, [rax - 0x18]
mov dword [rax - 0x18], 0x18
mov rdi, rdx
mov dword [rax - 0x14], 0xf0000000
call fcn.1800069e8
test rax, rax
je 0x180006ad9
mov rax, qword [rsp + 0x38]
test rax, rax
jne 0x180006a9f
lea rcx, [rsp + 0x30]
call fcn.1800069e8
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
mov edx, 0x800c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x180006ad3
mov rcx, qword [rbx]
xor r9d, r9d
mov rdx, rdi
lea r8d, [r9 + 0x10]
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
jne 0x180006afb
call qword [sym.imp.KERNEL32.dll_GetLastError]
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x180006aee
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
mov rcx, qword [rsp + 0x70]
mov r8d, 0x20
xor edx, edx
mov dword [rsp + 0x68], r8d
call sub.msvcrt.dll_memset
mov r8, qword [rsp + 0x70]
lea r9, [rsp + 0x68]
mov rcx, qword [rbx]
mov edx, 2
and dword [rsp + 0x20], 0
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x180006ad3
xor ebx, ebx
jmp 0x180006adc

Function at 0x180006b38
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rax, r8
mov dword [rsp + 0x30], 0x208
mov rbx, rdx
mov r8d, r9d
mov rdi, rcx
mov dword [rsp + 0x34], 0x660e
xorps xmm0, xmm0
mov dword [rsp + 0x38], r9d
xorps xmm1, xmm1
lea rcx, [rsp + 0x3c]
mov rdx, rax
xor esi, esi
movdqu xmmword [rsp + 0x3c], xmm0
movdqu xmmword [rsp + 0x4c], xmm1
call sub.msvcrt.dll_memcpy
mov rax, qword [rbx + 8]
test rax, rax
jne 0x180006ba2
mov rcx, rbx
call fcn.1800069e8
xor r9d, r9d
mov qword [rsp + 0x28], rdi
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x20], esi
mov rcx, rax
lea r8d, [r9 + 0x2c]
call qword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x180006bcf
call qword [sym.imp.KERNEL32.dll_GetLastError]
or eax, 0xffffffff
jmp 0x180006bd1
xor eax, eax
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.18000e520
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x180006e1c
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], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
and dword [rbp - 0x14], 0
mov rsi, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
mov ebx, 1
mov r15, r9
mov dword [rbp - 0x18], ebx
mov r12, r8
mov rdi, rdx
call fcn.1800069e8
test rax, rax
jne 0x180006e73
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
jmp 0x180006f98
and qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x10]
mov r14d, dword [rsi + 8]
mov rsi, qword [rsi]
test rax, rax
jne 0x180006e96
lea rcx, [rbp - 0x18]
call fcn.1800069e8
test rax, rax
je 0x180006f15
lea rax, [rbp - 0x2c]
mov dword [rbp - 0x2c], 0x30
mov qword [rsp + 0x38], rax
mov r9d, r14d
lea rax, [rbp - 0x20]
mov r8, rsi
mov qword [rsp + 0x30], rax
mov edx, 8
and qword [rsp + 0x28], 0
mov ecx, ebx
mov dword [rsp + 0x20], 0x8000
call qword [sym.imp.CRYPT32.dll_CryptDecodeObjectEx]
test eax, eax
jne 0x180006edc
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x180006f15
mov rax, qword [rbp - 0x10]
test rax, rax
jne 0x180006eee
lea rcx, [rbp - 0x18]
call fcn.1800069e8
mov r8, qword [rbp - 0x20]
lea r9, [rbp - 0x28]
mov edx, ebx
mov rcx, rax
call qword [sym.imp.CRYPT32.dll_CryptImportPublicKeyInfo]
test eax, eax
jne 0x180006f0b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180006f7c
lea rax, [rbp - 0x30]
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], rax
xor r9d, r9d
mov r8d, ebx
mov qword [rsp + 0x20], rdi
xor edx, edx
mov dword [rbp - 0x30], r15d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x180006f7c
mov eax, dword [rbp - 0x30]
mov rcx, qword [rbp + 0x40]
mov qword [rcx], rax
sub eax, ebx
movsxd rdx, eax
test eax, eax
jle 0x180006f84
mov r8, rdi
mov al, byte [rdx + rdi]
mov cl, byte [r8]
mov byte [r8], al
add r8, rbx
mov rax, r8
mov byte [rdx + rdi], cl
sub rax, rdi
sub rdx, rbx
cmp rax, rdx
jl 0x180006f5d
jmp 0x180006f84
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor bl, bl
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x180006f98
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180006fa9
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
lea r11, [rsp + 0x70]
mov al, bl
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x180006fcc
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov r13, qword [rbp + 0x68]
mov rdi, rcx
and qword [rbp - 0x10], 0
lea rcx, [rbp - 0x18]
mov r12, r9
mov dword [rbp - 0x18], 0x18
mov r15, r8
mov dword [rbp - 0x14], 0xf0000000
mov r14, rdx
call fcn.1800069e8
test rax, rax
jne 0x18000701e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180007103
and qword [rbp - 0x28], 0
mov rax, qword [rbp - 0x10]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x180007044
lea rcx, [rbp - 0x18]
call fcn.1800069e8
test rax, rax
je 0x1800070e7
mov r9d, ebx
lea rdx, [rbp - 0x18]
mov r8, rsi
lea rcx, [rbp - 0x28]
call fcn.180006b38
test eax, eax
jne 0x1800070e7
mov rcx, qword [rbp - 0x28]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x1c], esi
test rcx, rcx
je 0x180007082
xor r9d, r9d
lea r8, [rbp - 0x1c]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x1800070e7
mov rcx, qword [rbp - 0x28]
xor ebx, ebx
test rcx, rcx
je 0x1800070a8
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x1800070e7
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1800070e7
lea rax, [rbp - 0x20]
mov dword [rsp + 0x30], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
mov dword [rbp - 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [rbp - 0x20]
mov qword [r13], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x28]
mov ebx, eax
test rcx, rcx
je 0x180007103
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x28], 0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x180007114
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180007128
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x50
and qword [rbp - 8], 0
mov rdi, rcx
lea rcx, [rbp - 0x10]
mov dword [rbp - 0x10], 0x18
mov r15, r9
mov dword [rbp - 0xc], 0xf0000000
mov r14, rdx
call fcn.1800069e8
test rax, rax
jne 0x180007172
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x180007247
and qword [rbp - 0x20], 0
mov rax, qword [rbp - 8]
mov ebx, dword [rdi + 8]
mov rsi, qword [rdi]
test rax, rax
jne 0x180007198
lea rcx, [rbp - 0x10]
call fcn.1800069e8
test rax, rax
je 0x18000722b
mov r9d, ebx
lea rdx, [rbp - 0x10]
mov r8, rsi
lea rcx, [rbp - 0x20]
call fcn.180006b38
test eax, eax
jne 0x18000722b
mov rcx, qword [rbp - 0x20]
lea esi, [rax + 1]
xor ebx, ebx
mov dword [rbp - 0x18], esi
test rcx, rcx
je 0x1800071d2
xor r9d, r9d
lea r8, [rbp - 0x18]
lea edx, [rax + 4]
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000722b
mov rcx, qword [rbp - 0x20]
xor ebx, ebx
test rcx, rcx
je 0x1800071f8
mov r8, qword [rdi + 0x10]
xor r9d, r9d
mov edx, esi
call qword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp ebx, esi
jne 0x18000722b
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x18000722b
lea rax, [rbp - 0x14]
mov dword [rbp - 0x14], r15d
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], r14
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rbp - 0x20]
mov ebx, eax
test rcx, rcx
je 0x180007247
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and qword [rbp - 0x20], 0
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x180007258
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x90]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret

Function at 0x1800072a8
Capabilities:
Generate random numbers via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
and dword [rax - 0x14], 0
mov rdi, rcx
and qword [rax - 0x10], 0
lea rcx, [rax - 0x18]
mov ebx, edx
mov dword [rax - 0x18], 1
call fcn.1800069e8
test rax, rax
je 0x1800072ed
mov r8, rdi
mov edx, ebx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1800072ed
xor ebx, ebx
jmp 0x1800072f0
or ebx, 0xffffffff
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x180007302
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x18000a2a0
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x40
xor eax, eax
mov ebx, ecx
xor ecx, ecx
mov dword [rsp + 0x60], eax
mov dword [rsp + 0x68], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18000a2fc
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18000a2fc
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18000a2fc
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18000a2fc
cmp dword [rcx + 0x84], 0xe
jbe 0x18000a2fc
cmp dword [rcx + 0xf8], 0
je 0x18000a2fc
mov ecx, ebx
call fcn.18000a230
lea rax, [rsp + 0x68]
mov byte [rsp + 0x58], 0
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x20]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rcx, [0x1800162e0]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x30], rax
call fcn.18000a0b0
cmp dword [rsp + 0x60], 0
jne 0x18000a33f
mov ecx, ebx
call fcn.18000a1e0
int3
add rsp, 0x40
pop rbx
ret

Function at 0x18000a570
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
push rbp
lea rbp, [rsp - 0x4f0]
sub rsp, 0x5f0
mov rax, qword [0x180014008]
xor rax, rsp
mov qword [rbp + 0x4e0], rax
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x18000a5ac
mov ecx, 5
int 0x29
mov ecx, 2
call fcn.18000e7ac
xorps xmm0, xmm0
lea rcx, [rbp + 0x10]
xor eax, eax
xor edx, edx
mov r8d, 0x4d0
mov qword [rbp], rax
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rbp + 0x10]
lea rax, [rbp + 0x10]
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rbx, qword [rbp + 0x108]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x18000a668
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0x58]
mov qword [rsp + 0x38], 0
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x10]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_RtlVirtualUnwind]
mov rax, qword [rbp + 0x4f8]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0x4f8]
add rax, 8
mov dword [rsp + 0x70], 0xc0000417
mov qword [rbp + 0xa8], rax
mov rax, qword [rbp + 0x4f8]
mov qword [rbp - 0x80], rax
mov dword [rsp + 0x74], 1
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18000a6ce
test ebx, ebx
jne 0x18000a6ce
lea ecx, [rax + 2]
call fcn.18000e7ac
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000417
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [rbp + 0x4e0]
xor rcx, rsp
call fcn.18000e520
mov rbx, qword [rsp + 0x600]
add rsp, 0x5f0
pop rbp
ret