joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801124e0
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rbx, qword [rbp + 0x50]
mov r14, rdx
mov edx, dword [rbp + 0x58]
mov rsi, r8
mov rdi, rcx
test rbx, rbx
je 0x180112629
mov rcx, rbx
call qword [sym.imp.2345MiniUI.dll_public:_class_RC::RCMiniUIView____ptr64___cdecl_RC::RCMiniUIDialogView::GetViewByID_int_const___ptr64]
test rax, rax
je 0x180112629
lea rdx, [rbp - 0x38]
mov qword [rsp + 0xc8], r15
mov rcx, rax
call qword [sym.imp.2345MiniUI.dll_public:_struct_tagRECT___cdecl_RC::RCMiniUIView::GetScreenBounds_void____ptr64]
xor r15d, r15d
lea rcx, [rbp - 0x40]
movups xmm0, xmmword [rax]
mov qword [rbp - 0x40], r15
movups xmmword [rbp - 0x38], xmm0
call qword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
lea rdx, [rbp - 0x20]
xor r8d, r8d
mov qword [rbp - 0x20], rax
mov rcx, rbx
mov qword [rbp - 0x18], rax
call qword [sym.imp.2345MiniUI.dll_public:_void___cdecl_RC::RCMiniUIWindow::GetBounds_struct_tagRECT____ptr64__bool____ptr64]
test rdi, rdi
lea rax, [rdi + 0x48]
cmove rax, r15
mov r15, qword [rsp + 0xc8]
cmp rbx, rax
jne 0x1801125aa
lea rcx, [rbp - 0x40]
call qword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [rbp - 0x38]
mov ecx, dword [rbp - 0x2c]
mov dword [rbp - 0x40], eax
add eax, 5
mov dword [rbp - 0x20], eax
mov dword [rbp - 0x14], ecx
mov dword [rbp - 0x3c], ecx
jmp 0x1801125b6
mov eax, dword [rbp - 0x38]
mov dword [rbp - 0x40], eax
mov eax, dword [rbp - 0x34]
mov dword [rbp - 0x3c], eax
xor eax, eax
mov dword [rbp - 0x38], 0x14
lea rdx, [rbp - 0x20]
mov qword [rbp - 0x34], rax
lea rcx, [rbp - 0x34]
mov qword [rbp - 0x2c], rax
call qword [sym.imp.USER32.dll_CopyRect]
call fcn.180021ef0
mov rcx, rax
mov rdx, rsi
call fcn.1800b7160
cmp dword [rdi + 0x29c], 0
sete bl
call fcn.180021ef0
mov rdx, qword [rdi + 0xe0]
mov rcx, rax
movzx r8d, bl
call fcn.1800b5430
call fcn.180021ef0
mov r9d, dword [rbp - 0x40]
mov rcx, rax
mov eax, dword [rbp - 0x3c]
mov rdx, rsi
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], eax
call fcn.1800b58f0
jmp 0x18011262b
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x1801134c0
Capabilities:
Hide graphical window

Disassembly:
push rbp
sub rsp, 0x70
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbp, rcx
mov qword [rsp + 0x98], r14
mov rcx, qword [rcx + 0xa28]
movzx r14d, dl
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x18011355f
mov qword [rsp + 0x88], rsi
lea r9, [rbp + 0xa60]
mov qword [rsp + 0x90], rdi
lea r8, [0x1804d1e90]
mov rdi, qword [rbp + 8]
call fcn.180018f90
mov word [rsp + 0x38], ax
lea rcx, [rbp + 0xa20]
mov qword [rsp + 0x30], 0
xor r9d, r9d
mov dword [rsp + 0x28], 8
xor r8d, r8d
mov rdx, rdi
mov dword [rsp + 0x20], 0x80000000
call fcn.180018e00
mov rdi, qword [rsp + 0x90]
mov rsi, qword [rsp + 0x88]
mov rcx, qword [rbp + 0xa28]
test r14b, r14b
mov r14, qword [rsp + 0x98]
mov r8d, 0x14
je 0x18011358b
xor r9d, r9d
mov edx, 0x5000d
call qword [sym.imp.USER32.dll_SetTimer]
mov al, 1
jmp 0x18011359b
xor r9d, r9d
mov edx, 0x5000f
call qword [sym.imp.USER32.dll_SetTimer]
xor al, al
mov byte [rbp + 0xa7c], al
lea rdx, [rsp + 0x50]
mov rcx, qword [rbp + 8]
xorps xmm0, xmm0
xor r8d, r8d
movdqu xmmword [rsp + 0x50], xmm0
call fcn.1802082f0
mov eax, dword [rsp + 0x5c]
mov r8d, dword [rsp + 0x54]
sub eax, r8d
mov r9d, dword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
sub r9d, edx
mov rcx, qword [rbp + 0xa28]
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_MoveWindow]
mov rcx, qword [rbp + 0xa28]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rax, qword [rbp + 8]
mov qword [rbp + 0xa70], rax
mov dword [rbp + 0xa78], 0
mov byte [rbp + 0xa68], 0xfa
mov rcx, qword [rbp + 0xa28]
call qword [sym.imp.USER32.dll_UpdateWindow]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x70
pop rbp
ret
Function at 0x180117720
Capabilities:
Hide graphical window

Disassembly:
test rdx, rdx
je 0x1801177ce
push rbx
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rcx
mov rcx, rdx
call qword [rax + 0x10]
comisd xmm0, xmmword [0x1803e71b0]
mov rcx, qword [rbx - 0xd0]
ja 0x18011777c
cmp byte [0x1804d2088], 0
je 0x180117762
xor edx, edx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x1804de68c], 0
mov eax, ILFree
mov edx, 0x57
cmovne eax, edx
mov dword [rsp + 0x30], eax
jmp 0x1801177b1
cmp byte [0x1804d2088], 0
je 0x1801177a8
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x1804d2088], 0
call fcn.1802025f0
mov byte [0x1804de68c], al
add rsp, 0x40
pop rbx
ret
mov edx, 0x57
mov dword [rsp + 0x30], edx
xor eax, eax
xor r9d, r9d
mov dword [rsp + 0x28], eax
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
add rsp, 0x40
pop rbx
ret

Function at 0x1801178d0
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x40
mov rbx, rcx
mov r8b, 1
add rcx, 0x48
mov dl, 0xff
call qword [sym.imp.2345MiniUI.dll_public:_void___cdecl_RC::RCMiniUIDialogView::SetWindowAlpha_unsigned_char__bool____ptr64]
cmp byte [0x1804d2088], 0
mov rcx, qword [rbx + 8]
je 0x180117914
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x1804d2088], 0
call fcn.1802025f0
mov byte [0x1804de68c], al
jmp 0x180117934
xor eax, eax
mov dword [rsp + 0x30], 0x57
mov dword [rsp + 0x28], eax
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], eax
xor edx, edx
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rbx + 0x148]
test rcx, rcx
je 0x18011795f
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rbx + 0x148]
movabs rcx, 0x3ff0000000000000
mov byte [rax + 0x58], 1
mov qword [rax + 0x48], rcx
add rsp, 0x40
pop rbx
ret

Function at 0x180117970
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x48
cmp byte [0x1804d2088], 0
je 0x1801179b4
mov rcx, qword [rcx + 8]
test dl, dl
je 0x1801179a7
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x1804d2088], 0
call fcn.1802025f0
mov byte [0x1804de68c], al
add rsp, 0x48
ret
xor edx, edx
add rsp, 0x48
jmp qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x1804de68c], 0
je 0x1801179c4
mov eax, 0x57
jmp 0x1801179d2
movzx eax, dl
xor eax, 1
inc eax
shl eax, 6
or eax, 0x17
mov rcx, qword [rcx + 8]
xor r9d, r9d
mov dword [rsp + 0x30], eax
xor r8d, r8d
xor eax, eax
xor edx, edx
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_SetWindowPos]
add rsp, 0x48
ret
Function at 0x180158410
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x230], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c
call sub.VCRUNTIME140.dll_memset
mov edx, 0x105
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0x103
ja 0x18015848c
xor eax, eax
mov r8, 0xffffffffffffffff
mov word [rsp + 0x22a], ax
lea rax, [rsp + 0x20]
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x180158470
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180004ea0
mov al, 1
jmp 0x18015848e
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x240
pop rbx
ret

Function at 0x1801587f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x440], rax
xor edi, edi
mov rbx, rcx
cmp qword [rcx + 0x18], 8
mov rax, rcx
mov qword [rcx + 0x10], rdi
jb 0x180158825
mov rax, qword [rcx]
xor edx, edx
mov word [rax], di
mov r8d, 0x412
lea rcx, [rsp + 0x20]
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov ecx, 0x208
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
jne 0x180158852
xor al, al
jmp 0x180158889
cmp eax, 0x208
jae 0x18015884e
mov word [rsp + 0x430], di
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x180158870
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180004ea0
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
Function at 0x18015a180
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rdi, rdx
mov rcx, qword [rcx]
test rcx, rcx
je 0x18015a1a5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov word [rbx + 8], 0
cmp qword [rdi + 0x10], 0
je 0x18015a1be
cmp qword [rdi + 0x18], 8
jb 0x18015a1c0
mov rdi, qword [rdi]
jmp 0x18015a1c0
xor edi, edi
mov r8, rdi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rbx], rax
test rax, rax
je 0x18015a1e6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015a1e6
mov byte [rbx + 9], 1
cmp qword [rbx], 0
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x18015a200
Capabilities:
Check mutex on windows

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor ebp, ebp
test rcx, rcx
je 0x18015a23e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], rbp
mov word [rdi + 8], bp
mov qword [rsp + 0x28], rbp
lea rcx, [rsp + 0x28]
call fcn.1801784d0
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rcx, [rbx + 0x10]
jne 0x18015a264
mov rcx, rbp
cmp qword [rsi + 0x10], 0
je 0x18015a277
cmp qword [rsi + 0x18], 8
jb 0x18015a27a
mov rsi, qword [rsi]
jmp 0x18015a27a
mov rsi, rbp
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
je 0x18015a29e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015a29e
mov byte [rdi + 9], 1
cmp qword [rdi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18015a2c5
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], rbp
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18015a2d8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], rbp
mov edx, 0x58
mov rcx, rbx
call fcn.180386950
mov qword [rsp + 0x28], rbp
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18015a310
Capabilities:
Check mutex on windows

Disassembly:
push rsi
push rdi
push r14
sub rsp, 0x40
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x78], rbp
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rcx]
xor r14d, r14d
test rcx, rcx
je 0x18015a355
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi], r14
mov word [rdi + 8], r14w
mov qword [rsp + 0x28], r14
lea rcx, [rsp + 0x28]
call fcn.1801785f0
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rbp, [rbx + 0x10]
jne 0x18015a37c
mov rbp, r14
cmp qword [rsi + 0x10], 0
je 0x18015a392
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x18015a395
mov r8, qword [rsi]
jmp 0x18015a395
mov r8, r14
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x18015a3e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18015a3e3
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x18015a3cf
cmp qword [rsi + 0x18], 8
jb 0x18015a3d2
mov rsi, qword [rsi]
jmp 0x18015a3d2
mov rsi, r14
mov r8, rsi
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
mov rax, qword [rdi]
test rax, rax
je 0x18015a40a
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015a3fc
mov byte [rdi + 9], 1
mov rcx, qword [rdi]
call fcn.180177560
mov rax, qword [rdi]
test rax, rax
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18015a42d
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov qword [rbx], r14
mov rcx, qword [rbx + 8]
test rcx, rcx
je 0x18015a440
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.180386950
mov qword [rsp + 0x28], r14
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x18015d940
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x44]
mov r8d, VarUI4FromDisp
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], VarUI4FromDisp
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18015d9c7
cmp dword [rsp + 0x44], 6
jb 0x18015d9c7
lea rax, [rsp + 0x34]
mov dword [rsp + 0x34], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
lea r8, str.Progid
mov rcx, 0xffffffff80000001
lea rdx, str.SoftwareMicrosoftWindowsShellAssociationsUrlAssociationshttpUserChoice
call fcn.18015d780
test al, al
je 0x18015d9c7
cmp word [rbx], 0
jne 0x18015da31
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.http_shellopencommand
mov rcx, 0xffffffff80000000
call fcn.18015d780
test al, al
je 0x18015d9fc
cmp word [rbx], 0
jne 0x18015da31
lea rax, [rsp + 0x30]
mov dword [rsp + 0x30], 0x207
mov r9, rbx
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareClasses.html
mov rcx, 0xffffffff80000001
call fcn.18015d780
test al, al
je 0x18015da35
cmp word [rbx], 0
je 0x18015da35
mov al, 1
jmp 0x18015da37
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x170
pop rbx
ret
Function at 0x18015f950
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov qword [r11 - 0x38], rax
mov qword [r11 - 0x30], rax
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x40]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x68
ret

Function at 0x18015f9a0
Capabilities:
Check os version
Extract resource via kernel32 functions

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rbx, rcx
xor edx, edx
add rcx, 4
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
mov rcx, rbx
mov dword [rbx], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x18015fb02
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x18015fa04
jne 0x18015faa5
cmp dword [rbx + 8], 2
jb 0x18015faa5
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x18015faa5
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x18015faa5
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x18015faa5
movups xmm0, xmmword [0x1803cc688]
mov rcx, rax
movups xmm1, xmmword [0x1803cc698]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x18015faa5
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x18015faa5
cmp word [rdi + 2], ax
jbe 0x18015faa5
movzx edx, word [rdi + 0x32]
movzx eax, word [rdi + 0x30]
movzx ecx, word [rdi + 0x36]
mov dword [rbx + 4], edx
mov dword [rbx + 8], eax
mov dword [rbx + 0xc], ecx
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.RtlGetVersion
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x18015faf6
xor edx, edx
lea rcx, [rsp + 0x24]
mov r8d, 0x118
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x11c
call rdi
test eax, eax
jne 0x18015faf6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x18015fb04
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.1803868f0
add rsp, 0x170
pop rbx
ret
Function at 0x1801647a0
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
jne 0x1801647d6
xor al, al
jmp 0x18016488c
mov qword [rsp + 0x38], 0
add rdi, 0x38
mov qword [rsp + 0x38], rdi
je 0x1801647f9
mov rcx, qword [rdi]
test rcx, rcx
je 0x1801647f9
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
cmp qword [rax + 8], 0
je 0x18016486b
mov eax, 1
lock xadd dword [rbx + 8], eax
mov rcx, qword [rbx + 0x10]
add rcx, 0x14
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 4
mov r9, rbx
lea r8, [0x180164410]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
mov rcx, qword [rbx + 0x10]
mov qword [rcx + 0x18], rax
mov rax, qword [rbx + 0x10]
cmp qword [rax + 0x18], 0
jne 0x1801648a4
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x180164862
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbx + 0x10]
call fcn.1801645c0
xor bl, bl
test rdi, rdi
je 0x180164889
mov rcx, qword [rdi]
test rcx, rcx
je 0x180164880
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x38], 0
movzx eax, bl
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
mov byte [rax + 0x10], 1
mov rcx, qword [rbx + 0x10]
mov rax, qword [rcx + 0x40]
test rax, rax
je 0x1801648c2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, qword [rbx + 0x10]
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x18016484a
mov bl, 1
jmp 0x18016486d

Function at 0x180164b30
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180164b80
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rbx
je 0x180164b80
xor edx, edx
mov qword [rsp + 0x38], rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
setne dil
test eax, eax
je 0x180164b71
mov edx, 0x1388
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, dil
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18016c7d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x450], rax
mov rbx, rdx
mov r14d, ecx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x30], rdx
xor esi, esi
mov qword [rdx + 0x10], rsi
mov rax, rdx
cmp qword [rdx + 0x18], 8
jb 0x18016c814
mov rax, qword [rdx]
mov word [rax], si
call fcn.18016c8f0
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x18016c839
test dil, dil
jne 0x18016c8b9
cmp r14d, 0x1a
jne 0x18016c8b9
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x18016c855
mov rax, qword [rbx]
mov word [rax], si
xor edx, edx
mov r8d, 0x410
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov r8d, 0x207
lea rdx, [rsp + 0x40]
lea rcx, str.APPDATA
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], 0
jne 0x18016c890
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.180004ea0
movzx edi, dil
mov eax, 1
cmp qword [rbx + 0x10], 0
cmovne edi, eax
movzx eax, dil
mov rcx, qword [rsp + 0x450]
xor rcx, rsp
call fcn.1803868f0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x18016cba0
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.18016c7d0
Function at 0x18016e6d0
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x70
mov qword [r11 - 0x38], 0xfffffffffffffffe
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov rax, qword [0x1804cc010]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rbx, rcx
xor ebp, ebp
mov qword [r11 - 0x20], rbp
mov rdi, qword [rcx]
add rdi, 0x40
mov qword [r11 - 0x20], rdi
je 0x18016e720
mov rcx, qword [rdi]
test rcx, rcx
je 0x18016e720
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rbx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
cmp byte [rbx + 0x2c], 0
je 0x18016e74f
mov ecx, 0xf
call qword [sym.imp.KERNEL32.dll_Sleep]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, dword [rbx + 0x28]
ja 0x18016e74f
cmp byte [rbx + 0x2c], 0
jne 0x18016e731
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x30], xmm1
mov word [rsp + 0x20], bp
mov r8d, 0x11
lea rdx, str.begin_transaction
lea rcx, [rsp + 0x20]
call fcn.180004ea0
nop
xor eax, eax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov byte [rsp + 0x54], 1
lea r8, [rsp + 0x48]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180184d40
movzx esi, al
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x18016e7c6
call fcn.1802c0c50
mov qword [rsp + 0x48], rbp
mov dword [rsp + 0x50], ebp
mov byte [rsp + 0x54], 1
mov rdx, qword [rsp + 0x38]
cmp rdx, 8
jb 0x18016e814
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18016e80f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18016e80f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180386950
movdqa xmm0, xmmword [0x1803e7600]
movdqu xmmword [rsp + 0x30], xmm0
mov word [rsp + 0x20], bp
mov byte [rbx + 0x2c], 1
test rdi, rdi
je 0x18016e843
mov rcx, qword [rdi]
test rcx, rcx
je 0x18016e83e
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rsp + 0x58], rbp
movzx eax, sil
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1803868f0
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180174120
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rcx, qword [rcx]
mov rbx, r9
mov edi, r8d
test rcx, rcx
je 0x18017416a
test rdx, rdx
je 0x18017416a
mov rcx, qword [rcx]
cmp rcx, 0xffffffffffffffff
je 0x18017416a
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18017416a
cmp edi, dword [rbx]
jne 0x18017416a
mov al, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
xor al, al
add rsp, 0x30
pop rdi
ret