joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140047820
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x70
mov rax, qword [0x14006c040]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rdi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rcx
xor r14d, r14d
mov rax, qword gs:[0x58]
mov ecx, 4
mov rax, qword [rax]
mov ecx, dword [rcx + rax]
cmp dword [0x14006f9f0], ecx
jg 0x140047a57
mov rbx, qword [0x14006f9f8]
mov rbx, qword ds:[rbx]
cmp byte [rbx + 0x19], 0
jne 0x140047929
nop word [rax + rax]
lea rsi, [rbx + 0x20]
lea r9, [rsi + 0x20]
mov rax, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 7
jbe 0x1400478a6
mov r9, qword [r9]
mov rcx, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400478b3
mov rcx, qword [rdi]
mov qword ss:[rsp + 0x20], rax
xor r8d, r8d
mov rdx, qword [rdi + 0x10]
call fcn.140008f40
test rax, rax
je 0x14004795a
mov rax, qword [rbx + 0x10]
cmp byte [rax + 0x19], 0
je 0x1400478fa
mov rax, qword [rbx + 8]
cmp byte [rax + 0x19], 0
jne 0x1400478f5
cmp rbx, qword [rax + 0x10]
jne 0x1400478f5
mov rbx, rax
mov rax, qword [rax + 8]
cmp byte [rax + 0x19], 0
je 0x1400478e2
mov rbx, rax
jmp 0x14004791f
mov rbx, rax
mov rcx, qword [rax]
cmp byte [rcx + 0x19], 0
jne 0x14004791f
nop word [rax + rax]
mov rbx, rcx
mov rax, qword [rcx]
mov rcx, rax
cmp byte [rax + 0x19], 0
je 0x140047910
cmp byte [rbx + 0x19], 0
je 0x140047890
mov rdx, rdi
mov rcx, rbp
call fcn.140005aa0
mov rax, rbp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400499b0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
mov rcx, qword [rsi + 0x30]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
cmp qword [rdi + 0x10], rcx
jb 0x140047a51
lfence
mov rax, qword [rdi + 0x10]
sub rax, rcx
mov r8, 0xffffffffffffffff
cmp rax, r8
cmovb r8, rax
cmp qword [rdi + 0x18], 7
jbe 0x14004799b
mov rdi, qword [rdi]
lea rdx, [rdi + rcx*2]
lea rcx, [rsp + 0x40]
call fcn.140006ca0
nop
mov r9, qword [rsi + 0x10]
cmp qword [rsi + 0x18], 7
jbe 0x1400479b8
mov rsi, qword [rsi]
mov r8, rsi
lea rcx, [rsp + 0x40]
call fcn.1400127e0
xorps xmm0, xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
mov qword [rbp + 0x18], r14
movups xmm0, xmmword [rax]
movups xmmword [rbp], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x10], xmm1
mov qword [rax + 0x10], r14
mov qword [rax + 0x18], 7
mov word [rax], r14w
mov rdx, qword [rsp + 0x58]
cmp rdx, 7
jbe 0x140047934
lea rdx, ds:[rdx*2 + 2]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140047a47
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140047a47
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400499d0
jmp 0x140047934
call fcn.140008880
int3
lea rcx, [0x14006f9f0]
nop
call fcn.140049b04
cmp dword [0x14006f9f0], 0xffffffff
jne 0x14004786f
call fcn.140047640
lea rcx, [0x14004fa00]
nop
call fcn.140049da4
nop
lea rcx, [0x14006f9f0]
call fcn.140049a98
jmp 0x14004786f
Function at 0x140048360
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x50
mov r14, rdx
mov rdi, rcx
mov edx, 2
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x140048395
lfence
jmp 0x14004855b
xor r12d, r12d
mov qword [rsp + 0x40], r12
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], r12d
xor r9d, r9d
xor r8d, r8d
mov esi, 0xffffffff
mov edx, esi
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov ebx, eax
test eax, eax
jns 0x1400483df
lfence
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14004855b
mov qword [rsp + 0x20], rdi
lea r9, [0x140051390]
xor edx, edx
lea r8d, [rdx + 1]
lea rcx, [0x1400513a0]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov ebx, eax
lfence
test eax, eax
js 0x1400483d2
mov r15, qword [rdi]
mov rax, qword [r15]
mov rbp, qword [rax + 0x18]
mov ecx, 0x18
call fcn.1400499d8
mov rbx, rax
mov qword [rsp + 0x90], rax
test rax, rax
je 0x140048454
mov qword ds:[rax + 8], r12
mov dword [rax + 0x10], 1
lea rcx, str.ROOTCIMV2
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov qword [rbx], rax
test rax, rax
je 0x14004857f
jmp 0x140048457
mov rbx, r12
mov qword ds:[rsp + 0x90], rbx
test rbx, rbx
je 0x140048574
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rbx]
mov rcx, r15
mov rax, rbp
call qword [0x140050d48]
mov ebp, eax
lock xadd dword [rbx + 0x10], esi
cmp esi, 1
jne 0x1400484d6
mov rcx, qword [rbx]
test rcx, rcx
je 0x1400484b6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rbx], r12
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x1400484c9
nop
call fcn.1400499d0
mov qword [rbx + 8], r12
mov edx, 0x18
mov rcx, rbx
call fcn.1400499d0
lfence
test ebp, ebp
jns 0x1400484f7
mov rcx, qword [rdi]
mov rax, qword [rcx]
mov rax, qword [rax + 0x10]
call qword [0x140050d48]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebp
jmp 0x14004855b
mov dword ss:[rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 0xa]
mov rcx, qword [r14]
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov ebx, eax
test eax, eax
jns 0x140048559
lfence
mov rcx, qword [r14]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140050d48]
mov rcx, qword [rdi]
mov rdx, qword [rcx]
mov rax, qword [rdx + 0x10]
call qword [0x140050d48]
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
jmp 0x14004855b
xor eax, eax
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov ecx, 0x8007000e
call fcn.140049760
nop
mov ecx, 0x8007000e
call fcn.140049760
int3
Function at 0x140048a28
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140048a62
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140048a67
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140048ab0
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140051250]
cmp byte [rcx + rax], 0
je 0x140048ab0
dec r8
sub rdx, 1
jne 0x140048a96
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x14004a75c
Capabilities:
Parse pe header

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

Disassembly:
cld
pop r11
jmp 0x14000a63d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000a64d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000a635
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000a665
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000a652
sub eax, 3
jb 0x14000a67f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000a6b6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000a6a6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000a6a4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000a693
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000a5f2
jmp 0x14000a63d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1200
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000a702
cmp rsi, rcx
jae 0x14000a70a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000a6e9
cmp al, 0x8f
ja 0x14000a6e9
cmp byte [rsi - 2], 0xf
je 0x14000a6ef
sub al, 0xe8
cmp al, 1
ja 0x14000a6d3
cmp rsi, rcx
jae 0x14000a70a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000a6d9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000a70a
lodsb al, byte [rsi]
jmp 0x14000a6e9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000a767
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa1dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x14000a717
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x14000a761
mov qword [rbx], rax
add rbx, 8
jmp 0x14000a737
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x14000a7a1
cmp al, 0xef
ja 0x14000a793
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000a773
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000a782
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x21f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x14000a7f5
sub rsp, 0xffffffffffffff80
jmp 0x140001494
Function at 0x180004300
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
movsxd rax, dword [rcx + 0x3c]
xor r9d, r9d
mov rdi, rdx
mov r11, rcx
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov esi, dword [r8 + 0x1c]
mov r10d, dword [r8 + 0x20]
add rsi, rcx
mov ebp, dword [r8 + 0x24]
add r10, rcx
mov ebx, dword [r8 + 0x18]
add rbp, rcx
test ebx, ebx
je 0x180004383
nop dword [rax]
mov r8d, dword [r10]
mov rax, rdi
add r8, r11
sub r8, rdi
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x180004373
inc rax
test ecx, ecx
jne 0x180004360
test edx, edx
je 0x18000439a
inc r9d
add r10, 4
cmp r9d, ebx
jb 0x180004350
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rbp + r9*2]
mov eax, dword [rsi + rcx*4]
test rax, rax
je 0x180004383
add rax, r11
jmp 0x180004385

Function at 0x1800043b0
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x28
mov rax, qword [0x18002a008]
xor rax, rsp
mov qword [rsp + 0x10], rax
mov dword [rsp], 0x56127654
mov r11, rcx
mov dword [rsp + 4], 0x11328789
mov dword [rsp + 8], 0x45124332
mov word [rsp + 0xc], 0x1311
test edx, edx
jle 0x1800044df
mov qword [rsp + 0x38], rbx
xor r8d, r8d
mov qword [rsp + 0x40], rsi
mov r10, rcx
mov qword [rsp + 0x20], rdi
mov r9d, r8d
mov edi, edx
movabs rsi, 0x2492492492492493
mov ebx, edx
nop dword [rax]
nop word [rax + rax]
mov rax, rsi
lea r10, [r10 + 1]
mul r9
mov rax, r9
mov rcx, r9
sub rax, rdx
inc r9
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub rcx, rax
movzx eax, byte [rsp + rcx]
xor byte [r10 - 1], al
sub rdi, 1
jne 0x180004420
mov r10, r11
mov r9, r8
mov rdi, rbx
nop
mov rax, rsi
lea r10, [r10 + 1]
mul r9
mov rax, r9
mov rcx, r9
sub rax, rdx
inc r9
shr rax, 1
add rax, rdx
shr rax, 3
imul rax, rax, 0xe
sub rcx, rax
movzx eax, byte [rsp + rcx]
xor byte [r10 - 1], al
sub rdi, 1
jne 0x180004460
mov rdi, qword [rsp + 0x20]
mov r9, r11
nop dword [rax]
mov rcx, r8
lea r9, [r9 + 1]
mov rax, rsi
mul r8
sub rcx, rdx
shr rcx, 1
add rcx, rdx
mov rdx, r8
shr rcx, 3
inc r8
imul rcx, rcx, 0xe
sub rdx, rcx
movzx ecx, byte [rsp + rdx]
xor byte [r9 - 1], cl
sub rbx, 1
jne 0x1800044a0
mov rsi, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x38]
mov rax, r11
mov rcx, qword [rsp + 0x10]
xor rcx, rsp
call fcn.180005130
add rsp, 0x28
ret
Function at 0x180004ea0
Capabilities:
Delete registry key

Disassembly:
sub rsp, 0x298
mov rax, qword [0x18002a008]
xor rax, rsp
mov qword [rsp + 0x280], rax
xor edx, edx
lea rcx, [rsp + 0x70]
mov r8d, 0x208
call fcn.180007560
mov dword [rsp + 0x68], 0x8c
lea r8, str.CLSID_08X__04X__04X__02X_02X__02X_02X_02X_02X_02X_02X
mov dword [rsp + 0x60], 0xb
lea rcx, [rsp + 0x70]
mov dword [rsp + 0x58], 0xe0
mov r9d, 0xc637e2d2
mov dword [rsp + 0x50], 7
mov edx, 0x104
mov dword [rsp + 0x48], 0xaf
mov dword [rsp + 0x40], 0xd2
mov dword [rsp + 0x38], 0x43
mov dword [rsp + 0x30], 0x9c
mov dword [rsp + 0x28], 0x4ace
mov dword [rsp + 0x20], 0x1a0
call fcn.180004240
test eax, eax
js 0x180004f4d
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor eax, eax
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.180005130
add rsp, 0x298
ret

Function at 0x180005060
Capabilities:
Execute syscall

Disassembly:
mov r10, rcx
mov eax, 0x18
syscall
ret
Function at 0x140004188
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400041d2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400041d2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400041d2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400041d2
cmp dword [rcx + 0x84], 0xe
jbe 0x1400041d2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400041d4
xor al, al
add rsp, 0x28
ret
Function at 0x1400016b0
Capabilities:
Terminate thread
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
push r14
push r15
sub rsp, 0x30
xor r15d, r15d
mov r14d, edx
mov rbx, rcx
mov rdi, rcx
test rcx, rcx
je 0x1400016ff
nop
mov rcx, qword [rdi + 0x98]
mov dword [rdi + 0x90], r15d
test rcx, rcx
je 0x1400016f2
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov qword [rdi + 0x98], r15
test r14d, r14d
je 0x1400016ff
mov rdi, qword [rdi]
test rdi, rdi
jne 0x1400016d0
mov edx, Ordinal_69
lea ecx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1400018bb
mov dword [rax + 1], 0x10
xorps xmm3, xmm3
mov dword [rax + 5], 0x80000000
xorps xmm2, xmm2
mov dword [rax + 0x39], 0xff550404
mov ecx, 3
mov word [rax + 0x3d], 0xffff
inc rax
mov qword [rsp + 0x58], rbp
nop word [rax + rax]
movq xmm1, qword [rax]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
lea rax, [rax + 0x10]
paddw xmm1, xmm3
movdqa xmm3, xmm1
movq xmm1, qword [rax - 8]
punpcklbw xmm1, xmm0
paddw xmm1, xmm2
movdqa xmm2, xmm1
sub rcx, 1
jne 0x140001750
paddw xmm2, xmm3
mov ecx, 0x31
movdqa xmm0, xmm2
movzx r8d, r15w
psrldq xmm0, 8
movzx edx, r15w
paddw xmm2, xmm0
movdqa xmm0, xmm2
lea r9d, [rcx - 0x2a]
psrldq xmm0, 4
paddw xmm2, xmm0
movdqa xmm0, xmm2
psrldq xmm0, 2
paddw xmm2, xmm0
movd r11d, xmm2
nop
movzx eax, byte [rcx + rdi]
lea rcx, [rcx + 2]
add r8w, ax
movzx eax, byte [rdi + rcx - 1]
add dx, ax
sub r9, 1
jne 0x1400017c0
add dx, r8w
lea ebp, [r9 + 1]
add r11w, dx
movzx eax, r11w
mov byte [rdi + 0x40], r11b
shr ax, 8
mov byte [rdi + 0x3f], al
test rbx, rbx
je 0x14000189c
mov qword [rsp + 0x60], rsi
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rbx + 0x78]
mov esi, r15d
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140001875
movzx r9d, word [rbx + 0x2a]
mov r8d, Ordinal_69
cmp r9d, r8d
jb 0x140001864
lea r9, [rsp + 0x50]
mov qword [rsp + 0x20], r15
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov esi, eax
test eax, eax
jne 0x140001884
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__WriteFile__0x_08x__n
mov r8d, eax
call fcn.14000afb0
jmp 0x140001884
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Size_is_not_valide__siz___u__max___u__n
call fcn.14000afb0
jmp 0x140001884
mov edx, dword [rbx + 8]
lea rcx, str.ERROR_kull_m_busylight_device_send_raw____device__u__Invalid_Device_Busy_Handle_n
call fcn.14000afb0
and ebp, esi
test r14d, r14d
je 0x140001897
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140001810
mov rsi, qword [rsp + 0x60]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, ebp
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x68]
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
mov rbx, qword [rsp + 0x68]
mov eax, r15d
add rsp, 0x30
pop r15
pop r14
pop rdi
ret
Function at 0x140001e20
Capabilities:
Get common file path

Disassembly:
push rbp
push rdi
sub rsp, 0x78
mov rbp, rcx
mov edx, 0x338
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000202c
mov qword [rsp + 0x90], rbx
lea rcx, [rdi + 0x12a]
mov qword [rsp + 0x98], rsi
lea r8, str._s__02d.cab
mov qword [rsp + 0xa0], r14
mov ebx, 0x100
lea r14, [rax + 8]
mov dword [rax + 0xc], 0x4000000
mov eax, SQLGetData
mov qword [rsp + 0x70], r15
xor r15d, r15d
mov word [rdi + 0x28], ax
mov r9, rbp
mov qword [rdi + 0x1c], r15
mov edx, ebx
mov dword [rsp + 0x20], r15d
mov dword [r14], 0x4000000
call fcn.1400018d0
test eax, eax
js 0x140001fea
lea rsi, [rdi + 0x22a]
mov ecx, ebx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x140001ff6
mov ecx, ebx
mov rax, rsi
nop
cmp byte [rax], r15b
je 0x140001ede
inc rax
sub rcx, 1
jne 0x140001ed0
test rcx, rcx
je 0x140001ff6
mov rax, rbx
sub rax, rcx
test rcx, rcx
cmove rax, r15
lea rcx, [rax + rsi]
sub rbx, rax
je 0x140001f2c
add rax, 0x7ffffefe
lea r8, [0x1401508d8]
add rax, rbx
sub r8, rcx
test rax, rax
je 0x140001f2c
movzx edx, byte [r8 + rcx]
test dl, dl
je 0x140001f2c
mov byte [rcx], dl
dec rax
inc rcx
sub rbx, 1
jne 0x140001f10
test rbx, rbx
lea rax, [rcx - 1]
cmovne rax, rcx
mov byte [rax], r15b
je 0x140001ff6
mov qword [rsp + 0x60], rbp
lea rax, [0x140001b60]
mov qword [rsp + 0x58], r14
lea r9, [0x1400019b0]
mov qword [rsp + 0x50], rax
lea r8, [0x1400019a0]
lea rax, [0x140001b30]
mov qword [rsp + 0x48], rax
lea rdx, [fcn.140001990]
lea rax, [0x140001af0]
mov qword [rsp + 0x40], rax
lea rcx, [rdi + 0x32c]
lea rax, [0x140001ac0]
mov qword [rsp + 0x38], rax
lea rax, [0x140001a80]
mov qword [rsp + 0x30], rax
lea rax, [0x140001a40]
mov qword [rsp + 0x28], rax
lea rax, [0x1400019c0]
mov qword [rsp + 0x20], rax
call qword [sym.imp.Cabinet.dll_FCICreate]
mov qword [rdi], rax
test rax, rax
jne 0x140001ff6
mov ecx, dword [rdi + 0x32c]
call fcn.140001d90
mov edx, dword [rdi + 0x32c]
lea rcx, str.ERROR_kull_m_cabinet_create___FCICreate_failed_with_error_code__d:__S_n
mov r8, rax
call fcn.14000afb0
jmp 0x140001ff6
lea rcx, str.ERROR_kull_m_cabinet_create___Failed_to_initialize_the_cabinet_information_structure._n
call fcn.14000afb0
cmp qword [rdi], 0
mov r15, qword [rsp + 0x70]
mov r14, qword [rsp + 0xa0]
mov rsi, qword [rsp + 0x98]
mov rbx, qword [rsp + 0x90]
jne 0x140002029
mov rcx, rdi
add rsp, 0x78
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, rdi
add rsp, 0x78
pop rdi
pop rbp
ret
Function at 0x1400032b0
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
xor ebx, ebx
mov r14, r9
mov esi, r8d
mov rbp, rdx
mov edi, ecx
cmp ecx, 0x8000
jne 0x14000334f
cmp dword [rsp + 0x90], 4
jne 0x140003445
lea rdx, [rsp + 0x30]
mov ecx, 0xffffff7c
call qword [sym.imp.cryptdll.dll_CDLocateCheckSum]
test eax, eax
js 0x140003445
mov rax, qword [rsp + 0x30]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [rax + 0x10]
test eax, eax
js 0x140003445
mov r9, qword [rsp + 0x30]
mov r8, rbp
mov rcx, qword [rsp + 0x40]
mov edx, esi
call qword [r9 + reloc.ODBC32.dll_SQLAllocHandle]
mov r8, qword [rsp + 0x30]
mov rdx, r14
mov rcx, qword [rsp + 0x40]
call qword [r8 + 0x20]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x40]
test eax, eax
setns bl
call qword [rdx + Ordinal_41]
jmp 0x140003445
mov r9d, reloc.ODBC32.dll_SQLAllocHandle
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140003445
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, edi
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x140003438
mov rcx, qword [rsp + 0x38]
xor r9d, r9d
mov r8d, esi
mov rdx, rbp
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14000342d
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
xor r8d, r8d
mov dword [rsp + 0x20], ebx
lea edx, [r8 + 2]
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x14000342d
mov edx, dword [rsp + 0x70]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14000342d
mov rcx, qword [rsp + 0x38]
lea r9, [rsp + 0x70]
mov r8, rax
mov dword [rsp + 0x20], ebx
mov edx, 2
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
mov edx, dword [rsp + 0x90]
mov rcx, r14
cmp dword [rsp + 0x70], edx
mov ebx, eax
cmovb edx, dword [rsp + 0x70]
mov r8d, edx
mov rdx, rdi
call fcn.14011b4a0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x48]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov rbp, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret