joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001b420
Capabilities:
Access peb ldr_data
Create thread
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
xor edx, edx
call qword [sym.imp.USER32.dll_ShowWindow]
xor ebx, ebx
lea r8, [0x140006560]
mov qword [rsp + 0x28], rbx
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
nop
call fcn.14001a1d0
test al, al
je 0x14001b460
mov eax, dword [str.ZVH_W_OOU]
mov dword [rsp + 0x40], eax
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop dword [rax]
nop dword [rax + rax]
mov r10, qword [rax + 0x30]
movsxd rcx, dword [r10 + 0x3c]
mov esi, dword [rcx + r10 + 0x88]
add rsi, r10
cmp rsi, r10
je 0x14001b507
mov r9d, dword [rsi + 0x18]
test r9d, r9d
je 0x14001b507
mov edi, dword [rsi + 0x20]
nop dword [rax]
nop dword [rax + rax]
dec r9d
mov r8d, 0x811c9dc5
lea rcx, [rdi + r9*4]
mov ecx, dword [rcx + r10]
add rcx, r10
movzx edx, byte [rcx]
inc rcx
test dl, dl
je 0x14001b502
nop
movsx edx, dl
lea rcx, [rcx + 1]
xor edx, r8d
imul r8d, edx, 0x1000193
movzx edx, byte [rcx - 1]
test dl, dl
jne 0x14001b4e0
cmp r8d, 0x491e0a9c
je 0x14001b50c
test r9d, r9d
jne 0x14001b4c0
mov rax, qword [rax]
jmp 0x14001b490
mov ecx, dword [rsi + 0x24]
add rcx, r10
movzx edx, word [rcx + r9*2]
mov ecx, dword [rsi + 0x1c]
add rcx, r10
mov r9d, dword [rcx + rdx*4]
add r9, r10
cmp dword [0x140026008], 2
jl 0x14001b5c1
movdqa xmm3, xmmword [0x140022190]
mov eax, 4
movdqa xmm2, xmm3
movdqa xmm0, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140022200]
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140022200]
shufps xmm2, xmm0, 0xdd
movd xmm0, eax
mov eax, 0x1f
psrad xmm2, xmm0
movdqa xmm1, xmm2
movd xmm0, eax
psrld xmm1, xmm0
paddd xmm1, xmm2
pmulld xmm1, xmmword [0x1400221b0]
psubd xmm3, xmm1
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
movd xmm0, dword [rsp + 0x40]
pshufd xmm2, xmm1, 0xd8
andps xmm2, xmmword [0x1400221d0]
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1400221f0]
xorps xmm2, xmm0
movd dword [rsp + 0x40], xmm2
jmp 0x14001b5fd
lea r8, [rsp + 0x40]
nop word [rax + rax]
mov eax, 0x51eb851f
lea r8, [r8 + 1]
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x32
movzx eax, bl
inc ebx
sub al, cl
add al, 0x39
xor byte [r8 - 1], al
cmp ebx, 4
jl 0x14001b5d0
lea rcx, [rsp + 0x40]
call r9
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14001b637
mov edx, 0x64
mov dword [rsp + 0x28], 1
mov r8d, edx
mov dword [rsp + 0x20], 0x2ee
mov r9d, 0x5dc
mov rcx, rax
call qword [sym.imp.USER32.dll_MoveWindow]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rcx, rax
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
call fcn.140019670
mov rbx, qword [rsp + 0x48]
xor eax, eax
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14001bb00
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je case.default.0x14001bb21
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x14001bb4e
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x14001bb50
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x14001bba9
test ecx, ecx
jle 0x14001bb89
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x14001bba9
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x14001bba9
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
mov rcx, qword [rsp + 0x50]
call 0x14003f210
mov rax, qword [rax]
cmp qword [rax], 0
je 0x140045444
mov eax, dword [rsp + 0x60]
inc eax
cdqe
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call 0x14003f210
mov rax, qword [rax]
mov ecx, 1
imul rcx, rcx, 0
mov rax, qword [rax]
movsx eax, byte [rax + rcx]
cmp eax, 0x2f
je 0x140045444
mov eax, dword [rsp + 0x60]
inc eax
cdqe
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call 0x14003f210
mov rax, qword [rax]
mov ecx, 1
imul rcx, rcx, 0
mov rax, qword [rax]
movsx eax, byte [rax + rcx]
cmp eax, 0x2d
je 0x140045444
mov eax, dword [rsp + 0x60]
inc eax
cmp eax, dword [rsp + 0x68]
jge 0x140045444
mov eax, dword [rsp + 0x60]
inc eax
cdqe
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call 0x14003f210
mov rax, qword [rax]
mov rcx, qword [rax]
call 0x14004f270
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x20], 0
jmp 0x1400451d3
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 4]
lea rcx, [0x140072580]
call qword [0x140095088]
xor eax, eax
jmp 0x140045474
Function at 0x14001bbd0
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x14001bbf2
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je case.default.0x14001bc01
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14001bc24
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14001bc26
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14001bc62
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001bcfe
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x14001bc9d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001bcde
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001bcfe
cmp rbx, rax
ja 0x14001bcb0
test rbx, rbx
je 0x14001bcfe
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
Function at 0x14001c130
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x140026028]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14001c15d
xor eax, eax
jmp 0x14001c2c9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x14001c197
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x14001c197
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x14001c2c9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x14001c2bc
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14001c1da
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x14001c205
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001c2c1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001c274
sub eax, 1
je 0x14001c274
cmp eax, 2
jne 0x14001c2bc
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x14001c2c1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x14001c2a2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x14001c2bc
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x14001c2c1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14001d8c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x14001c650
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x140026028]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x14001c723
cmp byte [rcx + 0x71], 0
je 0x14001c723
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14001c71f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x14001c6e4
sub eax, 1
je 0x14001c6e8
cmp eax, 2
jne 0x14001c71f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d8c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x14001c716
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14001c71f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x14001c6cc
xor al, al
jmp 0x14001c6cc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.14001d8c0
add rsp, 0x60
pop rbx
ret

Function at 0x14001e378
Capabilities:
Parse pe header

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

Disassembly:
call fcn.1407821df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140782089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14078206f
add dl, dl
jne 0x140782096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407820f6
xor eax, eax
add dl, dl
jne 0x1407820a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1407821ad
add dl, dl
jne 0x1407820b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407820c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407820d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1407820dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1407820ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14078207e
mov eax, 1
add dl, dl
jne 0x140782106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140782113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1407820fb
sub eax, ebx
mov ebx, 1
jne 0x14078214c
mov ecx, 1
add dl, dl
jne 0x14078212e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14078213b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140782123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078207e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140782168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140782175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14078215d
cmp eax, 0x7d00
jae 0x14078219b
cmp eax, 0x500
jb 0x140782196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078207e
cmp eax, 0x7f
ja 0x14078219e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14078207e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1407821d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14078207e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140004060
Capabilities:
Get thread local storage value

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140003b40
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14000409f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x14003e268]
jmp 0x1400040a9
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x140024710
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400131f0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x14008f010]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rbx, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c14
xor eax, eax
mov dword [rsp + 0x20], 0x114
xor edx, edx
mov qword [rbx + 8], rax
mov r8d, 0x110
mov qword [rbx + 0x10], rax
lea rcx, [rsp + 0x24]
mov qword [rbx + 0x18], rax
mov qword [rbx + 0x20], rax
mov qword [rbx + 0x28], rax
mov qword [rbx + 0x30], rax
mov qword [rbx + 0x38], rax
mov qword [rbx + 0x40], rax
mov qword [rbx + 0x48], rax
mov qword [rbx + 0x50], rax
mov byte [rbx], al
call fcn.140024aa0
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x14001327c
cmp dword [rsp + 0x24], 6
jb 0x14001327c
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x150
pop rbx
ret

Function at 0x1400132c0
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x70
mov qword [rax - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov rsi, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c14
lea rdx, str.wintrust.dll
lea rcx, [rsp + 0x28]
call fcn.140003220
nop
call fcn.140016110
mov rcx, rax
lea rdx, [rsp + 0x28]
call fcn.1400161f0
mov rbx, rax
lea rcx, [rsp + 0x28]
call fcn.1400031f0
lea rdx, str.crypt32.dll
lea rcx, [rsp + 0x48]
call fcn.140003220
nop
call fcn.140016110
mov rcx, rax
lea rdx, [rsp + 0x48]
call fcn.1400161f0
mov rdi, rax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
test rbx, rbx
je 0x140013423
test rdi, rdi
je 0x140013423
lea rdx, str.CryptCATAdminCalcHashFromFileHandle
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 8], rax
lea rdx, str.CryptCATAdminAcquireContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x10], rax
lea rdx, str.CryptCATAdminEnumCatalogFromHash
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x18], rax
lea rdx, str.CryptCATCatalogInfoFromContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x20], rax
lea rdx, str.CryptCATAdminReleaseCatalogContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x28], rax
lea rdx, str.CryptCATAdminReleaseContext
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x30], rax
lea rdx, str.WTHelperProvDataFromStateData
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x38], rax
lea rdx, str.WTHelperGetProvSignerFromChain
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x40], rax
lea rdx, str.WinVerifyTrust
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x48], rax
lea rdx, str.CertNameToStrW
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsi + 0x50], rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x140013f40
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14008f010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c14
mov rcx, rbx
call fcn.140003830
cmp qword [rax + 0x10], 0
jne 0x140013f91
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006520
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.14000b230
lea rcx, [rsp + 0x28]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400140ea
lea rcx, [rsp + 0x48]
call fcn.140003280
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015800
test al, al
je 0x140013fff
lea rcx, [rsp + 0x48]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
cmp ebx, 0xffffffff
jne 0x1400140ea
lea rcx, [rsp + 0x28]
call fcn.140003830
cmp qword [rax + 0x10], 2
jbe 0x1400140e6
lea rcx, [rsp + 0x28]
call fcn.140003830
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140004200
cmp qword [rax + 0x18], 8
jb 0x140014049
mov rax, qword [rax]
cmp word [rax + rbx*2 - 2], 0x5c
je 0x14001407b
lea rcx, [rsp + 0x28]
call fcn.140003830
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140004200
cmp qword [rax + 0x18], 8
jb 0x140014073
mov rax, qword [rax]
cmp word [rax + rbx*2 - 2], 0x2f
jne 0x1400140e6
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.14000b230
lea rcx, [rsp + 0x28]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400140ea
lea rcx, [rsp + 0x48]
call fcn.140003280
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015800
test al, al
je 0x1400140d7
lea rcx, [rsp + 0x48]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
cmp ebx, 0xffffffff
jne 0x1400140ea
xor bl, bl
jmp 0x1400140ec
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.1400031f0
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x70
pop rbx
ret
Function at 0x140014110
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14008f010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c14
mov rcx, rbx
call fcn.140003830
cmp qword [rax + 0x10], 0
jne 0x140014161
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006520
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.14000b230
lea rcx, [rsp + 0x28]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400141da
lea rcx, [rsp + 0x48]
call fcn.140003280
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015800
test al, al
je 0x1400141cb
lea rcx, [rsp + 0x48]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
cmp ebx, 0xffffffff
je 0x1400141e3
test bl, 0x10
je 0x1400142c0
lea rcx, [rsp + 0x28]
call fcn.140003830
cmp qword [rax + 0x10], 2
jbe 0x1400142bc
lea rcx, [rsp + 0x28]
call fcn.140003830
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140004200
cmp qword [rax + 0x18], 8
jb 0x14001421a
mov rax, qword [rax]
cmp word [rax + rbx*2 - 2], 0x5c
je 0x14001424c
lea rcx, [rsp + 0x28]
call fcn.140003830
mov rbx, qword [rax + 0x10]
lea rcx, [rsp + 0x28]
call fcn.140004200
cmp qword [rax + 0x18], 8
jb 0x140014244
mov rax, qword [rax]
cmp word [rax + rbx*2 - 2], 0x2f
jne 0x1400142bc
mov edx, 0x20
lea rcx, [rsp + 0x28]
call fcn.14000b230
lea rcx, [rsp + 0x28]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400142b7
lea rcx, [rsp + 0x48]
call fcn.140003280
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015800
test al, al
je 0x1400142a8
lea rcx, [rsp + 0x48]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
cmp ebx, 0xffffffff
je 0x1400142bc
test bl, 0x10
je 0x1400142c0
xor bl, bl
jmp 0x1400142c2
mov bl, 1
lea rcx, [rsp + 0x28]
call fcn.1400031f0
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x70
pop rbx
ret
Function at 0x1400142f0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x70
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov rax, qword [0x14008f010]
xor rax, rsp
mov qword [rsp + 0x68], rax
mov rbx, rcx
lea rcx, [0x14009a7b9]
call fcn.140069c14
mov rcx, rbx
call fcn.140003830
cmp qword [rax + 0x10], 0
jne 0x140014341
xor al, al
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x70
pop rbx
ret
mov rdx, rbx
lea rcx, [rsp + 0x28]
call fcn.140006520
nop
mov edx, 4
lea rcx, [rsp + 0x28]
call fcn.14000b230
lea rcx, [rsp + 0x28]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x1400143ba
lea rcx, [rsp + 0x48]
call fcn.140003280
nop
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x28]
call fcn.140015800
test al, al
je 0x1400143ab
lea rcx, [rsp + 0x48]
call fcn.140003080
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
lea rcx, [rsp + 0x48]
call fcn.1400031f0
cmp ebx, 0xffffffff
je 0x1400143c3
test bl, 0x10
je 0x1400143c3
mov bl, 1
jmp 0x1400143c5
xor bl, bl
lea rcx, [rsp + 0x28]
call fcn.1400031f0
movzx eax, bl
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.140020d70
add rsp, 0x70
pop rbx
ret