joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140002248
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002292
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002292
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002292
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002292
cmp dword [rcx + 0x84], 0xe
jbe 0x140002292
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002294
xor al, al
add rsp, 0x28
ret
Function at 0x1400020b0
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
push r14
push r15
mov eax, dword [rcx + 0x48]
lea rbx, [rcx + 0x28]
mov rsi, qword [rcx]
lea r11, [rcx + 0x28]
add rbx, rax
mov rdi, rcx
movabs rbp, 0x9e3779b185ebca87
movabs r15, 0x27d4eb2f165667c5
movabs r14, 0xc2b2ae3d27d4eb4f
movabs r12, 0x7a1435883d4d519d
cmp rsi, 0x20
jb 0x1400021ab
mov rcx, qword [rcx + 8]
mov r8, qword [rdi + 0x18]
mov r9, qword [rdi + 0x20]
mov rax, r8
mov rdx, qword [rdi + 0x10]
mov r10, r9
rol r10, 0x12
rol rax, 0xc
add r10, rax
mov rax, rdx
rol rax, 7
add r10, rax
mov rax, rcx
rol rax, 1
add r10, rax
movabs rax, 0x85ebca77c2b2ae63
imul rcx, r14
imul rdx, r14
imul r8, r14
imul r9, r14
rol rcx, 0x1f
imul rcx, rbp
rol rdx, 0x1f
xor r10, rcx
rol r8, 0x1f
imul r10, rbp
imul rdx, rbp
imul r8, rbp
sub r10, r12
rol r9, 0x1f
xor r10, rdx
imul r10, rbp
imul r9, rbp
sub r10, r12
xor r10, r8
imul r10, rbp
sub r10, r12
xor r10, r9
imul r10, rbp
add rax, r10
add rax, rsi
jmp 0x1400021b3
lea rax, [rsi + r15]
add rax, qword [rcx + 0x18]
lea rdx, [rdi + 0x30]
cmp rdx, rbx
ja 0x1400021ea
nop dword [rax]
mov rcx, qword [r11]
add rdx, 8
imul rcx, r14
add r11, 8
rol rcx, 0x1f
imul rcx, rbp
xor rax, rcx
rol rax, 0x1b
imul rax, rbp
sub rax, r12
cmp rdx, rbx
jbe 0x1400021c0
lea rdx, [r11 + 4]
movabs r8, 0x165667b19e3779f9
cmp rdx, rbx
ja 0x140002215
mov ecx, dword [r11]
mov r11, rdx
imul rcx, rbp
xor rax, rcx
rol rax, 0x17
imul rax, r14
add rax, r8
cmp r11, rbx
jae 0x14000223b
nop word [rax + rax]
movzx ecx, byte [r11]
inc r11
imul rcx, r15
xor rax, rcx
rol rax, 0xb
imul rax, rbp
cmp r11, rbx
jb 0x140002220
mov rbx, qword [rsp + 0x20]
mov rcx, rax
mov rbp, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
shr rcx, 0x21
xor rcx, rax
imul rcx, r14
mov rdx, rcx
shr rdx, 0x1d
xor rdx, rcx
imul rdx, r8
mov rax, rdx
shr rax, 0x20
xor rax, rdx
pop r15
pop r14
pop r12
ret

Function at 0x14000a340
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x250
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, r8
lea rax, [rsp + 0x30]
mov rbx, rcx
mov qword [rsp + 0x20], rax
xor r8d, r8d
xor ecx, ecx
xor r9d, r9d
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14000a385
xor al, al
jmp 0x14000a3d2
cmp word [rbx], 0
je 0x14000a39d
nop dword [rax + rax]
add rbx, 2
dec rdi
cmp word [rbx], 0
jne 0x14000a390
cmp word [rsp + 0x30], 0
je 0x14000a3cb
lea rcx, [rsp + 0x30]
sub rcx, rbx
nop dword [rax]
cmp rdi, 1
jb 0x14000a3f3
movzx eax, word [rcx + rbx]
dec rdi
mov word [rbx], ax
add rbx, 2
cmp word [rcx + rbx], 0
jne 0x14000a3b0
xor eax, eax
mov word [rbx], ax
mov al, 1
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14000b6a0
mov rbx, qword [rsp + 0x270]
add rsp, 0x250
pop rdi
ret
call fcn.14000f780
int3
Function at 0x14000ad20
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x2030
call fcn.14001f780
sub rsp, rax
mov rax, qword [0x14002c008]
xor rax, rsp
mov qword [rsp + 0x2020], rax
mov r11d, dword [0x14002dd70]
lea rsi, [0x140032da0]
mov rdi, rcx
test r11d, r11d
jne 0x14000ad99
mov r8d, 0x1000
lea rdx, str._HOME_
lea rcx, [rsp + 0x20]
call fcn.14000a400
test al, al
je 0x14000ae7f
lea rcx, [rsp + 0x20]
call fcn.140013dcc
movsxd r11, dword [0x14002dd70]
mov qword [rsi + r11*8], rax
inc r11d
mov dword [0x14002dd70], r11d
xor r9d, r9d
test r11d, r11d
jle 0x14000add4
mov r10, rsi
mov r8, qword [r10]
mov rax, rdi
sub r8, rdi
nop dword [rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x14000adc4
add rax, 2
test ecx, ecx
jne 0x14000adb0
test edx, edx
je 0x14000adf7
inc r9d
add r10, 8
cmp r9d, r11d
jl 0x14000ada4
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
inc rax
cmp word [rdi + rax*2], 0
jne 0x14000ade0
cmp rax, 2
jne 0x14000adfb
cmp word [rdi + 2], 0x3a
jne 0x14000adfb
mov al, 1
jmp 0x14000ae5e
xor edx, edx
mov qword [rsp + 0x2048], rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne bl
test eax, eax
jne 0x14000ae28
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14000ae28
mov bl, 1
jmp 0x14000ae2c
test bl, bl
je 0x14000ae53
cmp dword [0x14002dd70], 0x400
jge 0x14000ae53
mov rcx, rdi
call fcn.140013dcc
movsxd rdx, dword [0x14002dd70]
mov qword [rsi + rdx*8], rax
inc edx
mov dword [0x14002dd70], edx
movzx eax, bl
mov rbx, qword [rsp + 0x2048]
mov rcx, qword [rsp + 0x2020]
xor rcx, rsp
call fcn.14000b6a0
mov rsi, qword [rsp + 0x2050]
add rsp, 0x2030
pop rdi
ret
lea rcx, str._HOME_
call fcn.14000ab70
int3
Function at 0x14000afa0
Capabilities:
Check if file exists
Delete file
Get file attributes
Terminate process

Disassembly:
sub rsp, 0x68
mov rcx, qword [0x14002dd78]
test rcx, rcx
je 0x14000afdb
mov edx, 0x1388
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x14000afce
mov rcx, qword [0x14002dd78]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x14002dd78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [0x14003cdd0], 0
je 0x14000b0ce
mov qword [rsp + 0x70], rbx
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x78], rbp
lea rbp, [0x1400288f0]
mov qword [rsp + 0x80], rsi
lea rsi, [0x1400305a0]
mov qword [rsp + 0x88], rdi
xor edi, edi
mov qword [rsp + 0x60], r14
mov r14d, 0x414
mov word [rsp + 0x40], r14w
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
mov ebx, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000b0af
test al, 0x10
je 0x14000b0af
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x30], rsi
mov qword [rsp + 0x38], rbp
mov word [rsp + 0x40], r14w
mov dword [rsp + 0x44], edi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x50], rbp
call qword [sym.imp.SHELL32.dll_SHFileOperationW]
inc ebx
cmp ebx, 0x14
jl 0x14000b055
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r14, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x14000bf74
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bfbe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bfbe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bfbe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bfbe
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bfbe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000bfc0
xor al, al
add rsp, 0x28
ret

Function at 0x14000f774
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x14000f5d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000f5d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000f5d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000f5d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000f5d3
cmp dword [rcx + 0x84], 0xe
jbe 0x14000f5d3
cmp dword [rcx + 0xf8], 0
je 0x14000f5d3
mov ecx, ebx
call fcn.14000f690
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.14000f460
nop
cmp dword [rbp + 0x20], 0
je 0x14000f621
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000f62c
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000f564
Function at 0x140018c20
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140018ca7
mov rsi, rbx
cmp word [rax], bp
je 0x140018c66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140018c50
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140018c4c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140016460
mov rdi, rax
test rax, rax
je 0x140018c94
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000d540
mov rbp, rdi
xor ecx, ecx
call fcn.1400154a4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001f690
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14001f6b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14001f6b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400012ec
Capabilities:
Get graphical window text

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x120
mov rbx, rcx
mov rcx, qword [rcx + 0x20]
call qword [sym.imp.USER32.DLL_GetDlgItem]
mov rcx, qword [rbx + 0x20]
mov edx, 9
mov rbp, rax
call qword [sym.imp.USER32.DLL_GetDlgItem]
xor edi, edi
lea rdx, [rsp + 0x50]
lea r8d, [rdi + 0x64]
mov rcx, rbp
mov rsi, rax
mov word [rsp + 0x50], di
call qword [sym.imp.USER32.DLL_GetWindowTextW]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call qword [sym.imp.USER32.DLL_SetWindowTextW]
mov rcx, qword [rbx + 0x20]
lea rdx, [rsp + 0x130]
mov dword [rsp + 0x130], edi
mov dword [rsp + 0x134], edi
call qword [sym.imp.USER32.DLL_ClientToScreen]
lea r8d, [rdi + 0x10]
lea rcx, [rsp + 0x40]
xor edx, edx
call fcn.1400fa350
lea rdx, [rsp + 0x40]
mov rcx, rbp
call qword [sym.imp.USER32.DLL_GetWindowRect]
mov r8d, dword [rsp + 0x40]
mov r9d, dword [rsp + 0x44]
mov edi, dword [rsp + 0x48]
mov ebx, dword [rsp + 0x4c]
mov dword [rsp + 0x30], 4
sub edi, r8d
sub r8d, dword [rsp + 0x130]
sub ebx, r9d
sub r9d, dword [rsp + 0x134]
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x20], edi
mov dword [rsp + 0x44], r9d
call qword [sym.imp.USER32.DLL_SetWindowPos]
mov r8d, dword [rsp + 0x44]
mov edx, dword [rsp + 0x40]
mov r9d, edi
mov rcx, rsi
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x20], ebx
call qword [sym.imp.USER32.DLL_MoveWindow]
xor edx, edx
mov rcx, rbp
call qword [sym.imp.USER32.DLL_ShowWindow]
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400047ec
Capabilities:
Get common file path
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov rcx, qword [rcx]
mov ebx, esi
cmp rcx, rsi
je 0x140004812
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, eax
lea edx, [rbx + 0x2d0]
mov rcx, rdi
movsxd rdx, edx
call fcn.140061a40
cmp ebx, esi
jg 0x1400048c1
mov rax, qword [rdi]
lea rcx, [0x140114950]
mov r8d, 0x208
mov word [rax], si
mov rdx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x1400048a6
mov rdx, qword [rdi]
lea rcx, [0x140114940]
mov r8d, 0x208
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
cmp eax, esi
mov ebx, eax
jg 0x1400048a6
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
movsxd rbx, eax
cmp ebx, esi
jle 0x1400048c1
mov rax, qword [rdi]
lea rdx, [0x140114930]
lea rcx, [rax + rbx*2]
call qword [sym.imp.KERNEL32.DLL_lstrcpyW]
add ebx, 5
cmp ebx, esi
jle 0x1400048c1
mov rax, qword [rdi]
movsxd rcx, ebx
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov rax, qword [rdi]
inc ebx
movsxd rcx, ebx
mov word [rax + rcx*2], si
mov rdx, qword [rdi]
lea rcx, [0x1401340d0]
call fcn.14002765c
cmp ebx, esi
jle 0x1400048e0
mov rcx, qword [rdi]
call fcn.1400f9658
cmp eax, esi
jne 0x14000491c
mov rdx, qword [rdi]
xor r9d, r9d
xor ecx, ecx
lea r8d, [r9 + 0x24]
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathW]
mov rcx, qword [rdi]
lea rdx, [0x140114920]
call qword [sym.imp.KERNEL32.DLL_lstrcatW]
mov rdx, qword [rdi]
lea rcx, [0x1401340d0]
call fcn.14002765c
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov ebx, eax
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140004f34
Capabilities:
Get geographical location
Query environment variable

Disassembly:
push rbx
sub rsp, 0x70
xor ebx, ebx
lea rdx, [rsp + 0x20]
lea rcx, [0x140114b30]
lea r8d, [rbx + 0x20]
mov word [rsp + 0x20], bx
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableW]
movzx r11d, word [rsp + 0x20]
cmp r11w, bx
jne 0x140004f80
lea r9d, [rbx + 0x20]
lea r8, [rsp + 0x20]
lea edx, [rbx + 0xb]
mov ecx, 0x800
call qword [sym.imp.KERNEL32.DLL_GetLocaleInfoW]
mov r11w, word [rsp + 0x20]
lea rax, [rsp + 0x20]
cmp r11w, bx
lea rdx, [0x140114b28]
lea rcx, [0x140133a70]
cmovne rdx, rax
call fcn.14006d9c8
mov rcx, qword [0x140133a70]
call fcn.140062d78
movzx ecx, word [0x14013e004]
cmp eax, 1
cmovg cx, ax
mov word [0x14013e004], cx
add rsp, 0x70
pop rbx
ret

Function at 0x1400050dc
Capabilities:
Allocate thread local storage

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
lea rcx, [0x140114b60]
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x1400050d0
lea rdx, [0x140114b40]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov rdi, rax
test rax, rax
je 0x1400050c7
mov edx, 1
mov ecx, 0x233
call rdi
mov edx, 1
lea ecx, [rdx + 0x49]
call rdi
mov edx, 1
lea ecx, [rdx + 0x48]
call rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_FreeLibrary]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SetErrorMode]
or eax, 0x8001
mov ecx, eax
call qword [sym.imp.KERNEL32.DLL_SetErrorMode]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ecx, 0xfffffff4
mov qword [0x140131330], rax
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
mov ecx, 0xfffffff5
mov qword [0x140131340], rax
call qword [sym.imp.KERNEL32.DLL_GetStdHandle]
cmp qword [0x1401342e8], 0
mov qword [0x140131338], rax
jne 0x140005142
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov qword [0x1401342e8], rax
and qword [0x140133af0], 0
lea rax, [0x140133af0]
mov qword [0x140134120], rax
call qword [sym.imp.KERNEL32.DLL_TlsAlloc]
xor ecx, ecx
mov dword [0x140133934], eax
call fcn.14001823c
add rsp, 0x28
jmp 0x140005070
Function at 0x140005174
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x20
mov edi, ecx
lea rcx, [rax + 0x10]
xor ebx, ebx
mov dword [rax + 0x10], 8
mov dword [rax + 0x14], ebx
call qword [sym.imp.USER32.DLL_GetLastInputInfo]
mov edx, dword [0x1401339fc]
mov eax, dword [rsp + 0x3c]
sub eax, edx
cmp eax, ebx
cmovg edx, dword [rsp + 0x3c]
mov dword [0x1401339fc], edx
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x1401339fc], eax
mov al, byte [0x14013124f]
cmp al, bl
jle 0x14000520d
lea rcx, [rsp + 0x38]
mov dword [rsp + 0x3c], ebx
call qword [sym.imp.USER32.DLL_GetLastInputInfo]
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov r8d, dword [rsp + 0x3c]
mov ecx, eax
sub ecx, r8d
cmp ecx, edi
jb 0x1400051f6
mov edx, dword [0x1401339fc]
sub eax, edx
cmp eax, edi
jae 0x140005218
mov ecx, 0xa
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov r11b, byte [0x14013124f]
cmp r11b, bl
jg 0x1400051c7
mov r8d, dword [rsp + 0x3c]
mov edx, dword [0x1401339fc]
mov ecx, r8d
sub ecx, edx
cmp ecx, ebx
mov cl, byte [0x14013124f]
cmovg edx, r8d
cmp cl, bl
setg bl
mov dword [0x1401339fc], edx
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x14000526c
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x98
lea rdx, [rsp + 0x20]
lea rcx, [0x140114b70]
mov r8d, 0x63
mov byte [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.DLL_GetEnvironmentVariableA]
movzx r11d, byte [0x14013396b]
cmp byte [rsp + 0x20], 0x31
mov eax, 1
cmove r11d, eax
mov byte [0x14013396b], r11b
add rsp, 0x98
ret

Function at 0x140005514
Capabilities:
Read file via mapping

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov qword [rax - 0x10], rcx
mov rsi, rdx
xor r9d, r9d
xor edx, edx
or rcx, 0xffffffffffffffff
mov r8d, 0x8000004
mov dword [rax - 0x18], 0x64
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingW]
mov rdi, rax
test rax, rax
je 0x1400055a3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rbx, rbx
je 0x1400055a3
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 0x64]
call fcn.1400052b8
mov dword [rbx], 0xffffffff
mov qword [rbx + 0x10], rsi
lea rcx, [rbx + 8]
mov qword [0x140131040], rcx
mov qword [0x140133a20], rbx
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140005660
Capabilities:
Read file via mapping

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rsi, rcx
xor ecx, ecx
mov rbp, rdx
call qword [sym.imp.KERNEL32.DLL_SetLastError]
xor r9d, r9d
xor edx, edx
mov r8d, 0x8000004
or rcx, 0xffffffffffffffff
mov qword [rsp + 0x28], rbp
mov dword [rsp + 0x20], 0x64
call qword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov bl, 1
mov rdi, rax
test rax, rax
je 0x1400056bf
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x1400056d7
xor bl, bl
jmp 0x1400056d7
mov r8, rbp
xor edx, edx
mov ecx, 0x8000004
call qword [sym.imp.KERNEL32.DLL_OpenFileMappingA]
mov rdi, rax
test rax, rax
je 0x140005728
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 6]
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov rcx, rdi
mov qword [0x140133a30], rax
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov r11, qword [0x140133a30]
test r11, r11
je 0x140005728
test bl, bl
je 0x140005725
xor edx, edx
mov rcx, r11
lea r8d, [rdx + 0x64]
call fcn.1400fa350
mov r11, qword [0x140133a30]
mov qword [r11], rsi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x140008324
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x130
lea rdx, [0x140115180]
xor ecx, ecx
call fcn.140005660
call fcn.140004f34
mov byte [0x14013396a], 1
call fcn.1400521c4
call fcn.14005b80c
lea rcx, [0x140115150]
call qword [sym.imp.USER32.DLL_RegisterWindowMessageW]
xor r9d, r9d
lea rdx, [rsp + 0x20]
lea r8d, [r9 + 0x24]
xor ecx, ecx
mov byte [rsp + 0x20], 0
mov dword [0x1401339f8], eax
call qword [sym.imp.SHELL32.DLL_SHGetSpecialFolderPathA]
lea rdx, [0x140115138]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_lstrcatA]
lea rcx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
lea rcx, [0x14011512c]
mov rbx, rax
mov qword [0x140133f98], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea rcx, [0x140115124]
mov qword [0x140133f90], rax
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
lea rdx, [0x140115110]
mov rcx, rbx
mov qword [0x140133fa0], rax
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
movsx edx, byte [0x140131038]
lea rbx, [0x1401340d0]
lea r8, [0x140115100]
mov qword [0x140133970], rax
mov rcx, rbx
call fcn.140064c5c
lea r8, [0x1401150f0]
mov edx, 8
mov rcx, rbx
call fcn.140064c5c
mov edx, dword [0x1401339f8]
lea r8, [0x1401150b8]
mov rcx, rbx
call fcn.140064c5c
add rsp, 0x130
pop rbx
ret
Function at 0x140008434
Capabilities:
Terminate process

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x38
mov qword [rsp + 0x70], rcx
movzx edi, word [rcx]
add rcx, 8
mov ebp, 0x20
mov qword [rsp + 0x70], rcx
lea r12d, [rbp - 0x17]
cmp r12w, word [rcx]
ja 0x140008467
cmp word [rcx], 0xd
jbe 0x140008475
cmp bp, word [rcx]
je 0x140008475
add rcx, 2
mov qword [rsp + 0x70], rcx
call fcn.14000526c
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x88]
xor esi, esi
mov dword [0x1401339fc], eax
mov qword [rsp + 0x80], rsi
call fcn.14006d8b0
lea rcx, [rsp + 0x78]
call fcn.140061940
mov rdx, qword [rsp + 0x88]
lea r8, [rsp + 0x78]
lea rcx, [0x1401340d0]
xor r9d, r9d
mov byte [rsp + 0x20], 1
call fcn.1400770b4
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x80]
call fcn.14006d9c8
mov r11, qword [rsp + 0x80]
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x70], r11
call fcn.140059370
lea rcx, [rsp + 0x88]
call fcn.140059370
mov rcx, qword [rsp + 0x70]
call fcn.140005244
lea r8d, [rsi + 0xf]
lea rcx, [0x1401151d8]
mov rdx, rax
mov rbx, rax
mov qword [rsp + 0x70], rax
call qword [sym.imp.SHLWAPI.DLL_StrCmpNIW]
cmp eax, esi
jne 0x140008578
movzx eax, word [rbx + 0x1e]
cmp r12w, ax
ja 0x14000853d
cmp ax, 0xd
jbe 0x140008547
cmp bp, ax
je 0x140008547
cmp ax, si
jne 0x140008578
mov rcx, qword [rsp + 0x70]
lea rdx, [0x1401151b8]
mov r8d, 0x1e
mov bl, 0x49
call fcn.14001d310
mov rcx, qword [rsp + 0x70]
add rcx, 0x1e
call fcn.140005244
mov rdx, rax
mov qword [rsp + 0x70], rax
jmp 0x14000859f
lea rdx, [rsp + 0x70]
lea rcx, [0x1401151a8]
mov r8d, 8
call fcn.14006439c
cmp al, sil
je 0x140008628
mov rdx, qword [rsp + 0x70]
mov bl, 0x53
mov r13d, 0x22
cmp r13w, di
jne 0x1400085f0
mov rcx, rdx
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
mov rdx, qword [rsp + 0x70]
movsxd rcx, eax
lea rax, [rdx + rcx*2 - 2]
cmp rax, rdx
jbe 0x1400085f0
cmp r12w, word [rax]
ja 0x1400085d2
cmp word [rax], 0xd
jbe 0x1400085d7
cmp bp, word [rax]
jne 0x1400085dd
sub rax, 2
jmp 0x1400085c1
cmp rax, rdx
jbe 0x1400085f0
cmp r13w, word [rax]
jne 0x1400085f0
mov word [rax], si
mov rdx, qword [rsp + 0x70]
sub rdx, 2
movsx eax, bl
mov ecx, 0x7e
mov qword [rsp + 0x70], rdx
mov word [rdx], ax
mov rax, qword [rsp + 0x70]
sub rax, 2
mov qword [rsp + 0x70], rax
mov word [rax], cx
mov rcx, qword [rsp + 0x70]
call fcn.140016dc0
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
lea rdx, [rsp + 0x70]
lea rcx, [0x140115198]
mov r8d, 0xe
call fcn.14006439c
cmp al, sil
je 0x140008657
mov rcx, qword [rsp + 0x70]
call fcn.140008a90
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
lea rcx, [rsp + 0x80]
call fcn.140059370
xor eax, eax
add rsp, 0x38
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret