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

Disassembly:
test rcx, rcx
je 0x140007270
mov eax, 0
cmp word [rcx], 0x5a4d
jne 0x14000726f
mov eax, dword [rcx + 0x3c]
cmp eax, 0x400
jg 0x140007275
cdqe
add rax, rcx
cmp dword [rax], 0x4550
mov edx, 0
cmovne rax, rdx
ret
mov rax, rcx
jmp 0x14000726f
mov eax, 0
jmp 0x14000726f

Function at 0x1400078f0
Capabilities:
Execute syscall

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov rcx, r10
call fcn.1400078a0
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret

Function at 0x140010f00
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140019a40
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.140019a40
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x140010f70
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1405bd0d4]
test esi, esi
mov rdi, rcx
mov rbp, rdx
mov rbx, r8
jle 0x140011100
mov rax, qword [0x1405bd0d8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rdi, rdx
jb 0x140010fbc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rdi, rdx
jb 0x140011045
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x140010fa0
mov rcx, rdi
call fcn.140011ad0
test rax, rax
mov r12, rax
je 0x140011152
mov rax, qword [0x1405bd0d8]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.140011c10
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1405bd0d8]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140011135
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14001103e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400110b0
add dword [0x1405bd0d4], 1
cmp ebx, 8
jae 0x140011071
test bl, 4
jne 0x140011110
test ebx, ebx
je 0x140011066
movzx eax, byte [rbp]
test bl, 2
mov byte [rdi], al
jne 0x140011124
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, ebx
sub ebx, 1
mov rdx, qword [rbp + rax - 8]
cmp ebx, 8
mov qword [rdi + rax - 8], rdx
jb 0x140011066
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, ebx
mov qword [rdi + rdx], rcx
jb 0x14001108a
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov r8d, 4
mov eax, 0x40
mov rcx, qword [rsp + 0x20]
cmovne r8d, eax
mov rdx, qword [rsp + 0x38]
add rsi, qword [0x1405bd0d8]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14001103e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140010f00
xor esi, esi
jmp 0x140010fc7
mov eax, dword [rbp]
mov ebx, ebx
mov dword [rdi], eax
mov eax, dword [rbp + rbx - 4]
mov dword [rdi + rbx - 4], eax
jmp 0x140011066
mov ebx, ebx
movzx eax, word [rbp + rbx - 2]
mov word [rdi + rbx - 2], ax
jmp 0x140011066
mov rax, qword [0x1405bd0d8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.140010f00
lea rcx, str.Address__p_has_no_image_section
mov rdx, rdi
call fcn.140010f00
nop
nop dword [rax]
nop word cs:[rax + rax]
Function at 0x140011720
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1405bd140]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1405bd120]
test rbx, rbx
je 0x140011774
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x14001176b
test rsi, rsi
je 0x14001176b
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140011750
lea rcx, [0x1405bd140]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140011ad0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x1405b6bd0]
xor edx, edx
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x140011b3f
mov rcx, r9
call fcn.1400119a0
test eax, eax
je 0x140011b3f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
lea rdx, [r9 + rax + 0x18]
movzx eax, word [r9 + 6]
test eax, eax
je 0x140011b3d
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
mov r8d, dword [rdx + 0xc]
cmp rcx, r8
mov rax, r8
jb 0x140011b34
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140011b3f
add rdx, 0x28
cmp rdx, r9
jne 0x140011b20
xor edx, edx
mov rax, rdx
add rsp, 0x28
ret
Function at 0x14001be60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405b2a20]
jmp 0x140012900

Function at 0x14001be70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1405b2a20]
jmp 0x140012900
Function at 0x402b20
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x0044d3b0]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x402b99
mov rcx, r10
call fcn.004029f0
test eax, eax
je 0x402b99
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x402b96
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x402b8d
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x402b99
add r8, 0x28
cmp r8, r9
jne 0x402b78
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret
Function at 0x1400062d4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov r12, r9
mov r13, r8
mov rbx, rdx
mov rsi, rcx
call fcn.1400127ac
xor r14d, r14d
mov rdx, rbx
mov rcx, rsi
lea r8d, [r14 + 5]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
test rax, rax
je 0x1400063e5
mov r8d, 0xf0
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor r15d, r15d
test rax, rax
je 0x140006352
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r15, rax
mov rdx, rdi
mov rcx, rsi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1400063d1
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rax, rax
je 0x1400063d1
mov rdx, r15
mov rcx, rax
call fcn.140011058
mov rdi, rax
mov r9, r12
mov rax, qword [rsp + 0x80]
mov rdx, rdi
mov r8, r13
mov qword [rsp + 0x20], rax
mov rcx, rsi
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov r14, rax
test rax, rax
jne 0x1400063b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp rdi, rbp
je 0x1400063d9
test rdi, rdi
je 0x1400063d9
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x1400063d9
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test ebx, ebx
je 0x1400063e5
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov rax, r14
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x14000b7a8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx + 0x10]
test rcx, rcx
je 0x14000b7ce
mov r8, rdx
mov rdx, qword [rbx]
call fcn.14000f968
jmp 0x14000b839
cmp byte [0x1400a5278], 0
jne 0x14000b812
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000b802
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x1400a5270], rax
jmp 0x14000b809
mov rax, qword [0x1400a5270]
mov byte [0x1400a5278], 1
jmp 0x14000b819
mov rax, qword [0x1400a5270]
mov rcx, qword [rbx]
mov rdx, rdi
test rax, rax
je 0x14000b833
mov r8d, dword [rbx + 8]
xor r9d, r9d
call qword [0x140078a80]
jmp 0x14000b839
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14000f538
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x180]
sub rsp, 0x280
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov r9d, dword [rcx + 8]
xor r14d, r14d
mov rsi, rdx
mov qword [rsp + 0x48], r14
mov r8, rdx
mov qword [rsp + 0x40], r14
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov qword [rsp + 0x50], r14
lea rcx, [rsp + 0x40]
call fcn.14000e39c
jmp 0x14000f5aa
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.14000f538
mov ebx, eax
test eax, eax
jne 0x14000f613
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], r14
xor edx, edx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x14000f59b
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f601
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], r14
mov rdx, rsi
mov dword [rsp + 0x48], r14d
mov rcx, rdi
call fcn.14000b7a8
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x14000f623
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.140037490
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000f968
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x40
cmp qword [rcx], 0
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
je 0x14000f9cf
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f9e3
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000f9e3
mov rcx, qword [rbx]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rcx
mov rdx, rdi
mov rcx, rsi
call qword [0x140078a80]
jmp 0x14000f9e8
cmp dword [rcx + 8], 0
je 0x14000f9e3
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
jmp 0x14000f9e8
mov eax, 1
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000fcd8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x480
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x470], rax
mov r15, r9
mov r14, r8
mov rbx, rdx
xor edi, edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rdi
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x60]
call fcn.14003b440
mov qword [rsp + 0x60], rdi
xor edx, edx
lea r8d, [rdi + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000fd6e
xor edx, edx
lea r8d, [rdi + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x14000fd6e
call fcn.140008fa4
mov ebx, eax
jmp 0x14000fe7f
mov r8, r15
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x14000fd8f
call fcn.140008fa4
jmp 0x14000fe6e
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r14, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14000fd85
mov rdx, rbx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x14000fdca
mov ebx, 0x8007000e
jmp 0x14000fe70
mov ecx, eax
test eax, eax
je 0x14000fdff
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x14000feb7
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x14000fdff
lfence
lea rcx, [rsp + 0x60]
call fcn.1400082e8
jmp 0x14000fe09
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
jmp 0x14000fe1b
cmp qword [rsp + 0x60], rdi
je 0x14000fdc0
lfence
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, r14
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14000fd85
mov ecx, eax
mov rax, qword [rsp + 0x60]
mov word [rax + rcx*2], di
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x50]
call fcn.14000fab4
mov ebx, eax
test rsi, rsi
je 0x14000fe7f
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x68]
cmp qword [rsp + 0x60], rax
je 0x14000fe96
lea rcx, [rsp + 0x60]
call fcn.14000bdd4
nop
mov eax, ebx
mov rcx, qword [rsp + 0x470]
xor rcx, rsp
call fcn.140037490
add rsp, 0x480
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
lfence
mov ecx, 0x80070216
call fcn.140009b24
int3
Function at 0x140010b98
Capabilities:
Set registry value

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, 0x30
xor ebx, ebx
mov rdi, r8
mov rbp, rdx
mov r14, rcx
test r8, r8
jne 0x140010bc6
lea eax, [rbx + 0xd]
jmp 0x140010bfb
mov rsi, rdi
mov rcx, rsi
call fcn.140048168
inc eax
lea rsi, [rsi + rax*2]
lea ebx, [rbx + rax*2]
cmp eax, 1
jne 0x140010bc9
mov rcx, qword [r14]
lea r9d, [rax + 6]
mov dword [rsp + 0x28], ebx
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x140011340
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rbx, rcx
xor r9d, r9d
xor ecx, ecx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
test rax, rax
je 0x1400113b1
lea rax, [rsp + 0x30]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14000d710]
and dword [rsp + 0x20], 0
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdi, rax
test rax, rax
jne 0x1400113ae
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rbx + 0x50], rdi
mov rax, rdi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret

Function at 0x140011bc0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp byte [0x1400a5114], 0
mov esi, edx
mov rdi, rcx
je 0x140011be2
or eax, 0xffffffff
jmp 0x140011c4d
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov dword [rsp + 0x40], eax
mov ebx, eax
test eax, eax
jns 0x140011c0f
cmp eax, 0x80010106
jne 0x140011c4b
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x140011c13
jmp 0x140011c4b
mov byte [rdi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x40]
mov rcx, rdi
mov rdx, rax
call fcn.14000e440
cmp al, 1
jne 0x140011c3b
mov edx, esi
mov rcx, rdi
call fcn.140010984
mov ebx, eax
jmp 0x140011c3f
mov ebx, dword [rsp + 0x40]
cmp byte [rdi + 0x62], 0
je 0x140011c4b
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140012a78
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor edi, edi
lea r8, str.EM47D2CDD9E9E7
xor ecx, ecx
mov esi, r9d
lea edx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140012aca
lea ecx, [rdi + 1]
call fcn.14000d244
test al, al
je 0x140012aca
mov edx, esi
lea rcx, [0x1400a53e0]
call fcn.140011bc0
mov edi, eax
test rbx, rbx
je 0x140012ad8
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140012b1c
Capabilities:
Hash data via bcrypt

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
lea r15, str.585BF6B5_D7F1_4A35_9FB7_F7FBF163FE0A
xor r14d, r14d
mov ebp, r8d
mov ecx, r14d
mov rsi, rdx
mov ebx, 0x80004005
mov qword [rsp + 0x40], rcx
cmp dword [rdi + 0x38], 1
jne 0x140012b66
mov rcx, r15
jmp 0x140012b73
cmp dword [rdi + 0x38], 2
jne 0x140012ba5
lea rcx, str.9A0E3427_FC52_4A9D_B824_18952E11754A
call fcn.14004cc30
mov r9d, dword [rdi + 0x30]
lea rdx, [rsp + 0x40]
mov r8, qword [rdi + 0x20]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], r15
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jne 0x140012bdc
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jne 0x140012bd2
mov r8d, dword [rdi + 0x34]
xor r9d, r9d
mov rdx, qword [rdi + 0x28]
mov rcx, qword [rsp + 0x40]
call sub.bcrypt.dll_BCryptFinishHash
test eax, eax
cmove ebx, r14d
mov rcx, qword [rsp + 0x40]
call sub.bcrypt.dll_BCryptDestroyHash
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0x98]
add rsp, 0x50
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012c00
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xc0]
lea rax, [r11 - 0x48]
and dword [rsp + 0x50], 0
lea r14d, [r8 - 0x114]
mov dword [rsp + 0x48], 1
mov r15, r9
mov qword [r11 - 0x58], rax
mov rsi, rcx
and dword [rsp + 0x38], 0
xor r9d, r9d
and qword [r11 - 0x68], 0
mov r8d, r14d
and dword [rsp + 0x28], 0
mov rbp, rdx
mov rcx, qword [rcx]
mov ebx, 0x80004005
and qword [r11 - 0x78], 0
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jne 0x140012cef
mov eax, dword [rsp + 0x50]
cmp dword [rdi], eax
jb 0x140012ceb
mov r8d, r14d
mov rdx, rbp
mov rcx, rsi
call fcn.140012b1c
test eax, eax
js 0x140012cef
lfence
mov r8d, dword [rsi + 0x34]
lea rcx, [rbp + 0x14]
mov rdx, qword [rsi + 0x28]
mov eax, r14d
add rcx, rax
call fcn.14003c2f0
test eax, eax
jne 0x140012cef
lfence
mov eax, dword [rdi]
xor r9d, r9d
mov rcx, qword [rsi]
mov r8d, r14d
mov dword [rsp + 0x48], 1
mov rdx, rbp
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r15
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jne 0x140012cef
jmp 0x140012ced
mov dword [rdi], eax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140037490
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012d0c
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov r11, rsp
push rbx
push rbp
push rsi
push rdi
push r14
push r15
sub rsp, 0x68
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xc0]
lea rax, [r11 - 0x48]
and dword [rsp + 0x50], 0
mov rbp, r9
mov dword [rsp + 0x48], 1
mov rsi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [r11 - 0x58], rax
mov r15d, r8d
and dword [rsp + 0x38], 0
mov r14, rdx
and qword [r11 - 0x68], 0
mov ebx, 0x80004005
and dword [rsp + 0x28], 0
and qword [r11 - 0x78], 0
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x140012e60
mov eax, dword [rsp + 0x50]
mov ecx, dword [rdi]
add eax, 0x114
mov dword [rsp + 0x50], eax
cmp ecx, eax
jb 0x140012e5c
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov r8d, r15d
mov dword [rsp + 0x38], ecx
mov rdx, r14
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rbp
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x140012e60
mov r8d, dword [rdi]
mov rdx, rbp
mov rcx, rsi
call fcn.140012b1c
test eax, eax
js 0x140012e60
lfence
mov ebx, dword [rdi]
xor edx, edx
add rbx, rbp
mov ebp, VarUI4FromDisp
mov r8d, ebp
mov rcx, rbx
call fcn.14003b440
cmp dword [rsi + 0x38], 1
jne 0x140012e0b
mov dword [rbx + 4], 1
jmp 0x140012e18
cmp dword [rsi + 0x38], 2
jne 0x140012e18
mov dword [rbx + 4], 3
mov r8d, dword [rsi + 0x34]
lea rcx, [rbx + 0x14]
mov rdx, qword [rsi + 0x28]
test r8, r8
je 0x140012e52
test rcx, rcx
je 0x140012e42
lfence
test rdx, rdx
je 0x140012e3d
call fcn.14003c3f0
jmp 0x140012e52
call fcn.14003b440
call fcn.140047c58
mov dword [rax], 0x16
call fcn.140047b10
mov eax, dword [rsi + 0x34]
mov dword [rbx + 0x10], eax
add dword [rdi], ebp
jmp 0x140012e5e
mov dword [rdi], eax
xor ebx, ebx
mov eax, ebx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140037490
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001b578
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov rax, qword [0x1400a1df8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
mov qword [rbp - 0x28], rdx
mov r14, rcx
mov qword [rbp - 0x30], rcx
mov qword [rbp - 0x20], rdx
and qword [rbp - 0x10], 0
lea r8, [0x14007ce90]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x10]
call fcn.140053cf0
mov rcx, qword [rbp - 0x10]
test rcx, rcx
jne 0x14001b601
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b5f7
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov eax, 2
jmp 0x14001b77c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.1400543c8
mov rcx, qword [rbp - 0x10]
call fcn.140054920
movsxd r12, eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x10]
call fcn.1400543c8
mov rcx, r12
call fcn.1400374f0
mov r15, rax
test rax, rax
jne 0x14001b671
mov rcx, qword [rbp - 0x10]
call fcn.140054154
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b667
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
mov eax, 1
jmp 0x14001b77c
xor edi, edi
test r12d, r12d
jle 0x14001b741
lfence
mov rbx, r12
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9, rbx
mov r8d, 1
mov rdx, rbx
mov rcx, r15
call fcn.140054028
mov rsi, rax
test eax, eax
jle 0x14001b734
lfence
and dword [rbp - 0x18], 0
lea r13, [r14 + 0x98]
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, esi
mov rdx, r15
mov rcx, r13
call fcn.140012d0c
mov ecx, dword [rbp - 0x18]
call fcn.1400374f0
mov r14, rax
test rax, rax
je 0x14001b73d
lfence
lea rax, [rbp - 0x18]
mov qword [rsp + 0x20], rax
mov r9, r14
mov r8d, esi
mov rdx, r15
mov rcx, r13
call fcn.140012d0c
test eax, eax
jne 0x14001b726
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x10]
call fcn.1400543c8
mov r8d, dword [rbp - 0x18]
mov r9, qword [rbp - 0x10]
mov edx, 1
mov rcx, r14
call fcn.140054b78
add edi, esi
mov rcx, r14
call fcn.140036a34
mov r14, qword [rbp - 0x30]
cmp edi, r12d
jl 0x14001b682
mov rbx, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x10]
call fcn.140054154
mov rcx, r15
call fcn.140036a34
nop
mov rdx, qword [rbx]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14001b77a
lfence
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [0x140078a80]
xor eax, eax
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.140037490
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret