joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000535c
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
mov eax, 0x1270
call fcn.14001af20
sub rsp, rax
mov rsi, rdx
mov rdi, r8
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov r12d, 0x800
cmp rcx, 0xffffffffffffffff
jne 0x140005406
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005430
lea rdx, [rsp + 0x270]
mov r8, r12
mov rcx, rsi
call fcn.140007794
test al, al
je 0x1400053dd
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x270]
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
jne 0x140005430
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1400053f9
cmp eax, 3
je 0x1400053f9
cmp eax, 0x12
je 0x1400053f9
mov eax, 1
jmp 0x1400053fb
xor eax, eax
mov byte [rdi + 0x1044], al
jmp 0x1400054c6
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x140005426
or rbx, 0xffffffffffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [rdi + 0x1044], al
cmp rbx, 0xffffffffffffffff
je 0x1400054c6
mov r8, r12
mov rdx, rsi
mov rcx, rdi
call fcn.14000dbcc
lea rdx, [rsp + 0x4c]
mov r8, r12
mov rcx, rdi
call fcn.140007570
mov eax, dword [rsp + 0x40]
mov r11d, dword [rsp + 0x3c]
shl r11, 0x20
lea rcx, [rdi + 0x1010]
lea rdx, [rsp + 0x34]
add r11, rax
mov eax, dword [rsp + 0x20]
mov dword [rdi + 0x1008], eax
mov rax, qword [rsp + 0x24]
mov qword [rdi + 0x1000], r11
mov qword [rdi + 0x1028], rax
mov rax, qword [rsp + 0x2c]
mov qword [rdi + 0x1030], rax
mov rax, qword [rsp + 0x34]
mov qword [rdi + 0x1038], rax
call fcn.14000e038
lea rcx, [rdi + 0x1018]
lea rdx, [rsp + 0x24]
call fcn.14000e038
lea rcx, [rdi + 0x1020]
lea rdx, [rsp + 0x2c]
call fcn.14000e038
and dword [rdi + 0x1040], 0
lea r11, [rsp + 0x1270]
mov rax, rbx
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret
Function at 0x140007794
Capabilities:
Get common file path

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
mov eax, 0x1020
call fcn.14001af20
sub rsp, rax
xor edi, edi
mov rsi, r8
mov r12, rdx
mov rbx, rcx
cmp word [rcx], di
je 0x140007964
call fcn.1400072fc
mov rcx, rbx
call fcn.14001020c
mov rcx, rbx
mov rbp, rax
call fcn.140007684
cmp al, dil
je 0x140007880
mov rcx, rbx
call fcn.1400072fc
cmp al, dil
je 0x14000782c
lea rax, [rbp + 4]
cmp rsi, rax
jbe 0x140007964
lea r8d, [rdi + 4]
lea rdx, str.__
mov rcx, r12
call fcn.140011384
lea rcx, [r12 + 8]
mov rdx, rbx
call fcn.140010254
mov al, 1
jmp 0x140007966
mov edi, 0x5c
cmp word [rbx], di
jne 0x140007964
cmp word [rbx + 2], di
jne 0x140007964
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x140007964
lea r8d, [rdi - 0x58]
lea rdx, str.__
mov rcx, r12
call fcn.140011384
lea rcx, [r12 + 8]
lea rdx, [0x14001cb28]
call fcn.140010254
lea rcx, [r12 + 0xe]
lea rdx, [rbx + 2]
jmp 0x140007820
lea rdx, [rsp + 0x20]
mov ecx, 0x7ff
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
cmp eax, edi
je 0x140007964
cmp eax, 0x7ff
ja 0x140007964
movzx eax, word [rbx]
mov edi, 0x5c
cmp eax, edi
je 0x140007927
cmp eax, 0x2f
je 0x140007927
lea rcx, [rsp + 0x20]
mov edx, 0x800
call fcn.140007198
lea rcx, [rsp + 0x20]
call fcn.14001020c
lea rcx, [rax + rbp + 4]
cmp rsi, rcx
jbe 0x140007964
lea r8d, [rdi - 0x58]
lea rdx, str.__
mov rcx, r12
call fcn.140011384
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
call fcn.140010254
cmp word [rbx], 0x2e
jne 0x140007914
movzx eax, word [rbx + 2]
cmp eax, edi
je 0x140007910
cmp eax, 0x2f
jne 0x140007914
add rbx, 4
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call fcn.14000dc08
jmp 0x140007825
lea rax, [rbp + 6]
cmp rsi, rax
jbe 0x140007964
lea rdx, str.__
mov r8d, 4
mov rcx, r12
call fcn.140011384
lea rcx, [r12 + 8]
lea rdx, [rsp + 0x20]
mov r8d, 2
call fcn.140011384
lea rcx, [r12 + 0xc]
jmp 0x14000781d
xor al, al
lea r11, [rsp + 0x1020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret
Function at 0x140009b2c
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov r9, qword [0x14003ac08]
xor ebx, ebx
mov bpl, r8b
mov rdi, rdx
mov rsi, rcx
cmp r9, rbx
jne 0x140009a6e
cmp byte [0x14003ac00], bl
jne 0x140009a6e
lea rcx, str.Crypt32.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x14003abf8], rax
cmp rax, rbx
je 0x140009a57
lea rdx, str.CryptProtectMemory
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x14003abf8]
lea rdx, str.CryptUnprotectMemory
mov qword [0x14003ac08], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r11, rax
mov qword [0x14003ac10], rax
jmp 0x140009a5e
mov r11, qword [0x14003ac10]
mov r9, qword [0x14003ac08]
mov byte [0x14003ac00], 1
jmp 0x140009a75
mov r11, qword [0x14003ac10]
mov rax, rdi
mov rcx, rdi
and eax, 0xf
sub rcx, rax
cmp bpl, bl
je 0x140009ac7
cmp r9, rbx
je 0x140009ae4
mov edx, ecx
xor r8d, r8d
mov rcx, rsi
call r9
cmp eax, ebx
jne 0x140009aff
lea rdx, str.CryptProtectMemory_failed
lea rbx, [0x140045dd0]
mov rcx, rbx
call fcn.1400019e4
mov rcx, rbx
call fcn.140001844
mov edx, 2
mov rcx, rbx
call fcn.140001b1c
jmp 0x140009aff
cmp r11, rbx
je 0x140009ae4
mov edx, ecx
xor r8d, r8d
mov rcx, rsi
call r11
cmp eax, ebx
jne 0x140009aff
lea rdx, str.CryptUnprotectMemory_failed
jmp 0x140009aa1
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp rdi, rbx
jbe 0x140009aff
add al, 0x4b
lea ecx, [rbx + rax]
xor byte [rbx + rsi], cl
inc rbx
cmp rbx, rdi
jb 0x140009af1
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, qword [rsp + 0x50]
mov rax, r8
mov rcx, r9
cmp rax, rbx
mov r8, rbx
mov rdi, r9
cmovb r8, rax
add r8, r8
call fcn.140010b80
mov r8b, byte [rsp + 0x58]
lea rdx, [rbx + rbx]
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x1400099d4

Function at 0x140009cc0
Capabilities:
Get geographical location

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x170
xor ebp, ebp
mov rdi, r8
mov rbx, rdx
mov rsi, rcx
cmp qword [0x140023060], rbp
jne 0x140009d2a
lea r9d, [rbp + 0x64]
lea r8, [rax - 0xd8]
lea edx, [rbp + 0xf]
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
movzx r11d, word [rsp + 0xa0]
lea rax, [0x14004f594]
mov word [0x14004f594], r11w
mov word [0x14004f596], bp
mov qword [0x140023060], rax
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.14000dc54
lea r9, [0x140023048]
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x400
mov dword [rsp + 0x28], edi
mov word [rbx], bp
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_GetNumberFormatW]
lea r11, [rsp + 0x170]
mov word [rbx + rdi*2 - 2], bp
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140009dac
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
lea rcx, [rsp + 0x48]
mov ebx, edx
call qword [sym.imp.SHELL32.dll_SHGetMalloc]
lea r8, [rsp + 0x40]
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov rcx, qword [rsp + 0x40]
mov rdx, rdi
call qword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov rcx, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov rax, qword [rcx]
call qword [rax + 0x28]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000a770
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
mov eax, 0x2020
call fcn.14001af20
sub rsp, rax
xor r12d, r12d
mov rsi, r8
mov rbx, rcx
cmp r9, r12
je 0x14000a7a3
mov byte [r9], r12b
mov rcx, qword [rsp + 0x2050]
cmp rcx, r12
je 0x14000a7b3
mov byte [rcx], r12b
cmp rbx, r12
je 0x14000a86a
movzx eax, word [rbx]
cmp ax, r12w
je 0x14000a86a
movsxd rbp, dword [rsp + 0x2058]
mov rdi, r12
mov r8d, r12d
add rbx, 2
cmp ax, 0x3d
jne 0x14000a7f9
cmp rsi, r12
je 0x14000a805
cmp rdi, r12
jne 0x14000a805
cmp r9, r12
je 0x14000a7f4
mov byte [r9], 1
mov rdi, rdx
jmp 0x14000a814
cmp ax, 0xd
je 0x14000a827
cmp ax, 0xa
je 0x14000a82b
mov word [rdx], ax
lea eax, [rbp - 2]
add rdx, 2
cmp r8d, eax
jg 0x14000a822
mov ax, word [rbx]
inc r8d
cmp ax, r12w
jne 0x14000a7d7
jmp 0x14000a82b
mov byte [rcx], 1
jmp 0x14000a82b
add rbx, 2
mov word [rdx], r12w
cmp rsi, r12
je 0x14000a865
mov word [rsi], r12w
cmp rdi, r12
je 0x14000a865
lea rdx, [rsp + 0x20]
mov r8d, 0x1000
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
lea rdx, [rsp + 0x20]
mov r8, rbp
mov rcx, rsi
call fcn.14000dbcc
mov word [rdi], r12w
mov rax, rbx
jmp 0x14000a86c
xor eax, eax
lea r11, [rsp + 0x2020]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret

Function at 0x14000a88c
Capabilities:
Delete file

Disassembly:
push rbx
mov eax, 0x1060
call fcn.14001af20
sub rsp, rax
lea rcx, [rsp + 0x60]
mov edx, 0x800
call fcn.14000ff74
xor ebx, ebx
cmp byte [0x140043c81], bl
jne 0x14000a925
lea rcx, [rsp + 0x60]
call fcn.1400073bc
mov rdx, qword [str.RarSFX]
lea r8d, [rbx + 6]
mov rcx, rax
call fcn.14000e898
cmp eax, ebx
jne 0x14000a925
lea rcx, [0x14001c918]
call fcn.14000ff5c
lea rcx, [rsp + 0x60]
call fcn.14001020c
lea r8d, [rbx + 0x38]
lea rcx, [rsp + 0x20]
xor edx, edx
mov word [rsp + rax*2 + 0x62], bx
call fcn.140010120
lea eax, [rbx + 0x14]
lea rcx, [rsp + 0x20]
mov word [rsp + 0x40], ax
lea rax, [rsp + 0x60]
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rax
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
add rsp, 0x1060
pop rbx
ret
Function at 0x14000aa4c
Capabilities:
Hide graphical window

Disassembly:
push rbx
sub rsp, 0x20
and dword [0x140043c64], 0
mov edx, 1
mov rbx, rcx
mov byte [0x140043c61], 1
mov byte [0x140043c60], 1
call qword [sym.imp.USER32.dll_ShowWindow]
xor r8d, r8d
mov rcx, rbx
lea edx, [r8 + 2]
call fcn.140001688
cmp qword [0x140043ca0], 0
jne 0x14000aa97
cmp byte [0x140043c80], 0
je 0x14000aaa0
cmp dword [0x140043c68], 0
jne 0x14000aab5
xor r9d, r9d
mov edx, 0x111
mov rcx, rbx
lea r8d, [r9 + 1]
call qword [sym.imp.USER32.dll_SendMessageW]
add rsp, 0x20
pop rbx
ret

