joyce8/EMBER2024-capa huggingface dataset:
Function at 0x107879c
Capabilities:
Link many functions at runtime
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
and dword [rax + 0x10], 0
lea r8, [rax + 0x18]
lea rdx, [0x01067c10]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1078812
mov rcx, qword [rsp + 0x80]
lea rax, [rsp + 0x70]
lea rdx, [0x01067c38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x70], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x01067dc0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov r13, rax
je 0x10789d8
lea rdx, [0x01067df0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x01067e60]
mov rcx, r13
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x01067e80]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x01067e28]
mov rcx, r13
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x01067df0]
mov rcx, r13
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x01067eb0]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x01067eb0]
mov rcx, r13
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 0x28
mov r12, rax
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ebx, ebx
cmp dword [0x010aaf34], 6
jne 0x1078985
mov eax, dword [0x010aaf38]
cmp eax, 3
je 0x10788d8
cmp eax, 4
jne 0x1078985
test rsi, rsi
je 0x10788ee
lea rcx, [0x01067da0]
xor r8d, r8d
xor edx, edx
call rsi
mov rbx, rax
test rbp, rbp
je 0x1078909
lea r8, [0x01067f9e]
lea rdx, [0x01067fa0]
xor r9d, r9d
mov rcx, rbx
call rbp
test r12, r12
je 0x1078922
lea r8, [0x01067fc4]
lea rdx, [0x01067fc8]
mov rcx, rbx
call r12
mov rdx, r14
mov rcx, rbx
call fcn.0107844c
test rdi, rdi
je 0x1078937
mov rcx, rbx
call rdi
xor ebx, ebx
test rsi, rsi
je 0x107894f
lea rcx, [0x01067db0]
xor r8d, r8d
xor edx, edx
call rsi
mov rbx, rax
test rbp, rbp
je 0x107896a
lea r8, [0x01067f9e]
lea rdx, [0x01067fa0]
xor r9d, r9d
mov rcx, rbx
call rbp
test r12, r12
je 0x10789b6
lea r8, [0x01067ff8]
lea rdx, [0x01068000]
mov rcx, rbx
call r12
jmp 0x10789b6
test rsi, rsi
je 0x107899b
lea rcx, [0x01067c60]
xor r8d, r8d
xor edx, edx
call rsi
mov rbx, rax
test rbp, rbp
je 0x10789b6
lea r8, [0x01067f9e]
lea rdx, [0x01067fa0]
xor r9d, r9d
mov rcx, rbx
call rbp
mov rdx, r14
mov rcx, rbx
call fcn.0107844c
test rdi, rdi
je 0x10789cb
mov rcx, rbx
call rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10789db
or eax, 0xffffffff
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1078cc4
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0xe0
mov rsi, rcx
mov rdi, rdx
mov ebx, 0x68
lea rcx, [rsp + 0x70]
xor edx, edx
mov r8, rbx
call fcn.0107f150
mov dword [rsp + 0x70], ebx
xor ebx, ebx
cmp rsi, rbx
mov dword [rsp + 0xac], 0x80
mov word [rsp + 0xb0], bx
jne 0x1078d18
mov eax, 0x80004005
jmp 0x1078da3
lea rax, [rsp + 0x50]
lea rcx, [0x01067d20]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x70]
xor r8d, r8d
mov qword [rsp + 0x40], rax
lea rax, [0x01067cd8]
mov rdx, rsi
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x8000020
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp eax, ebx
jne 0x1078d6a
mov ebx, 0x80004005
jmp 0x1078da1
mov rcx, qword [rsp + 0x50]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp rdi, rbx
je 0x1078d8b
mov rcx, qword [rsp + 0x50]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x1078efc
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, qword [0x010aaf10]
xor edi, edi
lea r8, [rax + 0x20]
and qword [rax + 0x20], rdi
and dword [rax + 0x10], edi
lea rdx, [0x01067c10]
mov rcx, 0xffffffff80000002
mov dword [rax + 0x18], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1078f7e
lea rax, [rsp + 0x50]
lea rdx, [0x01067c38]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x48]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1078f73
mov eax, 0x80070006
jmp 0x1078fe3
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, rbx
call fcn.01076fc0
mov r11, qword [rbx + 0xc8]
test r11, r11
je 0x1078fb5
xor r8d, r8d
xor edx, edx
cmp dword [rsp + 0x48], 0x10000
lea rcx, [0x01067d90]
je 0x1078faf
lea rcx, [0x01067c60]
call r11
mov rdi, rax
mov dl, 1
mov rcx, rdi
call qword [rbx + 0xf0]
mov r11, qword [rbx + 0xf8]
test r11, r11
je 0x1078fd2
mov rcx, rdi
call r11
mov rcx, qword [rbx + 0x58]
test rcx, rcx
je 0x1078fe1
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x10790a8
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x30
mov rdi, qword [0x010aaf08]
xor esi, esi
mov ebx, 0x80040901
cmp qword [rdi + 8], rsi
jne 0x10790d7
mov eax, 0x80070006
jmp 0x1079141
lea r8, [rsp + 0x40]
lea rdx, [0x01068170]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp eax, esi
jne 0x107913f
or rcx, 0xffffffffffffffff
lea rdx, [rdi + 0x10]
xor eax, eax
mov rdi, rdx
lea r9d, [rax + 1]
xor r8d, r8d
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
add ecx, ecx
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x40]
mov qword [rsp + 0x20], rdx
lea rdx, [0x010681b8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x40]
cmp eax, esi
cmove ebx, esi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x10796ec
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, [0x01068248]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x010aaea8], rax
jne 0x107972c
lea rcx, [0x01068268]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
mov qword [0x010aaea8], rax
jne 0x107972c
mov eax, 0x80004005
jmp 0x10797ed
lea rdx, [0x01068288]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x010aaeb0], rax
je 0x1079722
mov rcx, qword [0x010aaea8]
lea rdx, [0x010682a0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x010aaeb8], rax
je 0x1079722
mov rcx, qword [0x010aaea8]
lea rdx, [0x010682b0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x010aaec0], rax
je 0x1079722
mov rcx, qword [0x010aaea8]
lea rdx, [0x010682c8]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x010aaec8], rax
je 0x1079722
mov rcx, qword [0x010aaea8]
lea rdx, [0x010682e0]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
mov qword [0x010aaed0], rax
je 0x1079722
mov ecx, 0x40
call fcn.0107e388
mov qword [0x010aaff8], rax
neg rax
sbb eax, eax
not eax
and eax, 0x80004005
add rsp, 0x28
ret
Function at 0x107bbd0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor r13d, r13d
mov rdi, rcx
cmp qword [rcx + 0x98], r13
mov r12d, r13d
jne 0x107bc34
mov rax, qword [rcx + 0x60]
mov rsi, qword [rax]
mov qword [rax], rax
mov rax, qword [rcx + 0x60]
mov qword [rax + 8], rax
cmp rsi, qword [rcx + 0x60]
mov qword [rcx + 0x68], r13
je 0x107bd7a
mov rbx, qword [rsi]
lea rcx, [rsi + 0x10]
call fcn.0107a794
mov rcx, rsi
call fcn.0107d4f0
cmp rbx, qword [rdi + 0x60]
mov rsi, rbx
jne 0x107bc12
jmp 0x107bd7a
cmp qword [rcx + 0x68], r13
jne 0x107bc9e
mov rax, qword [rcx + 0x90]
mov qword [rsp + 0x68], r13
lea r8, [rsp + 0x68]
mov rcx, qword [rax]
mov rax, qword [rdi + 0x70]
mov rdx, qword [rcx + 0x10]
mov r9, qword [rax]
mov rcx, rax
call qword [r9 + 0x28]
cmp eax, r13d
mov r12d, eax
je 0x107bc81
mov rcx, qword [rsp + 0x68]
cmp rcx, r13
je 0x107bd7a
mov rdx, qword [rcx]
call qword [rdx + 0x10]
jmp 0x107bd7a
mov rdx, qword [rsp + 0x68]
mov rcx, rdi
call fcn.0107b718
mov rcx, qword [rsp + 0x68]
cmp rcx, r13
je 0x107bc9e
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rax, qword [rdi + 0x60]
mov rbx, qword [rax]
cmp rbx, rax
je 0x107bd7a
cmp dword [rbx + 0x3c], r13d
jne 0x107bd6d
mov rcx, qword [rbx + 0x28]
cmp rcx, r13
je 0x107bd6d
cmp qword [rbx + 0x30], r13
jne 0x107bd6d
mov rax, qword [rcx]
mov rdx, qword [rbx + 0x68]
lea r8, [rbx + 0x30]
call qword [rax + 0x28]
cmp qword [rbx + 0x30], r13
je 0x107bd6d
cmp qword [rbx + 0x48], r13
jne 0x107bd01
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x48], rax
cmp qword [rbx + 0x50], r13
jne 0x107bd1b
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [rbx + 0x50], rax
cmp qword [rbx + 0x20], r13
jne 0x107bd6d
lea rax, [rsp + 0x60]
lea r9, [rbx + 0x10]
lea r8, [0x0107a788]
mov qword [rsp + 0x28], rax
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x20], r13d
call qword [sym.imp.KERNEL32.dll_CreateThread]
cmp rax, r13
mov qword [rbx + 0x20], rax
jne 0x107bd54
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 1
mov dword [rbx + 0x3c], 1
xchg dword [rbx + 0x18], eax
mov rcx, qword [rbx + 0x48]
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rbx, qword [rbx]
cmp rbx, qword [rdi + 0x60]
jne 0x107bcae
mov eax, r12d
mov rbx, qword [rsp + 0x70]
add rsp, 0x30
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret

Function at 0x107c848
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, [0x010684f0]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x107c8ab
mov rcx, qword [rsp + 0x48]
lea r9d, [rax + 4]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], r9d
lea rdx, [0x01068518]
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 0x107c8bc
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, [0x010684f0]
mov rcx, 0xffffffff80000001
mov dword [rax + 0x20], 4
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
mov ebx, eax
jne 0x107c946
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
lea rdx, [0x01068518]
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 0x107c93b
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 0x107d194
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x0109d1a0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
xor edx, edx
mov rbx, rcx
lea r8d, [rdx + 0x28]
add rcx, r8
call fcn.0107f150
and qword [rbx + 0x50], 0
and dword [rbx + 0x58], 0
and dword [rbx + 0x5c], 0
lea rax, [0x01017000]
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.0107f150
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 0x107d227
cmp dword [rsp + 0x24], 5
jb 0x107d241
jmp 0x107d23d
cmp dword [rsp + 0x30], esi
jne 0x107d241
cmp dword [rsp + 0x24], 4
ja 0x107d23d
jne 0x107d241
cmp dword [rsp + 0x28], 0
jbe 0x107d241
mov byte [rbx + 0x18], sil
lea rax, [0x01018690]
lea rcx, [rbx + 0x28]
mov dword [rbx + 0x1c], 0x800
mov qword [rbx + 0x20], rax
call fcn.0107cfc0
movzx ecx, byte [0x010ab008]
test eax, eax
mov rax, rbx
cmovs ecx, esi
mov byte [0x010ab008], cl
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.0107dbd0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x107dbac
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rcx, 0x2650249c
jmp 0x100d374
dec rcx
jmp 0x100db02
jne 0x100d374
jmp 0x100e168
jmp 0x100e2b8
jmp 0x100e340
jmp 0x100e3ba
jmp 0x100e3f5
jmp 0x100e42c
jmp 0x100e4a4
jmp 0x100e4f7
jmp 0x100e512
jmp 0x100e56c
jmp 0x100e5cb
jmp 0x100e5f5
jmp 0x100e668
jmp 0x100e699
jmp 0x100e71c
jmp 0x100e768
jmp 0x100e7b2
jmp 0x100e7ff
jmp 0x100e824
jmp 0x100e894
jmp 0x100e8bf
xor rcx, rcx
nop
nop
nop
mov rdx, 0x8896
nop
nop
nop
nop
nop
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop
nop
nop
nop
nop
call 0x100e8ec
pop rsi
add rsi, 0xe7e
nop
nop
nop
nop
nop
mov rdi, rax
mov rcx, 0x8896
rep movsb byte [rdi], byte [rsi]
nop
nop
jmp rax
sub rsp, 0x28
call fcn.010815ec
add rsp, 0x28
xor rcx, rcx
jmp 0x100cf18
Function at 0x107ddb8
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
sub rsp, 0x30
xor ebx, ebx
test r8, r8
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x107de0b
call fcn.010818e8
and qword [rsp + 0x20], rbx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov dword [rax], 0x16
call fcn.01081878
or rax, 0xffffffffffffffff
jmp 0x107dea4
call fcn.0107a8c0
mov edx, 0x2d8
mov ecx, 1
call fcn.0107f0ec
test rax, rax
mov rdi, rax
je 0x107de8f
call fcn.0108123c
mov rcx, rdi
mov rdx, qword [rax + 0xc0]
call fcn.010810d8
mov rcx, qword [rsp + 0x78]
or qword [rdi + 8], 0xffffffffffffffff
mov eax, dword [rsp + 0x70]
test rcx, rcx
lea r8, [rsp + 0x60]
cmovne r8, rcx
mov rdx, r12
mov r9, rdi
mov qword [rsp + 0x28], r8
lea r8, [0x0107dd18]
mov rcx, r13
mov qword [rdi + 0x90], rsi
mov qword [rdi + 0x98], rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x107dea4
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.0107e444
test ebx, ebx
je 0x107dea2
mov ecx, ebx
call fcn.01081938
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x68]
add rsp, 0x30
pop r13
pop r12
pop rdi
ret

Function at 0x107f6cc
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 [0x0109d1a0]
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 0x107f7d2
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 0x107f75a
mov eax, dword [rbp]
test eax, eax
cmovne ebx, eax
lea edx, [rdi - 1]
lea ecx, [rdx + rbx]
cmp ecx, ebx
jb 0x107f7d2
mov eax, edx
not eax
and ecx, eax
je 0x107f775
lea eax, [rcx + rdi]
cmp eax, ecx
jb 0x107f7d2
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 0x107f7d2
mov r9d, 4
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x107f7d2
lea r9, [rbp + 4]
mov r8d, 0x104
mov rdx, rsi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x107f7d2
mov eax, 1
jmp 0x107f7d4
xor eax, eax
mov rcx, qword [rbp + 0x68]
xor rcx, rbp
call fcn.0107dbd0
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 0x10802a8
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.01084bdc
nop
cmp dword [0x010a0d54], 1
je 0x108035b
mov dword [0x010a0d50], 1
mov byte [0x010a0d0c], dil
test ebx, ebx
jne 0x1080347
mov rcx, qword [0x010ac250]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010ac248]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1080334
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1080334
mov rcx, qword [rbx]
test rcx, rcx
je 0x1080332
call rcx
jmp 0x108031a
lea rdx, [0x01018648]
lea rcx, [0x01018630]
call fcn.0108010c
lea rdx, [0x01018658]
lea rcx, [0x01018650]
call fcn.0108010c
nop
test edi, edi
je 0x1080369
mov ecx, 8
call fcn.01084aa8
test edi, edi
jne 0x1080391
mov dword [0x010a0d54], 1
lea ecx, [rdi + 8]
call fcn.01084aa8
mov ecx, r12d
call fcn.01080090
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 0x10802a8

Function at 0x10803d0
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.01084bdc
nop
cmp dword [0x010a0d54], 1
je 0x108035b
mov dword [0x010a0d50], 1
mov byte [0x010a0d0c], dil
test ebx, ebx
jne 0x1080347
mov rcx, qword [0x010ac250]
call sub.KERNEL32.dll_DecodePointer
mov rsi, rax
mov rcx, qword [0x010ac248]
call sub.KERNEL32.dll_DecodePointer
mov rbx, rax
mov qword [rsp + 0x20], rax
test rsi, rsi
je 0x1080334
sub rbx, 8
mov qword [rsp + 0x20], rbx
cmp rbx, rsi
jb 0x1080334
mov rcx, qword [rbx]
test rcx, rcx
je 0x1080332
call rcx
jmp 0x108031a
lea rdx, [0x01018648]
lea rcx, [0x01018630]
call fcn.0108010c
lea rdx, [0x01018658]
lea rcx, [0x01018650]
call fcn.0108010c
nop
test edi, edi
je 0x1080369
mov ecx, 8
call fcn.01084aa8
test edi, edi
jne 0x1080391
mov dword [0x010a0d54], 1
lea ecx, [rdi + 8]
call fcn.01084aa8
mov ecx, r12d
call fcn.01080090
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 0x10802a8

Function at 0x10803e0
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
lea edx, [r8 + 1]
jmp 0x10802a8
Function at 0x1080480
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, [0x0109d1c0]
mov ebx, ecx
xor edi, edi
mov rax, r13
cmp ecx, dword [rax]
je 0x10804b3
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x10804a3
cmp edi, 0x17
jae 0x1080661
mov ebp, 3
mov ecx, ebp
call fcn.01086b2c
cmp eax, 1
je 0x1080619
mov ecx, ebp
call fcn.01086b2c
test eax, eax
jne 0x10804e9
cmp dword [0x0109d198], 1
je 0x1080619
cmp ebx, 0xfc
je 0x1080661
lea rbx, [0x010a0d60]
mov ebp, 0x314
lea r8, [0x01018f70]
mov rcx, rbx
mov rdx, rbp
call fcn.01084874
test eax, eax
je 0x108052c
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010817d0
lea rdx, [0x010a0d79]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x010a0e7d], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x108057d
lea r8, [0x01018f58]
lea rcx, [0x010a0d79]
mov edx, 0x2fb
call fcn.01084874
test eax, eax
je 0x108057d
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010817d0
lea r8, [0x010a0d79]
mov rdx, rbp
mov rcx, rbx
call fcn.01086a98
test eax, eax
je 0x10805a8
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010817d0
lea r8, [0x01018f50]
mov rdx, rbp
mov rcx, rbx
call fcn.01086a98
test eax, eax
je 0x10805d3
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010817d0
movsxd r8, edi
mov rdx, rbp
mov rcx, rbx
add r8, r8
mov r8, qword [r13 + r8*8 + 8]
call fcn.01086a98
test eax, eax
je 0x1080602
and qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call fcn.010817d0
lea rdx, [0x01018f28]
mov r8d, 0x12010
mov rcx, rbx
call fcn.01086864
jmp 0x1080661
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x1080661
or rcx, 0xffffffffffffffff
cmp rax, rcx
je 0x1080661
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 0x1080d04
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 0x1080d2c
xor eax, eax
jmp 0x1080d78
cmp word [rdi], bx
je 0x1080d43
add rax, 2
cmp word [rax], bx
jne 0x1080d31
add rax, 2
cmp word [rax], bx
jne 0x1080d31
sub eax, edi
add eax, 2
movsxd rbp, eax
mov rcx, rbp
call fcn.0107e388
cmp rax, rbx
mov rsi, rax
je 0x1080d6c
mov r8, rbp
mov rdx, rdi
mov rcx, rax
call fcn.01083500
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