joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001123a
Capabilities:
Terminate process

Disassembly:
jmp 0x140013a30
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret

Function at 0x1400112d5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014d80
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014da0
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014db3
xor al, al
jmp 0x140014e21
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 0x140014ddd
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014df1
xor al, al
jmp 0x140014e21
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014e03
xor al, al
jmp 0x140014e21
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014e1f
xor al, al
jmp 0x140014e21
mov al, 1
add rsp, 0x38
ret
Function at 0x140012f20
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rdi
push r12
push r13
sub rsp, 0x38
lea rdi, [rcx + 0x10]
mov r12, r8
mov r13, rdx
mov rbx, rcx
test rdi, rdi
je 0x1400130cd
test rcx, rcx
je 0x1400130cd
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], r14
mov qword [rsp + 0x30], r15
mov qword [rdi], rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rcx, [0x1400d32f8]
mov dword [rdi + 8], eax
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400d3320]
lea rcx, [0x1400d32f8]
mov qword [rdi + 0x10], rax
mov qword [0x1400d3320], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov byte [rbx + 0x40], 0
mov dword [rbx + 0x44], 0
mov r15, qword [0x1400d9100]
call fcn.14001d190
xor esi, esi
mov rcx, r15
lea edx, [rsi + 0x6b]
lea r8d, [rsi + 5]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov r14, rax
test rax, rax
je 0x140013090
lea edx, [rsi + 0x6b]
mov qword [rsp + 0x60], rbp
mov r8d, 0xf0
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_FindResourceW]
xor ebp, ebp
test rax, rax
je 0x140012ffc
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
mov rdx, r14
mov rcx, r15
xor edi, edi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x140013077
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov r14, rax
test rax, rax
je 0x140013077
mov rdx, rbp
mov rcx, rax
call fcn.14001b4c0
lea r9, [0x14001b820]
mov qword [rsp + 0x20], r12
mov r8, r13
mov rdx, rax
mov rcx, r15
mov rbp, rax
call qword [sym.imp.USER32.dll_CreateDialogIndirectParamW]
mov rsi, rax
test rax, rax
jne 0x140013059
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp rbp, r14
je 0x14001307f
test rbp, rbp
je 0x14001307f
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GlobalHandle]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x14001307f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rbp, qword [rsp + 0x60]
test edi, edi
je 0x140013090
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp dword [rbx + 0x44], 0
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x70]
jge 0x1400130ba
test rsi, rsi
je 0x1400130ba
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_DestroyWindow]
mov ecx, dword [rbx + 0x44]
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
mov rax, rsi
mov rsi, qword [rsp + 0x68]
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rbx
ret
mov edx, 1
mov ecx, 0xc0000005
call fcn.14000d1a0
int3
Function at 0x140014560
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbx, qword [rcx + 0x10]
mov rsi, rdx
mov rdi, rcx
test rbx, rbx
je 0x140014635
cmp qword [rbx], 0
mov qword [rsp + 0x40], rbp
mov rbp, qword [rcx]
je 0x1400145f7
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je case.default.0x140014614
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je case.default.0x140014614
mov rcx, rax
call qword [fcn.14000dba0]
mov rdx, qword [rbx]
xor r9d, r9d
mov qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbp
mov rdx, rsi
call rdi
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp dword [rbx + 8], 0
je case.default.0x140014614
mov rcx, rbp
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov eax, 1
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
cmp byte [0x1400d33d0], 0
jne 0x140014683
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140014673
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
mov qword [0x1400d33c8], rax
mov byte [0x1400d33d0], 1
jmp 0x14001468a
mov rbx, qword [0x1400d33c8]
mov byte [0x1400d33d0], 1
jmp 0x14001468a
mov rbx, qword [0x1400d33c8]
test rbx, rbx
je 0x1400146ba
mov rcx, rbx
call qword [fcn.14000dba0]
mov r8d, dword [rdi + 8]
xor r9d, r9d
mov rcx, qword [rdi]
mov rdx, rsi
mov rax, rbx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp rax
mov rcx, qword [rdi]
mov rdx, rsi
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
or byte [rbp + 0x224a5a3], r15b
sahf
or eax, 0xab7bf1c1
mov esi, 0x307fef47
stosd dword [rdi], eax
loop 0x1401607ed
invalid
adc byte [rax + rbx - 0x6a], dh
or dword [rax - 0x58], edi
invalid
Function at 0x140017e60
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rdi
push r15
sub rsp, 0x40
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [0x1400d32b8]
xor r15d, r15d
mov qword [rsp + 0x68], rsi
mov rbp, rcx
mov rsi, qword [0x1400d32b0]
mov edi, 1
cmp rsi, rax
jae 0x140017f4f
mov qword [rsp + 0x70], r14
test edi, edi
js 0x140017f4a
mov rbx, qword [rsi]
test rbx, rbx
je 0x140017f3d
mov rdi, qword [rbx + 0x10]
mov qword [rsp + 0x30], r15
test rdi, rdi
jne 0x140017ecf
mov edi, r15d
jmp 0x140017f3d
mov rcx, rdi
call qword [fcn.14000dba0]
mov rcx, qword [rbx + 0x18]
lea r8, [rsp + 0x30]
lea rdx, [0x140095b98]
call rdi
mov edi, eax
test eax, eax
js 0x140017f17
mov rax, qword [rbx + 0x20]
mov r9d, 5
mov rdx, qword [rsp + 0x30]
add rax, 8
mov rcx, qword [rbx]
mov qword [rsp + 0x20], rax
lea r8d, [r9 - 1]
call qword [sym.imp.OLE32.dll_CoRegisterClassObject]
mov edi, eax
mov r14, qword [rsp + 0x30]
test r14, r14
je 0x140017f36
mov rax, qword [r14]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [fcn.14000dba0]
mov rcx, r14
call rbx
mov rax, qword [0x1400d32b8]
add rsi, 8
cmp rsi, rax
jb 0x140017ea8
mov r14, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x68]
test edi, edi
js 0x140018058
jne 0x140018054
cmp byte [rbp + 0x60], r15b
je 0x140017ff9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbp + 0x50], rax
test rax, rax
je 0x140017ff2
lea rax, [rsp + 0x30]
mov r9, rbp
mov qword [rsp + 0x28], rax
lea r8, [0x140016990]
xor edx, edx
mov dword [rsp + 0x20], r15d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
test rax, rax
jne 0x140017fbe
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp + 0x50], r15
test rbx, rbx
je 0x140017ff2
call qword [sym.imp.OLE32.dll_CoResumeClassObjects]
mov edi, eax
test eax, eax
jns 0x140017fe7
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [rbp + 0x58]
mov rcx, rbx
add edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140018001
mov edi, 0x80004005
jmp 0x140018005
call qword [sym.imp.OLE32.dll_CoResumeClassObjects]
mov edi, eax
test edi, edi
jns 0x140018058
mov rbx, qword [0x1400d32b0]
mov eax, r15d
mov rdx, qword [0x1400d32b8]
cmp rbx, rdx
jae 0x140018058
nop dword [rax + rax]
test eax, eax
jne 0x140018058
mov rcx, qword [rbx]
test rcx, rcx
je 0x140018049
mov rax, qword [rcx + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
jne 0x14001803c
mov eax, r15d
jmp 0x140018049
call qword [sym.imp.OLE32.dll_CoRevokeClassObject]
mov rdx, qword [0x1400d32b8]
add rbx, 8
cmp rbx, rdx
jb 0x140018020
jmp 0x140018058
mov byte [rbp + 0x60], r15b
mov eax, edi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop rdi
pop rbp
ret
Function at 0x1400190c0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r9d, dword [rcx + 8]
xor ebp, ebp
mov rsi, rdx
mov qword [rsp + 0x40], rbp
xor eax, eax
mov qword [rsp + 0x50], rbp
mov r8, rdx
mov qword [rsp + 0x48], rax
mov rdx, qword [rcx]
mov rdi, rcx
or r9d, 0x2001f
mov dword [rsp + 0x48], ebp
lea rcx, [rsp + 0x40]
call fcn.140017550
mov ebx, eax
test eax, eax
jne 0x1400191d7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x1400191b1
nop
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x40]
call fcn.1400190c0
mov ebx, eax
test eax, eax
jne 0x1400191d7
mov rcx, qword [rsp + 0x40]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x38], rax
lea r9, [rsp + 0x58]
mov qword [rsp + 0x30], rbp
lea r8, [rsp + 0x70]
mov qword [rsp + 0x28], rbp
xor edx, edx
mov qword [rsp + 0x20], rbp
mov dword [rsp + 0x58], 0x100
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x140019160
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400191c6
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rbp
mov rdx, rsi
mov dword [rsp + 0x48], ebp
mov rcx, rdi
call fcn.140014560
mov ebx, eax
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1400191e7
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14004e4a0
mov rbx, qword [rsp + 0x2b0]
add rsp, 0x280
pop rdi
pop rsi
pop rbp
ret
Function at 0x140019910
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push rdi
push r14
push r15
sub rsp, 0x490
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r15, r9
mov rsi, r8
mov rbx, rdx
xor r14d, r14d
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], r14
xor edx, edx
mov r8d, 0x408
lea rcx, [rsp + 0x70]
call fcn.140054000
mov qword [rsp + 0x70], r14
xor edx, edx
lea r8d, [r14 + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400199b0
xor edx, edx
lea r8d, [r14 + 2]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rdi, rax
mov qword [rsp + 0x38], rax
test rax, rax
jne 0x1400199b0
call fcn.140011fc0
mov ebx, eax
jmp 0x140019ad5
mov r8, r15
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400199d1
call fcn.140011fc0
jmp 0x140019ac4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x1400199f4
call fcn.140011fc0
jmp 0x140019ac4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, ebx
jae 0x140019a16
mov ebx, 0x8007000e
jmp 0x140019ac6
mov ecx, eax
test eax, eax
je 0x140019a4b
xor edx, edx
mov rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x140019b0d
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140019a4b
lea rcx, [rsp + 0x70]
call fcn.140011590
jmp 0x140019a55
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x140019a68
cmp qword [rsp + 0x70], 0
jne 0x140019a77
mov ebx, 0x8007000e
jmp 0x140019ac6
mov dword [rsp + 0x28], ebx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
mov r8, rsi
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
jne 0x140019aa1
call fcn.140011fc0
jmp 0x140019ac4
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], r14w
mov r8d, dword [rsp + 0x4e0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x58]
call fcn.140019430
mov ebx, eax
test rdi, rdi
je 0x140019ad5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x140019aec
lea rcx, [rsp + 0x70]
call fcn.140014c20
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x490
pop r15
pop r14
pop rdi
pop rsi
pop rbx
ret
mov ecx, 0x80070216
call fcn.140012af0
int3
Function at 0x14001c380
Capabilities:
Accept command line arguments

Disassembly:
push rsi
sub rsp, 0xe0
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0xd0], rax
cmp byte [0x1400d3274], 0
mov rsi, rcx
je 0x14001c3b1
mov eax, 0xffffffff
jmp 0x14001c552
xor ecx, ecx
mov qword [rsp + 0xf8], rbx
call qword [sym.imp.OLE32.dll_CoInitialize]
mov dword [rsp + 0x20], eax
mov ebx, eax
test eax, eax
jns 0x14001c3ed
cmp eax, 0x80010106
jne 0x14001c548
lea rcx, str.Mscoree.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x14001c3f1
jmp 0x14001c548
mov byte [rsi + 0x62], 1
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
lea r8, [rsp + 0x20]
mov rcx, rsi
mov rdx, rax
call fcn.140017680
cmp al, 1
jne 0x14001c538
call fcn.1400463f0
mov qword [0x1400d3638], rax
call qword [sym.imp.USER32.dll_GetDesktopWindow]
mov rcx, qword [0x1400d3638]
xor r8d, r8d
mov rdx, rax
call fcn.140012f20
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x64]
call fcn.140054000
lea r8, str.0._Launching...
mov edx, 0x32
lea rcx, [rsp + 0x60]
call fcn.14001d450
mov rcx, qword [0x1400d3638]
test rcx, rcx
je 0x14001c56b
lea rdx, [rsp + 0x60]
call fcn.14004b7c0
xor edx, edx
mov rcx, rsi
call fcn.140017e60
mov ebx, eax
test eax, eax
jne 0x14001c4cf
xor r9d, r9d
lea rcx, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x14001c4d1
nop word [rax + rax]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x28]
call qword [sym.imp.USER32.dll_DispatchMessageW]
xor r9d, r9d
lea rcx, [rsp + 0x28]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jg 0x14001c4a0
jmp 0x14001c4d1
js 0x14001c53c
mov rdx, qword [0x1400d32b8]
xor ebx, ebx
mov qword [rsp + 0x100], rdi
mov rdi, qword [0x1400d32b0]
cmp rdi, rdx
jae 0x14001c51f
nop
test ebx, ebx
jne 0x14001c51f
mov rax, qword [rdi]
test rax, rax
je 0x14001c516
mov rax, qword [rax + 0x20]
mov ecx, dword [rax + 8]
test ecx, ecx
je 0x14001c516
call qword [sym.imp.OLE32.dll_CoRevokeClassObject]
mov rdx, qword [0x1400d32b8]
mov ebx, eax
add rdi, 8
cmp rdi, rdx
jb 0x14001c4f0
cmp byte [rsi + 0x60], 0
mov rdi, qword [rsp + 0x100]
je 0x14001c53c
mov ecx, dword [rsi + 0x5c]
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14001c53c
mov ebx, dword [rsp + 0x20]
cmp byte [rsi + 0x62], 0
je 0x14001c548
call qword [sym.imp.OLE32.dll_CoUninitialize]
mov eax, ebx
mov rbx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0xe0
pop rsi
ret
mov ecx, 0x80004005
call fcn.140012af0
int3
Function at 0x14001c730
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x14001c763
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbx, rax
test rax, rax
je 0x14001c7aa
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, eax
add rcx, rbx
and edi, 0xf
jbe 0x14001c7a5
nop
cmp rbx, rcx
jae 0x14001c7aa
movzx eax, word [rbx]
lea rbx, [rbx + rax*2]
add rbx, 2
add edi, 0xffffffff
jne 0x14001c790
cmp rbx, rcx
jb 0x14001c7ae
xor eax, eax
jmp 0x14001c7ba
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d4b0
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
lea r8, str.EM47D2CDD9E9E7
xor ecx, ecx
mov esi, r9d
lea edx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14001d502
lea ecx, [rbx + 1]
call fcn.140016420
test al, al
je 0x14001d502
mov edx, esi
lea rcx, [0x1400d3530]
call fcn.14001c380
mov ebx, eax
test rdi, rdi
je 0x14001d510
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14001d570
Capabilities:
Hash data via bcrypt

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rdi, rcx
xor r14d, r14d
mov ecx, r14d
mov ebp, r8d
mov rsi, rdx
mov qword [rsp + 0x40], rcx
mov ebx, 0x80004005
mov eax, dword [rdi + 0x38]
dec eax
cmp eax, 1
ja 0x14001d5e5
mov r9d, dword [rdi + 0x30]
lea rax, str.585BF6B5_D7F1_4A35_9FB7_F7FBF163FE0A
mov r8, qword [rdi + 0x20]
lea rdx, [rsp + 0x40]
mov rcx, qword [rdi + 0x10]
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 0x24
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptCreateHash
test eax, eax
jne 0x14001d61c
mov rcx, qword [rsp + 0x40]
xor r9d, r9d
mov r8d, ebp
mov rdx, rsi
call sub.bcrypt.dll_BCryptHashData
test eax, eax
jne 0x14001d612
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.14004e4a0
add rsp, 0x50
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14001d640
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 [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rbx, qword [rsp + 0xc0]
lea rax, [r11 - 0x48]
xor r15d, r15d
mov dword [rsp + 0x48], 1
mov qword [r11 - 0x58], rax
lea ebp, [r8 - 0x114]
mov dword [r11 - 0x60], r15d
mov r14, r9
mov qword [r11 - 0x68], r15
mov rdi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov dword [r11 - 0x70], r15d
mov r8d, ebp
mov qword [r11 - 0x78], r15
mov rsi, rdx
mov dword [r11 - 0x48], r15d
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
jne 0x14001d720
mov eax, dword [rsp + 0x50]
cmp dword [rbx], eax
jb 0x14001d73f
mov r8d, ebp
mov rdx, rsi
mov rcx, rdi
call fcn.14001d570
test eax, eax
js 0x14001d720
mov r8d, dword [rdi + 0x34]
lea rcx, [rsi + 0x14]
mov rdx, qword [rdi + 0x28]
mov eax, ebp
add rcx, rax
call fcn.140053f20
test eax, eax
jne 0x14001d720
mov r9d, dword [rbx]
mov r8d, ebp
mov rcx, qword [rdi]
mov rdx, rsi
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x38], r9d
xor r9d, r9d
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
je 0x14001d741
mov eax, 0x80004005
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov dword [rbx], eax
mov eax, r15d
jmp 0x14001d725
Function at 0x14001d750
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 [0x1400cfdf0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rdi, qword [rsp + 0xc0]
lea rax, [r11 - 0x48]
xor r15d, r15d
mov dword [rsp + 0x48], 1
mov qword [r11 - 0x58], rax
mov rbp, r9
mov dword [r11 - 0x60], r15d
mov rsi, rcx
mov rcx, qword [rcx]
xor r9d, r9d
mov qword [r11 - 0x68], r15
mov r14d, r8d
mov dword [r11 - 0x70], r15d
mov rbx, rdx
mov qword [r11 - 0x78], r15
mov dword [r11 - 0x48], r15d
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x14001d8ae
mov eax, dword [rsp + 0x50]
mov ecx, dword [rdi]
add eax, 0x114
mov dword [rsp + 0x50], eax
cmp ecx, eax
jb 0x14001d8a7
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rdi
mov r8d, r14d
mov dword [rsp + 0x38], ecx
mov rdx, rbx
mov rcx, qword [rsi]
mov qword [rsp + 0x30], rbp
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call sub.bcrypt.dll_BCryptEncrypt
test eax, eax
jne 0x14001d8ae
mov r8d, dword [rdi]
mov rdx, rbp
mov rcx, rsi
call fcn.14001d570
test eax, eax
js 0x14001d8ae
mov ebx, dword [rdi]
xor edx, edx
add rbx, rbp
mov r8d, VarUI4FromDisp
mov rcx, rbx
call fcn.140054000
mov eax, dword [rsi + 0x38]
cmp eax, 1
jne 0x14001d844
mov dword [rbx + 4], eax
jmp 0x14001d850
cmp eax, 2
jne 0x14001d850
mov dword [rbx + 4], 3
mov r8d, dword [rsi + 0x34]
lea rcx, [rbx + 0x14]
mov rdx, qword [rsi + 0x28]
test r8, r8
je 0x14001d896
test rcx, rcx
je 0x14001d886
test rdx, rdx
je 0x14001d881
call fcn.1400537d0
mov ecx, dword [rsi + 0x34]
mov eax, r15d
mov dword [rbx + 0x10], ecx
add dword [rdi], 0x114
jmp 0x14001d8b3
call fcn.140054000
call fcn.14005cecc
mov dword [rax], 0x16
call fcn.14005cd7c
mov ecx, dword [rsi + 0x34]
mov eax, r15d
mov dword [rbx + 0x10], ecx
add dword [rdi], 0x114
jmp 0x14001d8b3
mov dword [rdi], eax
mov eax, r15d
jmp 0x14001d8b3
mov eax, 0x80004005
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14004e4a0
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret