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

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x450
mov rax, qword [0x1802240e0]
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 0x1800e0cb9
xor al, al
jmp 0x1800e0d0b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
jne 0x1800e0ce4
cmp qword [rsp + 0x20], 0
je 0x1800e0ce0
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ole32.dll_CoTaskMemFree]
xor al, al
jmp 0x1800e0d0b
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x468]
call fcn.18000c5b0
cmp qword [rsp + 0x20], 0
je 0x1800e0d09
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.18017dee0
add rsp, 0x450
pop rdi
ret
Function at 0x1800e28c0
Capabilities:
Read .ini file

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, 0x3b0
mov qword [rsp + 0x88], 0xfffffffffffffffe
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x3a0], rax
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x90]
call fcn.180005420
nop
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x110]
call fcn.1800e1fd0
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov r8, qword [rsp + 0x3d0]
mov rdx, qword [rsp + 0x40]
lea rcx, [rsp + 0xb0]
call fcn.1800092d0
nop
lea rcx, [rsp + 0x110]
call fcn.1800053c0
lea rcx, [rsp + 0xb0]
call fcn.180044660
movzx eax, al
test eax, eax
je 0x1800e2b3e
lea rax, [rsp + 0x190]
mov rdi, rax
xor eax, eax
mov ecx, 0x20a
rep stosb byte [rdi], al
lea rcx, [rsp + 0xb0]
call fcn.180004c70
mov qword [rsp + 0x48], rax
mov rcx, qword [rsp + 0x3e0]
call fcn.180004c70
mov qword [rsp + 0x50], rax
mov rcx, qword [rsp + 0x3d8]
call fcn.180004c70
mov rcx, qword [rsp + 0x48]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x190]
lea r8, [0x1801acae8]
mov rcx, qword [rsp + 0x50]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov eax, 2
imul rax, rax, 0
movzx eax, word [rsp + rax + 0x190]
test eax, eax
je 0x1800e2b3e
lea rdx, str.Application
lea rcx, [rsp + 0xd0]
call fcn.1800053e0
nop
mov rdx, qword [rsp + 0x3c8]
lea rcx, [rsp + 0x150]
call fcn.1800e1fd0
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x60], rax
lea r8, [rsp + 0xd0]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x130]
call fcn.180053100
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x90]
call fcn.180008f30
nop
lea rcx, [rsp + 0x130]
call fcn.1800053c0
nop
lea rcx, [rsp + 0x150]
call fcn.1800053c0
nop
lea rcx, [rsp + 0xd0]
call fcn.1800053c0
lea rdx, [rsp + 0x190]
lea rcx, [rsp + 0xf0]
call fcn.1800053e0
nop
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x170]
call fcn.180053100
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x80], rax
mov rdx, qword [rsp + 0x80]
lea rcx, [rsp + 0x90]
call fcn.180008f30
nop
lea rcx, [rsp + 0x170]
call fcn.1800053c0
nop
lea rcx, [rsp + 0xf0]
call fcn.1800053c0
lea rcx, [rsp + 0x90]
call fcn.1800447b0
movzx eax, al
test eax, eax
je 0x1800e2b3e
mov edx, InitCommonControls
lea rcx, [rsp + 0x90]
call fcn.1800526c0
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x3c0]
call fcn.1800072c0
mov eax, dword [rsp + 0x30]
or eax, 1
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0xb0]
call fcn.1800053c0
nop
lea rcx, [rsp + 0x90]
call fcn.1800053c0
nop
mov rcx, qword [rsp + 0x3c8]
call fcn.1800053c0
nop
mov rcx, qword [rsp + 0x3d0]
call fcn.1800053c0
nop
mov rcx, qword [rsp + 0x3d8]
call fcn.1800053c0
nop
mov rcx, qword [rsp + 0x3e0]
call fcn.1800053c0
mov rax, qword [rsp + 0x3c0]
mov rcx, qword [rsp + 0x3a0]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x3b0
pop rdi
ret
Function at 0x1800e3df0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x1800e3e5e
mov eax, dword [rsp + 0x24]
cmp eax, 5
ja 0x1800e3e44
jne 0x1800e3e5e
cmp dword [rsp + 0x28], 0
jbe 0x1800e3e5e
mov al, 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x158
ret
xor al, al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x158
ret

Function at 0x1800e3e80
Capabilities:
Check os version

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
mov dword [rsp + 0x20], 0x114
mov r8d, 0x110
lea rcx, [rsp + 0x24]
call sub.VCRUNTIME140.dll_memset
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1800e3eda
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x158
ret
cmp dword [rsp + 0x24], 6
setae al
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x158
ret

Function at 0x1800e6700
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor edi, edi
mov rbx, rcx
mov qword [rcx], rdi
cmp qword [0x180224d38], rdi
jne 0x1800e678b
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 0x1800e6770
lea rdx, [rsp + 0x30]
lea rcx, [0x180224d28]
call fcn.1800055c0
mov rax, rbx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.18017dee0
mov rbx, qword [rsp + 0x268]
add rsp, 0x250
pop rdi
ret
Function at 0x1800e6830
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 [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov rsi, rcx
mov eax, dword [0x18022acfc]
test eax, eax
jle 0x1800e687d
inc eax
mov dword [0x18022acfc], eax
mov al, 1
jmp 0x1800e69dd
xor bpl, bpl
xor r14d, r14d
mov qword [rsp + 0x28], r14
mov dword [rsp + 0x20], r14d
lea ecx, [r14 + 1]
call fcn.18017df38
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 0x1800e68d4
cmp dword [rsp + 0x44], 6
setae al
mov byte [rbx], al
lea r8, [rsp + 0x20]
lea rdx, [rsp + 0x28]
call fcn.1800584d0
movzx ebx, al
lea rcx, [rsp + 0x30]
call fcn.180057480
test bl, bl
je 0x1800e69c6
lea rcx, str.advapi32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rdi, rax
test rax, rax
je 0x1800e69c6
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 0x1800e69bb
inc dword [0x18022acfc]
mov rcx, qword [rsi]
test rcx, rcx
je 0x1800e6947
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi], rbx
mov rbx, r14
mov bpl, 1
cmp qword [0x180224d58], rbx
jne 0x1800e69bb
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 0x1800e69a0
lea rdx, [rsp + 0x40]
lea rcx, [0x180224d48]
call fcn.1800055c0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x1800e69cb
mov rbx, qword [rsp + 0x28]
test rbx, rbx
je 0x1800e69d9
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx eax, bpl
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.18017dee0
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 0x1800f9a20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r14
sub rsp, 0x460
mov rax, qword [0x1802240e0]
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 0x1800f9a64
mov rax, qword [rdx]
mov word [rax], si
call fcn.1800f9b40
movzx edi, al
mov byte [rsp + 0x20], al
jmp 0x1800f9a89
test dil, dil
jne 0x1800f9b09
cmp r14d, 0x1a
jne 0x1800f9b09
mov qword [rbx + 0x10], rsi
mov rax, rbx
cmp qword [rbx + 0x18], 8
jb 0x1800f9aa5
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 0x1800f9ae0
lea rdx, [rsp + 0x40]
mov rcx, rbx
call fcn.1800055c0
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.18017dee0
mov rbx, qword [rsp + 0x490]
add rsp, 0x460
pop r14
pop rdi
pop rsi
ret

Function at 0x1800f9df0
Capabilities:
Query environment variable

Disassembly:
mov rdx, rcx
mov ecx, 0x1a
jmp fcn.1800f9a20
Function at 0x180102070
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push r14
sub rsp, 0x60
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], rsi
xor ebx, ebx
cmp qword [rcx + 0x20], 0xffffffffffffffff
mov r14, r9
mov qword [rsp + 0x50], rdi
mov rsi, rdx
mov qword [rsp + 0x40], r15
mov edi, r8d
mov r15, rcx
mov ebp, ebx
jne 0x1801020b5
mov ebx, 1
jmp 0x180102106
mov qword [rsp + 0x48], r12
mov r12d, 0x100000
mov rcx, qword [r15 + 0x20]
lea r9, [rsp + 0x30]
mov r8d, edi
mov dword [rsp + 0x30], ebx
cmp edi, r12d
mov qword [rsp + 0x20], rbx
mov rdx, rsi
cmova r8d, r12d
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [rsp + 0x30]
add ebp, ecx
test eax, eax
je 0x1801020fc
test ecx, ecx
je 0x180102101
add rsi, rcx
sub edi, ecx
jne 0x1801020c0
jmp 0x180102101
mov ebx, 1
mov r12, qword [rsp + 0x48]
mov r15, qword [rsp + 0x40]
mov eax, ebx
mov rdi, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
test r14, r14
je 0x18010211f
mov dword [r14], ebp
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x60
pop r14
pop rbp
pop rbx
ret

Function at 0x180102a90
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
cmp rcx, 0xffffffffffffffff
je 0x180102acb
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
je 0x180102acb
lea rdx, [rbx + 0x60]
lea rcx, [rbx + 0x20]
call fcn.18010b8f0
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov rbx, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rdi
ret

Function at 0x1801047d0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x180104820
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cmp rax, rbx
je 0x180104820
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 0x180104811
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 0x18010b8f0
Capabilities:
Get file size

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov rcx, qword [rcx]
mov rdi, rdx
cmp rcx, 0xffffffffffffffff
je 0x18010b94e
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp eax, 0xffffffff
jne 0x18010b939
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18010b94e
mov ecx, dword [rsp + 0x20]
mov rax, rbx
shl rcx, 0x20
mov al, 1
add rcx, rbx
mov qword [rdi], rcx
jmp 0x18010b950
xor al, al
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.18017dee0
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x18010c500
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [rcx + 8]
mov rbx, r9
mov edi, r8d
test rax, rax
je 0x18010c552
mov rax, qword [rax]
test rax, rax
je 0x18010c552
test rdx, rdx
je 0x18010c552
mov rcx, qword [rax]
cmp rcx, 0xffffffffffffffff
je 0x18010c552
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18010c552
cmp edi, dword [rbx]
sete al
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
Function at 0x18010f710
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [r11 - 0x60], 0xfffffffffffffffe
mov qword [r11 + 0x20], rbx
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov r13, r8
mov rsi, rdx
mov rdi, rcx
mov rcx, qword [rdx]
test rcx, rcx
je 0x18010f8fa
cmp qword [rcx], 0xffffffffffffffff
je 0x18010f8fa
mov qword [r11 - 0x50], 0xffffffffffff8000
mov ebx, 2
mov r9d, ebx
lea r8, [r11 - 0x4c]
mov edx, 0xffff8000
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rsp + 0x48], eax
cmp eax, 0xffffffff
jne 0x18010f795
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x18010f8fa
mov ecx, 0x10000
call fcn.18017e210
mov r15, rax
xor ebp, ebp
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x50], rax
xor edx, edx
mov r8d, 0x10000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x40], ebp
mov rcx, qword [rsi]
test rcx, rcx
je 0x18010f8d8
test r15, r15
je 0x18010f8d8
cmp qword [rcx], 0xffffffffffffffff
je 0x18010f8d8
mov qword [rsp + 0x20], rbp
lea r9, [rsp + 0x40]
mov r8d, 0x8000
mov rdx, r15
mov rcx, qword [rcx]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18010f8d8
xor ecx, ecx
mov ebp, ecx
mov esi, ecx
mov r14d, 0x8000
lea r12, [r15 + 0x8000]
nop dword [rax + rax]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18010f8e9
mov dword [rsp + 0x34], ecx
mov dword [rsp + 0x30], ecx
mov edx, esi
add rdx, r12
lea rax, [rsp + 0x34]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
mov r8d, r14d
mov rcx, r13
call fcn.18011d260
test al, al
je 0x18010f8cd
mov eax, dword [rsp + 0x30]
test eax, eax
jne 0x18010f88c
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x18010f879
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18010f8e9
inc ebp
mov eax, dword [rsp + 0x30]
jmp 0x18010f896
add esi, eax
cmp esi, 0x8000
je 0x18010f8a7
cmp ebp, 0xf
ja 0x18010f8c6
sub r14d, eax
je 0x18010f8a7
xor ecx, ecx
jmp 0x18010f820
mov r8d, 0x8000
mov rdx, r12
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
xor ebp, ebp
mov ebx, ebp
test eax, eax
setne bl
add ebx, 4
jmp 0x18010f8e9
mov ebx, 3
jmp 0x18010f8e9
mov eax, dword [rsp + 0x34]
mov ebx, 3
jmp 0x18010f8e3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, 1
mov dword [rdi + 0x100], eax
test r15, r15
je 0x18010f8f6
mov rcx, r15
call fcn.18017df04
mov eax, ebx
jmp 0x18010f8ff
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18017dee0
mov rbx, qword [rsp + 0xb8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x18010fd30
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x38], 0xfffffffffffffffe
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbp, r9
mov rbx, r8
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rdx
mov rdi, rcx
xor r14d, r14d
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov r13d, eax
xor sil, sil
mov ecx, 0x4000
call fcn.18017e210
mov r12, rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x48], rax
xor edx, edx
mov r8d, 0x4000
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xor r15d, r15d
cmp qword [rbp + 0x20], r15
jbe 0x18010ff11
nop
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18010ff0e
xor esi, esi
cmp qword [rbx + 8], rsi
jne 0x18010fdce
mov ebx, 0xffffffff
jmp 0x18010fe3e
mov dword [rsp + 0x40], esi
add rbx, 0x30
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
xchg dword [rbx], eax
lea r9, [rsp + 0x40]
mov rdx, r12
mov rcx, qword [rsp + 0x28]
mov rcx, qword [rcx + 8]
call fcn.18011d1f0
test al, al
jne 0x18010fe15
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
xor edx, edx
mov rcx, qword [rsp + 0x20]
xchg dword [rcx], edx
mov ebx, 0xffffffff
jmp 0x18010fe3e
xor ecx, ecx
mov rax, qword [rsp + 0x20]
xchg dword [rax], ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
mov eax, dword [rsp + 0x40]
add r14, rax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp eax, r13d
cmovne r13d, eax
mov ebx, dword [rsp + 0x40]
mov dword [rdi + 0x100], esi
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18010ff0e
cmp ebx, 0xffffffff
je 0x18010ff0e
test ebx, ebx
je 0x18010fe9b
mov dword [rsp + 0x44], 0
mov rsi, qword [rsp + 0x30]
mov rax, qword [rsi]
lea r9, [rsp + 0x44]
mov r8d, ebx
mov rdx, r12
mov rcx, rsi
call qword [rax]
test al, al
je 0x18010fe8a
cmp dword [rsp + 0x44], ebx
je 0x18010fec6
mov sil, 1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rdi + 0x100], eax
jmp 0x18010ff11
cmp byte [rbp + 0x30], 0
jne 0x18010ff0e
mov rcx, qword [rdi + 0x110]
test rcx, rcx
je 0x18010feb8
mov edx, 0x3e8
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx eax, byte [rdi + 0xd8]
test al, al
jne 0x18010ff0e
inc r15d
cmp r15d, 0xf
ja 0x18010ff0e
mov rcx, qword [rdi + 0xd0]
test rcx, rcx
je 0x18010fef9
mov rdx, qword [rbp + 0x20]
mov rax, qword [rbp + 0x28]
cmp rdx, 0xffffffffffffffff
je 0x18010fee9
add rdx, rax
mov r8d, r14d
add r8, rax
mov rax, qword [rcx]
call qword [rax + InitCommonControls]
test al, al
je 0x18010ff09
cmp r14, qword [rbp + 0x20]
jae 0x18010ff0e
mov rbx, qword [rsp + 0x28]
jmp 0x18010fdb0
mov sil, 1
jmp 0x18010ff11
xor sil, sil
mov qword [rsp + 0x48], 0
test r12, r12
je 0x18010ff27
mov rcx, r12
call fcn.18017df04
mov qword [rdi + 0x108], r14
cmp r14, qword [rbp + 0x20]
sete al
test sil, sil
je 0x18010ff47
xor al, al
movzx ecx, byte [rdi + 0xd8]
test cl, cl
jne 0x18010ff56
movzx eax, al
mov ecx, 1
cmp byte [rbp + 0x30], 0
cmovne eax, ecx
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180112740
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 [0x1802240e0]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, r8
mov rbx, rdx
mov r8, rdx
lea rdx, [rbp - 0x30]
call fcn.1801132d0
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.180053580
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 0x1801127c8
xor dil, dil
jmp 0x1801127e6
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, 0xffffff7f
je 0x1801127df
xor dil, dil
jmp 0x1801127e6
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.1801128d0
test al, al
jne 0x18011281a
cmp byte [rbp - 0x60], al
je 0x18011281a
cmp qword [rbx + 0x18], 8
jb 0x180112810
mov rbx, qword [rbx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
test dil, dil
je 0x180112832
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x18011282e
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 0x180112849
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 0x180112892
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18011288d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18011288d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18017df04
movdqa xmm0, xmmword [0x1801c14e0]
movdqu xmmword [rbp - 0x20], xmm0
mov word [rbp - 0x30], r14w
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.18017dee0
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 0x1801144a0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1802240e0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor eax, eax
mov dword [rsp + 0x20], 0x114
mov qword [rcx + 8], rax
mov rbx, rcx
mov qword [rcx + 0x10], rax
xor edx, edx
mov qword [rcx + 0x18], rax
mov r8d, 0x110
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 0x180114520
cmp dword [rsp + 0x24], 6
jb 0x180114520
mov byte [rbx], 1
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18017dee0
add rsp, 0x150
pop rbx
ret
Function at 0x180118a50
Capabilities:
Write file on windows

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