joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180102940
Capabilities:
Capture webcam image

Disassembly:
push rdi
sub rsp, 0x30
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x48], rbx
mov rbx, rcx
cmp byte [rcx + 0x314], 0
jne 0x1801029ea
mov eax, dword [rcx + 0x310]
test eax, eax
jne 0x180102976
cmp byte [rcx + 0x315], al
jne 0x180102999
mov rcx, qword [rcx + 0x300]
sub rcx, qword [rbx + 0x2f8]
sar rcx, 5
dec rcx
cmp rax, rcx
jne 0x1801029ea
cmp byte [rbx + 0x315], 0
jne 0x1801029ea
xor r9d, r9d
mov edx, VarUI4FromDisp
mov r8d, 0x9c49
mov rcx, qword [rbx + 0x88]
call qword [sym.imp.USER32.dll_PostMessageW]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x180102ad6
mov rcx, qword [rcx + 0x300]
test rcx, rcx
je 0x180102ad6
mov rax, qword [rcx]
mov edx, 0x5dd
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [rax + 0x108]
mov rcx, qword [rbx + 0x28]
test rcx, rcx
je 0x180102a68
cmp qword [rbx + 0x18], 0
je 0x180102a68
mov rax, qword [rcx]
call qword [rax + 0x50]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x180102a16
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx]
nop
test rdi, rdi
je 0x180102a5a
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x60]
cmp eax, 8
jne 0x180102a4e
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
and eax, 0x80000007
jge 0x180102a4e
dec eax
or eax, 0xfffffff8
inc eax
mov edx, eax
mov rcx, qword [rbx + 0x18]
call fcn.180123d00
nop
test rdi, rdi
je 0x180102a68
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 8]
mov rcx, rbx
call fcn.180102ba0
xor r9d, r9d
test al, al
jne 0x180102a9a
mov edx, 0x50007
mov r8d, 0x12c
mov rcx, qword [rbx + 0x88]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.USER32.dll_SetTimer]
mov rcx, qword [rbx + 0x18]
xor r8d, r8d
mov edx, 0x43b
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_SendMessageW]
xor r9d, r9d
xor r8d, r8d
mov rcx, qword [rbx + 0x88]
cmp byte [rbx + 0x315], r8b
mov edx, 0x419
jne 0x180102ad0
mov edx, 0x41a
call qword [sym.imp.USER32.dll_SendMessageW]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x18010f4f0
Capabilities:
Log keystrokes

Disassembly:
mov rcx, qword [rcx + 0x80]
jmp fcn.180372bb0

Function at 0x180112220
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x10], 0
mov rbx, rcx
je 0x1801122ae
cmp qword [rcx + 0xb8], 0
jne 0x18011226e
mov rcx, qword [rcx + 0x80]
xor r9d, r9d
mov edx, 0x50018
mov r8d, 0xc8
call qword [sym.imp.USER32.dll_SetTimer]
mov qword [rbx + 0xb8], rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc0], eax
add rsp, 0x20
pop rbx
ret
xor eax, eax
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x30], rax
call qword [sym.imp.USER32.dll_GetCursorPos]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
mov rcx, qword [rcx + 8]
call qword [sym.imp.USER32.dll_ScreenToClient]
mov rcx, qword [rbx + 0x10]
lea rdx, [rsp + 0x30]
call fcn.180127ee0
test al, al
jne 0x1801122ba
cmp dword [rbx + 0xc0], 0
jne 0x1801122ba
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0xc0], eax
add rsp, 0x20
pop rbx
ret
Function at 0x180118870
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 [0x1804e0010]
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 0x1801189b9
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 0x1801189b9
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 0x18011893a
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 0x180118946
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.180023950
mov rcx, rax
mov rdx, rsi
call fcn.1800ba160
cmp dword [rdi + 0x29c], 0
sete bl
call fcn.180023950
mov rdx, qword [rdi + 0xe0]
mov rcx, rax
movzx r8d, bl
call fcn.1800b8430
call fcn.180023950
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.1800b88f0
jmp 0x1801189bb
xor eax, eax
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x80
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x180119850
Capabilities:
Hide graphical window

Disassembly:
push rbp
sub rsp, 0x70
mov rax, qword [0x1804e0010]
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 0x1801198ef
mov qword [rsp + 0x88], rsi
lea r9, [rbp + 0xa60]
mov qword [rsp + 0x90], rdi
lea r8, [0x1804e6210]
mov rdi, qword [rbp + 8]
call fcn.18001a650
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.18001a4c0
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 0x18011991b
xor r9d, r9d
mov edx, 0x5000d
call qword [sym.imp.USER32.dll_SetTimer]
mov al, 1
jmp 0x18011992b
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.180372e60
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.180393f50
add rsp, 0x70
pop rbp
ret
Function at 0x18011cd70
Capabilities:
Hide graphical window

Disassembly:
test rdx, rdx
je 0x18011ce1e
push rbx
sub rsp, 0x40
mov rax, qword [rdx]
mov rbx, rcx
mov rcx, rdx
call qword [rax + 0x10]
comisd xmm0, xmmword [0x1803f6dd0]
mov rcx, qword [rbx - 0xd0]
ja 0x18011cdcc
cmp byte [0x1804e6508], 0
je 0x18011cdb2
xor edx, edx
add rsp, 0x40
pop rbx
jmp qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x1804f2f0c], 0
mov eax, ILFree
mov edx, 0x57
cmovne eax, edx
mov dword [rsp + 0x30], eax
jmp 0x18011ce01
cmp byte [0x1804e6508], 0
je 0x18011cdf8
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x1804e6508], 0
call fcn.180372370
mov byte [0x1804f2f0c], 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 0x18011cf20
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 [0x1804e6508], 0
mov rcx, qword [rbx + 8]
je 0x18011cf64
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x1804e6508], 0
call fcn.180372370
mov byte [0x1804f2f0c], al
jmp 0x18011cf84
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 0x18011cfaf
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 0x18011cfc0
Capabilities:
Hide graphical window

Disassembly:
sub rsp, 0x48
cmp byte [0x1804e6508], 0
je 0x18011d004
mov rcx, qword [rcx + 8]
test dl, dl
je 0x18011cff7
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov byte [0x1804e6508], 0
call fcn.180372370
mov byte [0x1804f2f0c], al
add rsp, 0x48
ret
xor edx, edx
add rsp, 0x48
jmp qword [sym.imp.USER32.dll_ShowWindow]
cmp byte [0x1804f2f0c], 0
je 0x18011d014
mov eax, 0x57
jmp 0x18011d022
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 0x18015db00
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x1804e0010]
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 0x18015db7c
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 0x18015db60
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180005cd0
mov al, 1
jmp 0x18015db7e
xor al, al
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x240
pop rbx
ret

Function at 0x18015dee0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x450
mov rax, qword [0x1804e0010]
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 0x18015df15
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 0x18015df42
xor al, al
jmp 0x18015df79
cmp eax, 0x208
jae 0x18015df3e
mov word [rsp + 0x430], di
lea rax, [rsp + 0x20]
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rax + r8*2], di
jne 0x18015df60
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.180005cd0
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x468]
add rsp, 0x450
pop rdi
ret
Function at 0x18015f870
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 0x18015f895
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], 0
mov word [rbx + 8], 0
cmp qword [rdi + 0x10], 0
je 0x18015f8ae
cmp qword [rdi + 0x18], 8
jb 0x18015f8b0
mov rdi, qword [rdi]
jmp 0x18015f8b0
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 0x18015f8d6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015f8d6
mov byte [rbx + 9], 1
cmp qword [rbx], 0
mov rbx, qword [rsp + 0x30]
setne al
add rsp, 0x20
pop rdi
ret

Function at 0x18015f8f0
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 [0x1804e0010]
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 0x18015f92e
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.18017d950
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rcx, [rbx + 0x10]
jne 0x18015f954
mov rcx, rbp
cmp qword [rsi + 0x10], 0
je 0x18015f967
cmp qword [rsi + 0x18], 8
jb 0x18015f96a
mov rsi, qword [rsi]
jmp 0x18015f96a
mov rsi, rbp
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
je 0x18015f98e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015f98e
mov byte [rdi + 9], 1
cmp qword [rdi], 0
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18015f9b5
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 0x18015f9c8
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], rbp
mov edx, 0x58
mov rcx, rbx
call fcn.180393fb0
mov qword [rsp + 0x28], rbp
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18015fa00
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 [0x1804e0010]
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 0x18015fa45
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.18017da70
nop
mov rbx, qword [rsp + 0x28]
cmp qword [rbx], 0
lea rbp, [rbx + 0x10]
jne 0x18015fa6c
mov rbp, r14
cmp qword [rsi + 0x10], 0
je 0x18015fa82
mov r8, rsi
cmp qword [rsi + 0x18], 8
jb 0x18015fa85
mov r8, qword [rsi]
jmp 0x18015fa85
mov r8, r14
xor edx, edx
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [rdi], rax
test rax, rax
jne 0x18015fad3
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18015fad3
lea ecx, [rax + 5]
call qword [sym.imp.KERNEL32.dll_Sleep]
cmp qword [rsi + 0x10], 0
je 0x18015fabf
cmp qword [rsi + 0x18], 8
jb 0x18015fac2
mov rsi, qword [rsi]
jmp 0x18015fac2
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 0x18015fafa
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x18015faec
mov byte [rdi + 9], 1
mov rcx, qword [rdi]
call fcn.18017c9e0
mov rax, qword [rdi]
test rax, rax
setne sil
mov rdi, qword [rbx]
test rdi, rdi
je 0x18015fb1d
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 0x18015fb30
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx + 8], r14
mov edx, 0x58
mov rcx, rbx
call fcn.180393fb0
mov qword [rsp + 0x28], r14
movzx eax, sil
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.180393f50
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x180163610
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1804e0010]
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 0x180163697
cmp dword [rsp + 0x44], 6
jb 0x180163697
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.180163450
test al, al
je 0x180163697
cmp word [rbx], 0
jne 0x180163701
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.180163450
test al, al
je 0x1801636cc
cmp word [rbx], 0
jne 0x180163701
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.180163450
test al, al
je 0x180163705
cmp word [rbx], 0
je 0x180163705
mov al, 1
jmp 0x180163707
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x170
pop rbx
ret
Function at 0x180165620
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
sub rsp, 0x68
mov rax, qword [0x1804e0010]
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.180393f50
add rsp, 0x68
ret

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

Disassembly:
push rbx
sub rsp, 0x170
mov rax, qword [0x1804e0010]
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 0x1801657d2
cmp dword [rbx + 4], 6
mov qword [rsp + 0x188], rdi
ja 0x1801656d4
jne 0x180165775
cmp dword [rbx + 8], 2
jb 0x180165775
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
je 0x180165775
mov edx, 1
mov rcx, rax
lea r8d, [rdx + 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
test rax, rax
je 0x180165775
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x180165775
movups xmm0, xmmword [0x1803db760]
mov rcx, rax
movups xmm1, xmmword [0x1803db770]
movups xmmword [rsp + 0x140], xmm0
movups xmmword [rsp + 0x150], xmm1
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
test rax, rax
je 0x180165775
lea rcx, [rax + 6]
lea rdx, [rsp + 0x140]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x180165775
cmp word [rdi + 2], ax
jbe 0x180165775
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 0x1801657c6
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 0x1801657c6
mov eax, dword [rsp + 0x2c]
mov dword [rbx + 0xc], eax
mov rdi, qword [rsp + 0x188]
mov al, 1
jmp 0x1801657d4
xor al, al
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.180393f50
add rsp, 0x170
pop rbx
ret
Function at 0x18016a290
Capabilities:
Create thread
Resume thread

Disassembly:
push rdi
sub rsp, 0x50
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x68], rbx
mov rax, qword [0x1804e0010]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rbx, rcx
mov rdi, qword [rcx + 0x10]
test rdi, rdi
jne 0x18016a2c6
xor al, al
jmp 0x18016a37c
mov qword [rsp + 0x38], 0
add rdi, 0x38
mov qword [rsp + 0x38], rdi
je 0x18016a2e9
mov rcx, qword [rdi]
test rcx, rcx
je 0x18016a2e9
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rax, qword [rbx + 0x10]
cmp qword [rax + 8], 0
je 0x18016a35b
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, [0x180169f00]
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 0x18016a394
mov eax, 0xffffffff
lock xadd dword [rbx + 8], eax
sub eax, 1
jne 0x18016a352
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rbx + 0x10]
call fcn.18016a0b0
xor bl, bl
test rdi, rdi
je 0x18016a379
mov rcx, qword [rdi]
test rcx, rcx
je 0x18016a370
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.180393f50
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 0x18016a3b2
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 0x18016a33a
mov bl, 1
jmp 0x18016a35d

Function at 0x18016a620
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x18016a670
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rbx
je 0x18016a670
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 0x18016a661
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