Function at 0x14000ab0c
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, 0x1050
call fcn.14001af20
sub rsp, rax
xor edi, edi
mov rbx, rcx
cmp byte [0x140043cc8], dil
je 0x14000abd5
cmp word [0x14003ac30], di
je 0x14000abd5
lea rdx, [rsp + 0x50]
lea rcx, [0x14003ac30]
call fcn.14000aabc
lea r11, [rsp + 0x1068]
lea rax, [rsp + 0x1070]
mov qword [rsp + 0x40], r11
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
lea rdx, str.SoftwareWinRAR_SFX
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov dword [rsp + 0x28], 0x20006
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
cmp eax, edi
jne 0x14000abd5
mov rcx, rbx
call fcn.14001020c
lea r9d, [rdi + 1]
lea rdx, [rsp + 0x50]
lea ecx, [rax + rax + 2]
xor r8d, r8d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x1070]
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x1070]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x1060]
add rsp, 0x1050
pop rdi
ret

Function at 0x14000abe8
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
mov eax, 0x2040
call fcn.14001af20
sub rsp, rax
xor esi, esi
mov rdi, rdx
mov rbx, rcx
cmp byte [0x140043cc8], sil
je 0x14000acd0
lea rdx, [rsp + 0x1040]
call fcn.14000aabc
lea r11, [rsp + 0x30]
lea r9d, [rsi + 1]
lea rdx, str.SoftwareWinRAR_SFX
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, esi
jne 0x14000acd0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x2060]
lea r9, [rsp + 0x2068]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea rdx, [rsp + 0x1040]
xor r8d, r8d
mov dword [rsp + 0x2060], 0x1000
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp eax, esi
jne 0x14000acc5
mov edx, dword [rsp + 0x2060]
mov ecx, 0x7ff
mov r8, rdi
shr edx, 1
cmp edx, ecx
mov eax, edx
mov dword [rsp + 0x2060], edx
cmovb rcx, rax
lea rdx, [rsp + 0x40]
mov word [rsp + rcx*2 + 0x40], si
mov rcx, rbx
call fcn.14000dbcc
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea r11, [rsp + 0x2040]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
Function at 0x14000bab8
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x30
mov edi, r8d
mov rsi, rdx
mov rbx, rcx
cmp byte [0x140043c46], 0
mov qword [0x140043c48], rsi
mov dword [0x140043c40], edi
je 0x14000baed
mov eax, 1
jmp 0x14000bb24
cmp byte [0x140043c47], 0
je 0x14000bafd
mov eax, 2
jmp 0x14000bb24
mov r8, qword [0x140043c78]
mov rcx, qword [0x140043c50]
lea r9, [0x14000b074]
lea rdx, str.REPLACEFILEDLG
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
sub rax, 1
je 0x14000bb9d
sub rax, 1
je 0x14000bbba
sub rax, 1
je 0x14000bb96
sub rax, 1
jne 0x14000bb74
mov r8, qword [0x140043c78]
mov rcx, qword [0x140043c50]
lea r9, [0x14000a288]
lea rdx, str.RENAMEDLG
mov qword [rsp + 0x20], rbx
call qword [sym.imp.USER32.dll_DialogBoxParamW]
test rax, rax
je 0x14000bad0
mov al, 0x52
jmp 0x14000bbaa
sub rax, 1
je 0x14000bb8b
sub rax, 1
mov al, 0x4e
jne 0x14000bbaa
mov byte [0x140043c47], 1
jmp 0x14000bbaa
mov byte [0x140043c62], 1
mov al, 0x43
jmp 0x14000bbaa
mov byte [0x140043c46], 1
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov al, 0x59
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
mov al, 0x4e
jmp 0x14000bbaa
Function at 0x14000e198
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov r8d, dword [0x140038b1c]
mov eax, ecx
mov r9d, ecx
mov edx, r8d
lea r10, [0x1400515c0]
shr r8d, 8
xor rdx, rax
movzx eax, dl
mov edx, dword [r10 + rax*4]
xor edx, r8d
movzx eax, dl
mov dword [0x140038b1c], edx
mov edx, dword [0x140038b24]
add eax, dword [0x140038b20]
imul eax, eax, 0x8088405
inc eax
mov ecx, eax
mov dword [0x140038b20], eax
mov eax, edx
shr ecx, 0x18
shr edx, 8
xor rcx, rax
movzx eax, cl
mov eax, dword [r10 + rax*4]
xor eax, edx
mov dword [0x140038b24], eax
mov eax, r9d
ret

Function at 0x14000e250
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x30
mov rbx, rcx
mov rcx, rdx
call fcn.14000e204
lea rcx, [rsp + 0x20]
mov r8d, 0xc
mov rdx, rbx
call fcn.140010b80
xor r11d, r11d
mov ecx, dword [0x140038b24]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rsp + r11 + 0x20], al
movzx ecx, byte [rsp + r11 + 0x20]
call fcn.14000e198
inc r11
cmp r11, 0xc
jl 0x14000e277
mov rax, qword [0x140027978]
movzx ecx, byte [0x140037a1f]
test byte [rax + 0x40], 2
movzx eax, byte [0x140037a17]
cmovne ecx, eax
movzx eax, byte [rsp + 0x2b]
cmp eax, ecx
je 0x14000e2d4
or eax, 0xffffffff
jmp 0x14000e327
mov r11, qword [0x1400379a0]
mov rax, qword [0x140026750]
mov rbx, qword [0x140037998]
movsxd rcx, r11d
cmp rcx, rax
cmovg r11d, eax
test r11d, r11d
je 0x14000e325
mov ecx, dword [0x140038b24]
and ecx, 0xfffd
or ecx, 2
mov eax, ecx
xor eax, 1
imul eax, ecx
shr eax, 8
xor byte [rbx], al
movzx ecx, byte [rbx]
call fcn.14000e198
inc rbx
sub r11d, 1
jne 0x14000e2f8
xor eax, eax
add rsp, 0x30
pop rbx
ret
Function at 0x14000ef04
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rbp, rdx
mov rdi, rcx
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, eax
mov rax, qword [rdi]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [rax + 0x90]
cmp eax, ebx
jl 0x14000ef4c
cmp qword [rsp + 0x80], rbx
jne 0x14000efa1
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, esi
cmp eax, 0x2710
ja 0x14000efa1
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.dll_PeekMessageW]
cmp eax, ebx
je 0x14000ef2a
lea rcx, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x14000ef2a
mov rax, qword [rdi]
lea rdx, [rsp + 0x80]
mov rcx, rdi
call qword [rax + 0x90]
cmp eax, ebx
mov edi, eax
jl 0x14000f020
mov rcx, qword [rsp + 0x80]
lea r8, [rsp + 0x90]
lea rdx, [0x14001d5a0]
mov rax, qword [rcx]
call qword [rax]
cmp eax, ebx
mov edi, eax
jl 0x14000f012
mov rcx, qword [rsp + 0x90]
mov rax, qword [rcx]
call qword [rax + 0x40]
cmp eax, ebx
mov edi, eax
jl 0x14000f004
mov rcx, qword [rsp + 0x90]
mov rdx, rbp
mov rax, qword [rcx]
call qword [rax + 0x28]
mov edi, eax
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
mov rcx, qword [rsp + 0x80]
mov rdx, qword [rcx]
call qword [rdx + 0x10]
cmp edi, ebx
mov rbx, qword [rsp + 0x88]
setge al
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret

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

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x80
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
jmp 0x14000f22f
mov rcx, qword [rdi + 0x18]
lea rdx, [rsp + 0x90]
mov r8, qword [rcx]
call qword [r8 + 0x1c0]
cmp dword [rsp + 0x90], 4
je 0x14000f23e
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x14000f22f
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
lea rcx, [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_GetMessageW]
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x2710
jbe 0x14000f1ca
lea rcx, [rsp + 0x30]
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi + 0x18]
and qword [rsp + 0x20], 0
mov r11d, 3
mov dword [rsp + 0x38], 0x96
lea r9, [rsp + 0x30]
mov word [rsp + 0x30], r11w
mov rax, qword [rcx]
lea edx, [r11 + 0x3c]
lea r8d, [r11 - 1]
call qword [rax + 0x1b0]
mov rbx, qword [rsp + 0x98]
add rsp, 0x80
pop rdi
ret

Function at 0x14000ff5c
Capabilities:
Set current directory

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret
Function at 0x14000ff74
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x28
mov rax, rdx
mov rdx, rcx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor ecx, ecx
cmp eax, ecx
setne al
add rsp, 0x28
ret

Function at 0x1400153d4
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov dword [rsp + 0x18], r8d
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov r12d, r8d
mov ebx, edx
mov r15d, ecx
mov ecx, 8
call fcn.140017a74
nop
cmp dword [0x140051b98], 1
je 0x140015380
mov dword [0x140051b94], 1
mov byte [0x140051b90], r12b
test ebx, ebx
jne 0x14001536c
mov rcx, qword [0x140052bb0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140015359
mov rcx, qword [0x140052ba8]
call sub.KERNEL32.dll_DecodePointer
mov rdi, rax
mov qword [rsp + 0x20], rax
mov r14, rsi
mov qword [rsp + 0x28], rsi
mov r13, rax
mov qword [rsp + 0x38], rax
sub rdi, 8
mov qword [rsp + 0x20], rdi
cmp rdi, rsi
jb 0x1400152f8
call fcn.1400121ec
cmp qword [rdi], rax
jne 0x1400152f8
jmp 0x1400152de
cmp rdi, rsi
jb 0x140015359
mov rcx, qword [rdi]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
call fcn.1400121ec
mov qword [rdi], rax
call rbx
mov rcx, qword [0x140052bb0]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov rcx, qword [0x140052ba8]
call sub.KERNEL32.dll_DecodePointer
cmp r14, rbx
jne 0x140015337
cmp r13, rax
je 0x140015357
mov r14, rbx
mov qword [rsp + 0x28], rbx
mov rsi, rbx
mov qword [rsp + 0x30], rbx
mov r13, rax
mov qword [rsp + 0x38], rax
mov rdi, rax
mov qword [rsp + 0x20], rax
jmp 0x1400152de
lea rdx, [0x14001c708]
lea rcx, [0x14001c6f0]
call fcn.140015128
lea rdx, [0x14001c718]
lea rcx, [0x14001c710]
call fcn.140015128
nop
test r12d, r12d
je 0x14001538f
mov ecx, 8
call fcn.140017974
test r12d, r12d
jne 0x1400153ba
mov dword [0x140051b98], 1
lea ecx, [r12 + 8]
call fcn.140017974
mov ecx, r15d
call fcn.1400150bc
mov ecx, r15d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
xor r8d, r8d
xor edx, edx
jmp 0x140015248

Function at 0x1400153e0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x140015248
Function at 0x1400191f4
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x40
mov ebp, r8d
mov r13, rdx
mov r14, rcx
call fcn.1400121ec
xor ebx, ebx
mov rdi, rax
cmp qword [0x140052318], rbx
jne 0x1400192fa
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rsi, rax
test rax, rax
je 0x1400193cf
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400193cf
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140052318], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140052320], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
mov qword [0x140052328], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov r11, rax
mov qword [0x140052338], rax
test rax, rax
je 0x1400192f1
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call sub.KERNEL32.dll_EncodePointer
mov qword [0x140052330], rax
jmp 0x140019301
mov rax, qword [0x140052330]
jmp 0x140019308
mov rax, qword [0x140052330]
mov r11, qword [0x140052338]
cmp rax, rdi
je 0x140019370
cmp r11, rdi
je 0x140019370
mov rcx, rax
call sub.KERNEL32.dll_DecodePointer
mov rcx, qword [0x140052338]
mov rsi, rax
call sub.KERNEL32.dll_DecodePointer
mov r12, rax
test rsi, rsi
je 0x140019370
test rax, rax
je 0x140019370
call rsi
test rax, rax
je 0x14001936a
lea rcx, [rsp + 0x88]
mov r9d, 0xc
lea r8, [rsp + 0x30]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x14001936a
test byte [rsp + 0x38], 1
jne 0x140019370
bts ebp, 0x15
jmp 0x1400193ae
mov rcx, qword [0x140052320]
cmp rcx, rdi
je 0x1400193ae
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400193ae
call rax
mov rbx, rax
test rax, rax
je 0x1400193ae
mov rcx, qword [0x140052328]
cmp rcx, rdi
je 0x1400193ae
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400193ae
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140052318]
call sub.KERNEL32.dll_DecodePointer
test rax, rax
je 0x1400193cf
mov r9d, ebp
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400193d1
xor eax, eax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret