joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011190
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
sub rsp, 0xc90
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0xc60], rax
lea rcx, [rsp + 0x242]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x240], 0
call fcn.140011ab0
xor ebx, ebx
mov rcx, rbx
lea rdx, str.C:log_
nop
nop
movzx eax, word [rcx + rdx]
add rcx, 2
test ax, ax
mov word [rsp + rcx + 0x23e], ax
jne 0x1400111f0
lea rcx, [rsp + 0x872]
xor edx, edx
mov r8d, 0x3e6
mov word [rsp + 0x870], bx
call fcn.140011ab0
lea r8, [rsp + 0x240]
lea rdx, str._sgswb.log
lea rcx, [rsp + 0x450]
call fcn.140011ce0
lea rcx, [rsp + 0x662]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x660], bx
call fcn.140011ab0
lea rcx, [rsp + 0x32]
xor edx, edx
mov r8d, 0x206
mov word [rsp + 0x30], bx
call fcn.140011ab0
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea rcx, [rsp + 0x30]
mov dx, 0x5c
call fcn.140011cb0
lea rcx, [rsp + 0x450]
mov word [rax], bx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x14001142f
or rcx, 0xffffffffffffffff
mov qword [rsp + 0xc88], rbp
xor eax, eax
mov qword [rsp + 0xc80], rsi
mov qword [rsp + 0xc78], rdi
lea rdi, [rsp + 0x30]
repne scasw ax, word [rdi]
not rcx
lea rdx, [rsp + rcx*2 + 0x30]
lea rcx, [rsp + 0x660]
sub rcx, rdx
nop
nop
nop
movzx eax, word [rdx]
add rdx, 2
test ax, ax
mov word [rcx + rdx - 2], ax
jne 0x1400112f0
lea r9, [rsp + 0x660]
lea r8, [rsp + 0x240]
lea rdx, str._s_s.txt
lea rcx, [rsp + 0x450]
call fcn.140011ce0
mov r8, qword [rsp + 0xca0]
lea r9, [rsp + 0xca8]
lea rcx, [rsp + 0x870]
mov edx, 0x1f3
call fcn.1400155a0
lea rcx, [rsp + 0x450]
mov word [rsp + 0xc56], bx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea rdx, [0x140030878]
lea rcx, [rsp + 0x450]
test eax, eax
mov ebp, 1
cmovne ebx, ebp
call fcn.140015490
test rax, rax
mov rsi, rax
je 0x140011417
test ebx, ebx
jne 0x1400113a6
lea r8d, [rbp + 1]
lea rcx, [rsp + 0x24]
mov r9, rax
mov rdx, rbp
mov word [rsp + 0x24], 0xfeff
call fcn.140015260
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [rsp + 0x870]
repne scasw ax, word [rdi]
mov r9, rsi
mov rdx, rbp
not rcx
sub rcx, rbp
add ecx, ecx
movsxd r8, ecx
lea rcx, [rsp + 0x870]
call fcn.140015260
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 2
mov rdx, rbp
mov word [rsp + 0x20], 0xd
call fcn.140015260
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, 2
mov rdx, rbp
mov word [rsp + 0x20], 0xa
call fcn.140015260
mov rcx, rsi
call fcn.140015000
mov rsi, qword [rsp + 0xc80]
mov rbp, qword [rsp + 0xc88]
mov rdi, qword [rsp + 0xc78]
mov rcx, qword [rsp + 0xc60]
xor rcx, rsp
call fcn.140011c90
add rsp, 0xc90
pop rbx
ret
Function at 0x140012270
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x14003b148]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.140017420
test rax, rax
je 0x1400122c4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x140012359
mov ecx, 2
call fcn.140017250
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140011ab0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x140012345
test ebx, ebx
jne 0x140012345
lea ecx, [rax + 2]
call fcn.140017250
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x140012380
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x14003b148]
call fcn.140017420
test rax, rax
je 0x1400123b5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.140017250
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.140011ab0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x14001243e
test ebx, ebx
jne 0x14001243e
lea ecx, [rax + 2]
call fcn.140017250
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret

Function at 0x1400136d0
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
jne 0x1400136f7
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1400136f7
mov ecx, eax
call fcn.140016d20
or eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400159f7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140039680]
jne 0x140011caa
rol rcx, 0x10
test cx, 0xffff
jne 0x140011ca6
repz ret
ror rcx, 0x10
jmp 0x140015950
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x14003b230]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x14003b328]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1400159d5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x14003b230]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1400159f7
mov rax, qword [rsp + 0x88]
mov qword [0x14003b328], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x14003b2c8], rax
mov rax, qword [0x14003b328]
mov qword [0x14003b1a0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x14003b2b0], rax
mov dword [0x14003b190], 0xc0000409
mov dword [0x14003b194], 1
mov rax, qword [0x140039680]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140039688]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x14003b228], eax
mov ecx, 1
call fcn.140017250
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140030b40]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x14003b228], 0
jne 0x140015a7e
mov ecx, 1
call fcn.140017250
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001c370
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x140039f80]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x14001c3ae
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x14001c390
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x14001c595
mov ecx, 3
call fcn.140025280
cmp eax, 1
je 0x14001c54c
mov ecx, 3
call fcn.140025280
test eax, eax
jne 0x14001c3e5
cmp dword [0x1400396e0], 1
je 0x14001c54c
cmp edi, 0xfc
je 0x14001c595
mov qword [rsp + 0x50], rbp
lea rbp, [0x14003b770]
lea r8, str.Runtime_Error__n_nProgram:
mov rcx, rbp
mov edx, 0x314
call fcn.140017100
test eax, eax
je 0x14001c429
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400121d0
lea rdx, [0x14003b789]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x14003b88d], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x14001c479
lea r8, str._program_name_unknown_
lea rcx, [0x14003b789]
mov edx, 0x2fb
call fcn.140017100
test eax, eax
je 0x14001c479
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400121d0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x14003b789]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x14001c4c8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x14003ba84]
lea r9d, [rax + 3]
lea r8, [0x140031174]
sub rdx, rcx
call fcn.14001f710
test eax, eax
je 0x14001c4c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400121d0
lea r8, [0x140031170]
mov edx, 0x314
mov rcx, rbp
call fcn.14001f650
test eax, eax
je 0x14001c4f4
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400121d0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.14001f650
test eax, eax
je 0x14001c524
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.1400121d0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.140025020
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001c595
cmp rax, 0xffffffffffffffff
je 0x14001c595
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x14001c5b0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.140025280
cmp eax, 1
je 0x14001c5e2
mov ecx, 3
call fcn.140025280
test eax, eax
jne 0x14001c696
cmp dword [0x1400396e0], 1
jne 0x14001c696
mov qword [rsp + 0x48], rbx
lea rbx, [0x140039f80]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x14001c60e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x14001c5f8
jmp 0x14001c682
cmp edi, 0x17
jae 0x14001c682
mov ecx, 3
call fcn.140025280
cmp eax, 1
je 0x14001c639
mov ecx, 3
call fcn.140025280
test eax, eax
jne 0x14001c682
cmp dword [0x1400396e0], 1
jne 0x14001c682
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x14001c682
cmp rax, 0xffffffffffffffff
je 0x14001c682
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.14001c370
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x140022e00
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x14003c03c]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x140022e5c
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140022e3c
mov dword [0x14003c03c], 1
jmp 0x140022e6f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x140022e56
mov dword [0x14003c03c], 2
jmp 0x140022ed9
mov eax, dword [0x14003c03c]
cmp eax, 1
jne 0x140022ed0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x140022eaa
cmp word [rdi], bp
mov rax, rdi
je 0x140022e89
add rax, 2
cmp word [rax], bp
jne 0x140022e77
add rax, 2
cmp word [rax], bp
jne 0x140022e77
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14001c6b0
test rax, rax
mov rbx, rax
jne 0x140022eb1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x140022fcb
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.140016dc0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x140022fcb
cmp eax, 2
je 0x140022ed9
test eax, eax
jne 0x140022eaa
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x140022eaa
cmp byte [rax], bpl
mov rbx, rax
je 0x140022f28
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140022eaa
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x140022ef0
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14001c720
test rax, rax
mov r12, rax
jne 0x140022f4d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140022fcb
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x140022fb5
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x140022fde
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x140022f60
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.140014070
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x140022fc6
Function at 0x1400245e0
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140024627
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140011c90
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140013f80
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140011c90
add rsp, 0x38
ret
Function at 0x140025020
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.140017330
xor ebx, ebx
cmp qword [0x14003c0e8], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14002514c
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x14002525f
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002525f
mov rcx, rax
call fcn.140017260
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x14003c0e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140017260
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x14003c0f0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140017260
lea rcx, [rsp + 0x98]
mov qword [0x14003c0f8], rax
call fcn.14001ca00
test eax, eax
je 0x1400250ff
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400121d0
cmp dword [rsp + 0x98], 2
jne 0x14002514c
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140017260
test rax, rax
mov qword [0x14003c108], rax
je 0x14002514c
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.140017260
mov qword [0x14003c100], rax
mov rcx, qword [0x14003c100]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x1400251f8
cmp qword [0x14003c108], rbp
je 0x1400251f8
call fcn.140017420
mov rcx, qword [0x14003c108]
mov rsi, rax
call fcn.140017420
test rsi, rsi
mov r12, rax
je 0x1400251f8
test rax, rax
je 0x1400251f8
call rsi
test rax, rax
je 0x1400251c3
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x1400251c3
test byte [rsp + 0x40], 1
jne 0x1400251f8
lea rcx, [rsp + 0x30]
call fcn.14001ca50
test eax, eax
je 0x1400251e5
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.1400121d0
cmp dword [rsp + 0x30], 4
jb 0x1400251f2
bts edi, 0x15
jmp 0x140025236
bts edi, 0x12
jmp 0x140025236
mov rcx, qword [0x14003c0f0]
cmp rcx, rbp
je 0x140025236
call fcn.140017420
test rax, rax
je 0x140025236
call rax
test rax, rax
mov rbx, rax
je 0x140025236
mov rcx, qword [0x14003c0f8]
cmp rcx, rbp
je 0x140025236
call fcn.140017420
test rax, rax
je 0x140025236
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003c0e8]
call fcn.140017420
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x14002525f
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x140025261
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140028920
Capabilities:
Clear file content

Disassembly:
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r13
sub rsp, 0x20
mov rbp, rdx
xor edi, edi
xor edx, edx
lea r8d, [rdi + 1]
mov esi, ecx
call fcn.140023590
cmp rax, 0xffffffffffffffff
mov r13, rax
je 0x140028ac4
lea r8d, [rdi + 2]
xor edx, edx
mov ecx, esi
call fcn.140023590
cmp rax, 0xffffffffffffffff
je 0x140028ac4
mov qword [rsp + 0x40], rbx
mov rbx, rbp
mov qword [rsp + 0x50], r14
sub rbx, rax
test rbx, rbx
jle 0x140028a43
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r14d, 0x1000
lea edx, [rdi + 8]
mov rcx, rax
mov r8, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1400289c9
call fcn.140016cc0
mov dword [rax], 0xc
call fcn.140016cc0
mov eax, dword [rax]
mov rbx, qword [rsp + 0x40]
mov r14, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
mov edx, 0x8000
mov ecx, esi
mov qword [rsp + 0x48], r12
call fcn.140028ba0
mov r12d, eax
nop
mov r8d, ebx
cmp rbx, r14
mov rdx, rbp
cmovge r8d, r14d
mov ecx, esi
call fcn.140020430
cmp eax, 0xffffffff
je 0x140028a05
cdqe
sub rbx, rax
test rbx, rbx
jg 0x1400289e0
jmp 0x140028a1e
call fcn.140016cf0
cmp dword [rax], 5
jne 0x140028a1a
call fcn.140016cc0
mov dword [rax], 0xd
or rdi, 0xffffffffffffffff
mov edx, r12d
mov ecx, esi
call fcn.140028ba0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r12, qword [rsp + 0x48]
jmp 0x140028a9c
test rbx, rbx
jns 0x140028aa6
xor r8d, r8d
mov rdx, rbp
mov ecx, esi
call fcn.140023590
cmp rax, 0xffffffffffffffff
je 0x1400289aa
mov ecx, esi
call fcn.140025f20
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
neg eax
sbb rdi, rdi
neg rdi
sub rdi, 1
cmp rdi, 0xffffffffffffffff
jne 0x140028aa6
call fcn.140016cc0
mov dword [rax], 0xd
call fcn.140016cf0
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx], eax
cmp rdi, 0xffffffffffffffff
je 0x1400289aa
xor r8d, r8d
mov rdx, r13
mov ecx, esi
call fcn.140023590
cmp rax, 0xffffffffffffffff
je 0x1400289aa
xor eax, eax
jmp 0x1400289b1
call fcn.140016cc0
mov rbp, qword [rsp + 0x58]
mov eax, dword [rax]
add rsp, 0x20
pop r13
pop rdi
pop rsi
ret
Function at 0x14002c594
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.140011ab0
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x140000000]
mov esi, 0x94
lea rcx, [rsp + 0x20]
mov r8, rsi
xor edx, edx
mov qword [rbx + 0x10], rax
mov qword [rbx + 8], rax
mov dword [rbx], 0x60
mov byte [rbx + 0x18], 0
call fcn.140011ab0
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x30], 2
mov esi, 1
jne 0x14002c627
cmp dword [rsp + 0x24], 5
jb 0x14002c641
jmp 0x14002c63d
cmp dword [rsp + 0x30], esi
jne 0x14002c641
cmp dword [rsp + 0x24], 4
ja 0x14002c63d
jne 0x14002c641
cmp dword [rsp + 0x28], 0
jbe 0x14002c641
mov byte [rbx + 0x18], sil
lea rax, [0x1400326c8]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.14002c3d4
movzx ecx, byte [0x14003afe8]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x14003afe8], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140011c90
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x14080c058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14080c1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x14080c089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14080c06f
add dl, dl
jne 0x14080c096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14080c0f6
xor eax, eax
add dl, dl
jne 0x14080c0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14080c1ad
add dl, dl
jne 0x14080c0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080c0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080c0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080c0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14080c0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14080c07e
mov eax, 1
add dl, dl
jne 0x14080c106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14080c113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14080c0fb
sub eax, ebx
mov ebx, 1
jne 0x14080c14c
mov ecx, 1
add dl, dl
jne 0x14080c12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14080c13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14080c123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080c07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14080c168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14080c175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14080c15d
cmp eax, 0x7d00
jae 0x14080c19b
cmp eax, 0x500
jb 0x14080c196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080c07e
cmp eax, 0x7f
ja 0x14080c19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14080c07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14080c1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14080c07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20