joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401be0
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x38
call fcn.004017f0
test al, al
je 0x401c59
xor r9d, r9d
mov qword [rsp + 0x30], rbx
lea rbx, [0x0042f960]
lea edx, [r9 + 0x23]
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jns 0x401c28
lea r8, str.C:Documents_and_SettingsAll_UsersApplication_Data
mov edx, 0x104
mov rcx, rbx
call fcn.004041f4
call fcn.004019a0
mov rbx, qword [rsp + 0x30]
test al, al
jne 0x401c60
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, str.Error
lea rdx, str.Main_executable_not_found___VersionsBaseSC2_x64.exe__._Please_put_this_loader_into_the_main_directory_of_the_game.
mov rcx, rax
mov r9d, 0x10
call qword [sym.imp.USER32.dll_MessageBoxA]
xor al, al
add rsp, 0x38
ret
mov al, 1
add rsp, 0x38
ret

Function at 0x4049a3
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x004180a8]
jne 0x40308a
rol rcx, 0x10
test cx, 0xffff
jne 0x403086
repz ret
ror rcx, 0x10
jmp 0x4048fc
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x0042e220]
call qword [sym.imp.KERNEL32.DLL_RtlCaptureContext]
mov rax, qword [0x0042e318]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.DLL_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x404981
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x0042e220]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.DLL_RtlVirtualUnwind
jmp 0x4049a3
mov rax, qword [rsp + 0x88]
mov qword [0x0042e318], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x0042e2b8], rax
mov rax, qword [0x0042e318]
mov qword [0x0042e190], rax
mov rax, qword [rsp + 0x90]
mov qword [0x0042e2a0], rax
mov dword [0x0042e180], 0xc0000409
mov dword [0x0042e184], 1
mov rax, qword [0x004180a8]
mov qword [rsp + 0x68], rax
mov rax, qword [0x004180b0]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.DLL_IsDebuggerPresent]
mov dword [0x0042e218], eax
mov ecx, 1
call fcn.0040c368
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetUnhandledExceptionFilter]
lea rcx, [0x00412480]
call qword [sym.imp.KERNEL32.DLL_UnhandledExceptionFilter]
cmp dword [0x0042e218], 0
jne 0x404a2a
mov ecx, 1
call fcn.0040c368
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_TerminateProcess]
add rsp, 0x88
ret
Function at 0x407750
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
test rcx, rcx
jne 0x40777a
call fcn.00404e58
and dword [rax], 0
call fcn.00404e38
mov ebx, 0x16
mov dword [rax], ebx
call fcn.00404dd0
mov eax, ebx
jmp 0x4077ca
test edx, 0xfffffff9
jne 0x40775d
call qword [sym.imp.KERNEL32.DLL_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4077a3
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, eax
call fcn.00404e78
call fcn.00404e38
mov eax, dword [rax]
jmp 0x4077ca
test al, 0x10
jne 0x4077c8
test al, 1
je 0x4077c8
test bl, 2
je 0x4077c8
call fcn.00404e58
mov dword [rax], 5
call fcn.00404e38
mov dword [rax], 0xd
jmp 0x40779a
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x40b4b0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.0040b320
Function at 0x40f298
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x004180a8]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.00407404
xor ebx, ebx
cmp qword [0x0042f1f8], rbx
mov rdi, rax
jne 0x40f3ab
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.DLL_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x40f482
lea rdx, [0x00414770]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
test rax, rax
je 0x40f482
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x0042f1f8], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x0042f200], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x0042f208], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
mov r11, rax
mov qword [0x0042f218], rax
test rax, rax
je 0x40f3a2
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_EncodePointer]
mov qword [0x0042f210], rax
jmp 0x40f3b2
mov rax, qword [0x0042f210]
jmp 0x40f3b9
mov rax, qword [0x0042f210]
mov r11, qword [0x0042f218]
cmp rax, rdi
je 0x40f420
cmp r11, rdi
je 0x40f420
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
mov rcx, qword [0x0042f218]
mov rsi, rax
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x40f420
test rax, rax
je 0x40f420
call rsi
test rax, rax
je 0x40f41a
lea rcx, [rsp + 0x30]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x40f41a
test byte [rsp + 0x40], 1
jne 0x40f420
bts ebp, 0x15
jmp 0x40f460
mov rcx, qword [0x0042f200]
cmp rcx, rdi
je 0x40f460
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
test rax, rax
je 0x40f460
call rax
mov rbx, rax
test rax, rax
je 0x40f460
mov rcx, qword [0x0042f208]
cmp rcx, rdi
je 0x40f460
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
test rax, rax
je 0x40f460
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x0042f1f8]
call qword [sym.imp.KERNEL32.DLL_DecodePointer]
test rax, rax
je 0x40f482
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x40f484
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.00403070
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1417b1058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1417b11df
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 0x1417b1089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417b106f
add dl, dl
jne 0x1417b1096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417b10f6
xor eax, eax
add dl, dl
jne 0x1417b10a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1417b11ad
add dl, dl
jne 0x1417b10b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417b10c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417b10d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417b10dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1417b10ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1417b107e
mov eax, 1
add dl, dl
jne 0x1417b1106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1417b1113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417b10fb
sub eax, ebx
mov ebx, 1
jne 0x1417b114c
mov ecx, 1
add dl, dl
jne 0x1417b112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417b113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417b1123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417b107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1417b1168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1417b1175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1417b115d
cmp eax, 0x7d00
jae 0x1417b119b
cmp eax, 0x500
jb 0x1417b1196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417b107e
cmp eax, 0x7f
ja 0x1417b119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1417b107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1417b11d2
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 0x1417b107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180003e20
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x180003e42
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x180003ebc
mov rdi, r14
mov rcx, rbx
call fcn.180005370
test rax, rax
jle 0x180003e94
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.180048440
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x180003eac
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x180003eb4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x180003e56
sub r14, rdi
jmp 0x180003f9f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x180003ed3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x180003ed5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x180003f07
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.180048440
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x180003f9c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x180003f42
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
cmp rbp, 0xfff
jbe 0x180003f7d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.18004e2d4
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x180003f9c
cmp rbp, rax
ja 0x180003f50
test rbp, rbp
je 0x180003f9c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.18004e2d4
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x180013660
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x1a0
mov rax, qword [0x180090080]
xor rax, rsp
mov qword [rsp + 0x190], rax
xorps xmm0, xmm0
mov rbx, rdx
mov rdi, rcx
xor edx, edx
lea rcx, [rsp + 0x80]
mov r8d, 0x108
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
call fcn.180048b00
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
test rbx, rbx
je 0x18001374e
mov rax, qword [rax + 0x70]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x20], rdx
lea r8, [rsp + 0x40]
mov r9d, 0x40
mov rdx, rbx
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x18001374e
mov eax, 0x5a4d
cmp word [rsp + 0x40], ax
jne 0x18001374e
movsxd rdx, dword [rsp + 0x7c]
mov rax, qword [rdi + 8]
mov qword [rsp + 0x30], 0
add rdx, rbx
je 0x18001374e
mov rax, qword [rax + 0x70]
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], r8
mov r9d, 0x108
lea r8, [rsp + 0x80]
mov rcx, qword [rax + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x18]
test eax, eax
jne 0x18001374e
cmp dword [rsp + 0x80], 0x4550
sete al
jmp 0x180013750
xor al, al
mov rcx, qword [rsp + 0x190]
xor rcx, rsp
call fcn.180046170
mov rbx, qword [rsp + 0x1c0]
add rsp, 0x1a0
pop rdi
ret
Function at 0x180013c00
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0xb0
mov rax, qword [0x180090080]
xor rax, rsp
mov qword [rsp + 0xa8], rax
mov rbp, rcx
movsxd r14, r8d
lea rcx, [rsp + 0x60]
call fcn.180015240
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.180015a10
xor ebx, ebx
mov dword [rsp + 0xa0], r14d
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], 7
mov word [rax], bx
mov rdx, qword [rsp + 0x58]
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x80], xmm0
movups xmmword [rsp + 0x20], xmm1
movups xmmword [rsp + 0x90], xmm1
cmp rdx, 8
jb 0x180013cc1
mov rcx, qword [rsp + 0x40]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180013cb2
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180013de0
call fcn.180046198
movups xmm1, xmmword [rsp + 0x20]
movups xmm0, xmmword [rsp + 0x30]
mov qword [rsp + 0xe0], rsi
lea rdx, [rsp + 0x80]
mov qword [rsp + 0xe8], rdi
movq rax, xmm1
movq rdi, xmm0
movabs rcx, 0xcbf29ce484222325
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rsi, xmm0
lea r8, [rax + rax]
cmp rsi, 8
cmovae rdx, rdi
test r8, r8
je 0x180013d33
movabs r9, 0x100000001b3
nop word [rax + rax]
movzx eax, byte [rbx + rdx]
inc rbx
xor rcx, rax
imul rcx, r9
cmp rbx, r8
jb 0x180013d20
mov r9, r14
lea r8, [rsp + 0x80]
xor r9, rcx
lea rdx, [rsp + 0x30]
lea rcx, [rbp + 0x18]
call fcn.180014f70
cmp qword [rax + 8], 0
je 0x180013d77
lea rdx, [rsp + 0x80]
lea rcx, [rbp + 0x18]
call fcn.1800141e0
mov rsi, qword [rsp + 0x98]
mov rdi, qword [rsp + 0x80]
cmp rsi, 8
jb 0x180013dae
lea rdx, [rsi*2 + 2]
mov rax, rdi
cmp rdx, 0x1000
jb 0x180013da6
mov rdi, qword [rdi - 8]
add rdx, 0x27
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180013dda
mov rcx, rdi
call fcn.180046198
mov rsi, qword [rsp + 0xe0]
mov rdi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0xa8]
xor rcx, rsp
call fcn.180046170
add rsp, 0xb0
pop r14
pop rbp
pop rbx
ret
call fcn.18004eae4
int3
call fcn.18004eae4
int3
Function at 0x1800141e0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
cmp qword [rdx + 0x18], 8
mov r8, rdx
mov r10, qword [rdx + 0x10]
mov rdi, rcx
mov r9, rdx
jb 0x180014201
mov r9, qword [rdx]
xor ecx, ecx
movabs rdx, 0xcbf29ce484222325
add r10, r10
je 0x180014234
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rcx + r9]
inc rcx
xor rdx, rax
imul rdx, r11
cmp rcx, r10
jb 0x180014220
movsxd r9, dword [r8 + 0x20]
mov rcx, rdi
xor r9, rdx
lea rdx, [rsp + 0x20]
call fcn.180014f70
mov rbx, qword [rax + 8]
test rbx, rbx
je 0x1800142cc
mov rdx, qword [rdi + 0x30]
and rdx, r9
shl rdx, 4
add rdx, qword [rdi + 0x18]
mov rax, qword [rdx]
cmp qword [rdx + 8], rbx
jne 0x180014285
cmp rax, rbx
jne 0x18001427b
mov rax, qword [rdi + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x180014290
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
jmp 0x180014290
cmp rax, rbx
jne 0x180014290
mov rax, qword [rbx]
mov qword [rdx], rax
mov rdx, qword [rbx]
lea rcx, [rbx + 0x10]
dec qword [rdi + 0x10]
mov rax, qword [rbx + 8]
mov qword [rax], rdx
mov rax, qword [rbx + 8]
mov qword [rdx + 8], rax
call fcn.180015050
mov edx, 0x48
mov rcx, rbx
call fcn.180046198
mov eax, 1
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x50]
xor eax, eax
add rsp, 0x30
pop rdi
ret
Function at 0x1800175c0
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rbx, rcx
xor esi, esi
mov rcx, qword [rcx + 0x10]
movzx edi, dl
test rcx, rcx
je 0x1800175ec
jle 0x1800175e8
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [rbx + 0x10], rsi
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x180017601
jle 0x1800175fd
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], rsi
mov rcx, qword [rbx]
test rcx, rcx
je 0x180017614
jle 0x180017611
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x180017629
jle 0x180017625
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rbx + 0x48], rsi
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test dil, dil
jne 0x180017695
cmp qword [rbx + 0x110], 8
lea rcx, [rbx + 0xf8]
jb 0x18001764e
mov rcx, qword [rbx + 0xf8]
mov qword [rbx + 0x108], rsi
mov word [rcx], si
cmp byte [rbx + 0x1c], sil
je 0x18001767a
add rbx, 0x118
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x180017672
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x180017681
add rbx, 0x118
cmp qword [rbx + 0x18], 8
mov rax, rbx
jb 0x18001768e
mov rax, qword [rbx]
mov qword [rbx + 0x10], rsi
mov word [rax], si
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180018580
Capabilities:
Get common file path
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x3a0]
sub rsp, 0x4a0
mov rax, qword [0x180090080]
xor rax, rsp
mov qword [rbp + 0x390], rax
mov rdi, rdx
mov rsi, rcx
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp - 0x70]
call fcn.180048b00
xor ebx, ebx
mov dword [rsp + 0x78], ebx
mov qword [rsp + 0x40], 0x38
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
mov qword [rsp + 0x70], rbx
lea r8, [rsi + 0x50]
lea rdx, [rsp + 0x78]
mov rcx, rsi
call fcn.180018800
mov r12, rax
test rax, rax
je 0x1800187b9
test rdi, rdi
jne 0x18001874a
xor edx, edx
mov r8d, 0x200
lea rcx, [rbp + 0x190]
call fcn.180048b00
lea rdx, [rbp + 0x190]
mov ecx, 0x100
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
lea r9, [rbp - 0x70]
xor r8d, r8d
lea rdx, str.ImageManifest
lea rcx, [rbp + 0x190]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x180018664
mov eax, 0xc0150002
jmp 0x1800187bb
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x120116
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
test rax, rax
setg r14b
test rax, rax
jle 0x180018739
mov dword [rbp - 0x80], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x80]
mov r8d, dword [rsp + 0x78]
mov rdx, r12
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test r14b, r14b
je 0x1800186c8
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], rbx
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rcx, [rsi + 0x118]
lea rax, [rbp - 0x70]
mov rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x1800186f0
mov rax, qword [rcx + 0x18]
cmp rdx, rax
ja 0x18001872d
mov r14, rcx
cmp rax, 8
jb 0x18001870f
mov r14, qword [rcx]
mov qword [rcx + 0x10], rdx
lea rdi, [rdx + rdx]
mov r8, rdi
lea rdx, [rbp - 0x70]
mov rcx, r14
call fcn.180048440
mov word [rdi + r14], bx
jmp 0x180018737
lea r9, [rbp - 0x70]
call fcn.180005c00
nop
jmp 0x180018773
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1800187bb
mov dword [rsp + 0x44], 8
movzx eax, word [rsi + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x48], rdi
lea rdx, [rsi + 0xf8]
lea rcx, [rsi + 0x118]
call fcn.18000e6f0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateActCtxW]
mov rdi, rax
mov rcx, qword [rsi + 0x48]
cmp rax, rcx
je 0x18001879c
test rcx, rcx
jle 0x180018795
call qword [sym.imp.KERNEL32.dll_ReleaseActCtx]
mov qword [rsi + 0x48], rdi
mov rcx, rdi
test rcx, rcx
jg 0x1800187b9
mov rax, qword gs:[0x30]
cmp dword [rax + 0x1250], 0xc0000022
jne 0x1800187e6
mov dword [rsi + 0x50], ebx
xor eax, eax
mov rcx, qword [rbp + 0x390]
xor rcx, rsp
call fcn.180046170
lea r11, [rsp + 0x4a0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
mov rax, qword gs:[0x30]
mov eax, dword [rax + 0x1250]
jmp 0x1800187bb
Function at 0x180020310
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x70
mov rax, qword [0x180090080]
xor rax, rsp
mov qword [rsp + 0x60], rax
xor esi, esi
lea r9, [rsp + 0x50]
mov rbx, rcx
mov qword [rsp + 0x50], rsi
add rcx, 0x78
lea edx, [rsi + 0x18]
lea r8d, [rsi + 8]
call fcn.18001d830
cmp qword [rsp + 0x50], rsi
je 0x18002040d
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, qword [rbx]
lea r9, [rsp + 0x58]
mov rdx, qword [rsp + 0x50]
mov r8, rax
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], esi
mov rcx, qword [rcx]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x18002039c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbx + 0x78]
mov qword [rsp + 0x40], rsi
test rdx, rdx
je 0x1800203d3
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x40]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rdx, qword [rbx + 0x88]
mov qword [rsp + 0x48], rsi
test rdx, rdx
je 0x18002040d
mov rax, qword [rdx + 0x18]
lea r8, [rsp + 0x48]
mov rdx, qword [rdx]
mov r9d, 8
add rdx, 0x18
mov qword [rsp + 0x20], rsi
mov rcx, qword [rax + 0x70]
mov rcx, qword [rcx + 0x10]
mov rax, qword [rcx]
call qword [rax + 0x20]
mov rcx, qword [rbx + 0x40]
test rcx, rcx
je 0x180020420
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x40], rsi
mov rcx, qword [rbx + 0x20]
test rcx, rcx
je 0x1800204c4
call fcn.18001da40
test al, al
je 0x1800204c4
mov rcx, qword [rbx + 0x20]
xor edx, edx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [rbx + 0x20]
mov edx, 0xffffffff
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rdi, qword [rbx + 0x20]
mov rcx, qword [rdi + 0x10]
test rcx, rcx
je 0x180020476
jle 0x180020472
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x10], rsi
mov dword [rdi + 8], esi
mov rdi, qword [rbx + 0x28]
mov qword [rbx + 0x20], rsi
mov qword [rbx + 0x28], rsi
test rdi, rdi
je 0x1800204b6
mov esi, 0xffffffff
mov eax, esi
lock xadd dword [rdi + 8], eax
cmp eax, 1
jne 0x1800204b6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax]
lock xadd dword [rdi + 0xc], esi
cmp esi, 1
jne 0x1800204b6
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, qword [rbx + 0x48]
test rcx, rcx
je 0x1800204c4
call fcn.18001d700
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.180046170
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret