joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180044990
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x180067040]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov eax, ecx
lea r9, [rsp + 0x20]
imul rbx, rax, 0x38
mov esi, edx
add rbx, qword [0x180068000]
mov r8, qword [rbx]
movzx eax, byte [rbx + 0x20]
and al, 1
movzx ecx, al
lea rdi, [r8 - 5]
cmove rdi, r8
mov r8d, 0x40
lea rbp, [rcx*2 + 5]
mov rcx, rdi
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x180044a03
mov eax, 0xa
jmp 0x180044a96
test esi, esi
je 0x180044a25
mov byte [rdi], 0xe9
mov eax, dword [rbx + 8]
sub eax, edi
sub eax, 5
mov dword [rdi + 1], eax
test byte [rbx + 0x20], 1
je 0x180044a48
mov rax, qword [rbx]
mov word [rax], 0xf9eb
jmp 0x180044a48
mov eax, dword [rbx + 0x18]
test byte [rbx + 0x20], 1
mov dword [rdi], eax
je 0x180044a41
movzx eax, word [rbx + 0x1c]
mov word [rdi + 4], ax
movzx eax, byte [rbx + 0x1e]
mov byte [rdi + 6], al
jmp 0x180044a48
movzx eax, byte [rbx + 0x1c]
mov byte [rdi + 4], al
mov r8d, dword [rsp + 0x20]
lea r9, [rsp + 0x20]
mov rdx, rbp
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
movzx ecx, sil
shl sil, 2
add cl, cl
xor cl, byte [rbx + 0x20]
and cl, 2
xor cl, byte [rbx + 0x20]
xor sil, cl
and sil, 4
xor sil, cl
mov byte [rbx + 0x20], sil
xor eax, eax
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.1800502a0
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x180044ac0
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, ecx
mov ecx, dword [0x18006800c]
mov ebx, edi
test ecx, ecx
je 0x180044bfd
mov rax, qword [0x180068000]
add rax, 0x20
nop
movzx edx, byte [rax]
shr edx, 1
and edx, 1
cmp edx, esi
jne 0x180044b18
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180044af0
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp ebx, 0xffffffff
je 0x180044bfd
mov r8d, edi
lea rcx, [rsp + 0x20]
test esi, esi
mov edx, 0xffffffff
setne r8b
call fcn.1800447e0
mov r8d, dword [0x18006800c]
cmp ebx, r8d
jae 0x180044b88
nop word [rax + rax]
mov eax, ebx
imul rcx, rax, 0x38
mov rax, qword [0x180068000]
movzx edx, byte [rcx + rax + 0x20]
shr edx, 1
and edx, 1
cmp edx, esi
je 0x180044b81
mov edx, esi
mov ecx, ebx
call fcn.180044990
mov edi, eax
test eax, eax
jne 0x180044b88
mov r8d, dword [0x18006800c]
inc ebx
cmp ebx, r8d
jb 0x180044b50
cmp qword [rsp + 0x20], 0
je 0x180044bfd
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180044be9
mov rbx, qword [rsp + 0x20]
mov qword [rsp + 0x40], rbp
mov ebp, eax
nop dword [rax]
nop dword [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rsi, rax
test rax, rax
je 0x180044bda
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rbp, 1
jne 0x180044bb0
mov rbp, qword [rsp + 0x40]
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180067c38]
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180044f00
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x30
xor r15d, r15d
mov esi, edx
mov ebx, r15d
xor eax, eax
mov rdi, rcx
mov ebp, 1
lock cmpxchg dword [0x180067c30], ebp
je 0x180044f57
cmp rbx, 0x20
jae 0x180044f40
xor ecx, ecx
jmp 0x180044f42
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_Sleep]
inc rbx
xor eax, eax
lock cmpxchg dword [0x180067c30], ebp
jne 0x180044f36
cmp qword [0x180067c38], r15
je 0x180045053
test rdi, rdi
jne 0x180044f77
mov ecx, esi
call fcn.180044ac0
mov ebp, eax
jmp 0x180045058
mov ecx, dword [0x18006800c]
mov ebx, r15d
test ecx, ecx
je 0x180044f9f
mov r8, qword [0x180068000]
mov rax, r8
nop
cmp rdi, qword [rax]
je 0x180044fa9
inc ebx
add rax, 0x38
cmp ebx, ecx
jb 0x180044f90
mov ebp, 4
jmp 0x180045058
cmp ebx, 0xffffffff
je 0x180044f9f
mov eax, ebx
imul rdx, rax, 0x38
movzx eax, byte [rdx + r8 + 0x20]
shr eax, 1
and eax, ebp
cmp eax, esi
je 0x18004504a
mov r8d, ebp
lea rcx, [rsp + 0x20]
mov edx, ebx
call fcn.1800447e0
mov edx, esi
mov ecx, ebx
call fcn.180044990
mov ebp, eax
cmp qword [rsp + 0x20], r15
je 0x180045058
mov eax, dword [rsp + 0x2c]
test eax, eax
je 0x180045034
mov rbx, qword [rsp + 0x20]
mov esi, eax
nop word [rax + rax]
mov r8d, dword [rbx]
xor edx, edx
mov ecx, 0x5a
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rdi, rax
test rax, rax
je 0x18004502a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
add rbx, 4
sub rsi, 1
jne 0x180045000
mov r8, qword [rsp + 0x20]
xor edx, edx
mov rcx, qword [0x180067c38]
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x180045058
neg esi
sbb ebp, ebp
add ebp, 6
jmp 0x180045058
mov ebp, 2
xchg dword [0x180067c30], r15d
mov rbx, qword [rsp + 0x40]
mov eax, ebp
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r15
ret
Function at 0x18004aaa0
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
cmp edx, 1
jne 0x18004aad3
call qword [sym.imp.KERNEL32.dll_DisableThreadLibraryCalls]
xor eax, eax
lea r8, [0x18004a510]
mov qword [rsp + 0x28], rax
mov r9, rbx
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x30
pop rbx
ret
Function at 0x1400068c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CCommonDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x14000a74f
cmp dword [rcx + 0xa8], 0
jne 0x14000a74f
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140015b14
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14000a6b4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a710
Capabilities:
Extract resource via kernel32 functions

Disassembly:
movzx edx, dx
jmp method.CCommonDialog.virtual_640
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, r8
mov rdi, rdx
mov rsi, rcx
mov qword [rcx + 0xb0], rdx
test rdx, 0xffffffffffff0000
jne 0x14000a74f
cmp dword [rcx + 0xa8], 0
jne 0x14000a74f
movzx eax, dx
mov dword [rcx + 0xa8], eax
call fcn.140015b14
mov r8d, 5
mov rdx, rdi
mov rbx, qword [rax + 0x18]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov rcx, rbx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r9, rbx
mov r8, rbp
mov rdx, rax
mov rcx, rsi
mov rdi, rax
call fcn.14000a6b4
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000ca7c
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, qword [rcx + 0x40]
mov rbx, r8
call fcn.140013a14
mov rsi, rax
test rax, rax
je 0x14000caf8
mov rcx, rax
call qword [sym.imp.USER32.dll_GetDlgCtrlID]
mov edi, eax
test rbx, rbx
je 0x14000caf3
cmp dword [rbx], 0x40
jb 0x14000caf3
mov rcx, qword [rbp + 0x40]
or dword [rbx + 4], 1
or qword [rbx + 0x30], 0xffffffffffffffff
mov qword [rbx + 8], rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x87
mov rcx, rsi
mov qword [rbx + 0x10], rsi
call qword [sym.imp.USER32.dll_SendMessageA]
bt rax, 0xd
jb 0x14000caf3
or dword [rbx + 4], 0x80000002
mov rax, rdi
jmp 0x14000cafc
or rax, 0xffffffffffffffff
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140012ff0
Capabilities:
Extract resource via kernel32 functions

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
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x140013058
call fcn.140015b14
mov r8d, 0xf0
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x140013058
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rbx, rax
test rax, rax
je 0x14001307a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.140012a08
mov esi, eax
test rdi, rdi
je 0x140013078
test rbx, rbx
je 0x140013078
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r12
ret

Function at 0x14001beb8
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.1400201e4
nop
cmp dword [0x1400433d8], 1
je 0x14001be64
mov dword [0x1400433d4], 1
mov byte [0x1400433d0], r12b
test ebx, ebx
jne 0x14001be50
mov rcx, qword [0x140045660]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14001be3d
mov rcx, qword [0x140045658]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x14001bddc
call fcn.14001e540
cmp qword [rdi], rax
jne 0x14001bddc
jmp 0x14001bdc2
cmp rdi, rsi
jb 0x14001be3d
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.14001e540
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140045660]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140045658]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x14001be1b
cmp r13, rax
je 0x14001be3b
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x14001bdc2
lea rdx, [0x14002d968]
lea rcx, [0x14002d950]
call fcn.14001bc0c
lea rdx, [0x14002d978]
lea rcx, [0x14002d970]
call fcn.14001bc0c
nop
test r12d, r12d
je 0x14001be73
mov ecx, 8
call fcn.1400200e4
test r12d, r12d
jne 0x14001be9e
mov dword [0x1400433d8], 1
lea ecx, [r12 + 8]
call fcn.1400200e4
mov ecx, r15d
call fcn.14001bba0
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x14001bd2c

Function at 0x14001bec4
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x14001bd2c
Function at 0x14001e34f
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003e130]
jne 0x14001af5a
rol rcx, 0x10
test cx, 0xffff
jne 0x14001af56
repz ret
ror rcx, 0x10
jmp 0x14001e2a8
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1400434a0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov r11, qword [0x140043598]
mov qword [rsp + 0x58], r11
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001e32d
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400434a0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001e34f
mov rax, qword [rsp + 0x88]
mov qword [0x140043598], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140043538], rax
mov rax, qword [0x140043598]
mov qword [0x140043410], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140043520], rax
mov dword [0x140043400], 0xc0000409
mov dword [0x140043404], 1
mov rax, qword [0x14003e130]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003e138]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140043498], eax
mov ecx, 1
call fcn.14001e530
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140031fc8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140043498], 0
jne 0x14001e3d6
mov ecx, 1
call fcn.14001e530
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x140025ec0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001e540
xor ebx, ebx
mov rdi, rax
cmp qword [0x1400441d0], rbx
jne 0x140025fc6
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x14002609b
lea rdx, [0x140033b38]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002609b
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140033b28]
mov rcx, rsi
mov qword [0x1400441d0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, [0x140033b10]
mov rcx, rsi
mov qword [0x1400441d8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x1400441e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x1400441f0], rax
test rax, rax
je 0x140025fbd
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x1400441e8], rax
jmp 0x140025fcd
mov rax, qword [0x1400441e8]
jmp 0x140025fd4
mov rax, qword [0x1400441e8]
mov r11, qword [0x1400441f0]
cmp rax, rdi
je 0x14002603c
cmp r11, rdi
je 0x14002603c
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x1400441f0]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x14002603c
test rax, rax
je 0x14002603c
call rsi
test rax, rax
je 0x140026036
lea rcx, [rsp + 0x88]
mov r9d, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140026036
test byte [rsp + 0x38], 1
jne 0x14002603c
bts ebp, 0x15
jmp 0x14002607a
mov rcx, qword [0x1400441d8]
cmp rcx, rdi
je 0x14002607a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002607a
call rax
mov rbx, rax
test rax, rax
je 0x14002607a
mov rcx, qword [0x1400441e0]
cmp rcx, rdi
je 0x14002607a
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002607a
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1400441d0]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x14002609b
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x14002609d
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x140001e30
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x78
lea rbp, [rsp + 0xb0]
xor eax, eax
mov qword [rbp - 0x40], rax
mov rbx, rcx
mov rsi, rdx
mov edi, r8d
mov qword [rbp - 0x40], r9
mov r14, r9
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov r15, qword [rbp + 0x30]
mov qword [rsp + 0x20], r15
mov rcx, rbx
mov qword [rbp - 0x4c], rcx
mov rdx, rsi
mov qword [rbp - 0x54], rdx
mov r8d, edi
mov dword [rbp - 0x44], r8d
mov r9, r14
mov qword [rbp - 0x5c], r9
lea rcx, [rbp - 0x88]
call fcn.14005fa70
mov rcx, qword [rbp - 0x4c]
mov rdx, qword [rbp - 0x54]
mov r8d, dword [rbp - 0x44]
mov r9, qword [rbp - 0x5c]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
lea rcx, [rbp - 0x88]
call fcn.14005fac0
call sub.KERNEL32.dll_GetLastError
mov esi, eax
xor eax, eax
mov qword [rbp - 0x40], rax
call fcn.14005f05b
mov dword [rax + 0x60], esi
mov eax, ebx
add rsp, 0x78
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret

Function at 0x140003890
Capabilities:
Generate random numbers via winapi

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x68
lea rbp, [rsp + 0xa0]
mov r8d, edx
mov dword [rbp - 0x3c], r8d
mov rdx, rcx
mov qword [rbp - 0x48], rdx
xor ecx, ecx
mov qword [rbp - 0x50], rcx
mov r9d, 2
mov dword [rbp - 0x40], r9d
lea rcx, [rbp - 0x78]
call fcn.14005fa70
mov r8d, dword [rbp - 0x3c]
mov rdx, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x50]
mov r9d, dword [rbp - 0x40]
call sub.bcrypt.dll_BCryptGenRandom
mov ebx, eax
lea rcx, [rbp - 0x78]
call fcn.14005fac0
test ebx, ebx
jne 0x140003904
add rsp, 0x68
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
cmp ebx, 0xc0000017
jne 0x14000392b
lea rcx, [0x140141228]
call fcn.14005f5e0
mov rbx, rax
mov rcx, rbx
call fcn.14000f780
mov rcx, rbx
call fcn.1400604c0
lea rcx, [0x140140d00]
call fcn.14005f5e0
mov rbx, rax
mov rcx, rbx
call fcn.14000cc20
mov rcx, rbx
call fcn.1400604c0
int3
Function at 0x140008c20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x20]
xor eax, eax
mov qword [rbp + 8], rax
xorps xmm4, xmm4
movaps xmmword [rbp + 0x10], xmm4
movaps xmmword [rbp + 0x20], xmm4
mov rax, qword [0x1401230c0]
mov qword [rbp], rax
mov rbx, rcx
mov esi, dword [rbx + 8]
xor edi, edi
cmp esi, 0x40
jae 0x140008c73
test dword [rsp], esp
sub rsp, 0x80
lea r14, [rsp + 0x20]
mov r15d, 0x40
jmp 0x140008cb2
lea rcx, [0x14013db48]
cmp qword [rcx - 8], 0
jne 0x140008db1
mov rcx, qword [0x1401224d0]
mov rcx, qword [rcx + 8]
lea edx, [rsi + 1]
cmp dword [rcx], ecx
call fcn.1400404a0
mov rdi, rax
test rdi, rdi
jne 0x140008caa
xor r14d, r14d
xor r15d, r15d
jmp 0x140008cb2
lea r14, [rdi + 0x10]
mov r15d, dword [rdi + 8]
lea rcx, [rbx + 0xc]
mov edx, dword [rbx + 8]
mov edx, esi
mov qword [rbp + 0x18], rcx
mov dword [rbp + 0x20], edx
mov qword [rbp + 8], r14
mov dword [rbp + 0x10], r15d
lea rcx, [rbp + 0x18]
lea rdx, [rbp + 8]
call fcn.140015040
cmp esi, r15d
jae 0x140008dc2
mov ecx, esi
mov word [r14 + rcx*2], 0
mov ebx, 0x15051505
mov r13d, 0x15051505
xor ecx, ecx
test r15d, r15d
cmovne rcx, r14
mov qword [rbp + 0x28], rcx
cmp esi, 2
jle 0x140008d38
add esi, 0xfffffffc
mov edx, ebx
rol edx, 5
add ebx, edx
mov edx, dword [rcx]
or edx, 0x200020
xor ebx, edx
mov edx, r13d
rol edx, 5
add r13d, edx
mov edx, dword [rcx + 4]
or edx, 0x200020
xor r13d, edx
add rcx, 8
cmp esi, 2
jg 0x140008d06
test esi, esi
jle 0x140008d52
mov edx, r13d
rol edx, 5
add edx, r13d
mov r13d, dword [rcx]
or r13d, 0x200020
xor r13d, edx
xor ecx, ecx
mov qword [rbp + 0x28], rcx
test rdi, rdi
je 0x140008d83
lea rcx, [0x14013db48]
cmp qword [rcx - 8], 0
jne 0x140008dbb
mov rcx, qword [0x1401224d0]
mov rcx, qword [rcx + 8]
mov rdx, rdi
xor r8d, r8d
cmp dword [rcx], ecx
call fcn.1400406e0
imul eax, r13d, 0x5d588b65
add eax, ebx
lea rcx, [0x1401230c0]
mov rcx, qword [rcx]
cmp qword [rbp], rcx
je 0x140008da1
call fcn.140060f30
nop
lea rsp, [rbp + 0x30]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop r15
pop rbp
ret
call fcn.14005eec1
jmp 0x140008c85
call fcn.14005eec1
jmp 0x140008d6b
call fcn.140037000
int3

Function at 0x14000b6e0
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rdx
call fcn.140035820
xor ecx, ecx
xor edx, edx
mov r8d, eax
sar r8d, 0x1f
and r8d, 3
add eax, r8d
sar eax, 2
test eax, eax
jle 0x14000b71b
lea r8d, [rdx*4]
movsxd r8, r8d
xor ecx, dword [rbx + r8]
inc edx
cmp eax, edx
jg 0x14000b706
mov eax, ecx
add rsp, 0x20
pop rbx
ret
Function at 0x14000dac0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r13
push rdi
push rsi
push rbp
push rbx
sub rsp, 0x30
xor eax, eax
mov qword [rsp + 0x28], rax
mov rdi, rcx
mov ebx, edx
mov rsi, r8
mov ecx, 1
test ebx, ebx
cmovle ebx, ecx
mov rcx, rdi
neg rcx
lea rdx, [0x1400e5670]
mov rax, rcx
or rax, 1
bsr r8, rax
lzcnt rax, rax
xor eax, 0x3f
test dword [0x1401283a0], 0x1000
cmovne r8d, eax
movsxd rax, r8d
movzx edx, byte [rdx + rax]
mov eax, edx
shl rax, 3
lea r8, [0x1400e58d0]
add rax, r8
cmp rcx, qword [rax]
setb cl
movzx ecx, cl
sub edx, ecx
cmp ebx, edx
mov ebp, edx
cmovge ebp, ebx
mov r14d, dword [rsi + 8]
add ebp, r14d
lea rcx, [0x14013f618]
mov edx, ebp
call fcn.14005f6a0
mov r15, rax
test r15, r15
jne 0x14000db5f
xor eax, eax
jmp 0x14000db6d
lea rax, [r15 + 0xc]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
movsxd rdx, ebp
lea rbp, [rax + rdx*2]
neg rdi
cmp rdi, 0x64
jb 0x14000dc46
lea rax, [0x14013d970]
cmp qword [rax - 8], 0
jne 0x14000dc7b
mov rcx, qword [0x140122238]
add rbp, 0xfffffffffffffffc
add ebx, 0xfffffffe
movabs rdx, 0x28f5c28f5c28f5c3
mov rax, rdi
shr rax, 2
mul rdx
shr rdx, 2
imul rax, rdx, 0x64
sub rdi, rax
mov r13, rdx
mov rax, qword [rcx + 0x38]
cmp byte [rax], al
shl edi, 2
mov edx, edi
mov eax, dword [rax + rdx + 0x10]
mov dword [rbp], eax
cmp r13, 0x64
jae 0x14000dc3e
test r13, r13
je 0x14000dc16
dec ebx
movabs rdx, 0xcccccccccccccccd
mov rax, r13
mul rdx
shr rdx, 3
lea rax, [rdx + rdx*4]
add rax, rax
mov rcx, r13
sub rcx, rax
mov r13, rdx
add rbp, 0xfffffffffffffffe
add ecx, 0x30
mov word [rbp], cx
test r13, r13
jne 0x14000dbe0
test ebx, ebx
jg 0x14000dbe0
mov rax, rbp
lea ecx, [r14 - 1]
test ecx, ecx
jl 0x14000dc62
cmp r14d, ecx
jle 0x14000dc4b
add rax, 0xfffffffffffffffe
mov edx, ecx
movzx edx, word [rsi + rdx*2 + 0xc]
mov word [rax], dx
dec ecx
jns 0x14000dc2a
jmp 0x14000dc62
mov rdi, r13
jmp 0x14000db9a
mov r13, rdi
jmp 0x14000dbdb
add rax, 0xfffffffffffffffe
cmp ecx, r14d
jae 0x14000dc85
mov edx, ecx
movzx edx, word [rsi + rdx*2 + 0xc]
mov word [rax], dx
dec ecx
jns 0x14000dc4b
xor eax, eax
mov qword [rsp + 0x28], rax
mov rax, r15
add rsp, 0x30
pop rbx
pop rbp
pop rsi
pop rdi
pop r13
pop r14
pop r15
ret
call fcn.14005e9e1
jmp 0x14000db93
call fcn.140037000
int3

Function at 0x140011dd0
Capabilities:
Hash data using sha1

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp qword [rbx], 0
jne 0x140011dfa
lea rcx, [0x14015b8b0]
mov edx, 0x55
call fcn.14005f700
mov rdx, rax
mov rcx, rbx
call fcn.14005f860
xor eax, eax
mov qword [rbx + 8], rax
mov dword [rbx + 0x10], eax
mov rax, qword [rbx]
cmp dword [rax + 8], 0x50
jbe 0x140011e68
mov dword [rax + 0x150], 0x67452301
mov rax, qword [rbx]
cmp dword [rax + 8], 0x51
jbe 0x140011e68
mov dword [rax + 0x154], 0xefcdab89
mov rax, qword [rbx]
cmp dword [rax + 8], 0x52
jbe 0x140011e68
mov dword [rax + 0x158], 0x98badcfe
mov rax, qword [rbx]
cmp dword [rax + 8], 0x53
jbe 0x140011e68
mov dword [rax + 0x15c], 0x10325476
mov rax, qword [rbx]
cmp dword [rax + 8], 0x54
jbe 0x140011e68
mov dword [rax + 0x160], 0xc3d2e1f0
add rsp, 0x20
pop rbx
ret
call fcn.140037000
int3