joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140009e54
Capabilities:
Create thread
Hide graphical window

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp - 0x10], rax
or dword [rcx + 0x60], 0xffffffff
mov rbx, rcx
mov dword [rcx + 0x5c], 1
mov edx, 0x3eb
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_KillTimer]
mov rcx, qword [rbx + 0x90]
lea rdx, [rbp - 0x40]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
call qword [sym.imp.USER32.dll_GetWindowRect]
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x30]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
call qword [sym.imp.USER32.dll_GetClientRect]
mov ecx, dword [rbp - 0x24]
sub ecx, dword [rbp - 0x2c]
mov eax, dword [rbp - 0x34]
sub ecx, eax
add ecx, dword [rbp - 0x3c]
mov r9d, dword [rbp - 0x38]
mov edx, dword [rbp - 0x28]
sub edx, dword [rbp - 0x30]
sar ecx, 1
sub edx, r9d
add edx, dword [rbp - 0x40]
sub r9d, dword [rbp - 0x40]
sar edx, 1
lea r8d, [rcx + 0x46]
mov dword [rsp + 0x28], 1
sub eax, r8d
add ecx, 0x46
sub eax, dword [rbp - 0x3c]
add eax, ecx
mov rcx, qword [rbx + 0x90]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbx + 0x90]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov edx, 0x3e9
mov r8d, 0xc8
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rbx + 8]
xor r9d, r9d
mov edx, 0x3ea
mov r8d, reloc.OLEAUT32.dll_DllRegisterServer
call qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x20]
and qword [rbp - 0x20], 0
and qword [rbp - 0x18], 0
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [rbx + 8]
lea rdx, [rbp - 0x20]
xor r8d, r8d
call qword [sym.imp.USER32.dll_InvalidateRect]
mov rcx, qword [rbx + 8]
call qword [sym.imp.USER32.dll_UpdateWindow]
and qword [rsp + 0x28], 0
lea r8, [0x140009dfc]
and dword [rsp + 0x20], 0
mov r9, rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.msvcrt.dll__beginthreadex]
mov qword [rbx + 0x50], rax
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x88]
add rsp, 0x70
pop rbp
ret
Function at 0x14000b010
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rbx, qword [0x14006ff30]
mov rdx, r8
mov rcx, rbx
lea r8, [0x14005b738]
xor edi, edi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rsi, rax
test rax, rax
je 0x14000b0ac
mov rdx, rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rdi, rax
test rax, rax
je 0x14000b0ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rbp, rax
test rbx, rbx
je 0x14000b07d
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
jmp 0x14000b07f
xor eax, eax
movsxd rsi, eax
xor ecx, ecx
mov rdx, rsi
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rbx, rax
test rax, rax
je 0x14000b0ac
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
jne 0x14000b0cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
test rdi, rdi
je 0x14000b0bc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov rax, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
mov r8, rsi
mov rdx, rbp
mov rcx, rax
call sub.msvcrt.dll_memcpy
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
and qword [rsp + 0x68], 0
lea r8, [rsp + 0x68]
mov esi, 1
mov rcx, rbx
mov edx, esi
call qword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
test eax, eax
jns 0x14000b11f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GlobalFree]
xor ebx, ebx
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000b0ae
mov rax, qword [rcx]
call qword [rax + 0x10]
jmp 0x14000b0ae
and qword [rsp + 0x60], 0
lea rdx, [rsp + 0x20]
and qword [rsp + 0x28], 0
lea rcx, [rsp + 0x60]
and dword [rsp + 0x30], 0
xor r8d, r8d
and dword [rsp + 0x34], 0
mov dword [rsp + 0x20], esi
call qword [sym.imp.gdiplus.dll_GdiplusStartup]
mov rsi, qword [rsp + 0x68]
mov ecx, 0x18
call qword [sym.imp.gdiplus.dll_GdipAlloc]
mov rbx, rax
test rax, rax
je 0x14000b10b
lea rdx, [rbx + 8]
mov rcx, rsi
and qword [rdx], 0
lea rax, [0x14005cf40]
mov qword [rbx], rax
call qword [sym.imp.gdiplus.dll_GdipLoadImageFromStream]
mov dword [rbx + 0x10], eax
jmp 0x14000b10d
Function at 0x14000da40
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x20
mov rsi, rdx
mov rbx, rcx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor ebp, ebp
test eax, eax
jne 0x14000da66
lea eax, [rbp + 2]
jmp 0x14000db6e
call fcn.140001b5c
mov rcx, rax
test rax, rax
je 0x14000db7b
mov rax, qword [rax]
call qword [rax + 0x18]
lea rdx, [rsp + 0x58]
mov rcx, rbx
add rax, 0x18
mov qword [rsp + 0x58], rax
call fcn.14001c070
mov edi, eax
test eax, eax
jne 0x14000db4c
lea rdx, str.bf1a281b_ad7b_4476_ac95_f47682990ce7
lea rcx, [rsp + 0x50]
call fcn.1400022c8
mov rbx, qword [rsp + 0x58]
lea r8d, [rdi + 4]
mov rcx, rbx
lea rdx, [0x14005bb40]
call qword [sym.imp.SHLWAPI.dll_StrCmpNW]
test eax, eax
jne 0x14000daea
lea rdx, [rbx + 8]
test rdx, rdx
jne 0x14000dad8
mov eax, ebp
jmp 0x14000dae5
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], bp
jne 0x14000dadc
mov r8d, eax
jmp 0x14000daf1
mov r8d, dword [rbx - 0x10]
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.140019f84
lea rcx, [rsp + 0x50]
call fcn.140010c88
mov r8, rbx
mov rcx, 0xffffffff80000002
mov rbx, qword [rsp + 0x50]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegLoadKeyW]
mov edi, eax
test eax, eax
jne 0x14000db32
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.14001a3e0
mov edi, ebp
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000db4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rdx, qword [rsp + 0x58]
add rdx, 0xffffffffffffffe8
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14000db6c
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002198
int3
Function at 0x14000e974
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x280
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x170], rax
mov rax, qword [rcx]
lea rdx, [0x14005bb50]
mov rsi, rcx
xor r14d, r14d
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x20], rcx
mov r9d, 0x20019
mov rcx, qword [rax]
lea r8d, [r14 + 4]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test eax, eax
jne 0x14000eb49
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x40]
mov qword [rsp + 0x30], r14
lea r8, [rsp + 0x60]
mov qword [rsp + 0x28], rax
mov r15d, 0x104
xor edx, edx
mov qword [rsp + 0x20], r14
mov ebx, r14d
mov dword [rsp + 0x40], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea edi, [r14 + 2]
test eax, eax
jne 0x14000eb49
cmp word [rsp + 0x60], r14w
je 0x14000ea3b
cmp dword [rsp + 0x44], edi
je 0x14000ea74
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x44]
mov qword [rsp + 0x38], r14
lea r9, [rsp + 0x40]
inc ebx
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x60]
mov edx, ebx
mov qword [rsp + 0x20], r14
mov dword [rsp + 0x40], r15d
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
jmp 0x14000ea25
call fcn.140001b5c
mov rcx, rax
test rax, rax
je 0x14000eb87
mov rax, qword [rax]
call qword [rax + 0x18]
mov rcx, qword [rsp + 0x48]
lea r8, [rsp + 0x50]
add rax, 0x18
lea rdx, [rsp + 0x60]
mov qword [rsp + 0x50], rax
call fcn.14001c3c0
mov rbx, qword [rsp + 0x50]
or r15, 0xffffffffffffffff
mov edi, eax
test eax, eax
jne 0x14000eb2d
lea r8d, [rax + 0xc]
mov rcx, rbx
lea rdx, str._SystemRoot_
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x14000eb28
mov rdx, qword [rsi + 0x10]
mov rcx, qword [rsi + 8]
call fcn.14001a3e0
lea rdx, str.Windows
mov rax, r15
inc rax
cmp word [rdx + rax*2], r14w
jne 0x14000eae6
mov rcx, qword [rsi + 8]
mov r8d, eax
call fcn.140019f84
lea rdx, [rbx + 0x18]
test rdx, rdx
jne 0x14000eb0a
mov eax, r14d
jmp 0x14000eb17
mov rax, r15
inc rax
cmp word [rdx + rax*2], r14w
jne 0x14000eb0d
mov rcx, qword [rsi + 8]
mov r8d, eax
call fcn.140019f84
mov edi, r14d
jmp 0x14000eb2d
mov edi, 1
lea rdx, [rbx - 0x18]
mov eax, r15d
lock xadd dword [rdx + 0x10], eax
add eax, r15d
test eax, eax
jg 0x14000eb49
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x14000eb59
call qword [0x140057c38]
mov eax, edi
mov rcx, qword [rbp + 0x170]
xor rcx, rsp
call fcn.1400408d0
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov ecx, 0x80004005
call fcn.140002198
int3
Function at 0x1400154f8
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov dword [rax + 0x18], r8d
push rbx
sub rsp, 0x40
mov r10, rdx
mov rbx, rcx
mov dword [rax + 0x18], 0x3ffff4
lea r9, [rcx + 0xc]
and qword [rax - 0x18], 0
and qword [rax - 0x20], 0
lea rax, [rax + 0x18]
mov qword [rsp + 0x20], rax
xor edx, edx
lea r8d, [rdx + 1]
mov rcx, r10
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x60]
mov dword [rbx + 4], ecx
and dword [rbx], 0
and dword [rbx + 8], 0
mov al, 1
jmp 0x14001554f
add rsp, 0x40
pop rbx
ret
Function at 0x140018510
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov rdi, qword [rcx + 0x10]
mov rsi, rdx
mov rbx, rcx
test rdi, rdi
je 0x1400185a2
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14001857c
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001859b
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14001859b
mov rdx, qword [rdi]
xor r9d, r9d
and qword [rsp + 0x28], 0
xor r8d, r8d
mov qword [rsp + 0x20], rdx
mov rcx, rbx
mov rdx, rsi
call rax
jmp 0x14001858b
cmp dword [rdi + 8], 0
je 0x14001859b
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov eax, 1
jmp 0x14001858b
cmp byte [0x1400707d8], 0
jne 0x1400185ed
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400185d9
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x1400707d0], rax
jmp 0x1400185e0
mov r10, qword [0x1400707d0]
mov eax, 1
mov byte [0x1400707d8], al
jmp 0x1400185f4
mov r10, qword [0x1400707d0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x140018585
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x14001858b
Function at 0x14001914c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x360]
sub rsp, 0x460
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x350], rax
xor r15d, r15d
mov qword [rsp + 0x38], rcx
mov rbx, rdx
mov qword [rsp + 0x30], r15
mov rsi, r8
mov qword [rsp + 0x40], r15
xor edx, edx
mov rcx, rbx
lea r8d, [r15 + 0x60]
mov r14, r9
call qword [fcn.140037af0]
mov rdi, rax
test rax, rax
jne 0x1400191cd
xor edx, edx
lea r8d, [r15 + 2]
mov rcx, rbx
call qword [fcn.140037af0]
mov rdi, rax
test rax, rax
jne 0x1400191cd
call fcn.1400178f0
mov ebx, eax
jmp 0x1400192bc
mov r8, r14
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rbx, rax
test rax, rax
jne 0x1400191ee
call fcn.1400178f0
jmp 0x1400192ac
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rsi, rax
test rax, rax
je 0x1400191e4
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
inc eax
cmp eax, ebx
jae 0x140019220
mov ebx, 0x8007000e
jmp 0x1400192ae
mov ecx, eax
test eax, eax
je 0x140019252
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x1400192fa
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x140019252
lea rcx, [rsp + 0x40]
call fcn.140011160
jmp 0x14001925c
lea rax, [rsp + 0x48]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], r15
je 0x140019216
mov rax, qword [rsp + 0x40]
xor edx, edx
mov dword [rsp + 0x28], ebx
mov r9d, ebx
mov r8, rsi
mov qword [rsp + 0x20], rax
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x1400191e4
mov r8d, dword [rbp + 0x3b0]
mov ecx, eax
mov rax, qword [rsp + 0x40]
mov word [rax + rcx*2], r15w
lea rcx, [rsp + 0x30]
mov rdx, qword [rsp + 0x40]
call fcn.140018fa4
mov ebx, eax
test rdi, rdi
je 0x1400192bc
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
lea rax, [rsp + 0x48]
cmp qword [rsp + 0x40], rax
je 0x1400192d2
lea rcx, [rsp + 0x40]
call fcn.14001109c
mov eax, ebx
mov rcx, qword [rbp + 0x350]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80070216
call fcn.140002198
int3

Function at 0x14001ace8
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
mov r10d, r8d
mov r11, rdx
mov rbx, rcx
mov dword [rax + 0x20], 0x3ffff4
lea r9, [rcx + 0xc]
and qword [rax - 0x18], 0
and qword [rax - 0x20], 0
lea rax, [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r8d, 1
mov edx, r10d
mov rcx, r11
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
neg eax
sbb ecx, ecx
and ecx, dword [rsp + 0x68]
mov dword [rbx + 4], ecx
and dword [rbx], 0
and dword [rbx + 8], 0
mov al, 1
jmp 0x14001ad41
add rsp, 0x40
pop rbx
ret
Function at 0x14001b14c
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov byte [rax + 0x18], r8b
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xe0
mov rbx, rdx
mov dword [rbp - 0x19], 0x68
xor edx, edx
lea rcx, [rbp - 0x11]
lea r8d, [rdx + 0x60]
call sub.msvcrt.dll_memset
mov rdx, qword [rbx]
xor eax, eax
xor esi, esi
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
mov qword [rbp - 0x29], rax
mov word [rbp + 0x27], si
mov dword [rbp + 0x23], 0x101
cmp dword [rdx - 8], 1
jle 0x14001b1b6
mov edx, dword [rdx - 0x10]
mov rcx, rbx
call fcn.140001fb0
mov rdx, qword [rbx]
lea rax, [rbp - 0x39]
xor r9d, r9d
mov qword [rsp + 0x48], rax
xor r8d, r8d
lea rax, [rbp - 0x19]
xor ecx, ecx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x14001b1fa
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14001b233
mov rcx, qword [rbp - 0x39]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x39]
lea rdx, [rbp + 0x77]
mov dword [rbp + 0x77], 0x80004005
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rbp - 0x31]
call qword [fcn.140037368]
mov rcx, qword [rbp - 0x39]
call qword [fcn.140037368]
mov edi, dword [rbp + 0x77]
mov rdx, qword [rbx]
sub rdx, 0x18
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001b251
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
lea r11, [rsp + 0xe0]
mov eax, edi
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14001b26c
Capabilities:
Create new key via cryptacquirecontext
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rbp + 0x360], rax
and qword [rsp + 0x30], 0
xor r9d, r9d
and dword [rsp + 0x28], 0
mov rsi, r8
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001b2f3
and qword [rsp + 0x48], 0
lea rcx, [rsp + 0x50]
and qword [rsp + 0x50], 0
mov r9d, 0x18
xor r8d, r8d
mov dword [rsp + 0x20], 0xf0000000
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x14001b300
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14001b3d7
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x8003
call qword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x14001b331
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x14001b3ca
mov edi, 0xd
jmp 0x14001b359
mov r8d, dword [rsp + 0x40]
test r8d, r8d
je 0x14001b38c
mov rcx, qword [rsp + 0x48]
lea rdx, [rsp + 0x60]
xor r9d, r9d
call qword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x14001b37e
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x400
lea rdx, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x14001b338
jmp 0x14001b3bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test eax, eax
jne 0x14001b3bf
jmp 0x14001b38e
xor edi, edi
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
and dword [rsp + 0x20], 0
mov r8, rsi
mov edx, 2
mov dword [rsp + 0x40], 0x10
call qword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
jne 0x14001b3bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov rcx, qword [rsp + 0x50]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
cmp rbx, 0xffffffffffffffff
je 0x14001b3f0
mov rcx, rbx
call qword [fcn.140037368]
test eax, eax
jne 0x14001b3f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, edi
mov rcx, qword [rbp + 0x360]
xor rcx, rsp
call fcn.1400408d0
mov rbx, qword [rsp + 0x498]
add rsp, 0x470
pop rdi
pop rsi
pop rbp
ret
Function at 0x14001b414
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdx, rcx
lea rcx, [rsp + 0x48]
call fcn.1400022c8
mov rbx, qword [rsp + 0x48]
xor ebp, ebp
movsxd rax, dword [rbx - 0x10]
test eax, eax
jne 0x14001b44a
lea edi, [rbp + 0x57]
jmp 0x14001b509
lea ecx, [rax - 1]
test ecx, ecx
js 0x14001b539
cmp ecx, eax
jg 0x14001b539
mov r14d, 0x5c
cmp word [rbx + rax*2 - 2], r14w
je 0x14001b4a5
mov edx, r14d
mov rcx, rbx
call qword [sym.imp.msvcrt.dll_wcsrchr]
test rax, rax
jne 0x14001b481
or eax, 0xffffffff
jmp 0x14001b487
sub rax, rbx
sar rax, 1
lea ecx, [rax + 1]
test ecx, ecx
js 0x14001b539
cmp ecx, dword [rbx - 0xc]
jg 0x14001b539
cdqe
mov dword [rbx - 0x10], ecx
mov word [rbx + rax*2 + 2], bp
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathSkipRootW]
mov rcx, rax
movzx edx, r14w
jmp 0x14001b4f9
mov rcx, rbx
mov word [rsi], bp
call qword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x14001b4ee
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x14001b4ee
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
mov edi, 0x65b
cmovne edi, eax
cmp edi, 0xb7
jne 0x14001b509
mov word [rsi], r14w
lea rcx, [rsi + 2]
mov edx, r14d
call qword [sym.imp.SHLWAPI.dll_StrChrW]
mov rsi, rax
test rax, rax
jne 0x14001b4b7
mov edi, ebp
lea rdx, [rbx - 0x18]
or ecx, 0xffffffff
lock xadd dword [rdx + 0x10], ecx
sub ecx, 1
jg 0x14001b524
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [r8 + 8]
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80070057
call fcn.140002198
int3
Function at 0x14001b83c
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x240
mov rax, qword [0x14006f5c0]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rax, qword gs:[0x58]
mov rdi, rcx
mov edx, 0x10
xor ebx, ebx
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x140072448], eax
jle 0x14001b8c9
lea rcx, [0x140072448]
call fcn.140040b18
cmp dword [0x140072448], 0xffffffff
jne 0x14001b8c9
lea rcx, str.Kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.AddDllDirectory
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
lea rcx, [0x140072448]
setne byte [0x14007245c]
call fcn.140040ab8
cmp byte [0x14007245c], bl
je 0x14001b909
mov ebx, 0x800
mov r8d, ebx
xor edx, edx
mov rcx, rdi
call qword [fcn.140037af0]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1400408d0
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
mov esi, 0x5c
mov rcx, rdi
mov edx, esi
call qword [sym.imp.msvcrt.dll_wcschr]
test rax, rax
jne 0x14001b8d6
mov edx, 0x104
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
lea ecx, [rdx - 1]
cmp ecx, 0x102
ja 0x14001b978
mov ecx, edx
mov word [rsp + rdx*2 + 0x20], si
jmp 0x14001b94d
mov word [rsp + rdx*2 + 0x20], cx
lea rdi, [rdi + 2]
movzx ecx, word [rdi]
inc edx
test cx, cx
jne 0x14001b944
mov eax, edx
add rax, rax
cmp rax, 0x208
jae 0x14001b97f
mov word [rsp + rax + 0x20], bx
lea rdi, [rsp + 0x20]
mov ebx, 8
jmp 0x14001b8d6
xor eax, eax
jmp 0x14001b8e4
call fcn.140040d58
int3

Function at 0x14001b988
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword [rcx]
xor esi, esi
mov ebx, 0x104
mov rdi, rcx
cmp dword [rax - 0xc], ebx
jl 0x14001b9b0
mov ebx, dword [rax - 0xc]
test ebx, ebx
js 0x14001ba1c
mov rdx, qword [rdi]
mov ecx, 1
mov eax, dword [rdx - 0xc]
sub ecx, dword [rdx - 8]
sub eax, ebx
or ecx, eax
jge 0x14001b9d1
mov edx, ebx
mov rcx, rdi
call fcn.1400020a8
mov rdx, qword [rdi]
lea ecx, [rbx + 1]
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x14001ba15
cmp eax, ebx
jbe 0x14001b9ea
mov ebx, eax
test eax, eax
js 0x14001ba1c
jmp 0x14001b9b0
test eax, eax
js 0x14001ba1c
mov rcx, qword [rdi]
cmp eax, dword [rcx - 0xc]
jg 0x14001ba1c
mov dword [rcx - 0x10], eax
movsxd rcx, eax
mov rax, qword [rdi]
mov word [rax + rcx*2], si
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
call fcn.14001b570
jmp 0x14001ba05
mov ecx, 0x80070057
call fcn.140002198
int3