joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000104b
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x1400024f0
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x140002568
mov rdx, qword [section..data]
mov r8d, 0x10004
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x14000255a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002551
cmp dword [rsp + 0x24], 1
jne 0x140002551
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret

Function at 0x140001055
Capabilities:
Create service
Persist via windows service

Disassembly:
jmp 0x1400023e0
push rbx
sub rsp, 0xe0
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
je 0x140002495
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000248c
mov rdx, qword [section..data]
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x14000248c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140006620
add rsp, 0xe0
pop rbx
ret

Function at 0x140001069
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400021f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
test rdx, rdx
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov esi, 1
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
je 0x140002251
cmp byte [rdx], bl
je 0x140002251
lea rax, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000227d
mov rcx, qword [rsp + 0x38]
jmp 0x140002256
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmovne esi, ebx
mov ebx, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002297
test rdi, rdi
je 0x140002297
cmp byte [rdi], 0
je 0x140002297
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x140001310
Capabilities:
Enumerate process modules
Execute command

Disassembly:
jmp 0x140001310
mov qword [rsp + 0x20], rbp
push rsi
mov eax, 0x2370
call fcn.140008320
sub rsp, rax
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x2360], rax
mov ebp, ecx
lea rcx, [rsp + 0x2141]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2140], 0
call sub.MSVCR80.dll_memset
lea rcx, str.IN_terminateValProcess_nProcess_ID:__u_n
mov edx, ebp
call fcn.140001050
mov r8d, ebp
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
mov rsi, rax
jne 0x140001382
lea eax, [rsi + 1]
jmp 0x1400014e6
lea r9, [rsp + 0x20]
lea rdx, [rsp + 0x30]
mov r8d, 0x2000
mov rcx, rax
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x1400014db
lea rcx, [rsp + 0x2031]
xor edx, edx
mov r8d, 0x103
mov byte [rsp + 0x2030], 0
call sub.MSVCR80.dll_memset
lea r8, [rsp + 0x2030]
mov r9d, 0x104
xor edx, edx
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea rdx, str.WUDFHost.exe
lea rcx, [rsp + 0x2030]
mov r8d, 0xd
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
jne 0x1400014db
lea rdx, [rsp + 0x2030]
lea rcx, str._nProcess_name:__s_n
mov qword [rsp + 0x2388], rbx
call fcn.140001050
xor ebx, ebx
test dword [rsp + 0x20], 0xfffffff8
jbe 0x1400014d3
mov qword [rsp + 0x2390], rdi
lea rdi, [rsp + 0x30]
mov rdx, qword [rdi]
lea r8, [rsp + 0x2250]
mov r9d, 0x104
mov rcx, rsi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea rdx, str.C:WindowsSystem32driversUMDFwbf_vfs_0050.dll
lea rcx, [rsp + 0x2250]
mov r8d, 0x32
call qword [sym.imp.MSVCR80.dll__mbsnbicmp]
test eax, eax
je 0x14000147f
mov eax, dword [rsp + 0x20]
add ebx, 1
add rdi, 8
shr eax, 3
cmp ebx, eax
jb 0x140001433
jmp 0x1400014cb
lea rcx, str._nValidity_process__Terminating......_n
call fcn.140001050
mov r8, qword [rsp + rbx*8 + 0x30]
lea rdx, [rsp + 0x2250]
lea rcx, str._t_s__0x_08X__n
call qword [sym.imp.MSVCR80.dll_printf]
lea rdx, str.taskkill__PID__d__F
lea rcx, [rsp + 0x2140]
mov r8d, ebp
call qword [sym.imp.MSVCR80.dll_sprintf]
lea rcx, [rsp + 0x2140]
call qword [sym.imp.MSVCR80.dll_system]
mov rdi, qword [rsp + 0x2390]
mov rbx, qword [rsp + 0x2388]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x2360]
xor rcx, rsp
call fcn.140006620
mov rbp, qword [rsp + 0x2398]
add rsp, 0x2370
pop rsi
ret

Function at 0x140001590
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x140001590
mov eax, 0x1028
call fcn.140008320
sub rsp, rax
lea r8, [rsp + 0x1030]
lea edx, [rax - 0x28]
lea rcx, [rsp + 0x20]
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x1400015c3
mov eax, 1
add rsp, 0x1028
ret
mov eax, dword [rsp + 0x1030]
shr eax, 2
je 0x140001607
mov qword [rsp + 0x1038], rbx
mov qword [rsp + 0x1020], rdi
mov edi, eax
lea rbx, [rsp + 0x20]
mov ecx, dword [rbx]
call fcn.140001014
add rbx, 4
sub rdi, 1
jne 0x1400015e6
mov rdi, qword [rsp + 0x1020]
mov rbx, qword [rsp + 0x1038]
xor eax, eax
add rsp, 0x1028
ret
Function at 0x1400021f0
Capabilities:
Query or enumerate registry value

Disassembly:
jmp 0x1400021f0
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
test rdx, rdx
mov rbp, r9
mov r12, r8
mov rdi, rdx
mov esi, 1
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x68], 4
mov dword [rsp + 0x30], 4
je 0x140002251
cmp byte [rdx], bl
je 0x140002251
lea rax, [rsp + 0x38]
mov r9d, esi
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000227d
mov rcx, qword [rsp + 0x38]
jmp 0x140002256
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x68]
lea r9, [rsp + 0x30]
xor r8d, r8d
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
cmovne esi, ebx
mov ebx, esi
mov rcx, qword [rsp + 0x38]
test rcx, rcx
je 0x140002297
test rdi, rdi
je 0x140002297
cmp byte [rdi], 0
je 0x140002297
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbp, qword [rsp + 0x70]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret

Function at 0x1400023e0
Capabilities:
Create service
Persist via windows service

Disassembly:
jmp 0x1400023e0
push rbx
sub rsp, 0xe0
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0xd0], rax
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rbx, rax
je 0x140002495
lea rdx, [rsp + 0x70]
mov r8d, 0x51
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x14000248c
mov rdx, qword [section..data]
xor ecx, ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], ecx
mov r9d, 0xf01ff
mov r8, rdx
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
test rax, rax
je 0x14000248c
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140006620
add rsp, 0xe0
pop rbx
ret

Function at 0x1400024f0
Capabilities:
Delete service
Query service status

Disassembly:
jmp 0x1400024f0
push rdi
sub rsp, 0x40
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov rdi, rax
je 0x140002568
mov rdx, qword [section..data]
mov r8d, 0x10004
mov rcx, rax
mov qword [rsp + 0x50], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov rbx, rax
je 0x14000255a
lea rdx, [rsp + 0x20]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002551
cmp dword [rsp + 0x24], 1
jne 0x140002551
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x140003730
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r13
push r15
sub rsp, 0x48
mov rax, qword [0x140010018]
xor rax, rsp
mov qword [rsp + 0x30], rax
test rcx, rcx
mov r15, qword [rsp + 0xa0]
mov r13, r9
mov esi, r8d
mov rbx, rdx
mov rbp, rcx
mov rdi, r9
je 0x1400039bf
test rdx, rdx
je 0x1400039bf
test r15, r15
je 0x1400039bf
cmp rcx, rdx
mov qword [rsp + 0x80], r12
je 0x14000387e
cmp esi, 0x10
jb 0x140003801
mov r12, rsi
shr r12, 4
nop
nop
mov r8, r15
mov rdx, rbx
mov rcx, rbp
call fcn.140002f80
lea r11, [rdi + 2]
sub rdi, rbx
mov rcx, rbx
mov edx, 4
nop
movzx eax, byte [rdi + rcx]
add rcx, 4
add r11, 4
xor byte [rcx - 4], al
movzx eax, byte [r11 - 5]
xor byte [rcx - 3], al
movzx eax, byte [r11 - 4]
xor byte [rcx - 2], al
movzx eax, byte [r11 - 3]
xor byte [rcx - 1], al
sub rdx, 1
jne 0x1400037c0
mov rdi, rbp
add esi, 0xfffffff0
add rbx, 0x10
add rbp, 0x10
sub r12, 1
jne 0x1400037a0
test esi, esi
je 0x140003848
lea rdx, [rsp + 0x20]
mov r8, r15
mov rcx, rbp
call fcn.140002f80
test esi, esi
je 0x140003845
lea rax, [rsp + 0x20]
lea rcx, [rsp + 0x20]
mov edx, esi
sub rdi, rax
lea rax, [rsp + 0x20]
sub rbx, rax
movzx eax, byte [rdi + rcx]
add rcx, 1
xor al, byte [rcx - 1]
sub rdx, 1
mov byte [rbx + rcx - 1], al
jne 0x140003830
mov rdi, rbp
mov rcx, qword [rdi]
mov eax, 1
mov qword [r13], rcx
mov rcx, qword [rdi + 8]
mov qword [r13 + 8], rcx
mov r12, qword [rsp + 0x80]
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.140006620
add rsp, 0x48
pop r15
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
cmp esi, 0x10
jb 0x14000392b
mov r12, rsi
sub rdi, rdx
mov qword [rsp + 0x40], r14
shr r12, 4
nop
nop
nop
mov rax, qword [rbp]
lea rcx, [rsp + 0x20]
mov r8, r15
mov qword [rcx], rax
mov rax, qword [rbp + 8]
mov rdx, rbx
mov qword [rcx + 8], rax
mov rcx, rbp
call fcn.140002f80
lea r11, [r13 + 2]
mov ecx, 4
nop
nop
movzx eax, byte [rbx + rdi]
add rbx, 4
add r11, 4
xor byte [rbx - 4], al
movzx eax, byte [r11 - 5]
xor byte [rbx - 3], al
movzx eax, byte [r11 - 4]
xor byte [rbx - 2], al
movzx eax, byte [r11 - 3]
xor byte [rbx - 1], al
sub rcx, 1
jne 0x1400038d0
lea rcx, [rsp + 0x20]
add esi, 0xfffffff0
add rbp, 0x10
mov rax, qword [rcx]
sub rdi, 0x10
sub r12, 1
mov qword [r13], rax
mov rax, qword [rcx + 8]
mov qword [r13 + 8], rax
jne 0x1400038a0
mov r14, qword [rsp + 0x40]
test esi, esi
je 0x1400039b5
mov rax, qword [rbp]
lea rcx, [rsp + 0x20]
mov r8, r15
mov qword [rcx], rax
mov rax, qword [rbp + 8]
mov rdx, rbx
mov qword [rcx + 8], rax
lea rcx, [rsp + 0x20]
call fcn.140002f80
test esi, esi
je 0x140003982
mov r8, r13
mov rcx, rbx
mov edx, esi
sub r8, rbx
nop
nop
nop
movzx eax, byte [r8 + rcx]
add rcx, 1
xor byte [rcx - 1], al
sub rdx, 1
jne 0x140003970
cmp esi, 0x10
movsxd rax, esi
jae 0x1400039a1
mov r8d, 0x10
lea rcx, [rax + rbx]
lea rdx, [rsp + rax + 0x20]
sub r8d, esi
call sub.MSVCR80.dll_memcpy
lea rcx, [rsp + 0x20]
mov rax, qword [rcx]
mov qword [r13], rax
mov rax, qword [rcx + 8]
mov qword [r13 + 8], rax
mov eax, 1
jmp 0x14000385c
xor eax, eax
jmp 0x140003864
Function at 0x140004550
Capabilities:
Check for time delay via gettickcount
Query service status
Stop service

Disassembly:
jmp 0x140004550
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x60
call qword [sym.imp.KERNEL32.dll_GetTickCount]
lea rdi, [0x1400107a0]
lea r9, str.WbioSrvc
mov rdx, rdi
sub r9, rdi
mov r8d, 0x50
mov ebx, eax
nop
lea rcx, [r8 + 0x7fffffae]
test rcx, rcx
je 0x1400045a3
movzx eax, byte [r9 + rdx]
test al, al
je 0x1400045a3
mov byte [rdx], al
add rdx, 1
sub r8, 1
jne 0x140004580
jmp 0x1400045a8
test r8, r8
jne 0x1400045ac
sub rdx, 1
mov byte [rdx], 0
mov r8d, 0xf003f
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
test rax, rax
mov qword [0x140010788], rax
je 0x14000478e
mov r8d, 0x2c
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
test rax, rax
mov qword [0x140010758], rax
je 0x140004781
lea rcx, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
mov qword [rsp + 0x20], rcx
mov rcx, rax
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x140004774
mov eax, dword [rsp + 0x34]
cmp eax, 1
je 0x140004774
cmp eax, 3
mov edi, 0x2710
jne 0x1400046a9
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000464b
mov edx, 0x3e8
jmp 0x140004650
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140010758]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000475f
cmp dword [rsp + 0x34], 1
je 0x140004774
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x140004774
cmp dword [rsp + 0x34], 3
je 0x140004630
call fcn.14000100a
mov rcx, qword [0x140010758]
lea r8, [rsp + 0x30]
mov edx, 1
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
jne 0x1400046db
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ControlService_failed___d__n
jmp 0x14000476c
cmp dword [rsp + 0x34], 1
je 0x140004774
nop
nop
nop
mov eax, 0xcccccccd
mul dword [rsp + 0x48]
shr edx, 3
cmp edx, 0x3e8
jae 0x14000470b
mov edx, 0x3e8
jmp 0x140004710
cmp edx, edi
cmova edx, edi
mov ecx, edx
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, qword [0x140010758]
lea r11, [rsp + 0x70]
lea r8, [rsp + 0x30]
mov r9d, 0x24
xor edx, edx
mov qword [rsp + 0x20], r11
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x14000475f
cmp dword [rsp + 0x34], 1
je 0x140004774
call qword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, ebx
cmp eax, 0x7530
ja 0x140004774
cmp dword [rsp + 0x34], 1
jne 0x1400046f0
jmp 0x140004774
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.QueryServiceStatusEx_failed___d__n
mov edx, eax
call qword [sym.imp.MSVCR80.dll_printf]
mov rcx, qword [0x140010758]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [0x140010788]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rdi
ret
Function at 0x140004d80
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, r8
call fcn.140003a70
test eax, eax
jne 0x140004d9e
xor r9d, r9d
mov eax, r9d
add rsp, 0x20
pop rbx
ret
mov eax, dword [rbx + 0xf0]
xor r9d, r9d
shl eax, 2
test eax, eax
movsxd r10, eax
jle 0x140004e09
lea rdx, [rbx + r10*4 + 8]
lea r8, [rbx + 8]
nop
nop
mov eax, dword [rdx - 8]
mov ecx, dword [r8 - 8]
add r9, 4
mov dword [r8 - 8], eax
mov eax, dword [rdx - 4]
mov dword [rdx - 8], ecx
mov ecx, dword [r8 - 4]
mov dword [r8 - 4], eax
mov eax, dword [rdx]
mov dword [rdx - 4], ecx
mov ecx, dword [r8]
mov dword [r8], eax
mov eax, dword [rdx + 4]
mov dword [rdx], ecx
mov ecx, dword [r8 + 4]
mov dword [r8 + 4], eax
sub r10, 4
mov dword [rdx + 4], ecx
sub rdx, 0x10
add r8, 0x10
cmp r9, r10
jl 0x140004dc0
mov r11d, 1
cmp dword [rbx + 0xf0], r11d
jle 0x140004fbd
mov qword [rsp + 0x30], rdi
lea r10, [rbx + 2]
lea rdi, [0x140000000]
nop
mov r8d, dword [r10 + 0xe]
add r10, 0x10
add r11d, 1
mov rax, r8
shr rax, 0x18
movzx edx, byte [rax + rdi + 0xb7b0]
movzx eax, byte [r10 - 1]
movzx ecx, byte [rax + rdi + 0xb7b0]
mov r9d, dword [rdi + rdx*4 + 0xb8b0]
movzx eax, r8b
movzx eax, byte [rax + rdi + 0xb7b0]
xor r9d, dword [rdi + rcx*4 + 0xc0b0]
xor r9d, dword [rdi + rax*4 + 0xc4b0]
movzx eax, byte [r10]
movzx ecx, byte [rax + rdi + 0xb7b0]
xor r9d, dword [rdi + rcx*4 + 0xbcb0]
mov dword [r10 - 2], r9d
mov r9d, dword [r10 + 2]
mov rax, r9
shr rax, 0x18
movzx edx, byte [rax + rdi + 0xb7b0]
movzx eax, byte [r10 + 3]
movzx ecx, byte [rax + rdi + 0xb7b0]
mov r8d, dword [rdi + rdx*4 + 0xb8b0]
movzx eax, byte [r10 + 4]
xor r8d, dword [rdi + rcx*4 + 0xc0b0]
movzx ecx, byte [rax + rdi + 0xb7b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xbcb0]
movzx eax, byte [rax + rdi + 0xb7b0]
mov r9d, dword [r10 + 6]
xor r8d, dword [rdi + rax*4 + 0xc4b0]
mov rax, r9
mov dword [r10 + 2], r8d
shr rax, 0x18
movzx edx, byte [rax + rdi + 0xb7b0]
movzx eax, byte [r10 + 7]
movzx ecx, byte [rax + rdi + 0xb7b0]
mov r8d, dword [rdi + rdx*4 + 0xb8b0]
movzx eax, byte [r10 + 8]
xor r8d, dword [rdi + rcx*4 + 0xc0b0]
movzx ecx, byte [rax + rdi + 0xb7b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xbcb0]
movzx eax, byte [rax + rdi + 0xb7b0]
mov r9d, dword [r10 + 0xa]
xor r8d, dword [rdi + rax*4 + 0xc4b0]
mov rax, r9
mov dword [r10 + 6], r8d
shr rax, 0x18
movzx edx, byte [rax + rdi + 0xb7b0]
movzx eax, byte [r10 + 0xb]
movzx ecx, byte [rax + rdi + 0xb7b0]
movzx eax, byte [r10 + 0xc]
mov r8d, dword [rdi + rdx*4 + 0xb8b0]
xor r8d, dword [rdi + rcx*4 + 0xc0b0]
movzx ecx, byte [rax + rdi + 0xb7b0]
movzx eax, r9b
xor r8d, dword [rdi + rcx*4 + 0xbcb0]
movzx edx, byte [rax + rdi + 0xb7b0]
xor r8d, dword [rdi + rdx*4 + 0xc4b0]
mov dword [r10 + 0xa], r8d
cmp r11d, dword [rbx + 0xf0]
jl 0x140004e30
mov rdi, qword [rsp + 0x30]
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x140005060
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
push r13
push r14
sub rsp, 0x20
test rcx, rcx
mov rdi, rdx
mov r14, r9
mov rdx, r9
mov esi, r8d
mov rbx, rcx
je 0x1400051d7
test rdi, rdi
je 0x1400051d7
mov r13, qword [rsp + 0x60]
test r13, r13
je 0x1400051d7
cmp esi, 0x10
jb 0x140005154
mov qword [rsp + 0x40], rbp
mov rbp, rsi
mov qword [rsp + 0x48], r12
shr rbp, 4
nop
mov r10, rdx
mov r11, rdi
lea r9, [rdx + 3]
sub r10, rbx
sub r11, rbx
lea r8, [rdi + 1]
mov rcx, rbx
mov r12d, 4
sub rdx, rdi
movzx eax, byte [r10 + rcx]
add r8, 4
add rcx, 4
xor al, byte [rcx - 4]
add r9, 4
mov byte [r11 + rcx - 4], al
movzx eax, byte [rdx + r8 - 4]
xor al, byte [rcx - 3]
mov byte [r8 - 4], al
movzx eax, byte [rcx - 2]
xor al, byte [r9 - 5]
mov byte [r8 - 3], al
movzx eax, byte [rcx - 1]
xor al, byte [r9 - 4]
sub r12, 1
mov byte [r8 - 2], al
jne 0x1400050e0
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call fcn.1400027c0
mov rdx, rdi
add rdi, 0x10
add esi, 0xfffffff0
add rbx, 0x10
sub rbp, 1
jne 0x1400050c0
mov r12, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
test esi, esi
je 0x1400051c2
test esi, esi
je 0x140005187
mov r8, rdx
mov r9, rdi
mov ecx, esi
sub r8, rbx
sub r9, rbx
nop
nop
movzx eax, byte [rbx + r8]
add rbx, 1
xor al, byte [rbx - 1]
sub rcx, 1
mov byte [rbx + r9 - 1], al
jne 0x140005170
cmp esi, 0x10
movsxd rax, esi
jae 0x1400051b1
mov r9d, 0x10
sub rdx, rdi
lea rcx, [rax + rdi]
sub r9d, esi
nop
movzx eax, byte [rcx + rdx]
add rcx, 1
sub r9, 1
mov byte [rcx - 1], al
jne 0x1400051a0
mov r8, r13
mov rdx, rdi
mov rcx, rdi
call fcn.1400027c0
mov rdx, rdi
mov rcx, qword [rdx]
mov eax, 1
mov qword [r14], rcx
mov rcx, qword [rdx + 8]
mov qword [r14 + 8], rcx
jmp 0x1400051d9
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x20
pop r14
pop r13
pop rdi
ret
Function at 0x140006720
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
mov edi, esi
xor eax, eax
lock cmpxchg qword [0x140010808], rbx
je 0x140006766
cmp rax, rbx
jne 0x140006759
mov edi, 1
jmp 0x140006766
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140006740
mov eax, dword [0x1400107f8]
cmp eax, 1
jne 0x14000677b
lea ecx, [rax + 0x1e]
call sub.MSVCR80.dll__amsg_exit
jmp 0x1400067ba
mov eax, dword [0x1400107f8]
test eax, eax
jne 0x1400067b0
mov dword [0x1400107f8], 1
lea rdx, [0x14000a660]
lea rcx, [0x14000a330]
call sub.MSVCR80.dll__initterm_e
test eax, eax
je 0x1400067ba
mov eax, 0xff
jmp 0x14000689b
mov dword [0x14001019c], 1
mov eax, dword [0x1400107f8]
cmp eax, 1
jne 0x1400067e2
lea rdx, [0x14000a220]
lea rcx, [section..rdata]
call sub.MSVCR80.dll__initterm
mov dword [0x1400107f8], 2
test edi, edi
jne 0x1400067ed
xchg qword [0x140010808], rsi
cmp qword [0x140010830], 0
je 0x140006816
lea rcx, [0x140010830]
call fcn.140006e30
test eax, eax
je 0x140006816
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x140010830]
mov rcx, qword [sym.imp.MSVCR80.dll___initenv]
mov rax, qword [0x140010180]
mov qword [rcx], rax
mov r8, qword [0x140010180]
mov rdx, qword [0x140010188]
mov ecx, dword [0x140010178]
call fcn.14000105a
mov dword [0x140010198], eax
cmp dword [0x14001017c], 0
jne 0x140006857
mov ecx, eax
call qword [sym.imp.MSVCR80.dll_exit]
cmp dword [0x14001019c], 0
jne 0x14000686c
call qword [sym.imp.MSVCR80.dll__cexit]
mov eax, dword [0x140010198]
jmp 0x14000689b
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub rsp, 0x28
call fcn.1400a1000
add rsp, 0x28
jmp 0x140006720
Function at 0x140006af7
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x140010018]
jne 0x14000663a
rol rcx, 0x10
test cx, 0xffff
jne 0x140006636
repz ret
ror rcx, 0x10
jmp 0x140006a50
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140010240]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140010338]
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 0x140006ad5
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, [0x140010240]
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 0x140006af7
mov rax, qword [rsp + 0x88]
mov qword [0x140010338], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1400102d8], rax
mov rax, qword [0x140010338]
mov qword [0x1400101b0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400102c0], rax
mov dword [0x1400101a0], 0xc0000409
mov dword [0x1400101a4], 1
mov rax, qword [0x140010018]
mov qword [rsp + 0x68], rax
mov rax, qword [0x140010020]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140010238], eax
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x14000dfa0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140010238], 0
jne 0x140006b7e
mov ecx, 1
call sub.MSVCR80.dll___crt_debugger_hook
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret