joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1802a46d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x1802a47e4
push rbx
push rbp
push r12
push r15
sub rsp, 0x28
mov qword [rsp + 0x50], rsi
mov r15, r8
mov qword [rsp + 0x20], r14
sub r15, rdx
mov qword [rsp + 0x58], rdi
mov rbp, r9
mov r12, rdx
mov rbx, rcx
mov rsi, rdx
nop dword [rax]
nop dword [rax + rax]
movzx r14d, byte [r15 + rsi]
mov r8d, 1
mov ecx, dword [rbx]
lea rdx, [rsp + 0x68]
mov byte [rsp + 0x68], r14b
not ecx
test r12, r12
je 0x1802a4783
movzx eax, word [rbx + 8]
or eax, 2
mov edi, eax
xor edi, r8d
imul edi, eax
shr edi, 8
call fcn.1802313e0
not eax
lea rdx, [rsp + 0x68]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x68], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1802313e0
not eax
xor dil, r14b
mov dword [rbx + 8], eax
mov byte [rsi], dil
jmp 0x1802a47be
call fcn.1802313e0
not eax
lea rdx, [rsp + 0x68]
mov dword [rbx], eax
mov r8d, 1
movzx eax, al
add eax, dword [rbx + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [rbx + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x68], cl
mov ecx, dword [rbx + 8]
not ecx
call fcn.1802313e0
not eax
mov dword [rbx + 8], eax
inc rsi
sub rbp, 1
jne 0x1802a4710
mov r14, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
add rsp, 0x28
pop r15
pop r12
pop rbp
pop rbx
ret

Function at 0x1802a47f0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
test r9, r9
je 0x1802a48b4
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
movzx r10d, word [rcx + 8]
mov rdi, r8
mov qword [rsp + 0x40], rbx
sub rdi, rdx
mov rbp, r9
mov rsi, rdx
mov r14, rcx
mov rbx, rdx
movzx eax, byte [rdi + rbx]
test rsi, rsi
je 0x1802a4841
movzx ecx, r10w
or ecx, 2
mov edx, ecx
xor edx, 1
imul edx, ecx
shr edx, 8
xor al, dl
mov byte [rbx], al
mov ecx, dword [r14]
lea rdx, [rsp + 0x58]
not ecx
mov byte [rsp + 0x58], al
mov r8d, 1
call fcn.1802313e0
not eax
lea rdx, [rsp + 0x58]
mov dword [r14], eax
mov r8d, 1
movzx eax, al
add eax, dword [r14 + 4]
imul ecx, eax, 0x8088405
inc ecx
mov dword [r14 + 4], ecx
shr ecx, 0x18
mov byte [rsp + 0x58], cl
mov ecx, dword [r14 + 8]
not ecx
call fcn.1802313e0
mov r10d, eax
inc rbx
not r10d
mov dword [r14 + 8], r10d
sub rbp, 1
jne 0x1802a4822
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1802a4970
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rsi, r8
mov rbp, rdx
mov rbx, rcx
test r8, r8
je 0x1802a4a36
mov ecx, dword [rcx + 0x30]
mov rdi, rdx
xor r14d, r14d
nop dword [rax]
cmp ecx, 0x10
jne 0x1802a4a14
lea rdx, [rbx + 0x10]
mov r8, 0xfffffffffffffff0
mov rax, rdx
sub r8, rbx
add byte [rax], 1
jne 0x1802a49c8
inc rax
lea rcx, [r8 + rax]
cmp rcx, 8
jb 0x1802a49b6
mov rcx, qword [rbx]
lea r8, [rsp + 0x80]
mov dword [rsp + 0x48], r14d
lea rax, [rbx + 0x20]
mov qword [rsp + 0x40], r8
xor r9d, r9d
mov dword [rsp + 0x38], reloc.WS2_32.dll_recv
mov rcx, qword [rcx + 8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
lea r8d, [r9 + 0x10]
mov qword [rsp + 0x20], r14
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x1802a4a4b
mov dword [rbx + 0x30], r14d
mov ecx, r14d
movsxd rax, ecx
movzx ecx, byte [rax + rbx + 0x20]
xor byte [rdi], cl
inc rdi
inc dword [rbx + 0x30]
mov rax, rdi
mov ecx, dword [rbx + 0x30]
sub rax, rbp
cmp rax, rsi
jb 0x1802a49a0
mov al, 1
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret
xor al, al
jmp 0x1802a4a38
Function at 0x1802b5e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r15d, dword [rdx]
xor r14d, r14d
mov r12, qword [rdx + 8]
mov ebp, 1
mov r13, r9
mov rsi, r8
mov edi, ebp
test r15d, r15d
jle 0x1802b5f1c
movsxd rcx, edi
lea r8, [0x1805d68f0]
add rcx, r12
movzx edx, byte [rcx]
mov eax, edx
and eax, 0x7f
cmp eax, 0x2f
jae 0x1802b5f5c
mov r10d, dword [rsi + 4]
lea r8, [r8 + rax*4]
movzx eax, word [r8]
mov r11d, dword [rsi]
sub r10d, eax
mov eax, r11d
mov dword [rsi + 4], r10d
movzx r9d, word [r8]
shr eax, 0x10
shr edx, 7
cmp eax, r9d
jb 0x1802b5f4a
shl r9d, 0x10
sub r11d, r9d
mov dword [rsi], r11d
bt r10d, 0xf
jb 0x1802b5f46
movzx eax, word [r8]
cmp r10d, eax
jge 0x1802b5f53
movzx eax, byte [r8 + 3]
mov ebx, ebp
sub ebx, edx
xor byte [rcx], al
mov rcx, rsi
call fcn.1802b4960
add edi, edi
inc r14d
or edi, ebx
cmp r14d, r15d
jl 0x1802b5e9d
mov ecx, r15d
shl ebp, cl
sub edi, ebp
mov dword [r13], edi
xor eax, eax
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov ebx, edx
jmp 0x1802b5f10
mov dword [rsi + 4], r9d
cmp r10d, r9d
jge 0x1802b5efd
movzx eax, byte [r8 + 2]
mov ebx, edx
jmp 0x1802b5f06
mov rcx, qword [rsp + 0x50]
lea r9, str.failed_to_decode_IAIDx_code
mov edx, 3
lea r8d, [rdx - 4]
call fcn.18021cc40
jmp 0x1802b5f29

Function at 0x1802b6330
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x450
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x440], rax
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x20]
mov edx, dword [rsp + 0x460]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
je 0x1802b6389
xor al, al
jmp 0x1802b63db
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1802b63b4
cmp qword [rsp + 0x20], 0
je 0x1802b63b0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x1802b63db
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x468]
call fcn.18007d790
cmp qword [rsp + 0x20], 0
je 0x1802b63d9
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
mov al, 1
mov rcx, qword [rsp + 0x440]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x450
pop rdi
ret
Function at 0x1802b6af0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xa0
lea rax, [rsp + 0x30]
mov rdi, rax
xor eax, eax
mov ecx, reloc.WS2_32.dll_WSASetLastError
rep stosb byte [rdi], al
mov dword [rsp + 0x30], reloc.WS2_32.dll_WSASetLastError
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x34], eax
cmp qword [rsp + 0xe0], 0
je 0x1802b6b4a
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x28], rax
jmp 0x1802b6b55
call qword [sym.imp.USER32.dll_GetActiveWindow]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0xe8]
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x98], 0
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
je 0x1802b6bdc
cmp qword [rsp + 0x68], 0x20
jbe 0x1802b6bcb
mov dword [rsp + 0x20], 1
jmp 0x1802b6bd3
mov dword [rsp + 0x20], 0
movzx eax, byte [rsp + 0x20]
jmp 0x1802b6bf9
cmp qword [rsp + 0xd0], 0
je 0x1802b6bf7
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0xd0]
mov dword [rcx], eax
xor al, al
add rsp, 0xa0
pop rdi
ret
Function at 0x1802ba3d0
Capabilities:
Log keystrokes

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x1802ba3ed
jmp 0x1802ba50c
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_GetLastActivePopup]
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x1802ba41c
mov edx, 9
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.USER32.dll_ShowWindow]
mov dword [rsp + 0x40], 0
xor r9d, r9d
lea r8, [rsp + 0x40]
xor edx, edx
mov ecx, 0x2000
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
cmp dword [rsp + 0x40], 0x64
jb 0x1802ba456
mov r9d, 3
xor r8d, r8d
xor edx, edx
mov ecx, 0x2001
call qword [sym.imp.USER32.dll_SystemParametersInfoW]
call qword [sym.imp.USER32.dll_GetForegroundWindow]
mov qword [rsp + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [rsp + 0x48], eax
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [rsp + 0x44], eax
mov r8d, 1
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xffffffffffffffff
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov dword [rsp + 0x30], 3
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetWindowPos]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.USER32.dll_SetForegroundWindow]
xor r8d, r8d
mov edx, dword [rsp + 0x44]
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.USER32.dll_AttachThreadInput]
add rsp, 0x68
ret

Function at 0x1802bb710
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802bb77e
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x1802bb764
jne 0x1802bb77e
cmp dword [rsp + 0x28], 0
jbe 0x1802bb77e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x158
ret

Function at 0x1802bb7a0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1802bb7fa
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x158
ret
Function at 0x1802bb820
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], VarUI4FromDisp
mov r8d, VarUI4FromDisp
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802bb88e
mov eax, dword [rsp + 0x24]
cmp eax, 6
ja 0x1802bb874
jb 0x1802bb88e
cmp dword [rsp + 0x28], 1
jb 0x1802bb88e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x158
ret

Function at 0x1802bb8b0
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x1806c85a0], rdi
jne 0x1802bb93b
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x20a
call sub.VCRUNTIME140.dll_memset
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x104
lea rcx, [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea rax, [rsp + 0x30]
mov word [rsp + 0x236], di
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], di
jne 0x1802bb920
lea rdx, [rsp + 0x30]
lea rcx, [0x1806c8590]
call fcn.18007da60
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1802bb9e0
Capabilities:
Check os version
Get session user name

Disassembly:
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x260
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov eax, dword [0x1806d5324]
test eax, eax
jle 0x1802bba2d
inc eax
mov dword [0x1806d5324], eax
mov al, 1
jmp 0x1802bbb8d
xor bpl, bpl
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea ecx, [r14 + 1]
call fcn.1804688ec
mov rbx, rax
mov qword [rsp + 0x30], rax
mov byte [rax], bpl
xor edx, edx
mov r8d, 0x118
lea rcx, [rsp + 0x44]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], 0x11c
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1802bba84
cmp dword [rsp + 0x44], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.18011c1e0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.18011b190
test bl, bl
je 0x1802bbb76
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1802bbb76
lea rdx, str.ImpersonateLoggedOnUser
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, qword [rsp + 0x28]
mov rcx, rbx
call rax
test eax, eax
je 0x1802bbb6b
inc dword [0x1806d5324]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1802bbaf7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
mov rbx, r14
mov bpl, 1
cmp qword [0x1806c85c0], rbx
jne 0x1802bbb6b
xor edx, edx
mov r8d, 0x20a
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x20], 0x104
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
mov word [rsp + 0x246], r14w
lea rax, [rsp + 0x40]
mov r8, 0xffffffffffffffff
nop dword [rax + rax]
inc r8
cmp word [rax + r8*2], bx
jne 0x1802bbb50
lea rdx, [rsp + 0x40]
lea rcx, [0x1806c85b0]
call fcn.18007da60
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1802bbb7b
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1802bbb89
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.1804688c0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x1802bf1d0
Capabilities:
Terminate process

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

Disassembly:
mov rax, rsp
push rbp
push rdi
push r14
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.1802c2580
nop
xor eax, eax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x48], rax
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], ax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.180116340
xor eax, eax
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x38], rax
lea rax, [rbp - 0x50]
mov qword [rbp - 0x40], rax
mov byte [rbp - 0x38], r14b
mov rcx, qword [rbp - 0x50]
test rcx, rcx
jne 0x1802c1a78
xor dil, dil
jmp 0x1802c1a96
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1802c1a8f
xor dil, dil
jmp 0x1802c1a96
mov byte [rbp - 0x48], 1
mov dil, 1
mov byte [rbp - 0x38], dil
mov byte [rbp - 0x60], 0
lea r9, [rbp - 0x60]
mov r8, rsi
mov rdx, rbx
call fcn.1802c1b80
test al, al
jne 0x1802c1aca
cmp byte [rbp - 0x60], al
je 0x1802c1aca
cmp qword [rbx + 0x18], 8
jb 0x1802c1ac0
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x1802c1ae2
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1802c1ade
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [rbp - 0x48], 0
mov qword [rbp - 0x40], r14
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x1802c1af9
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x50], r14
mov word [rbp - 0x48], 0
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1802c1b42
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802c1b3d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802c1b3d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
movdqa xmm0, xmmword [0x180601b00]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.1804688c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x1802c35c0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], VarUI4FromDisp
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, VarUI4FromDisp
mov qword [rcx + 0x20], rax
mov qword [rcx + 0x28], rax
mov qword [rcx + 0x30], rax
mov qword [rcx + 0x38], rax
mov qword [rcx + 0x40], rax
mov qword [rcx + 0x48], rax
mov qword [rcx + 0x50], rax
mov byte [rcx], al
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov rax, rbx
je 0x1802c3640
cmp dword [rsp + 0x24], 6
jb 0x1802c3640
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1804688c0
add rsp, 0x150
pop rbx
ret
Function at 0x1802e0570
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
mov rbp, rsp
sub rsp, 0x80
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rbp - 8], rax
mov rbx, rdx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [rbx + 0x10], eax
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov qword [rbx + 8], rax
mov rcx, qword [rbx]
test rcx, rcx
je 0x1802e072b
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x38]
call fcn.1802d57a0
nop
cmp qword [rbp - 0x28], 0
jne 0x1802e061f
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1802e0618
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802e0613
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802e0613
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
xor ebx, ebx
jmp 0x1802e071b
lea rcx, [rbp - 0x38]
cmp qword [rbp - 0x20], 8
cmovae rcx, qword [rbp - 0x38]
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rdi, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1802e06d8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x18], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp - 0x18]
lea r8d, [rbx + 8]
lea rdx, [rbp - 0x10]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1802e071b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802e0716
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802e0716
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, qword [rbp - 0x20]
cmp rdx, 8
jb 0x1802e071b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802e0716
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802e0716
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rbp - 0x28], rbx
mov qword [rbp - 0x20], 7
mov word [rbp - 0x38], bx
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1804688c0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x1802e1b90
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rdi
sub rsp, 0x80
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0xa0], rbx
mov rax, qword [0x1806c4cd8]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rdx
mov r8, rcx
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1802e1d32
mov dword [rsp + 0x50], 0x2d2d4352
mov dword [rsp + 0x54], 0xf7babac9
mov dword [rsp + 0x58], 0x61726f43
mov dword [rsp + 0x5c], 0x776f7242
mov dword [rsp + 0x60], 0x2d756e45
mov dword [rsp + 0x64], 0x61746144
mov dword [rsp + 0x68], 0x37313630
mov dword [rsp + 0x6c], 0x30313032
movdqa xmm2, xmmword [0x180601b90]
xor eax, eax
mov ecx, 1
movd xmm3, ecx
lea rcx, [rsp + 0x50]
nop dword [rax]
nop dword [rax + rax]
movd xmm1, eax
pshufd xmm1, xmm1, 0
paddd xmm1, xmm2
movdqu xmm0, xmmword [rcx]
pslld xmm0, xmm3
paddd xmm1, xmm0
movdqu xmmword [rcx], xmm1
add eax, 4
lea rcx, [rcx + 0x10]
cmp eax, 8
jl 0x1802e1c30
mov rax, qword [rdx]
mov qword [rdx + 8], rax
xor eax, eax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov rdx, qword [r8]
mov rax, qword [r8 + 8]
sub rax, rdx
test rdx, rdx
je 0x1802e1ce3
lea r9, [rsp + 0x38]
mov r8d, eax
lea rcx, [rsp + 0x50]
call fcn.1802ce480
mov rbx, qword [rsp + 0x38]
test al, al
je 0x1802e1ce3
cmp rbx, qword [rsp + 0x40]
je 0x1802e1ce3
mov rdx, rdi
mov ecx, 0xa
call fcn.1802e7db0
mov ecx, dword [rsp + 0x40]
sub ecx, ebx
mov rdx, rdi
call fcn.1802e7db0
mov r9, qword [rsp + 0x40]
mov r8, rbx
mov rdx, qword [rdi + 8]
mov rcx, rdi
call fcn.180114440
nop
test rbx, rbx
je 0x1802e1d32
mov rdx, qword [rsp + 0x48]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1802e1d18
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802e1d18
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.180468ddc
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0x48], 0
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1804688c0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x80
pop rdi
ret