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

Disassembly:
sub rsp, 0x198
mov rax, qword [0x010b8180]
xor rax, rsp
mov qword [rsp + 0x180], rax
cmp dword [0x010c61e4], 0
jne 0x1092405
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x114
mov dword [0x010c61e4], 1
call fcn.01096220
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x114
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x10922d4
lea rdx, [0x01090cd8]
xor ecx, ecx
call fcn.01092a0c
jmp 0x1092405
cmp dword [rsp + 0x44], 5
jne 0x109230d
cmp dword [rsp + 0x48], 0
mov ecx, 0xe
jne 0x10922fa
mov dword [0x010c61e4], 2
lea rdx, [0x01090d10]
jmp 0x109232a
mov dword [0x010c61e4], 3
lea rdx, [0x01090d58]
jmp 0x109232a
cmp dword [rsp + 0x44], 6
jb 0x109232f
mov dword [0x010c61e4], 4
lea rdx, [0x01090da0]
mov ecx, 0xe
call fcn.01092a0c
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
lea rdx, [0x01090e00]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1092405
xor eax, eax
lea r9, [rsp + 0x3c]
lea rdx, [0x01090e60]
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 0x10923fa
lea rcx, [rsp + 0x160]
call fcn.01095660
lea rcx, [rsp + 0x164]
mov dword [0x010c61e8], eax
call fcn.01095660
mov dword [0x010c61ec], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [0x010c61e4]
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.01095590
add rsp, 0x198
ret

Function at 0x1092600
Capabilities:
Print debug messages

Disassembly:
push rbx
sub rsp, 0x20
xor eax, eax
cmp ecx, 2
mov dword [0x010c5b4c], ecx
setne al
cmp ecx, 4
mov dword [0x010c5b54], edx
mov dword [0x010c5b50], eax
mov dword [0x010c5b60], r8d
je 0x1092648
cmp ecx, 1
je 0x1092648
mov eax, dword [0x010bb9f8]
mov dword [0x010c5b5c], eax
add eax, 1
mov dword [0x010bb9f8], eax
jmp 0x109264f
and dword [0x010c5b5c], 0
mov rcx, qword [0x010c5b40]
lea rdx, [0x010c5b48]
call qword [sym.imp.ADVAPI32.dll_SetServiceStatus]
test eax, eax
mov ebx, eax
jne 0x1092676
lea rcx, [0x010910d8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov eax, ebx
add rsp, 0x20
pop rbx
ret
Function at 0x1092684
Capabilities:
Get session user name

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x010b8180]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
lea rcx, [rsp + 0x28]
lea rdx, [0x01091100]
lea r8d, [rbx + 0x20]
call fcn.01099340
mov ecx, 0xfffe
mov dword [rsp + 0x20], 0x7fff
call fcn.0109523c
test rax, rax
mov rdi, rax
je 0x109270e
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea esi, [rbx + 1]
test eax, eax
je 0x10926fe
lea r8d, [rbx + 0xf]
lea rdx, [rsp + 0x28]
mov rcx, rdi
call fcn.010958f8
test eax, eax
cmove ebx, esi
mov rcx, rdi
call fcn.010951b8
test ebx, ebx
je 0x109270e
mov ecx, esi
jmp 0x1092710
xor ecx, ecx
call fcn.01093738
mov eax, ebx
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.01095590
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret

Function at 0x1092a0c
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 [0x010b8180]
xor rax, rsp
mov qword [rsp + 0xfe0], rax
mov qword [rsp + 0x38], rsp
mov ebx, ecx
lea rcx, [0x010c5f20]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp ebx, dword [0x010c5b64]
jb 0x1092a5b
xor al, al
jmp 0x1092a75
mov rcx, qword [0x010c5f18]
test rcx, rcx
jne 0x1092a6b
mov al, 1
jmp 0x1092a75
mov rax, rbx
cmp byte [rbx + rcx], 0
setne al
movzx eax, al
test eax, eax
jne 0x1092a8d
lea rdx, [0x01092b6a]
mov rcx, qword [rsp + 0x38]
call fcn.0109de20
lea r13, [rsp + 0x1030]
lea r8, [0x010c5f50]
mov esi, 0x7d0
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.010955b8
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
movsxd r12, eax
mov rdx, qword [0x010c6258]
test rdx, rdx
je 0x1092b10
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 [0x010c5934]
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, [0x01091148]
call fcn.01095bf8
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.01095b90
cmp byte [0x010c6254], 0
je 0x1092b4c
lea rcx, [rsp + 0x40]
call fcn.01092bb0
jmp 0x1092b57
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
and qword [rsp + 0x30], 0
lea rcx, [0x010c5f20]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rcx, qword [rsp + 0xfe0]
xor rcx, rsp
call fcn.01095590
add rsp, 0xff0
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
Function at 0x1092bb0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
mov rax, qword [0x010b8180]
xor rax, rsp
mov qword [rsp + 0x50], rax
mov rbx, rcx
mov rcx, qword [0x010c5d08]
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 [0x010c5d08]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [0x010c5d08]
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.01095590
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret

Function at 0x1092c64
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 [0x010c5b64]
call fcn.0109523c
xor r14d, r14d
cmp rax, r14
mov qword [0x010c5f18], rax
je 0x1092d9d
cmp dword [0x010c5b64], r14d
lea rbx, [0x0108fa80]
mov edi, r14d
dec byte [rax - 0x77]
sbb eax, 0x335a5
Function at 0x1092dbc
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, [0x010c5d10]
lea r9, [r11 + 0x18]
mov qword [r11 - 0x40], rax
lea rdx, [0x010911b0]
xor r8d, r8d
mov qword [r11 - 0x48], rbp
mov rbx, rcx
mov dword [r11 + 0x20], 0x104
mov dword [r11 + 0x18], 4
mov byte [0x010c6254], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1092f35
cmp dword [rsp + 0x80], 1
jne 0x1092f35
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
repne scasw ax, word [rdi]
not rcx
cmp rcx, 1
mov rcx, rbp
je 0x1092e79
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 [0x010c5d08], rax
je 0x1092f82
mov byte [0x010c6254], 1
jmp 0x1092f82
lea r8, [0x010911c0]
mov edx, 0x104
call fcn.010955b8
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 [0x010c5d08], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1092efa
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 [0x010c5d08], rax
jmp 0x1092f01
mov rax, qword [0x010c5d08]
cmp rax, 0xffffffffffffffff
je 0x1092f82
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 0x1092e6d
lea r8, [0x01091140]
mov edx, 0x104
mov rcx, rbp
call fcn.010955b8
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rbp
lea rdx, [0x010911b0]
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 [0x010c6254], 0
add rsp, 0x50
pop rdi
pop rbp
pop rbx
ret

Function at 0x10945b8
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, [0x010918f8]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x109461b
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, [0x01091920]
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 0x109462c
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, [0x010918f8]
mov rcx, 0xffffffff80000001
mov dword [rax + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x10946b6
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x01091920]
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 0x10946ab
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 0x1095070
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x010b8180]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.01096220
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x0100f000]
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.01096220
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 0x1095103
cmp dword [rsp + 0x24], 5
jb 0x109511d
jmp 0x1095119
cmp dword [rsp + 0x30], esi
jne 0x109511d
cmp dword [rsp + 0x24], 4
ja 0x1095119
jne 0x109511d
cmp dword [rsp + 0x28], 0
jbe 0x109511d
mov byte [rbx + 0x18], sil
lea rax, [0x01010568]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.01094f20
movzx ecx, byte [0x010c6284]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x010c6284], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.01095590
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x10952dc
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x1d0
mov rax, qword [0x010b8180]
xor rax, rsp
mov qword [rsp + 0x1c0], rax
mov ecx, dword [0x010b8170]
call fcn.01097d70
mov dword [0x010b8170], 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 0x109533e
mov eax, 0xff
jmp 0x1095519
mov r8d, dword [rsp + 0xac]
and r8d, 0x7fff
mov r9d, dword [rsp + 0xb0]
cmp r9d, 2
je 0x1095360
bts r8d, 0xf
mov edx, dword [rsp + 0xa4]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0xa8]
add ecx, eax
mov dword [0x010bbb9c], r9d
mov dword [0x010bbba4], ecx
mov dword [0x010bbba8], edx
mov dword [0x010bbbac], eax
mov dword [0x010bbba0], r8d
cmp word [0x0100f000], 0x5a4d
jne 0x10953f3
movsxd rax, dword [0x0100f03c]
lea rdi, [0x0100f000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x10953c1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1095400
cmp word [rax + 0x18], 0x20b
je 0x10953d1
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1095400
cmp dword [rax + 0x84], 0xe
ja 0x10953e2
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x1095400
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x1095400
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x0100f000]
mov ecx, 1
call fcn.01097ca4
test eax, eax
jne 0x1095430
cmp dword [0x010bbb88], 1
jne 0x109541c
call fcn.01096ea4
mov ecx, 0x1c
call fcn.01096ca4
mov ecx, 0xff
call fcn.010968f4
call fcn.01097c1c
test eax, eax
jne 0x109545c
cmp dword [0x010bbb88], 1
jne 0x1095447
call fcn.01096ea4
mov ecx, 0x10
call fcn.01096ca4
mov ecx, 0xff
call fcn.010968f4
nop
call fcn.010975c8
test eax, eax
jns 0x109546f
mov ecx, 0x1b
call fcn.01096880
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x010c74f0], rax
call fcn.01097528
mov qword [0x010bbb80], rax
call fcn.01097428
test eax, eax
jns 0x109549a
mov ecx, 8
call fcn.01096880
call fcn.01097120
test eax, eax
jns 0x10954ad
mov ecx, 9
call fcn.01096880
mov ecx, 1
call fcn.01096a08
test eax, eax
je 0x10954c2
mov ecx, eax
call fcn.01096880
call fcn.010970c8
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.01091be4
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x10954f9
mov ecx, eax
call fcn.01096bf4
call fcn.01096c18
jmp 0x1095517
mov eax, edi
mov rcx, qword [rsp + 0x1c0]
xor rcx, rsp
call fcn.01095590
mov rbx, qword [rsp + 0x1e0]
add rsp, 0x1d0
pop rdi
ret
sub rsp, 0x28
call fcn.01097dbc
add rsp, 0x28
jmp 0x10952dc
Function at 0x10965f8
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 [0x010b8180]
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 0x10966fe
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 0x1096686
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x10966fe
mov eax, edx
not eax
and ecx, eax
je 0x10966a1
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x10966fe
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 0x10966fe
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x10966fe
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x10966fe
mov eax, 1
jmp 0x1096700
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.01095590
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 0x1096acc
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.0109b460
nop
cmp dword [0x010bbbfc], 1
je 0x1096b7f
mov dword [0x010bbbf8], 1
mov byte [0x010bbbb4], dil
test ebx, ebx
jne 0x1096b6b
mov rcx, qword [0x010c74d0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010c74c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1096b58
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1096b58
mov rcx, qword [rbx]
test rcx, rcx
je 0x1096b56
call rcx
jmp 0x1096b3e
lea rdx, [0x010104c0]
lea rcx, [0x010104a8]
call fcn.01096930
lea rdx, [0x010104d0]
lea rcx, [0x010104c8]
call fcn.01096930
nop
test edi, edi
je 0x1096b8d
mov ecx, 8
call fcn.0109b32c
test edi, edi
jne 0x1096bb5
mov dword [0x010bbbfc], 1
lea ecx, [rdi + 8]
call fcn.0109b32c
mov ecx, r12d
call fcn.010968b4
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 0x1096acc
Function at 0x1096bf4
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.0109b460
nop
cmp dword [0x010bbbfc], 1
je 0x1096b7f
mov dword [0x010bbbf8], 1
mov byte [0x010bbbb4], dil
test ebx, ebx
jne 0x1096b6b
mov rcx, qword [0x010c74d0]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010c74c8]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1096b58
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1096b58
mov rcx, qword [rbx]
test rcx, rcx
je 0x1096b56
call rcx
jmp 0x1096b3e
lea rdx, [0x010104c0]
lea rcx, [0x010104a8]
call fcn.01096930
lea rdx, [0x010104d0]
lea rcx, [0x010104c8]
call fcn.01096930
nop
test edi, edi
je 0x1096b8d
mov ecx, 8
call fcn.0109b32c
test edi, edi
jne 0x1096bb5
mov dword [0x010bbbfc], 1
lea ecx, [rdi + 8]
call fcn.0109b32c
mov ecx, r12d
call fcn.010968b4
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 0x1096acc

Function at 0x1096c04
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x1096acc
Function at 0x1096ca4
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, [0x010b81a0]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x1096cd7
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x1096cc7
cmp edi, 0x17
jae 0x1096e85
mov ebp, 3
mov ecx, ebp
call fcn.0109bb6c
cmp eax, 1
je 0x1096e3d
mov ecx, ebp
call fcn.0109bb6c
test eax, eax
jne 0x1096d0d
cmp dword [0x010b8170], 1
je 0x1096e3d
cmp ebx, 0xfc
je 0x1096e85
lea rbx, [0x010bbc00]
mov ebp, 0x314
lea r8, [0x01010c70]
mov rcx, rbx
mov rdx, rbp
call fcn.0109b0f8
test eax, eax
je 0x1096d50
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01097fa0
lea rdx, [0x010bbc19]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x010bbd1d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1096da1
lea r8, [0x01010c58]
lea rcx, [0x010bbc19]
mov edx, 0x2fb
call fcn.0109b0f8
test eax, eax
je 0x1096da1
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01097fa0
lea r8, [0x010bbc19]
mov rdx, rbp
mov rcx, rbx
call fcn.0109bad8
test eax, eax
je 0x1096dcc
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01097fa0
lea r8, [0x01010c50]
mov rdx, rbp
mov rcx, rbx
call fcn.0109bad8
test eax, eax
je 0x1096df7
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01097fa0
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.0109bad8
test eax, eax
je 0x1096e26
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.01097fa0
lea rdx, [0x01010c28]
mov r8d, 0x12010
mov rcx, rbx
call fcn.0109b8a4
jmp 0x1096e85
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1096e85
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x1096e85
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 0x1097528
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 0x1097550
xor eax, eax
jmp 0x109759c
cmp word [rdi], bx
je 0x1097567
add rax, 2
cmp word [rax], bx
jne 0x1097555
add rax, 2
cmp word [rax], bx
jne 0x1097555
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.0109566c
cmp rax, rbx
mov rsi, rax
je 0x1097590
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.01099340
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