joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140039ebc
Capabilities:
Create thread

Disassembly:
push rbx
push rdi
sub rsp, 0x38
mov byte [rsp + 0x60], cl
mov dword [rsp + 0x64], edx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
lea r9, [rsp + 0x60]
lea r8, [0x14003a6d4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x140039f1d
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov ecx, dword [rsp + 0x50]
jmp 0x140039f3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov dword [rsp + 0x50], ecx
test ecx, ecx
jns 0x140039f67
mov edi, 0x80004004
cmp ecx, edi
je 0x140039f67
cmp ecx, 0x800704c7
je 0x140039f67
mov r9d, ecx
xor r8d, r8d
lea edx, [r8 + 5]
xor ecx, ecx
call fcn.140049ec4
jmp 0x140039f69
mov edi, ecx
test rbx, rbx
je 0x140039f7d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x68], 0
mov eax, edi
add rsp, 0x38
pop rdi
pop rbx
ret

Function at 0x140039f88
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x250
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rsi, rcx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitialize]
mov ebx, eax
test eax, eax
jne 0x14003a07f
xor edi, edi
cmp byte [rsi + 8], dil
je 0x14003a00f
lea rdx, [rsp + 0x30]
mov ebx, 0x104
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x102
ja 0x14003a00f
lea r8, str.dd_msvsmon_prepcomputer.log
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140070f60
test eax, eax
jne 0x14003a00f
lea rdx, str.wNt__ccsUTF_8
lea rcx, [rsp + 0x30]
call fcn.140070e0c
mov rdi, rax
mov rcx, rsi
call fcn.14003a97c
mov ebx, eax
test rdi, rdi
je 0x14003a079
test eax, eax
js 0x14003a036
mov r8d, eax
lea rdx, str._prepcomputer_succeeded._Exit_code:__08x._n
mov rcx, rdi
call fcn.14003acf4
jmp 0x14003a071
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x20]
mov r8d, ebx
xor edx, edx
lea ecx, [rdx + 5]
call fcn.140049f28
mov r9d, ebx
mov r8, qword [rsp + 0x20]
lea rdx, str._prepcomputer_failed.__s_Exit_code:__08x._n
mov rcx, rdi
call fcn.14003acf4
nop
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, rdi
call fcn.140070ef4
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14005f5e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14003ae54
Capabilities:
Check if file exists
Get file attributes

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, 0x20
mov r14, r9
mov rbp, r8
mov rbx, rdx
mov rdi, rcx
and qword [r9], 0
mov rsi, qword [rsp + 0x50]
and qword [rsi], 0
mov rcx, rdx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x14003ae9e
mov eax, 0x80040154
jmp 0x14003af3f
xor edx, edx
lea r8d, [rdx + 8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rbx, rax
test rax, rax
jne 0x14003aed7
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x14003af3f
lea rdx, str.DllGetClassObject
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
and qword [rsp + 0x50], 0
lea r8, [rsp + 0x50]
lea rdx, [0x14037d118]
mov rcx, rdi
call rax
mov edi, eax
test eax, eax
js 0x14003af1d
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx]
mov r9, r14
mov r8, rbp
xor edx, edx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
mov edi, eax
test eax, eax
jns 0x14003af28
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x14003af2d
mov qword [rsi], rbx
xor edi, edi
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14003af3d
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14003be10
Capabilities:
Check for time delay via gettickcount
Suspend thread
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
call fcn.14016ca90
mov rcx, qword [0x1403e59e8]
mov byte [0x1403e51bb], 1
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14003be47
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x805e1003
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rax, qword [0x1403e59d8]
test rax, rax
je 0x14003be62
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call fcn.14016cbec
test eax, eax
jne 0x14003be85
call fcn.1401e1634
test eax, eax
jne 0x14003be85
call fcn.14021a58c
test eax, eax
je 0x14003beba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x3a98
jae 0x14003bea1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14003be6a
mov rax, qword [0x1403e59d8]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call fcn.14016ceb8
call fcn.14021a674
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x140041fe0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov rsi, rdx
mov byte [rdx], 0
mov edx, 0x3a
call fcn.140060c28
test rax, rax
je 0x1400420a1
lea rcx, [rax + 2]
call fcn.1400726a8
mov ebx, eax
lea ecx, [rax - 1]
cmp ecx, 0xfffe
ja 0x1400420a1
xor r8d, r8d
lea r14d, [r8 + 2]
mov ecx, r14d
lea edx, [r8 + 1]
call qword [sym.imp.WS2_32.dll_socket]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x14004206a
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x1400420a6
lea r9, [rsp + 0x30]
mov dword [rsp + 0x30], 1
mov edx, 0xffff
mov dword [rsp + 0x20], 4
mov r8d, 0xfffffffb
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x1400420c4
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, 0x80004005
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.14005f5e0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
and qword [rsp + 0x40], 0
movzx ecx, bx
mov word [rsp + 0x38], r14w
call qword [sym.imp.WS2_32.dll_htons]
xor ecx, ecx
mov word [rsp + 0x3a], ax
call qword [sym.imp.WS2_32.dll_htonl]
mov r8d, reloc.OLEAUT32.dll_SafeArrayGetDim
lea rdx, [rsp + 0x38]
mov rcx, rdi
mov dword [rsp + 0x3c], eax
call qword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x14004212b
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
cmp ebx, 0x8007271d
jne 0x14004212d
mov byte [rsi], 1
xor ebx, ebx
mov rcx, rdi
call qword [sym.imp.WS2_32.dll_closesocket]
mov eax, ebx
jmp 0x1400420a6
Function at 0x1400441f4
Capabilities:
Initialize winsock library

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x2b0
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rsp + 0x2a0], rax
mov esi, edx
mov rdi, rcx
lea rcx, [0x1403e45b0]
call fcn.140210cbc
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov ebx, eax
test eax, eax
js 0x1400442b3
mov ecx, 0x202
lea rdx, [rsp + reloc.OLEAUT32.dll_VarUI2FromUI1]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140044270
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
mov eax, 0x80004005
test ebx, ebx
cmovns ebx, eax
jmp 0x1400442ad
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140043fb8
nop
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.14004498c
mov ebx, eax
test eax, eax
js 0x1400442a3
mov r8d, esi
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.140044de4
mov ebx, eax
lea rcx, [rsp + 0x20]
call fcn.1400440dc
call qword [sym.imp.ole32.dll_CoUninitialize]
mov eax, ebx
mov rcx, qword [rsp + 0x2a0]
xor rcx, rsp
call fcn.14005f5e0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140044338
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
cmp dword [rcx + 0x18], 1
je 0x140044351
mov rcx, qword [rcx]
add rsp, 0x20
pop rbx
jmp fcn.1400369dc
and qword [rsp + 0x30], 0
mov rbx, qword [rcx + 0x10]
and qword [rcx + 0x10], 0
mov qword [rsp + 0x30], rbx
test rbx, rbx
je 0x1400443a1
mov byte [rbx + 0x3d], 0
mov byte [0x1403e51ca], 1
mov rcx, qword [0x1403e59e8]
call qword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x14004439a
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x805e1003
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
call qword [sym.imp.vsdebugeng.dll_DkmDllUninitialize]
nop
test rbx, rbx
je 0x1400443af
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetDim]
add rsp, 0x20
pop rbx
ret
Function at 0x140044698
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov r14, rdx
mov rbx, rcx
xor r15d, r15d
mov qword [rdx], r15
mov dword [rbp - 9], r15d
mov word [rbp - 5], 0x500
mov qword [rbp - 1], r15
lea rax, [rbp - 1]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r15d
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x38], r15d
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], r15d
mov dword [rsp + 0x20], r15d
mov r9d, 0x220
lea r8d, [r15 + 0x20]
mov dl, 2
lea rcx, [rbp - 9]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x140044743
mov dword [rbp - 0x19], r15d
lea r8, [rbp - 0x19]
mov rdx, qword [rbp - 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
neg eax
sbb ecx, ecx
and dword [rbp - 0x19], ecx
mov rcx, qword [rbp - 1]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov ecx, dword [rbp - 0x19]
jmp 0x140044746
mov ecx, r15d
mov eax, dword [rbx + 0x38]
test ecx, ecx
je 0x14004475c
sub eax, 3
neg eax
sbb edx, edx
add edx, 0xe7
jmp 0x14004476a
mov edx, 0xe0
lea ecx, [rdx - 0x18]
cmp eax, 3
cmovne edx, ecx
mov qword [rbp - 0x11], r15
lea r8, [rbp - 0x11]
lea rcx, [0x1403e5a08]
call fcn.14021288c
mov edi, eax
test eax, eax
jne 0x140044842
mov rax, qword [rbx + 0x30]
test rax, rax
je 0x14004479e
cmp word [rax], 0x2b
jne 0x1400447bc
cmp word [rax + 2], r15w
jne 0x1400447bc
mov eax, 0xfb8
cmp word [rbx + 0x3c], ax
jne 0x1400447bc
mov rax, qword [rbp - 0x11]
mov qword [rbp - 0x11], r15
mov qword [r14], rax
mov edi, r15d
jmp 0x140044842
mov qword [rbp - 9], r15
movzx esi, word [rbx + 0x3c]
mov rcx, qword [rbx + 0x30]
mov rbx, r15
mov qword [rbp - 9], rbx
test rcx, rcx
jne 0x1400447ea
lea edx, [rcx + 0x10]
lea rcx, [rbp + 0xf]
call fcn.140212514
mov edi, eax
test eax, eax
js 0x1400447fc
lea rcx, [rbp + 0xf]
lea r8, [rbp - 9]
movzx edx, si
call fcn.140033a00
mov rbx, qword [rbp - 9]
mov edi, eax
test edi, edi
jne 0x140044838
mov qword [rbp + 0xf], rbx
lea rax, [0x14037e908]
mov qword [rbp + 0x17], rax
mov rax, qword [rbp - 0x11]
mov qword [rbp + 0x1f], rax
or rax, 0xffffffffffffffff
mov qword [rbp - 1], rax
mov dword [rbp + 7], eax
mov r9, r14
lea r8d, [rdi + 3]
lea rdx, [rbp - 1]
lea rcx, [rbp + 0xf]
call fcn.140033ae4
mov edi, eax
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, edi
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.14005f5e0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xb0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140045308
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rdi + 0x50], rax
test rax, rax
jne 0x140045355
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x14004541f
and qword [rsp + 0x60], 0
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, rdi
lea r8, [0x1400458e0]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbx, rax
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x1400453ab
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
mov eax, 0x80004005
test edi, edi
cmovns edi, eax
jmp 0x140045409
mov rax, qword [rdi + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
and dword [rsp + 0x20], 0
or r9d, 0xffffffff
xor r8d, r8d
lea rdx, [rsp + 0x30]
lea ecx, [r8 + 2]
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjectsEx]
test eax, eax
je 0x1400453f9
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
test eax, eax
je 0x1400453f2
mov edi, dword [rsp + 0x50]
test edi, edi
js 0x140045409
mov edi, 0x80004005
jmp 0x140045409
mov rax, rbx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rdi + 0x48], rax
xor edi, edi
test rbx, rbx
je 0x14004541d
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
and qword [rsp + 0x60], 0
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret

Function at 0x140046a74
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movzx edi, word [rcx + 4]
xor ebx, ebx
mov r14, r8
mov r15, rdx
mov rbp, rcx
test edi, edi
je 0x140046afa
lea r8, [rsp + 0x40]
mov edx, ebx
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_GetAce]
test eax, eax
je 0x140046b1c
mov rax, qword [rsp + 0x40]
mov cl, byte [rax]
test cl, cl
jne 0x140046aef
cmp dword [rax + 4], 0
je 0x140046af4
lea rsi, [rax + 8]
mov rdx, r15
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140046af4
mov rdx, r14
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x140046af4
mov eax, 1
jmp 0x140046afc
cmp cl, 1
jne 0x140046b15
inc ebx
cmp ebx, edi
jb 0x140046a9f
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
mov eax, 0x80070538
jmp 0x140046afc
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov eax, 0x80004005
test ecx, ecx
cmovns ecx, eax
mov eax, ecx
jmp 0x140046afc
Function at 0x1400474d8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rsi, rcx
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1004
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbp, rax
call fcn.140034f08
mov rcx, rax
test rax, rax
je 0x140047678
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x48], rbx
xor edi, edi
test ebp, ebp
jle 0x1400475a6
xor ebx, ebx
mov r9d, 2
mov r8, rbx
mov edx, 0x102c
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 2
jne 0x140047598
mov r9d, dword [rsi + 0x44]
mov r8d, edi
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140047684
mov edx, 9
lea rcx, [rsp + 0x48]
call fcn.1400439d8
mov r9d, dword [rsi + 0x48]
mov r8d, edi
lea rdx, [rsp + 0x48]
mov rcx, rsi
call fcn.140047684
mov r8d, 2
lea rdx, [0x14037eabc]
lea rcx, [rsp + 0x48]
call fcn.1400348c4
inc edi
inc rbx
cmp edi, ebp
jl 0x14004752d
mov rbx, qword [rsp + 0x48]
mov eax, dword [rbx - 0x10]
inc eax
mov r14d, eax
lea rdx, [rax + rax]
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov rdi, rax
test rax, rax
je 0x140047649
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GlobalLock]
test rax, rax
je 0x14004763f
mov r8, rbx
mov edx, r14d
mov rcx, rax
call fcn.140039180
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov rbp, qword [rsi + 0x18]
mov r14d, SafeArrayDestroy
mov esi, r14d
jmp 0x14004760e
test esi, esi
je 0x14004763f
dec esi
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetDim
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, rbp
call qword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x1400475fd
call qword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
je 0x140047639
mov rdx, rdi
mov ecx, r14d
call qword [sym.imp.USER32.dll_SetClipboardData]
call qword [sym.imp.USER32.dll_CloseClipboard]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GlobalFree]
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140047663
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
mov ecx, 0x80004005
call fcn.140034ce8
int3
Function at 0x1400497d8
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r15
sub rsp, 0x250
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor esi, esi
mov dword [rsp + 0x20], 0x104
mov word [rcx], si
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r9, [rsp + 0x20]
xor edx, edx
mov rcx, rax
lea r8, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
mov r15d, 0x80004005
test eax, eax
jne 0x140049853
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r15d
jmp 0x140049887
mov r8d, 0xa
mov ebx, esi
cmp dword [rsp + 0x20], r8d
jbe 0x140049877
lea rdx, str._Volume
lea rcx, [rsp + 0x30]
call fcn.140212fd0
test eax, eax
je 0x140049887
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400498c3
mov r8d, 0x104
lea rdx, [rsp + 0x30]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
dec eax
cmp eax, 0x103
jbe 0x1400498bf
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, 0x80070000
test eax, eax
cmovle ebx, eax
test ebx, ebx
cmovns ebx, r15d
jmp 0x1400498f4
test ebx, ebx
jne 0x1400498f4
mov r8d, 0x104
lea rcx, [rsp + 0x30]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetLongPathNameW]
dec eax
cmp eax, 0x102
jbe 0x1400498f4
lea r8, [rsp + 0x30]
mov edx, 0x104
mov rcx, rdi
call fcn.140039180
mov ebx, eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14005f5e0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
Function at 0x1400499b0
Capabilities:
Load windows common language runtime

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x108]
sub rsp, 0x200
mov rax, qword [0x1403b9010]
xor rax, rsp
mov qword [rbp + 0xf0], rax
xor r9d, r9d
lea r8d, [r9 + 4]
lea rdx, str.v_u._u.
lea rcx, [rsp + 0x50]
call fcn.14004a310
mov edi, eax
cmp eax, 0xffffffff
je 0x140049ba7
lea rcx, str.mscoree.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbx, rax
test rax, rax
je 0x140049ba7
lea rdx, str.CLRCreateInstance
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r14, rax
lea rdx, str.CorBindToRuntimeEx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
lea rdx, str.GetCORVersion
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
test r14, r14
je 0x140049ba7
test rsi, rsi
je 0x140049ba7
test rax, rax
je 0x140049ba7
mov r8d, edi
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.140049be0
test eax, eax
jne 0x140049ba7
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14037d678]
mov qword [rsp + 0x20], rax
lea r9, [0x14037d668]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rsi
test eax, eax
js 0x140049aeb
lea r8, [rsp + 0x30]
mov edx, 0x64
lea rcx, [rbp + 0x20]
call rbx
test eax, eax
jne 0x140049aeb
mov r8d, edi
lea rdx, [rsp + 0x50]
lea rcx, [rbp + 0x20]
call fcn.140212fd0
test eax, eax
jne 0x140049aeb
xor edi, edi
jmp 0x140049b93
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov edx, reloc.OLEAUT32.dll_VarDateFromI1
lea rcx, [0x1403e5a08]
call fcn.14021288c
mov edi, eax
test eax, eax
js 0x140049b87
call fcn.140034f08
mov rcx, rax
test rax, rax
je 0x140049bd5
mov rax, qword [rax]
call qword [rax + reloc.OLEAUT32.dll_SafeArrayGetElement]
add rax, 0x18
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0x766f
xor r9d, r9d
lea r8d, [r9 + 4]
mov rdx, qword [rsp + 0x38]
lea rcx, [rsp + 0x30]
call fcn.140035ee8
mov rbx, qword [rsp + 0x30]
mov r8, rbx
mov edx, 2
xor ecx, ecx
call fcn.14004a154
mov edi, eax
mov eax, 0x80004004
cmp edi, 1
cmove edi, eax
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140049b87
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
nop
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x140049ba3
mov rdx, qword [rcx]
call qword [rdx + reloc.OLEAUT32.dll_SafeArrayGetDim]
mov eax, edi
jmp 0x140049ba9
xor eax, eax
mov rcx, qword [rbp + 0xf0]
xor rcx, rsp
call fcn.14005f5e0
lea r11, [rsp + 0x200]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
mov ecx, 0x80004005
call fcn.140034ce8
int3
Function at 0x14004b2e4
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 0x14004b376
cmp qword [rdi], 0
mov rbx, qword [rcx]
je 0x14004b350
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b36f
lea rdx, str.RegDeleteKeyTransactedW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14004b36f
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 0x14004b35f
cmp dword [rdi + 8], 0
je 0x14004b36f
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 0x14004b35f
cmp byte [0x1403e5eb8], 0
jne 0x14004b3c1
lea rcx, str.Advapi32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14004b3ad
lea rdx, str.RegDeleteKeyExW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
mov qword [0x1403e5eb0], rax
jmp 0x14004b3b4
mov r10, qword [0x1403e5eb0]
mov eax, 1
mov byte [0x1403e5eb8], al
jmp 0x14004b3c8
mov r10, qword [0x1403e5eb0]
mov rcx, qword [rbx]
mov rdx, rsi
test r10, r10
je 0x14004b359
mov r8d, dword [rbx + 8]
xor r9d, r9d
call r10
jmp 0x14004b35f