joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006a1b0
Capabilities:
Enumerate threads
Hijack thread execution
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x530
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x520], rax
mov edi, edx
mov rbp, r9
xor edx, edx
mov rsi, r8
lea ecx, [rdx + 4]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
xorps xmm0, xmm0
mov qword [rsp + 0x514], 0
mov rcx, rax
mov dword [rsp + 0x500], 0x1c
lea rdx, [rsp + 0x500]
mov rbx, rax
movdqu xmmword [rsp + 0x504], xmm0
call qword [sym.imp.KERNEL32.dll_Thread32First]
lea rdx, [rsp + 0x500]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
je 0x14006a24e
mov rcx, rbx
cmp dword [rsp + 0x50c], edi
je 0x14006a288
lea rdx, [rsp + 0x500]
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x14006a230
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.couldnt_find_thread_to_hijack_n
call fcn.140069fb0
xor al, al
mov rcx, qword [rsp + 0x520]
xor rcx, rsp
call fcn.1400a70e0
mov rbx, qword [rsp + 0x550]
add rsp, 0x530
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x508]
test r8d, r8d
je 0x14006a257
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
jne 0x14006a2b9
lea rcx, str.couldnt_open_thread_to_hijack_n
jmp 0x14006a25e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x4d0
call fcn.1400a9f40
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x60], 0x10000b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
mov rdx, qword [rsp + 0xc8]
lea r8, [rsp + 0x128]
sub rdx, 8
mov qword [rsp + 0x20], 0
mov r9d, 8
mov qword [rsp + 0xc8], rdx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x128], rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetThreadContext]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x14006a265
Function at 0x14006a350
Capabilities:
Allocate or change rwx memory
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x3f]
sub rsp, 0x90
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rax, qword [rbp + 0x7f]
mov rsi, r8
mov edi, edx
mov qword [rbp + 6], r9
xor edx, edx
mov dword [rbp - 0x21], 0x5153509c
mov r9d, 0x3000
mov dword [rbp - 0x1d], 0x41504152
mov rcx, rsi
mov dword [rbp - 0x19], 0x41524151
mov dword [rbp - 0x15], 0xec834853
lea r8d, [rdx + 0x44]
mov word [rbp - 0x11], 0x4828
mov byte [rbp - 0xf], 0xb9
mov dword [rbp - 6], 0x1c2c748
mov dword [rbp - 2], 0x4d000000
mov dword [rbp + 2], 0xb848c031
mov dword [rbp + 0xe], 0x8348d0ff
mov dword [rbp + 0x12], 0x5b4128c4
mov dword [rbp + 0x16], 0x59415a41
mov dword [rbp + 0x1a], 0x595a5841
mov dword [rbp + 0x1e], 0xc39d585b
mov qword [rbp - 0xe], rax
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x43
mov qword [rsp + 0x20], 0
mov rdx, rax
lea r8, [rbp - 0x21]
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rbx
mov r8, rsi
mov edx, edi
call fcn.14006a1b0
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.1400a70e0
mov rbx, qword [rsp + 0xb0]
add rsp, 0x90
pop rdi
pop rsi
pop rbp
ret
Function at 0x14006a450
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbp
push rsi
push r12
sub rsp, 0xc0
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov r12d, edx
lea rcx, [0x14018a620]
lea rdx, str.___Starting_injection_from_memory
mov rbp, r8
call fcn.14000e840
mov rcx, rax
call fcn.14000eb00
mov r8d, r12d
mov edx, 1
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
jne 0x14006a4cc
lea rdx, str.___Unable_to_open_process.
lea rcx, [0x14018a620]
call fcn.14000e840
mov rcx, rax
call fcn.14000eb00
xor al, al
jmp 0x14006a6c1
mov qword [rsp + 0xe0], rbx
xor edx, edx
mov qword [rsp + 0xb8], rdi
mov r9d, 0x3000
mov qword [rsp + 0xb0], r13
mov rcx, rsi
mov qword [rsp + 0xa8], r14
movsxd r14, dword [rbp + 0x3c]
add r14, rbp
mov qword [rsp + 0xa0], r15
mov dword [rsp + 0x20], 0x40
mov eax, dword [r14 + 0x28]
mov r8d, dword [r14 + 0x50]
mov ebx, dword [r14 + 0x54]
mov r13, qword [r14 + 0x30]
movzx edi, word [r14 + 6]
mov qword [rsp + 0x30], rax
mov eax, dword [r14 + 0xb0]
mov qword [rsp + 0x38], rax
mov eax, dword [r14 + 0x90]
mov qword [rsp + 0x40], rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, ebx
mov qword [rsp + 0x20], 0
mov rdx, rax
mov r8, rbp
mov rcx, rsi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test rdi, rdi
je 0x14006a5aa
lea rbx, [r14 + 0x11c]
xor r14d, r14d
nop dword [rax]
nop word [rax + rax]
mov r8d, dword [rbx]
mov rcx, rsi
mov edx, dword [rbx - 8]
add r8, rbp
mov r9d, dword [rbx - 4]
add rdx, r15
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea rbx, [rbx + 0x28]
sub rdi, 1
jne 0x14006a580
jmp 0x14006a5ad
xor r14d, r14d
mov rax, qword [rsp + 0x30]
xor edx, edx
mov qword [rsp + 0x60], rax
mov r9d, 0x3000
mov rax, qword [rsp + 0x38]
mov rcx, rsi
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x40]
lea r8d, [rdx + 0x40]
mov qword [rsp + 0x70], rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [rsp + 0x78], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x80], rax
mov rax, qword [sym.imp.USER32.dll_MessageBoxA]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], r13
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
xor edx, edx
mov dword [rsp + 0x20], 0x40
mov r9d, 0x3000
mov r8d, 0x4000
mov rcx, rsi
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov r9d, 0x40
mov qword [rsp + 0x20], r14
lea r8, [rsp + 0x50]
mov rdx, rdi
mov rcx, rsi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9d, 0x4000
mov qword [rsp + 0x20], r14
lea r8, [0x14006a000]
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, rbx
mov qword [rsp + 0x20], rdi
mov r8, rsi
mov edx, r12d
call fcn.14006a350
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r15, qword [rsp + 0xa0]
mov al, 1
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xb8]
mov rbx, qword [rsp + 0xe0]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a70e0
add rsp, 0xc0
pop r12
pop rsi
pop rbp
ret
Function at 0x1400711d0
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
test rcx, rcx
je 0x140071373
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140071373
movsxd rax, dword [rcx + 0x3c]
cmp dword [rax + rcx], 0x4550
jne 0x140071373
mov edx, 0x20b
cmp word [rax + rcx + 0x18], dx
jne 0x140071373
mov qword [rbx], rcx
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
mov qword [rsp + 0x40], rdi
mov qword [rbx + 8], rcx
xor edi, edi
mov qword [rsp + 0x48], r14
lea rax, [rcx + 4]
mov qword [rbx + 0x10], rax
lea r14, [rcx + 0x18]
lea rax, [rcx + 0x18]
mov qword [rbx + 0x18], rax
lea rax, [rcx + 0x88]
mov qword [rbx + 0x20], rax
lea rax, [rcx + 0x90]
mov qword [rbx + 0x28], rax
lea rax, [rcx + 0x98]
mov qword [rbx + 0x30], rax
lea rax, [rcx + 0xa0]
mov qword [rbx + 0x38], rax
lea rax, [rcx + 0xa8]
mov qword [rbx + 0x40], rax
lea rax, [rcx + 0xb0]
mov qword [rbx + 0x48], rax
lea rax, [rcx + 0xb8]
mov qword [rbx + 0x50], rax
lea rax, [rcx + 0xc0]
mov qword [rbx + 0x58], rax
lea rax, [rcx + 0xc8]
mov qword [rbx + 0x60], rax
lea rax, [rcx + 0xd0]
mov qword [rbx + 0x68], rax
lea rax, [rcx + 0xd8]
mov qword [rbx + 0x70], rax
lea rax, [rcx + 0xe0]
mov qword [rbx + 0x78], rax
lea rax, [rcx + 0xe8]
mov qword [rbx + 0x80], rax
lea rax, [rcx + 0xf0]
mov qword [rbx + 0x88], rax
lea rax, [rcx + 0xf8]
mov qword [rbx + 0x90], rax
lea rax, [rcx + 0x100]
mov qword [rbx + 0x98], rax
movzx eax, word [rcx + 0x14]
add r14, rax
cmp di, word [rcx + 6]
jae 0x140071361
mov qword [rsp + 0x38], rsi
nop dword [rax]
mov rdx, qword [rbx + 0xa8]
movsxd rax, edi
lea rcx, [rax + rax*4]
lea rax, [r14 + rcx*8]
mov qword [rsp + 0x30], rax
cmp rdx, qword [rbx + 0xb0]
je 0x14007133d
mov qword [rdx], rax
add qword [rbx + 0xa8], 8
jmp 0x14007134e
lea r8, [rsp + 0x30]
lea rcx, [rbx + 0xa0]
call fcn.140071380
mov rax, qword [rbx + 0x10]
inc edi
movzx ecx, word [rax + 2]
cmp edi, ecx
jl 0x140071310
mov rsi, qword [rsp + 0x38]
mov r14, qword [rsp + 0x48]
mov al, 1
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140071bf0
Capabilities:
Encode data using xor
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
mov qword [rbp + 0x10], 0
lea rdx, [rsp + 0x60]
call fcn.1400711d0
mov r15, qword [rbp]
test al, al
je 0x140071d9f
mov dword [rsp + 0x20], 0xc2dccc99
mov word [rsp + 0x24], 0xcf
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax + rax]
lea eax, [rcx - 0x49]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140071c60
mov byte [rsp + 0x26], 0
mov rbx, r15
mov rdi, qword [rbp + 8]
cmp r15, rdi
je 0x140071ca4
mov r12, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, r12
call fcn.1400be040
test eax, eax
je 0x140071ca7
add rbx, 8
cmp rbx, rdi
jne 0x140071c81
xor r12d, r12d
mov dword [rsp + 0x28], 0xd8dcc598
mov dword [rsp + 0x2c], 0x100dace
xor ecx, ecx
nop dword [rax]
lea eax, [rcx - 0x4a]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 6
jb 0x140071cc0
mov byte [rsp + 0x2f], 0
mov rbx, r15
cmp r15, rdi
je 0x140071d03
nop dword [rax]
mov r14, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.1400be040
test eax, eax
je 0x140071d06
add rbx, 8
cmp rbx, rdi
jne 0x140071ce0
xor r14d, r14d
mov dword [rsp + 0x20], 0xced8dc99
mov word [rsp + 0x24], 0xda
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax]
lea eax, [rcx - 0x49]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140071d20
mov byte [rsp + 0x26], 0
mov rbx, r15
cmp r15, rdi
je 0x140071d63
nop dword [rax]
mov rsi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.1400be040
test eax, eax
je 0x140071d65
add rbx, 8
cmp rbx, rdi
jne 0x140071d40
xor esi, esi
test r12, r12
je 0x140071d9f
cmp r12, r14
jae 0x140071d9f
cmp r14, rsi
jae 0x140071d9f
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
xor edx, edx
mov eax, dword [r14 + 0xc]
mov rcx, qword [rsp + 0x58]
div ecx
test edx, edx
jne 0x140071d9f
xor edx, edx
mov eax, dword [rsi + 0xc]
div ecx
test edx, edx
jne 0x140071d9f
mov bl, 1
jmp 0x140071da1
xor bl, bl
test r15, r15
je 0x140071dda
mov rdx, qword [rbp + 0x10]
sub rdx, r15
and rdx, 0xfffffffffffffff8
mov rax, r15
cmp rdx, 0x1000
jb 0x140071dd2
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140071e05
mov rcx, r15
call fcn.1400a7470
movzx eax, bl
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400a70e0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
call fcn.1400bc558
int3
Function at 0x140071e10
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rbp + 0x20], rax
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
lea rdx, [rsp + 0x30]
call fcn.1400711d0
mov r15, qword [rbp - 0x30]
test al, al
je 0x140071fd7
mov dword [rsp + 0x20], 0xc2dccc99
mov word [rsp + 0x24], 0xcf
mov byte [rsp + 0x26], 1
xor ecx, ecx
nop dword [rax + rax]
lea eax, [rcx - 0x49]
xor byte [rsp + rcx + 0x20], al
inc rcx
cmp rcx, 5
jb 0x140071e80
mov byte [rsp + 0x26], 0
mov rbx, r15
mov rdi, qword [rbp - 0x28]
cmp r15, rdi
je 0x140071ec4
mov r14, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x20]
mov rcx, r14
call fcn.1400be040
test eax, eax
je 0x140071ec7
add rbx, 8
cmp rbx, rdi
jne 0x140071ea1
xor r14d, r14d
mov dword [rsp + 0x28], 0xd8dcc598
mov dword [rsp + 0x2c], 0x100dace
xor ecx, ecx
nop dword [rax]
lea eax, [rcx - 0x4a]
xor byte [rsp + rcx + 0x28], al
inc rcx
cmp rcx, 6
jb 0x140071ee0
mov byte [rsp + 0x2f], 0
mov rbx, r15
cmp r15, rdi
je 0x140071f23
nop dword [rax]
mov rsi, qword [rbx]
mov r8d, 8
lea rdx, [rsp + 0x28]
mov rcx, rsi
call fcn.1400be040
test eax, eax
je 0x140071f25
add rbx, 8
cmp rbx, rdi
jne 0x140071f00
xor esi, esi
test r14, r14
je 0x140071fd7
cmp r14, rsi
jae 0x140071fd7
mov dword [rbp - 0x10], 1
mov dword [rbp - 0xc], 2
mov dword [rbp - 8], 4
mov dword [rbp - 4], 8
mov dword [rbp], 0x10
mov dword [rbp + 4], 0x20
mov dword [rbp + 8], 0x40
mov dword [rbp + 0xc], 0x80
mov dword [rbp + 0x10], 0x100
mov dword [rbp + 0x14], 0x200
mov dword [rbp + 0x18], 0x400
mov dword [rbp + 0x1c], 0x80000000
lea rdi, [rbp - 0x10]
mov r13, qword [rsp + 0x48]
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [r14 + 8]
add r8d, 0x1000
mov r9d, dword [rdi]
mov rdx, qword [r13 + 0x18]
call fcn.140072040
mov r8d, dword [rsi + 8]
mov edx, dword [rsi + 0xc]
add rdx, qword [r13 + 0x18]
mov r9d, dword [rdi]
call fcn.140072040
add rdi, 4
lea rax, [rbp + 0x20]
cmp rdi, rax
jne 0x140071fa0
test r15, r15
je 0x140072010
mov rdx, qword [rbp - 0x20]
sub rdx, r15
and rdx, 0xfffffffffffffff8
mov rax, r15
cmp rdx, 0x1000
jb 0x140072008
add rdx, 0x27
mov r15, qword [r15 - 8]
sub rax, r15
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140072038
mov rcx, r15
call fcn.1400a7470
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.1400a70e0
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop rdi
pop rbp
ret
call fcn.1400bc558
int3
Function at 0x140072040
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor ebx, ebx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x50], ebx
mov edi, r9d
mov qword [rsp + 0x58], r8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword gs:[0x58]
mov rsi, rax
mov eax, 4
mov rdx, qword [rcx]
mov ecx, dword [rax + rdx]
cmp dword [0x14018dc68], ecx
jle 0x14007210a
lea rcx, [0x14018dc68]
call fcn.1400a71a8
cmp dword [0x14018dc68], 0xffffffff
jne 0x14007210a
movdqa xmm0, xmmword [0x14011dd90]
movdqu xmmword [rsp + 0x30], xmm0
mov dword [rsp + 0x40], 0xa5a4ad8a
mov dword [rsp + 0x44], 0x100b5b9
nop dword [rax]
nop word [rax + rax]
lea eax, [rbx - 0x49]
xor byte [rsp + rbx + 0x30], al
inc rbx
cmp rbx, 0x16
jb 0x1400720d0
mov rcx, qword [0x14018c9a0]
lea rdx, [rsp + 0x30]
mov byte [rsp + 0x47], 0
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14018dc68]
mov qword [0x14018dc58], rax
call fcn.1400a713c
mov rax, qword [0x14018dc58]
test rax, rax
je 0x140072134
lea rcx, [rsp + 0x50]
mov r9d, edi
mov qword [rsp + 0x20], rcx
lea r8, [rsp + 0x58]
mov rcx, rsi
lea rdx, [rsp + 0x48]
call rax
jmp 0x14007213f
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400a70e0
add rsp, 0x70
pop rdi
pop rsi
pop rbx
ret
Function at 0x140095260
Capabilities:
Create new key via cryptacquirecontext

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0xa0
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, rcx
mov qword [rcx], 0
mov dword [rsp + 0x20], 0xf0000000
mov r9d, 1
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400952f6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov dword [rsp + 0x20], 8
mov r9d, 1
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
jne 0x1400952f6
mov dword [rsp + 0x20], 0x28
lea r9d, [rax + 1]
xor r8d, r8d
lea rdx, str.Crypto_RNG
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x14009531a
mov rax, rbx
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a70e0
mov rbx, qword [rsp + 0xb8]
add rsp, 0xa0
pop rdi
ret
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.CryptAcquireContext
lea rcx, [rsp + 0x30]
call fcn.140009f20
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400953d0
lea rdx, [0x1401337e0]
lea rcx, [rsp + 0x50]
call fcn.1400a97c8
int3

Function at 0x1400957c0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov rbx, r8
mov rdi, rdx
mov ecx, dword [0x14018b400]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14018a2b0], ecx
jg 0x14009589f
mov eax, ebx
cmp rbx, rax
jne 0x140095861
xor ecx, ecx
mov eax, ecx
test rbx, rbx
setne al
test ebx, ebx
setne cl
cmp eax, ecx
jne 0x140095861
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x1400958e2
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400a70e0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x90
pop rdi
ret
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x20]
call fcn.140009f20
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400953d0
lea rdx, [0x1401337e0]
lea rcx, [rsp + 0x40]
call fcn.1400a97c8
nop
lea rcx, [0x14018a2b0]
call fcn.1400a71a8
cmp dword [0x14018a2b0], 0xffffffff
jne 0x14009580c
lea rcx, [0x14018a2a8]
call fcn.140095260
lea rcx, [0x1400e3c10]
call fcn.1400a7458
nop
lea rcx, [0x14018a2b0]
call fcn.1400a713c
jmp 0x14009580c
lea rdx, [0x1400e7d80]
lea rcx, [rsp + 0x20]
call fcn.140009f20
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call fcn.1400953d0
lea rdx, [0x1401337e0]
lea rcx, [rsp + 0x40]
call fcn.1400a97c8
int3
Function at 0x140095920
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0xa0
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x90], rax
mov rbx, r8
mov rdi, rdx
mov dl, 1
lea rcx, [rsp + 0x20]
call fcn.140089330
lea rsi, vtable.CryptoPP::NonblockingRng.0
mov qword [rsp + 0x20], rsi
lea rcx, [rsp + 0x28]
call fcn.140095260
nop
mov ecx, dword [0x14018b400]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x14018a2b0], ecx
jg 0x140095a79
mov eax, ebx
cmp rbx, rax
jne 0x140095a3b
xor ecx, ecx
mov eax, ecx
test ebx, ebx
setne al
test rbx, rbx
setne cl
cmp ecx, eax
jne 0x140095a3b
mov r8, rdi
mov edx, ebx
mov rcx, qword [0x14018a2a8]
call qword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
je 0x140095a08
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsp + 0x28]
test rcx, rcx
je 0x1400959e3
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400a70e0
lea r11, [rsp + 0xa0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
lea rdx, [0x1400e7d80]
lea rcx, [rsp + 0x30]
call fcn.140009f20
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400953d0
lea rdx, [0x1401337e0]
lea rcx, [rsp + 0x50]
call fcn.1400a97c8
nop
mov ecx, 0x5b6
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rdx, str.GenerateBlock_size
lea rcx, [rsp + 0x30]
call fcn.140009f20
nop
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.1400953d0
lea rdx, [0x1401337e0]
lea rcx, [rsp + 0x50]
call fcn.1400a97c8
nop
lea rcx, [0x14018a2b0]
call fcn.1400a71a8
cmp dword [0x14018a2b0], 0xffffffff
jne 0x140095994
lea rcx, [0x14018a2a8]
call fcn.140095260
lea rcx, [0x1400e3c10]
call fcn.1400a7458
nop
lea rcx, [0x14018a2b0]
call fcn.1400a713c
jmp 0x140095994
Function at 0x1400a7ff4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a803e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a803e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a803e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a803e
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a803e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400a8040
xor al, al
add rsp, 0x28
ret

Function at 0x1400bcbac
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.1400a7e00
sub rsp, rax
mov rax, qword [0x140136210]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400ce278
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400bcbfb
mov rax, rbp
jmp 0x1400bcd03
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x18ba10]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400cfaf4
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x18ba10]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400bccff
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400bccff
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400cfaf4
test rax, rax
js 0x1400bccff
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400bccff
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400bccf1
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400bccf1
cmp byte [rcx], 0xd
jne 0x1400bccd7
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400bcce6
cmp byte [rcx + 1], 0xa
jne 0x1400bcce6
inc rcx
jmp 0x1400bcce6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x136620]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400bccb9
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400bcd03
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400a70e0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret