joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800144fc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
sub rsp, 0x490
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x480], rax
mov r12, r9
mov rdi, r8
mov rax, rdx
xor ebx, ebx
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x70], rbx
xor edx, edx
lea r8d, [rbx + 2]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov rsi, rax
mov qword [rsp + 0x38], rax
cmp rax, rbx
jne 0x180014570
call fcn.180012a44
mov ebx, eax
jmp 0x1800146b1
mov r8, r12
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov rdi, rax
cmp rax, rbx
jne 0x180014593
call fcn.180012a44
mov ebx, eax
jmp 0x1800146a7
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov r12, rax
mov qword [rsp + 0x40], rax
cmp rax, rbx
jne 0x1800145b8
call fcn.180012a44
mov ebx, eax
jmp 0x1800146a7
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [rsp + 0x30], eax
inc eax
cmp eax, edi
jae 0x1800145f1
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800145e7
lea rcx, [rsp + 0x70]
call fcn.180012a10
nop
mov eax, 0x8007000e
jmp 0x1800146ca
mov ecx, eax
cmp rcx, rbx
je 0x18001462f
xor edx, edx
or rax, 0xffffffffffffffff
div rcx
cmp rax, 2
jb 0x180014625
lea rdx, [rcx + rcx]
cmp rdx, 0x400
jbe 0x18001462f
lea rcx, [rsp + 0x70]
call fcn.180012a18
mov rax, qword [rsp + 0x70]
jmp 0x180014639
mov ecx, 0x80070057
call fcn.18000b528
lea rax, [rsp + 0x78]
mov qword [rsp + 0x70], rax
jmp 0x180014650
cmp rax, rbx
jne 0x18001465c
mov ebx, 0x8007000e
jmp 0x1800146a7
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
xor edx, edx
lea ecx, [rdx + 3]
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, ebx
jne 0x180014683
call fcn.180012a44
mov ebx, eax
jmp 0x1800146a7
mov ecx, eax
mov rax, qword [rsp + 0x70]
mov word [rax + rcx*2], bx
mov r8d, dword [rsp + 0x4d0]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x48]
call fcn.180014340
mov ebx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
nop
lea rax, [rsp + 0x78]
cmp qword [rsp + 0x70], rax
je 0x1800146c8
lea rcx, [rsp + 0x70]
call fcn.180012a10
nop
mov eax, ebx
mov rcx, qword [rsp + 0x480]
xor rcx, rsp
call fcn.1800d12b0
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x490
pop r12
pop rdi
pop rsi
ret
Function at 0x18001662c
Capabilities:
Acquire debug privileges

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x58]
mov rcx, rax
mov edx, 0x28
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x180016686
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.OpenProcessToken___failed__Error___d_SeDebugPrivilege_is_not_available._n
lea rdx, str..RemoteInjector.cpp
lea rcx, [0x18015f578]
mov r8d, 0x1e
mov dword [rsp + 0x20], eax
call fcn.18000b1e8
mov eax, 0x80004005
jmp 0x180016755
lea r8, [rsp + 0x60]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
jne 0x1800166d5
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.LookupPrivilegeValue___failed__Error___d_SeDebugPrivilege_is_not_available
lea rdx, str..RemoteInjector.cpp
lea rcx, [0x18015f578]
mov r8d, 0x24
mov dword [rsp + 0x20], eax
call fcn.18000b1e8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18001667c
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov r9d, 0x10
xor edx, edx
mov qword [rsp + 0x34], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x3c], 2
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180016741
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.AdjustTokenPrivileges___failed__Error___d_SeDebugPrivilege_is_not_available
lea rdx, str..RemoteInjector.cpp
lea rcx, [0x18015f578]
mov r8d, gethostbyaddr
mov dword [rsp + 0x20], eax
call fcn.18000b1e8
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [rbx + 8], 1
xor eax, eax
add rsp, 0x40
pop rbx
ret
Function at 0x18001b3c0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov rbp, r9
mov rdi, r8
mov r12, rdx
lea rcx, [0x18010d528]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea r8, [0x18010d528]
mov edx, eax
mov rcx, rbp
call fcn.180003e28
mov dword [rsp + 0x30], 0x200
mov ecx, 0x100
mov eax, 2
mul rcx
mov r13, 0xffffffffffffffff
cmovo rax, r13
mov rcx, rax
call fcn.1800d04fc
mov rbx, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
je 0x18001b508
cmp eax, 0xea
je 0x18001b4a6
mov rcx, rbx
call fcn.1800d1434
nop
mov rcx, qword [rdi]
add rcx, 0xfffffffffffffff4
lea rdx, [0x18015f758]
cmp rcx, rdx
je 0x18001b49f
mov eax, r13d
lock xadd dword [rcx], eax
add eax, r13d
test eax, eax
jg 0x18001b49f
mov rcx, qword [rdi]
sub rcx, 0xc
call fcn.1800d1434
xor eax, eax
jmp 0x18001b565
add dword [rsp + 0x30], 2
mov rcx, rbx
call fcn.1800d1434
mov r11d, dword [rsp + 0x30]
shr r11, 1
mov eax, 2
mul r11
cmovo rax, r13
mov rcx, rax
call fcn.1800d04fc
mov rbx, rax
mov r8d, dword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call fcn.1800d7640
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rdi]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test eax, eax
jne 0x18001b527
test rbx, rbx
jne 0x18001b511
xor eax, eax
jmp 0x18001b51a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, rbx
mov edx, eax
mov rcx, rbp
call fcn.180003e28
mov rcx, rbx
call fcn.1800d1434
xor ebx, ebx
test esi, esi
sete bl
mov rax, qword [rdi]
add rax, 0xfffffffffffffff4
lea rdx, [0x18015f758]
cmp rax, rdx
je 0x18001b563
mov ecx, r13d
lock xadd dword [rax], ecx
add ecx, r13d
test ecx, ecx
jg 0x18001b563
mov rcx, qword [rdi]
sub rcx, 0xc
call fcn.1800d1434
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r13
pop r12
pop rdi
ret
Function at 0x18001b580
Capabilities:
Set registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
sub rsp, 0x30
mov rcx, qword [r9]
mov rsi, r8
mov r10, rdx
mov eax, dword [rcx - 8]
mov rdx, qword [rsi]
mov rbx, r9
lea eax, [rax + rax + 2]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], eax
mov qword [r11 - 0x18], rcx
mov rcx, r10
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsi]
xor edi, edi
test eax, eax
lea r12, [0x18015f758]
sete dil
add rcx, 0xfffffffffffffff4
cmp rcx, r12
je 0x18001b5f9
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x18001b5f9
mov rcx, qword [rsi]
sub rcx, 0xc
call fcn.1800d1434
mov rax, qword [rbx]
add rax, 0xfffffffffffffff4
cmp rax, r12
je 0x18001b61e
or ecx, 0xffffffff
lock xadd dword [rax], ecx
dec ecx
test ecx, ecx
jg 0x18001b61e
mov rcx, qword [rbx]
sub rcx, 0xc
call fcn.1800d1434
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r12
ret
Function at 0x18001b868
Capabilities:
Create thread

Disassembly:
push rsi
push rdi
push r12
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rsi, rcx
xor edi, edi
cmp dword [rcx + 0x2c], edi
je 0x18001b895
xor eax, eax
jmp 0x18001b9df
mov dword [rcx + 0x2c], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x18], rax
mov rbx, qword [rsi + 0x40]
lea rax, [rsi + 0x58]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, [0x18001b9f4]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x60], rax
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x60]
call fcn.18001d204
lock add dword [rbx + 0x74], 1
mov rcx, qword [rsp + 0x60]
mov qword [rsi + 0x50], rcx
cmp rcx, rdi
je 0x18001b9d5
mov rax, qword [rsi + 0x40]
cmp dword [rax + 0x30], edi
je 0x18001b9cb
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov r12d, 0x18
mov rcx, r12
call fcn.1800d1934
mov rbp, rax
mov qword [rax], r12
mov ecx, dword [rsi + 0x30]
mov dword [rax + 8], ecx
cmp ebx, 0x102
jne 0x18001b956
mov dword [rax + 8], 0x80004005
mov ecx, dword [rsi + 0x5c]
mov dword [rax + 0xc], ecx
mov ecx, 8
call fcn.1800d1934
mov rbx, rax
mov qword [rsp + 0x68], rax
cmp rax, rdi
je 0x18001b9b5
mov rax, qword [rsi + 0x68]
cmp dword [rax - 0xc], edi
jl 0x18001b986
mov qword [rbx], rax
lock add dword [rax - 0xc], 1
jmp 0x18001b9b8
mov rax, qword [0x18015f768]
mov qword [rbx], rax
mov r12, qword [rsi + 0x68]
cmp r12, rdi
jne 0x18001b99d
mov eax, edi
jmp 0x18001b9a6
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r8, r12
mov edx, eax
mov rcx, rbx
call fcn.180003e28
jmp 0x18001b9b8
mov rbx, rdi
mov qword [rbp + 0x10], rbx
mov r8, qword [rsi + 0x40]
mov rdx, rbp
mov ecx, dword [r8 + 0x10]
call qword [r8 + 0x28]
mov rcx, qword [rsi + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x50], rdi
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x18001c560
Capabilities:
Create http request

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x4d0
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x4c0], rax
cmp dword [rcx + 8], 0
mov rbx, rcx
jne 0x18001c6ea
lea rdi, [rcx + 0xe8]
mov dword [rcx + 8], 1
mov qword [0x180162508], rcx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov esi, 0x50
lea rcx, [rsp + 0x70]
mov r8, rsi
xor edx, edx
call fcn.1800d7640
lea rax, [0x18001c38c]
xor ecx, ecx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x70], esi
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rsi, str.BDJOBSWND
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x88], rax
mov qword [rsp + 0xb0], rsi
call qword [sym.imp.USER32.dll_RegisterClassExW]
and qword [rsp + 0x58], 0
mov rax, qword [rsp + 0x88]
mov r9d, 0x80880000
xor r8d, r8d
mov qword [rsp + 0x50], rax
and qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0xfffffffffffffffd
and dword [rsp + 0x38], 0
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
and dword [rsp + 0x20], 0
mov rdx, rsi
xor ecx, ecx
call qword [sym.imp.USER32.dll_CreateWindowExW]
lea rcx, str.Mozilla_4.0__compatible__MSIE_7.0__Windows_NT_5.0_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], 0x10000000
mov qword [rbx + 0x50], rax
call qword [sym.imp.WININET.dll_InternetOpenW]
mov qword [rbx + 0x60], rax
test rax, rax
jne 0x18001c678
mov eax, 0x80004005
jmp 0x18001c6ec
lea rdx, [0x18001c2a0]
mov rcx, rax
call qword [sym.imp.WININET.dll_InternetSetStatusCallbackW]
lea r8, [rsp + 0x60]
xor ecx, ecx
mov qword [rbx + 0x68], rax
mov ebx, 4
mov dword [rsp + 0x64], 0x400
lea edx, [rbx + 0x45]
mov r9d, ebx
mov dword [rsp + 0x60], 8
call qword [sym.imp.WININET.dll_InternetSetOptionW]
mov r9d, ebx
lea r8, [rsp + 0x60]
lea ebx, [r9 + 0x46]
xor ecx, ecx
mov edx, ebx
call qword [sym.imp.WININET.dll_InternetSetOptionW]
lea r9, [rsp + 0x64]
lea r8, [rsp + 0xc0]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.WININET.dll_InternetQueryOptionW]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x4c0]
xor rcx, rsp
call fcn.1800d12b0
lea r11, [rsp + 0x4d0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x18001e8f4
Capabilities:
Parse url

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x90
mov r15, rcx
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rdx
lea esi, [rax + 0x68]
mov rbx, rdx
repne scasw ax, word [rdi]
mov r8, rsi
xor edx, edx
not rcx
lea rdi, [rcx - 1]
lea rcx, [rsp + 0x20]
call fcn.1800d7640
mov edx, edi
mov rcx, r15
mov dword [rsp + 0x20], esi
call fcn.180003ee8
lea rcx, [r15 + 0x10]
mov edx, edi
mov dword [rsp + 0x30], edi
mov qword [rsp + 0x28], rax
call fcn.180003ee8
lea rcx, [r15 + 0x20]
mov edx, edi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x40], edi
call fcn.180003ee8
lea rcx, [r15 + 0x28]
mov edx, edi
mov dword [rsp + 0x50], edi
mov qword [rsp + 0x48], rax
call fcn.180003ee8
lea rcx, [r15 + 0x30]
mov edx, edi
mov dword [rsp + 0x60], edi
mov qword [rsp + 0x58], rax
call fcn.180003ee8
lea rcx, [r15 + 0x38]
mov edx, edi
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], edi
call fcn.180003ee8
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x78], rax
mov dword [rsp + 0x80], edi
call qword [sym.imp.WININET.dll_InternetCrackUrlW]
xor ebx, ebx
mov rcx, r15
cmp eax, ebx
setne dil
call fcn.180003f8c
mov rcx, qword [r15]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r15]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [r15]
mov word [rax + rcx*2], bx
lea rcx, [r15 + 0x10]
call fcn.180003f8c
mov rcx, qword [r15 + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r15 + 0x10]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [r15 + 0x10]
mov word [rax + rcx*2], bx
lea rcx, [r15 + 0x20]
call fcn.180003f8c
mov rcx, qword [r15 + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r15 + 0x20]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [r15 + 0x20]
mov word [rax + rcx*2], bx
lea rcx, [r15 + 0x28]
call fcn.180003f8c
mov rcx, qword [r15 + 0x28]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r15 + 0x28]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [r15 + 0x28]
mov word [rax + rcx*2], bx
lea rcx, [r15 + 0x30]
call fcn.180003f8c
mov rcx, qword [r15 + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r15 + 0x30]
mov dword [rcx - 8], eax
movsxd rcx, eax
mov rax, qword [r15 + 0x30]
mov word [rax + rcx*2], bx
lea rcx, [r15 + 0x38]
call fcn.180003f8c
mov rcx, qword [r15 + 0x38]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [r15 + 0x38]
lea r11, [rsp + 0x90]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov dword [rcx - 8], eax
mov rcx, qword [r15 + 0x38]
movsxd rdx, eax
mov al, dil
mov word [rcx + rdx*2], bx
mov ecx, dword [rsp + 0x34]
mov rbx, qword [r11 + 0x30]
mov dword [r15 + 8], ecx
movzx ecx, word [rsp + 0x44]
mov word [r15 + 0x18], cx
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18001eb84
Capabilities:
Create thread

Disassembly:
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x68], rsi
mov rsi, rcx
xor edi, edi
cmp dword [rcx + 0x2c], edi
je 0x18001ebb3
xor eax, eax
jmp 0x18001ecc5
mov dword [rcx + 0x2c], 1
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rsi + 0x18], rax
mov rbx, qword [rsi + 0x38]
lea rax, [rsi + 0x50]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], edi
mov r9, rsi
lea r8, [0x18001ecdc]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rsp + 0x50], rax
lea rcx, [rbx + 0x40]
lea rdx, [rsp + 0x50]
call fcn.18001d204
lock add dword [rbx + 0x74], 1
mov rcx, qword [rsp + 0x50]
mov qword [rsi + 0x48], rcx
cmp rcx, rdi
je 0x18001ecbb
mov rax, qword [rsi + 0x38]
cmp dword [rax + 0x30], edi
je 0x18001ecb1
mov edx, 0x1d4c0
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, eax
mov ecx, 0x18
call fcn.1800d1934
mov rbp, rax
mov qword [rax], 0x18
mov ecx, dword [rsi + 0x30]
mov dword [rax + 8], ecx
cmp ebx, 0x102
jne 0x18001ec70
mov dword [rax + 8], 0x80004005
mov ecx, dword [rsi + 0x74]
mov dword [rax + 0xc], ecx
mov ecx, 8
call fcn.1800d1934
mov qword [rsp + 0x50], rax
cmp rax, rdi
je 0x18001ec9b
lea rdx, [0x18010ed0c]
mov rcx, rax
call fcn.1800041c0
jmp 0x18001ec9e
mov rax, rdi
mov qword [rbp + 0x10], rax
mov r8, qword [rsi + 0x38]
mov rdx, rbp
mov ecx, dword [r8 + 0x10]
call qword [r8 + 0x28]
mov rcx, qword [rsi + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [rsi + 0x48], rdi
setne dil
mov eax, edi
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
Function at 0x180024444
Capabilities:
Delete file

Disassembly:
push rdi
sub rsp, 0x2e0
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rax, qword [0x1801563c0]
xor rax, rsp
mov qword [rsp + 0x2d0], rax
mov r8, rcx
lea rdx, str._s_sbw.tmp
lea rcx, [rsp + 0xc0]
call qword [sym.imp.USER32.dll_wsprintfW]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0xc0]
repne scasw ax, word [rdi]
not rcx
and qword [rsp + 0x38], rax
or qword [rsp + 0x20], 0xffffffffffffffff
lea r9, [rsp + 0xc0]
mov r8, rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x38]
call fcn.1800d3abc
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x30]
call fcn.180007f64
nop
lea rdx, [rsp + 0x30]
lea rcx, [0x18015f720]
call fcn.1800ce3c8
mov rdi, qword [rsp + 0x30]
test eax, eax
je 0x180024517
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180024517
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea r9, str.Failed_to_delete_temp_file
mov r8d, 0x583
lea rdx, str..EntryInstaller.cpp
lea rcx, [0x18015f578]
call fcn.18000dc6c
nop
lea rcx, [rdi - 0xc]
lea rax, [0x18015f758]
cmp rcx, rax
je 0x180024539
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x180024539
call fcn.1800d1434
mov rcx, qword [rsp + 0x2d0]
xor rcx, rsp
call fcn.1800d12b0
add rsp, 0x2e0
pop rdi
ret
Function at 0x180030d14
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rdi, r8
mov r12, rdx
mov r13, rcx
cmp qword [0x180162510], 0
jne 0x180030d63
xor r9d, r9d
lea edx, [r9 + 1]
mov r8d, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x180162510], rax
mov rdx, r12
lea rcx, [r13 + 8]
call fcn.180003500
lea rcx, [r13 + 8]
call fcn.180003f8c
mov rcx, qword [r13 + 8]
call qword [sym.imp.USER32.dll_CharLowerW]
lea rbx, [r13 + 0x48]
cmp rbx, rdi
je 0x180030ec9
mov rdx, qword [rdi + 0x20]
mov r8, qword [rdi + 0x18]
mov rax, rdx
sub rax, r8
sar rax, 3
test rax, rax
jne 0x180030db3
mov rcx, rbx
call fcn.18003196c
jmp 0x180030ec9
mov rcx, qword [rbx + 0x18]
mov r9, qword [rbx + 0x20]
sub r9, rcx
sar r9, 3
cmp rax, r9
ja 0x180030dfc
sub rdx, r8
sar rdx, 3
test rdx, rdx
jle 0x180030ddf
shl rdx, 3
mov r9, rdx
call fcn.1800d19d0
mov rcx, qword [rdi + 0x20]
sub rcx, qword [rdi + 0x18]
sar rcx, 3
mov rax, qword [rbx + 0x18]
lea rcx, [rax + rcx*8]
mov qword [rbx + 0x20], rcx
jmp 0x180030ec9
test rcx, rcx
jne 0x180030e05
xor edx, edx
jmp 0x180030e10
mov rdx, qword [rbx + 0x28]
sub rdx, rcx
sar rdx, 3
cmp rax, rdx
ja 0x180030e64
lea rbp, [r8 + r9*8]
mov rdx, rbp
sub rdx, r8
sar rdx, 3
test rdx, rdx
jle 0x180030e34
shl rdx, 3
mov r9, rdx
call fcn.1800d19d0
mov rcx, qword [rbx + 0x20]
mov rax, qword [rdi + 0x20]
sub rax, rbp
sar rax, 3
mov rdx, rax
shl rdx, 3
lea rsi, [rdx + rcx]
test rax, rax
je 0x180030e5e
mov r9, rdx
mov r8, rbp
call fcn.1800d19d0
mov qword [rbx + 0x20], rsi
jmp 0x180030ec9
test rcx, rcx
je 0x180030e6e
call fcn.1800d1290
mov rdx, qword [rdi + 0x20]
sub rdx, qword [rdi + 0x18]
sar rdx, 3
and qword [rbx + 0x18], 0
and qword [rbx + 0x20], 0
and qword [rbx + 0x28], 0
test rdx, rdx
je 0x180030ec9
mov rcx, rbx
call fcn.180001fb0
test al, al
je 0x180030ec9
mov rcx, qword [rbx + 0x18]
mov rax, qword [rdi + 0x20]
mov r8, qword [rdi + 0x18]
sub rax, r8
sar rax, 3
mov rdx, rax
shl rdx, 3
lea rsi, [rdx + rcx]
test rax, rax
je 0x180030ec5
mov r9, rdx
call fcn.1800d19d0
mov qword [rbx + 0x20], rsi
lea rax, [r13 + 0x78]
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
mov r9, r13
lea r8, [0x180030bec]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [r13 + 0x40], rax
mov rcx, qword [r12]
add rcx, 0xfffffffffffffff4
lea rax, [0x18015f758]
cmp rcx, rax
je 0x180030f1e
or eax, 0xffffffff
lock xadd dword [rcx], eax
dec eax
test eax, eax
jg 0x180030f1e
mov rcx, qword [r12]
sub rcx, 0xc
call fcn.1800d1434
nop
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x180030f2c
call fcn.1800d1290
and qword [rdi + 0x18], 0
and qword [rdi + 0x20], 0
and qword [rdi + 0x28], 0
mov rcx, qword [rdi]
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop r13
pop r12
pop rdi
pop rsi
pop rbp
jmp fcn.1800d1290
Function at 0x180033630
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_CreateEventW]
lea r8, [0x1800337bc]
mov r9, rbx
mov qword [rbx + 0x18], rax
lea rax, [rbx + 0x38]
xor edx, edx
mov qword [rsp + 0x28], rax
and dword [rsp + 0x20], 0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov qword [rbx + 0x30], rax
add rsp, 0x30
pop rbx
ret