joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400035cc
Capabilities:
Check if file exists
Identify system language via api

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rax - 0x178]
sub rsp, 0x260
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rbp + 0x150], rax
xor r15d, r15d
mov r12d, 0x104
lea rdx, [rsp + 0x40]
mov r8d, r12d
xor ecx, ecx
mov qword [0x140017758], r15
mov qword [rsp + 0x30], r15
mov word [rsp + 0x38], r15w
mov esi, r15d
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140003652
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
movzx eax, ax
or eax, 0x80070000
test r11d, r11d
cmovle eax, r11d
jmp 0x1400037b5
cmp eax, r12d
jne 0x140003661
mov eax, 0x8007007a
jmp 0x1400037b5
lea rcx, [rsp + 0x40]
mov edx, 0x5c
call fcn.14000df84
mov r14, rax
test rax, rax
jne 0x140003682
mov eax, 0x8000ffff
jmp 0x1400037b5
lea rcx, str.MSO.dll
movzx ebx, r15w
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400036b0
lea rdx, str._MsoGetUILcid_0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
jne 0x1400036c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx edi, ax
or edi, 0x80070000
test eax, eax
cmovle edi, eax
jmp 0x1400036ca
call rax
mov ebx, eax
test edi, edi
js 0x1400036f2
test bx, bx
je 0x1400036f2
mov eax, 0x3ff
mov word [rsp + 0x30], bx
mov esi, 2
and bx, ax
mov eax, 0x400
or bx, ax
mov word [rsp + 0x32], bx
movsxd rbx, esi
call qword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
inc esi
mov word [rsp + rbx*2 + 0x30], ax
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
movsxd rcx, esi
inc esi
mov word [rsp + rcx*2 + 0x30], ax
mov ecx, 0x409
movsxd rax, esi
inc esi
mov word [rsp + rax*2 + 0x30], cx
cmp esi, 5
ja 0x140003678
lea rcx, [rsp + 0x40]
lea rax, [r14 + 2]
mov rbx, r15
sub rax, rcx
movsxd rdi, esi
sar rax, 1
sub r12d, eax
test esi, esi
jle 0x1400037b0
movsxd rsi, r12d
movzx eax, word [rsp + rbx*2 + 0x30]
lea rcx, str.VSTOInstallerUI.dll
lea r9, str._u_s
mov qword [rsp + 0x28], rcx
lea rcx, [r14 + 2]
mov r8, rsi
mov rdx, rsi
mov dword [rsp + 0x20], eax
call fcn.14000dfb8
test eax, eax
js 0x140003657
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
jne 0x1400037e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r11d, eax
cmp eax, 2
je 0x1400037a8
cmp eax, 3
je 0x1400037a8
cmp eax, 0x7e
jne 0x14000363e
inc rbx
cmp rbx, rdi
jl 0x140003749
mov eax, 0x80004005
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140003ee0
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov qword [0x140017758], rax
xor eax, eax
jmp 0x1400037b5
Function at 0x140003b3c
Capabilities:
Check if file exists
Get common file path

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rsp + 0x240], rax
xor ebp, ebp
mov rbx, rcx
test rcx, rcx
je 0x140003cf6
lea rax, [rsp + 0x30]
mov word [rcx], bp
test rax, rax
je 0x140003ce8
lea rax, [rsp + 0x30]
lea edx, [rbp + 0x2c]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov word [rsp + 0x30], bp
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r11d, eax
cmp eax, 0x80004005
jne 0x140003bca
lea rax, [rsp + 0x30]
lea edx, [rbp + 0x2b]
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov r11d, eax
mov r12d, 0x8000ffff
test r11d, r11d
js 0x140003bde
cmovne r11d, r12d
test r11d, r11d
jns 0x140003bec
mov word [rsp + 0x30], bp
test r11d, r11d
js 0x140003cee
lea rdx, str.Microsoft_SharedVSTO
lea rcx, [rsp + 0x30]
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
jne 0x140003c0a
mov r11d, r12d
jmp 0x140003cee
lea rsi, [rsp + 0x30]
mov edi, 0x104
mov rcx, rbx
sub rsi, rbx
mov edx, edi
mov r11d, ebp
lea rax, [rdx + 0x7ffffefa]
test rax, rax
je 0x140003c40
movzx eax, word [rsi + rcx]
test ax, ax
je 0x140003c40
mov word [rcx], ax
add rcx, 2
dec rdx
jne 0x140003c1f
test rdx, rdx
jne 0x140003c4f
sub rcx, 2
mov r11d, 0x8007007a
mov word [rcx], bp
test r11d, r11d
js 0x140003cee
lea rdx, str.10.0VSTOInstaller.exe
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003c02
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov r11d, ebp
test eax, eax
jne 0x140003cf1
mov rcx, rbx
lea rax, [rdi + 0x7ffffefa]
test rax, rax
je 0x140003ca3
movzx eax, word [rsi + rcx]
test ax, ax
je 0x140003ca3
mov word [rcx], ax
add rcx, 2
dec rdi
jne 0x140003c82
test rdi, rdi
jne 0x140003cb2
sub rcx, 2
mov r11d, 0x8007007a
mov word [rcx], bp
test r11d, r11d
js 0x140003cee
lea rdx, str.9.0VSTOInstaller.exe
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathAppendW]
test eax, eax
je 0x140003c02
mov rcx, rbx
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x140003c02
mov r11d, ebp
jmp 0x140003cf1
mov r11d, 0x80004003
mov word [rbx], bp
mov eax, r11d
jmp 0x140003cfb
mov eax, 0x80004003
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140003ee0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r12
pop rdi
pop rsi
ret

Function at 0x1400047e0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004648
Function at 0x140005c47
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140015070]
jne 0x140003efa
rol rcx, 0x10
test cx, 0xffff
jne 0x140003ef6
repz ret
ror rcx, 0x10
jmp 0x140005ba0
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140016cc0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140016db8]
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 0x140005c25
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, [0x140016cc0]
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 0x140005c47
mov rax, qword [rsp + 0x88]
mov qword [0x140016db8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140016d58], rax
mov rax, qword [0x140016db8]
mov qword [0x140016c30], rax
mov rax, qword [rsp + 0x90]
mov qword [0x140016d40], rax
mov dword [0x140016c20], 0xc0000409
mov dword [0x140016c24], 1
mov rax, qword [0x140015070]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140015078]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140016cb8], eax
mov ecx, 1
call fcn.1400096c4
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x140010fa0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140016cb8], 0
jne 0x140005cce
mov ecx, 1
call fcn.1400096c4
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 0x140009060
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x140015070]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.1400056d0
xor ebx, ebx
cmp qword [0x140017460], rbx
mov rdi, rax
jne 0x140009173
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x14000924a
lea rdx, [0x140011508]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14000924a
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140017460], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140017468], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x140017470], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x140017480], rax
test rax, rax
je 0x14000916a
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x140017478], rax
jmp 0x14000917a
mov rax, qword [0x140017478]
jmp 0x140009181
mov rax, qword [0x140017478]
mov r11, qword [0x140017480]
cmp rax, rdi
je 0x1400091e8
cmp r11, rdi
je 0x1400091e8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x140017480]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x1400091e8
test rax, rax
je 0x1400091e8
call rsi
test rax, rax
je 0x1400091e2
lea rcx, [rsp + 0x30]
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 0x1400091e2
test byte [rsp + 0x40], 1
jne 0x1400091e8
bts ebp, 0x15
jmp 0x140009228
mov rcx, qword [0x140017468]
cmp rcx, rdi
je 0x140009228
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140009228
call rax
mov rbx, rax
test rax, rax
je 0x140009228
mov rcx, qword [0x140017470]
cmp rcx, rdi
je 0x140009228
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x140009228
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140017460]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x14000924a
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x14000924c
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140003ee0
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140001ea4
Capabilities:
Parse pe header

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

Function at 0x140007890
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 0x1400078ff
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400078ff
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400078ff
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400078ff
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400078ff
cmp dword [rcx + 0x84], 0xe
jbe 0x1400078ff
cmp dword [rcx + 0xf8], 0
je 0x1400078ff
mov ecx, ebx
call fcn.1400079b0
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.14000778c
nop
cmp dword [rbp + 0x20], 0
je 0x14000794d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140007958
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140007890

Function at 0x140007a94
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140007890
Function at 0x14000cdd8
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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14000ce08
xor eax, eax
jmp 0x14000cecb
mov rbp, rbx
cmp word [rax], si
je 0x14000ce2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000ce14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000ce10
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14000ccf8
movsxd r14, eax
test eax, eax
jne 0x14000ce6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000ce01
mov rcx, r14
call fcn.140009c64
mov rdi, rax
test rax, rax
jne 0x14000ce84
xor ecx, ecx
call fcn.140008fec
jmp 0x14000ce60
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14000ccf8
test eax, eax
jne 0x14000ceb5
mov rcx, rdi
call fcn.140008fec
jmp 0x14000cebf
xor ecx, ecx
call fcn.140008fec
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret
Function at 0x1400111ec
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140011202
mov al, 1
jmp 0x140011262
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140011213
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140011260
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000d6f8
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140011260
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140011260
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140011260
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140011262
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400122a0
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000bdc8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14001232a
cmp byte [rbp - 0x21], r15b
je 0x140012325
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140012360
call fcn.14000923c
test eax, eax
jne 0x14001234c
cmp byte [rbp - 0x21], r15b
je 0x140012344
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140012360
cmp byte [rbp - 0x21], r15b
je 0x14001235d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000b3a8
test eax, eax
jne 0x140012400
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000bdc8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001239f
cmp byte [rbp - 0x21], r15b
je 0x1400123d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400123d4
call fcn.14000923c
test eax, eax
jne 0x1400123c0
cmp byte [rbp - 0x21], r15b
je 0x1400123b9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400123d4
cmp byte [rbp - 0x21], r15b
je 0x1400123d1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000b3a8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140012400
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140012403
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140012411
mov rcx, rdi
call fcn.140008fec
cmp byte [rbp + 0x3f], r15b
je 0x140012420
mov rcx, qword [rbp + 0x27]
call fcn.140008fec
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140014990
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400149b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400149b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140b81058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x140b811df
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 0x140b81089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b8106f
add dl, dl
jne 0x140b81096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b810f6
xor eax, eax
add dl, dl
jne 0x140b810a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140b811ad
add dl, dl
jne 0x140b810b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b810c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b810d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b810dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140b810ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140b8107e
mov eax, 1
add dl, dl
jne 0x140b81106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140b81113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b810fb
sub eax, ebx
mov ebx, 1
jne 0x140b8114c
mov ecx, 1
add dl, dl
jne 0x140b8112e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b8113b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b81123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b8107e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140b81168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140b81175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140b8115d
cmp eax, 0x7d00
jae 0x140b8119b
cmp eax, 0x500
jb 0x140b81196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b8107e
cmp eax, 0x7f
ja 0x140b8119e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140b8107e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140b811d2
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 0x140b8107e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140002aa0
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140002ac8
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x140002aee
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x140002af0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140002b49
test ecx, ecx
jle 0x140002b29
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140002b49
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140002b49
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret

Function at 0x140002b70
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r14
sub rsp, 0x30
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140002b92
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret
cmp qword [rcx + 0x68], 0
je 0x140002ba8
add rsp, 0x30
pop r14
pop rsi
pop rbp
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x28], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x140002bc4
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140002bc6
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140002c02
mov qword [rsp + 0x20], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x20]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x140002c9e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140002c3d
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x140002c7e
nop word [rax + rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x140002c9e
cmp rbx, rax
ja 0x140002c50
test rbx, rbx
je 0x140002c9e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
sub rbp, rbx
mov rbx, qword [rsp + 0x28]
mov rax, rbp
add rsp, 0x30
pop r14
pop rsi
pop rbp
ret