joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1083268
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
sub rsp, 0x198
mov rax, qword [0x010a9180]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x010b71e4], 0
jne 0x1083405
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x114
mov dword [0x010b71e4], 1
call fcn.01087220
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10832d4
lea rdx, [0x01081cd8]
xor ecx, ecx
call fcn.01083a0c
jmp 0x1083405
cmp dword [rsp + 0x44], 5
jne 0x108330d
cmp dword [rsp + 0x48], 0
mov ecx, 0xe
jne 0x10832fa
mov dword [0x010b71e4], 2
lea rdx, [0x01081d10]
jmp 0x108332a
mov dword [0x010b71e4], 3
lea rdx, [0x01081d58]
jmp 0x108332a
cmp dword [rsp + 0x44], 6
jb 0x108332f
mov dword [0x010b71e4], 4
lea rdx, [0x01081da0]
mov ecx, 0xe
call fcn.01083a0c
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x01081e00]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1083405
xor eax, eax
lea r9, [rsp + 0x3c]
lea rdx, [0x01081e60]
mov qword [rsp + 0x161], rax
mov qword [rsp + 0x169], rax
mov qword [rsp + 0x171], rax
mov dword [rsp + 0x179], eax
mov word [rsp + 0x17d], ax
mov byte [rsp + 0x17f], al
lea rax, [rsp + 0x38]
xor r8d, r8d
mov byte [rsp + 0x160], 0
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x160]
mov dword [rsp + 0x38], 0x20
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x3c], 1
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10833fa
lea rcx, [rsp + 0x160]
call fcn.01086660
lea rcx, [rsp + 0x164]
mov dword [0x010b71e8], eax
call fcn.01086660
mov dword [0x010b71ec], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x010b71e4]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.01086590
add rsp, 0x198
ret

Function at 0x1083600
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp ecx, 2
mov dword [0x010b6b4c], ecx
setne al
cmp ecx, 4
mov dword [0x010b6b54], edx
mov dword [0x010b6b50], eax
mov dword [0x010b6b60], r8d
je 0x1083648
cmp ecx, 1
je 0x1083648
mov eax, dword [0x010ac9f8]
mov dword [0x010b6b5c], eax
add eax, 1
mov dword [0x010ac9f8], eax
jmp 0x108364f
and dword [0x010b6b5c], 0
mov rcx, qword [0x010b6b40]
lea rdx, [0x010b6b48]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
mov ebx, eax
jne 0x1083676
lea rcx, [0x010820d8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1083684
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x010a9180]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [rsp + 0x28]
lea rdx, [0x01082100]
lea r8d, [rbx + 0x20]
call fcn.0108a340
mov ecx, 0xfffe
mov dword [rsp + 0x20], 0x7fff
call fcn.0108623c
test rax, rax
mov rdi, rax
je 0x108370e
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [rbx + 1]
test eax, eax
je 0x10836fe
lea r8d, [rbx + 0xf]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.010868f8
test eax, eax
cmove ebx, esi
mov rcx, rdi
call fcn.010861b8
test ebx, ebx
je 0x108370e
mov ecx, esi
jmp 0x1083710
xor ecx, ecx
call fcn.01084738
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.01086590
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1083a0c
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
push r12
push r13
sub rsp, 0xff0
mov rax, qword [0x010a9180]
xor rax, rsp
mov qword [rsp + 0xfe0], rax
mov qword [rsp + 0x38], rsp
mov ebx, ecx
lea rcx, [0x010b6f20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, dword [0x010b6b64]
jb 0x1083a5b
xor al, al
jmp 0x1083a75
mov rcx, qword [0x010b6f18]
test rcx, rcx
jne 0x1083a6b
mov al, 1
jmp 0x1083a75
mov rax, rbx
cmp byte [rbx + rcx], 0
setne al
movzx eax, al
test eax, eax
jne 0x1083a8d
lea rdx, [0x01083b6a]
mov rcx, qword [rsp + 0x38]
call fcn.0108ee20
lea r13, [rsp + 0x1030]
lea r8, [0x010b6f50]
mov esi, 0x7d0
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.010865b8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
mov rdx, qword [0x010b7258]
test rdx, rdx
je 0x1083b10
mov rcx, rbx
imul rcx, rcx, 0x84
lea rdi, [rcx + rdx + 4]
call qword [sym.imp.WINMM.dll_timeGetTime]
mov ebx, eax
sub ebx, dword [0x010b6934]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov ecx, esi
sub ecx, r12d
movsxd rdx, ecx
lea rcx, [rsp + r12*2 + 0x40]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], ebx
lea r8, [0x01082148]
call fcn.01086bf8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
sub esi, eax
movsxd rdx, esi
cdqe
lea rcx, [rsp + rax*2 + 0x40]
mov r9, r13
mov r8, qword [rsp + 0x1028]
call fcn.01086b90
cmp byte [0x010b7254], 0
je 0x1083b4c
lea rcx, [rsp + 0x40]
call fcn.01083bb0
jmp 0x1083b57
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and qword [rsp + 0x30], 0
lea rcx, [0x010b6f20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xfe0]
xor rcx, rsp
call fcn.01086590
add rsp, 0xff0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1083bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x010a9180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov rcx, qword [0x010b6d08]
mov r9d, 2
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
or rcx, 0xffffffffffffffff
xor eax, eax
and qword [rsp + 0x20], rax
mov rdi, rbx
lea r9, [rsp + 0x30]
repne scasw ax, word [rdi]
mov rdx, rbx
not rcx
lea r8d, [rcx + rcx - 2]
mov rcx, qword [0x010b6d08]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x010b6d08]
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x38]
mov r8d, 4
mov word [rsp + 0x38], 0xd
mov word [rsp + 0x3a], 0xa
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.01086590
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1083c64
Capabilities:
Query or enumerate registry value
Set registry value

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 rbp, rcx
mov ecx, dword [0x010b6b64]
call fcn.0108623c
xor r14d, r14d
cmp rax, r14
mov qword [0x010b6f18], rax
je 0x1083d9d
cmp dword [0x010b6b64], r14d
lea rbx, [0x01080a80]
mov edi, r14d
dec byte [rax - 0x77]
sbb eax, 0x335a5
Function at 0x1083dbc
Capabilities:
Query or enumerate registry value
Set registry value
Write file on windows

Disassembly:
mov r11, rsp
push rbx
push rbp
push rdi
sub rsp, 0x50
lea rax, [r11 + 0x20]
lea rbp, [0x010b6d10]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x40], rax
lea rdx, [0x010821b0]
xor r8d, r8d
mov qword [r11 - 0x48], rbp
mov rbx, rcx
mov dword [r11 + 0x20], 0x104
mov dword [r11 + 0x18], 4
mov byte [0x010b7254], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1083f35
cmp dword [rsp + 0x80], 1
jne 0x1083f35
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
mov rcx, rbp
je 0x1083e79
and qword [rsp + 0x30], rax
lea r8d, [rax + 3]
xor r9d, r9d
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
mov qword [0x010b6d08], rax
je 0x1083f82
mov byte [0x010b7254], 1
jmp 0x1083f82
lea r8, [0x010821c0]
mov edx, 0x104
call fcn.010865b8
and qword [rsp + 0x30], 0
xor r9d, r9d
lea r8d, [r9 + 3]
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x010b6d08], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1083efa
and qword [rsp + 0x30], 0
lea r8d, [rax + 3]
xor r9d, r9d
mov edx, 0x40000000
mov rcx, rbp
mov dword [rsp + 0x28], 0x80000080
mov dword [rsp + 0x20], 2
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [0x010b6d08], rax
jmp 0x1083f01
mov rax, qword [0x010b6d08]
cmp rax, 0xffffffffffffffff
je 0x1083f82
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
lea rdx, [rsp + 0x78]
mov r8d, 4
mov rcx, rax
mov byte [rsp + 0x78], 0xff
mov byte [rsp + 0x79], 0xfe
call qword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1083e6d
lea r8, [0x01082140]
mov edx, 0x104
mov rcx, rbp
call fcn.010865b8
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x010821b0]
lea r9d, [rax + 1]
repne scasw ax, word [rdi]
xor r8d, r8d
not rcx
add ecx, 1
mov dword [rsp + 0x28], ecx
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov byte [0x010b7254], 0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret

Function at 0x10855b8
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 8], ecx
push rbx
sub rsp, 0x30
and qword [rsp + 0x48], 0
lea r8, [rsp + 0x48]
lea rdx, [0x010828f8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x108561b
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, [0x01082920]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x48]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x108562c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x40
and qword [rax - 0x18], 0
and dword [rax + 0x10], 0
mov rdi, rcx
lea r8, [rax - 0x18]
lea rdx, [0x010828f8]
mov rcx, 0xffffffff80000001
mov dword [rax + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x10856b6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x01082920]
xor r8d, r8d
mov dword [rsp + 0x60], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
mov ebx, eax
jne 0x10856ab
mov eax, dword [rsp + 0x58]
mov dword [rdi], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x1086070
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x010a9180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.01087220
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x01000000]
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.01087220
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 0x1086103
cmp dword [rsp + 0x24], 5
jb 0x108611d
jmp 0x1086119
cmp dword [rsp + 0x30], esi
jne 0x108611d
cmp dword [rsp + 0x24], 4
ja 0x1086119
jne 0x108611d
cmp dword [rsp + 0x28], 0
jbe 0x108611d
mov byte [rbx + 0x18], sil
lea rax, [0x01001568]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.01085f20
movzx ecx, byte [0x010b7284]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x010b7284], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.01086590
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10862dc
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x010a9180]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, dword [0x010a9170]
call fcn.01088d70
mov dword [0x010a9170], eax
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [rsp + 0xa0], 0x114
lea rcx, [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x108633e
mov eax, 0xff
jmp 0x1086519
mov r8d, dword [rsp + 0xac]
and r8d, 0x7fff
mov r9d, dword [rsp + 0xb0]
cmp r9d, 2
je 0x1086360
bts r8d, 0xf
mov edx, dword [rsp + 0xa4]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0xa8]
add ecx, eax
mov dword [0x010acb9c], r9d
mov dword [0x010acba4], ecx
mov dword [0x010acba8], edx
mov dword [0x010acbac], eax
mov dword [0x010acba0], r8d
cmp word [0x01000000], 0x5a4d
jne 0x10863f3
movsxd rax, dword [0x0100003c]
lea rdi, [0x01000000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x10863c1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1086400
cmp word [rax + 0x18], 0x20b
je 0x10863d1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1086400
cmp dword [rax + 0x84], 0xe
ja 0x10863e2
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1086400
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x1086400
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x01000000]
mov ecx, 1
call fcn.01088ca4
test eax, eax
jne 0x1086430
cmp dword [0x010acb88], 1
jne 0x108641c
call fcn.01087ea4
mov ecx, 0x1c
call fcn.01087ca4
mov ecx, 0xff
call fcn.010878f4
call fcn.01088c1c
test eax, eax
jne 0x108645c
cmp dword [0x010acb88], 1
jne 0x1086447
call fcn.01087ea4
mov ecx, 0x10
call fcn.01087ca4
mov ecx, 0xff
call fcn.010878f4
nop
call fcn.010885c8
test eax, eax
jns 0x108646f
mov ecx, 0x1b
call fcn.01087880
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x010b84f0], rax
call fcn.01088528
mov qword [0x010acb80], rax
call fcn.01088428
test eax, eax
jns 0x108649a
mov ecx, 8
call fcn.01087880
call fcn.01088120
test eax, eax
jns 0x10864ad
mov ecx, 9
call fcn.01087880
mov ecx, 1
call fcn.01087a08
test eax, eax
je 0x10864c2
mov ecx, eax
call fcn.01087880
call fcn.010880c8
test byte [rsp + 0x6c], 1
movzx edx, word [rsp + 0x70]
mov r9d, 0xa
cmovne r9d, edx
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.01082be4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x10864f9
mov ecx, eax
call fcn.01087bf4
call fcn.01087c18
jmp 0x1086517
mov eax, edi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.01086590
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
sub rsp, 0x28
call fcn.0114d000
add rsp, 0x28
jmp 0x10862dc
Function at 0x10875f8
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
sub rsp, 0x90
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x90], rbx
mov qword [rbp + 0x98], rsi
mov qword [rbp + 0xa0], rdi
mov rax, qword [0x010a9180]
xor rax, rbp
mov qword [rbp + 0x68], rax
mov eax, dword [rsp]
sub rsp, 0x10
lea r12, [rsp + 0x20]
mov eax, dword [r12]
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x10876fe
mov r13, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x3c]
lea rcx, [rbp]
xor ebx, ebx
and dword [rbp], ebx
call qword [sym.imp.KERNEL32.dll_SetThreadStackGuarantee]
cmp eax, 1
jne 0x1087686
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x10876fe
mov eax, edx
not eax
and ecx, eax
je 0x10876a1
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x10876fe
mov ecx, eax
lea eax, [rdi + rdi*2]
mov ebx, edx
cmp ecx, eax
not rbx
cmovb ecx, eax
and rbx, r12
lea rax, [r13 + rdi]
mov esi, ecx
sub rbx, rsi
cmp rbx, rax
jb 0x10876fe
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10876fe
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10876fe
mov eax, 1
jmp 0x1087700
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.01086590
mov rbx, qword [rbp + 0x90]
mov rsi, qword [rbp + 0x98]
mov rdi, qword [rbp + 0xa0]
lea rsp, [rbp + 0x70]
pop r13
pop r12
pop rbp
ret

Function at 0x1087acc
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.0108c460
nop
cmp dword [0x010acbfc], 1
je 0x1087b7f
mov dword [0x010acbf8], 1
mov byte [0x010acbb4], dil
test ebx, ebx
jne 0x1087b6b
mov rcx, qword [0x010b84d0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010b84c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1087b58
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1087b58
mov rcx, qword [rbx]
test rcx, rcx
je 0x1087b56
call rcx
jmp 0x1087b3e
lea rdx, [0x010014c0]
lea rcx, [0x010014a8]
call fcn.01087930
lea rdx, [0x010014d0]
lea rcx, [0x010014c8]
call fcn.01087930
nop
test edi, edi
je 0x1087b8d
mov ecx, 8
call fcn.0108c32c
test edi, edi
jne 0x1087bb5
mov dword [0x010acbfc], 1
lea ecx, [rdi + 8]
call fcn.0108c32c
mov ecx, r12d
call fcn.010878b4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1087acc
Function at 0x1087bf4
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
mov dword [rax + 0x18], r8d
push r12
sub rsp, 0x30
mov edi, r8d
mov ebx, edx
mov r12d, ecx
mov ecx, 8
call fcn.0108c460
nop
cmp dword [0x010acbfc], 1
je 0x1087b7f
mov dword [0x010acbf8], 1
mov byte [0x010acbb4], dil
test ebx, ebx
jne 0x1087b6b
mov rcx, qword [0x010b84d0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010b84c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1087b58
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1087b58
mov rcx, qword [rbx]
test rcx, rcx
je 0x1087b56
call rcx
jmp 0x1087b3e
lea rdx, [0x010014c0]
lea rcx, [0x010014a8]
call fcn.01087930
lea rdx, [0x010014d0]
lea rcx, [0x010014c8]
call fcn.01087930
nop
test edi, edi
je 0x1087b8d
mov ecx, 8
call fcn.0108c32c
test edi, edi
jne 0x1087bb5
mov dword [0x010acbfc], 1
lea ecx, [rdi + 8]
call fcn.0108c32c
mov ecx, r12d
call fcn.010878b4
mov ecx, r12d
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r12
ret
xor r8d, r8d
xor edx, edx
jmp 0x1087acc

Function at 0x1087c04
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1087acc
Function at 0x1087ca4
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rdi
push r13
sub rsp, 0x30
lea r13, [0x010a91a0]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x1087cd7
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1087cc7
cmp edi, 0x17
jae 0x1087e85
mov ebp, 3
mov ecx, ebp
call fcn.0108cb6c
cmp eax, 1
je 0x1087e3d
mov ecx, ebp
call fcn.0108cb6c
test eax, eax
jne 0x1087d0d
cmp dword [0x010a9170], 1
je 0x1087e3d
cmp ebx, 0xfc
je 0x1087e85
lea rbx, [0x010acc00]
mov ebp, 0x314
lea r8, [0x01001c70]
mov rcx, rbx
mov rdx, rbp
call fcn.0108c0f8
test eax, eax
je 0x1087d50
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01088fa0
lea rdx, [0x010acc19]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x010acd1d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1087da1
lea r8, [0x01001c58]
lea rcx, [0x010acc19]
mov edx, 0x2fb
call fcn.0108c0f8
test eax, eax
je 0x1087da1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01088fa0
lea r8, [0x010acc19]
mov rdx, rbp
mov rcx, rbx
call fcn.0108cad8
test eax, eax
je 0x1087dcc
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01088fa0
lea r8, [0x01001c50]
mov rdx, rbp
mov rcx, rbx
call fcn.0108cad8
test eax, eax
je 0x1087df7
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01088fa0
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.0108cad8
test eax, eax
je 0x1087e26
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01088fa0
lea rdx, [0x01001c28]
mov r8d, 0x12010
mov rcx, rbx
call fcn.0108c8a4
jmp 0x1087e85
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1087e85
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x1087e85
movsxd rdx, edi
xor eax, eax
lea r9, [rsp + 0x48]
and qword [rsp + 0x20], rax
add rdx, rdx
mov rdx, qword [r13 + rdx*8 + 8]
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 + 0x40]
mov rbp, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r13
ret

Function at 0x1088528
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 ebx, ebx
cmp rax, rbx
mov rdi, rax
jne 0x1088550
xor eax, eax
jmp 0x108859c
cmp word [rdi], bx
je 0x1088567
add rax, 2
cmp word [rax], bx
jne 0x1088555
add rax, 2
cmp word [rax], bx
jne 0x1088555
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.0108666c
cmp rax, rbx
mov rsi, rax
je 0x1088590
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.0108a340
mov rbx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret