joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140078400
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sym.fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sym.read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140078448
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x14007841a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret

Function at 0x14008c060
Capabilities:
Read file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x38
mov rax, qword [rcx + 8]
mov rdi, rcx
test rax, rax
je 0x14008c088
mov rcx, qword [rcx]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
jmp rax
mov rbp, qword [sym.imp.msvcrt.dll__errno]
mov ebx, 4
lea rsi, [rsp + 0x2c]
nop dword [rax]
mov ecx, dword [rdi + 0x10]
mov r8d, ebx
mov rdx, rsi
call sym.read
test eax, eax
jle 0x14008c0d0
cdqe
add rsi, rax
sub rbx, rax
jne 0x14008c0a0
mov eax, dword [rsp + 0x2c]
add rsp, 0x38
pop rbx
pop rsi
pop rdi
pop rbp
ret
cmp eax, 0xffffffff
jne 0x14008c0dc
call rbp
cmp dword [rax], 4
je 0x14008c0a0
lea rcx, str.random_device_could_not_be_read
call method.std.__throw_runtime_error_char_const_
nop
nop
nop
nop
nop
nop
nop
nop

Function at 0x1400b2cd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b6f80]
jmp sym.__emutls_get_address

Function at 0x1400b2ce0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
lea rcx, [0x1400b6f80]
jmp sym.__emutls_get_address
Function at 0x2fc4f6ec0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x2fc4f78c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc51c108]
test eax, eax
je 0x2fc4f795a
lea rax, [0x2fc51c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc51c110]
mov qword [rbp - 8], rax
jmp 0x2fc4f793e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4f7932
cmp qword [rbp - 0x10], 0
je 0x2fc4f7932
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4f78f8
lea rax, [0x2fc51c0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4f795b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4f7a60
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4f7a88
mov eax, 0
jmp 0x2fc4f7ad6
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4f7ab1
mov eax, 0
jmp 0x2fc4f7ad6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4f7ad1
mov eax, 0
jmp 0x2fc4f7ad6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x2fc4f7adc
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x2fc4f7b5a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x2fc4f7b51
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x2fc4f7b51
mov rax, qword [rbp - 8]
jmp 0x2fc4f7b6f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x2fc4f7b24
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000f450
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rbp, rdx
mov rdi, rcx
mov rdx, qword [rcx + 8]
xorps xmm0, xmm0
xor ecx, ecx
movzx esi, r8w
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000f4d8
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], rcx
mov edx, 2
xor ecx, ecx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x40], rcx
xor r8d, r8d
mov qword [rsp + 0x38], rax
xor r9d, r9d
mov dword [rsp + 0x30], ecx
mov word [rsp + 0x28], dx
movzx edx, si
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x14000f4f0
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x280
mov rax, qword [0x14008c088]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov rdi, rcx
mov dword [rsp + 0x20], r8d
mov r9, rdx
lea r8, str._s_failed_w_err_0x_08lx
mov edx, 0x104
lea rcx, [rsp + 0x60]
call fcn.14000eed0
mov rdx, qword [rdi + 8]
xorps xmm0, xmm0
xor ecx, ecx
movdqu xmmword [rsp + 0x50], xmm0
call qword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov rbx, rax
test rax, rax
je 0x14000f5a2
mov rcx, qword [rdi + 8]
lea rax, [rsp + 0x60]
mov r9d, 2
mov qword [rsp + 0x50], rcx
xor ecx, ecx
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
xor r8d, r8d
mov dword [rsp + 0x30], ecx
lea edx, [r9 - 1]
mov word [rsp + 0x28], r9w
xor r9d, r9d
mov qword [rsp + 0x20], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.14001c760
mov rbx, qword [rsp + 0x2a8]
add rsp, 0x280
pop rdi
ret
Function at 0x14000f630
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbx
sub rsp, 0x4a0
mov rax, qword [0x14008c088]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov r8d, 0x104
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x14000f693
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400024a0
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.__GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, 5
lea r8, str.InstallService
call fcn.140014300
jmp 0x14000f7de
lea r9, [rsp + 0x70]
mov qword [rsp + 0x4b0], rsi
lea r8, str.__s_
mov edx, 0x106
lea rcx, [rsp + 0x280]
call fcn.14000f5d0
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14000f6fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400024a0
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.__OpenSCManager_failed_w_err_0x_08lx_n
lea r8, str.InstallService
lea edx, [rsi + 5]
call fcn.140014300
jmp 0x14000f7d6
xor ecx, ecx
mov qword [rsp + 0x4b8], rdi
mov qword [rsp + 0x60], rcx
lea rax, [0x140074348]
mov qword [rsp + 0x58], rcx
lea rbx, str.LanWlanSwitchingService
mov qword [rsp + 0x50], rax
lea r8, str.LAN_WLAN_WWAN_Switching_Service
mov qword [rsp + 0x48], rcx
lea rax, [rsp + 0x280]
mov qword [rsp + 0x40], rcx
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov rdx, rbx
mov dword [rsp + 0x30], 1
mov rcx, rsi
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], SafeArrayLock
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x14000f792
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400024a0
lea r9, str.__CreateService_failed_w_err_0x_08lx_n
mov dword [rsp + 0x20], ebx
lea edx, [rdi + 5]
jmp 0x14000f7a8
call fcn.1400024a0
lea r9, str.___s_is_installed._n
mov qword [rsp + 0x20], rbx
mov edx, 3
lea r8, str.InstallService
mov rcx, rax
call fcn.140014300
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14000f7ce
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x4b8]
mov rsi, qword [rsp + 0x4b0]
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.14001c760
add rsp, 0x4a0
pop rbx
ret
Function at 0x14000f800
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
mov qword [rsp + 0x10], rbx
push rsi
sub rsp, 0x60
mov rax, qword [0x14008c088]
xor rax, rsp
mov qword [rsp + 0x50], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x40], rax
lea r8d, [rax + 1]
mov dword [rsp + 0x48], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
jne 0x14000f873
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400024a0
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r9, str.__OpenSCManager_failed_w_err_0x_08lx_n
lea r8, str.UninstallService
lea edx, [rsi + 5]
call fcn.140014300
jmp 0x14000f9d3
lea rbx, str.LanWlanSwitchingService
mov qword [rsp + 0x70], rdi
mov rdx, rbx
mov r8d, 0x10024
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
jne 0x14000f8ca
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400024a0
lea r9, str.__OpenService_failed_w_err_0x_08lx_n
mov rcx, rax
mov dword [rsp + 0x20], ebx
lea r8, str.UninstallService
mov edx, 5
call fcn.140014300
jmp 0x14000f9b7
lea r8, [rsp + 0x30]
mov edx, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x14000f982
mov rdx, rbx
lea rcx, str.Stopping__s.
call fcn.140001b70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x14000f943
mov eax, dword [rsp + 0x34]
cmp eax, 3
jne 0x14000f947
lea rcx, [0x140078354]
call fcn.140001b70
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x14000f911
mov eax, dword [rsp + 0x34]
cmp eax, 1
jne 0x14000f95d
mov rdx, rbx
lea rcx, [0x140078358]
call fcn.140001b70
jmp 0x14000f982
call fcn.1400024a0
mov rcx, rax
mov qword [rsp + 0x20], rbx
lea r9, str.___n_s_failed_to_stop._n
mov edx, 5
lea r8, str.UninstallService
call fcn.140014300
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x14000f9a8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
call fcn.1400024a0
lea r9, str.__DeleteService_failed_w_err_0x_08lx_n
jmp 0x14000f8ad
mov rdx, rbx
lea rcx, str._s_is_removed._n
call fcn.140001b70
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x14000f9ce
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.14001c760
mov rbx, qword [rsp + 0x78]
add rsp, 0x60
pop rsi
ret
Function at 0x14000fbb0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x50]
mov qword [rsp + 0x50], 0
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlRadioManagementSystemRadioState
mov rcx, 0xffffffff80000002
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x14000fbf4
xor al, al
add rsp, 0x30
pop rbx
ret
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], 0
xor r8d, r8d
mov qword [rsp + 0x20], rax
xor edx, edx
mov dword [rsp + 0x48], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000fc3e
mov eax, 1
movzx ebx, bl
cmp dword [rsp + 0x40], eax
cmove ebx, eax
movzx eax, bl
add rsp, 0x30
pop rbx
ret

Function at 0x140011410
Capabilities:
Get file version info

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov rbp, rdx
mov rdi, rcx
xor r14d, r14d
mov dword [rsp + 0x20], r14d
call fcn.14000af20
mov dword [rsp + 0x20], 1
lea rdx, [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov esi, eax
test eax, eax
je 0x14001155e
mov ecx, esi
call fcn.14001d2a4
mov rbx, rax
mov qword [rsp + 0x38], rax
test rax, rax
je 0x140011551
mov r9, rax
mov r8d, esi
mov edx, dword [rsp + 0xa8]
mov rcx, rbp
call qword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x140011551
mov qword [rsp + 0x28], r14
mov dword [rsp + 0xa0], r14d
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo040904E4ProductName
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x1400114ee
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x1400114ee
mov r8d, eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140017c00
nop
mov rdx, rax
mov rcx, rdi
call fcn.140014ee0
nop
jmp 0x140011546
mov qword [rsp + 0x28], r14
mov dword [rsp + 0xa0], r14d
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x28]
lea rdx, str.StringFileInfo040904B0ProductName
mov rcx, rbx
call qword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x140011551
mov eax, dword [rsp + 0xa0]
test eax, eax
je 0x140011551
mov r8d, eax
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x40]
call fcn.140017c00
nop
mov rdx, rax
mov rcx, rdi
call fcn.140014ee0
nop
lea rcx, [rsp + 0x40]
call fcn.140005110
nop
test rbx, rbx
je 0x14001155e
mov rcx, rbx
call fcn.14001ce58
mov rax, rdi
add rsp, 0x60
pop r14
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140012070
Capabilities:
Print debug messages

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov rdi, rdx
lea rsi, [rdx + 8]
mov rcx, rsi
call fcn.1400051c0
mov rbp, qword [rax]
lea rcx, [rdi + 0x28]
call fcn.1400051c0
mov rcx, qword [rax]
add rcx, 0xa
add rbp, rcx
mov eax, 2
mul rbp
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14001d2a4
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x68]
call fcn.1400051d0
mov rbx, qword [rax]
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x14001211a
lea rcx, [rdi + 0x28]
call fcn.140007530
mov rdi, rax
mov rcx, rsi
call fcn.140007540
mov r9, rax
mov qword [rsp + 0x20], rdi
lea r8, str._S_:__s_r_n
mov rdx, rbp
mov rcx, rbx
call fcn.14000eed0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
nop
test rbx, rbx
je 0x140012127
mov rcx, rbx
call fcn.14001ce58
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x140012f10
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x230], 0
mov rsi, rdx
mov rdi, rcx
je 0x140012fe9
mov r9d, dword [rcx + 0x224]
mov eax, dword [rcx + 0x220]
mov qword [rsp + 0x30], rbx
lea r8d, [rax + rax*4]
add r8d, r8d
lea eax, [r9 + 1]
mov dword [rcx + 0x224], eax
cmp r9d, r8d
jle 0x140012f7e
xor edx, edx
call fcn.140013140
test al, al
je 0x140012f6d
mov dword [rdi + 0x224], 0
jmp 0x140012f7e
mov eax, dword [rdi + 0x224]
cdq
sub eax, edx
sar eax, 1
mov dword [rdi + 0x224], eax
mov rcx, rsi
call fcn.140011a50
mov rcx, rax
call fcn.1400051c0
mov rcx, rsi
mov rbx, qword [rax]
call fcn.140011a50
mov rcx, rax
call fcn.140007530
mov r9, qword [rdi + 0x230]
mov rcx, rax
mov r8, rbx
mov edx, 2
call fcn.140043fc4
mov r9, qword [rdi + 0x230]
lea rcx, [0x140079434]
mov edx, 2
mov rbx, rax
lea r8d, [rdx - 1]
call fcn.140043fc4
add eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret

Function at 0x140013000
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, rcx
mov rbx, rdx
add rcx, 0x28
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [rdi]
mov r9, rbx
mov rsi, qword [rax]
mov rdx, rsi
mov r8, qword [rsi + 8]
call fcn.140017290
mov rdx, rax
movabs rcx, 0x1745d1745d1745c
mov rax, qword [rdi + 8]
sub rcx, rax
cmp rcx, 1
jb 0x1400122f1
inc rax
mov qword [rdi + 8], rax
mov qword [rsi + 8], rdx
mov rax, qword [rdx + 8]
mov qword [rax], rdx
cmp byte [rdi + 0x18], 0
jne 0x1400122d2
mov rcx, qword [rdi + 0x20]
xor ebx, ebx
test rcx, rcx
je 0x1400122a0
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x20], rbx
lea rax, [rsp + 0x40]
mov dword [rsp + 0x40], ebx
mov qword [rsp + 0x28], rax
lea r8, [0x140012300]
mov r9, rdi
mov dword [rsp + 0x20], ebx
xor edx, edx
xor ecx, ecx
call fcn.140047f3c
test rax, rax
mov qword [rdi + 0x20], rax
setne al
mov byte [rdi + 0x18], al
lea rcx, [rdi + 0x28]
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
lea rcx, str.list_T__too_long
call fcn.14001904c
int3
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
cmp word [rcx + 0x18], 0
mov rdi, rdx
mov rbx, rcx
je 0x14001305a
mov rcx, qword [rcx + 0x248]
test rcx, rcx
je 0x14001303b
cmp byte [rbx + 0x228], 0
je 0x14001303b
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140012220
mov rcx, rbx
call fcn.140012de0
test eax, eax
je 0x14001305a
mov rdx, rdi
mov rcx, rbx
call fcn.140012f10
mov rcx, rbx
call fcn.140012eb0
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x140013070
Capabilities:
Read file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
push rdi
sub rsp, 0x60
mov r9, qword [rcx + 0x230]
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x48], rax
lea rcx, [r11 - 0x48]
mov qword [r11 - 0x40], rax
xor dil, dil
mov qword [r11 - 0x38], rax
lea edx, [rax + 2]
mov qword [r11 - 0x30], rax
lea r8d, [rax + 0x18]
mov qword [r11 - 0x28], rax
mov qword [r11 - 0x20], rax
mov qword [r11 - 0x18], rax
mov qword [r11 - 0x10], rax
call fcn.1400483e8
test rax, rax
je 0x140013112
cmp word [rsp + 0x28], 0x2f
jne 0x140013105
cmp word [rsp + 0x2e], 0x2f
jne 0x140013105
cmp word [rsp + 0x34], 0x20
jne 0x140013105
cmp word [rsp + 0x3a], 0x3a
jne 0x140013105
cmp word [rsp + 0x40], 0x3a
jne 0x140013105
cmp word [rsp + 0x46], 0x2e
jne 0x140013105
cmp word [rsp + 0x4e], 0x7c
jne 0x140013105
mov al, 1
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
xor al, al
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
mov rcx, qword [rbx + 0x230]
call fcn.1400484b0
mov rbx, qword [rsp + 0x70]
test eax, eax
movzx ecx, dil
mov edx, 1
cmovne ecx, edx
movzx eax, cl
add rsp, 0x60
pop rdi
ret
Function at 0x1400139f0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
push rdi
sub rsp, 0x60
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp dword [rcx + 0x220], 0xffffffff
jne 0x140013b07
mov dword [rax + 0x20], 0
mov dword [rax + 8], 4
lea rdx, str.MaxLogSize
lea rcx, [rax - 0x28]
call fcn.140005160
nop
test rsi, rsi
je 0x140013a9a
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140007530
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013a9a
mov eax, dword [rsp + 0x88]
test eax, eax
je 0x140013a9a
mov dword [rbx + 0x220], eax
jmp 0x140013af5
test rdi, rdi
je 0x140013aeb
mov dword [rsp + 0x30], 0
lea rcx, [rsp + 0x40]
call fcn.140007530
mov rdx, rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013aeb
mov eax, dword [rsp + 0x88]
test eax, eax
jne 0x140013a92
mov dword [rbx + 0x220], 0x800
lea rcx, [rsp + 0x40]
call fcn.140005110
mov eax, dword [rbx + 0x220]
jmp 0x140013b0d
mov eax, dword [rcx + 0x220]
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x80]
add rsp, 0x60
pop rdi
ret

Function at 0x140013b20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov dword [rsp + 0x40], 0
mov rax, r8
mov dword [rsp + 0x50], 4
mov rdi, rdx
mov rbx, rcx
test r8, r8
je 0x140013b80
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], rcx
lea r9, [rsp + 0x58]
lea rcx, [rsp + 0x40]
xor r8d, r8d
mov qword [rsp + 0x20], rcx
lea rdx, str.QueuedWrites
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140013bbd
test rdi, rdi
je 0x140013bcb
lea rax, [rsp + 0x50]
mov dword [rsp + 0x58], 0
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x58]
lea rax, [rsp + 0x40]
xor r8d, r8d
lea rdx, str.QueuedWrites
mov qword [rsp + 0x20], rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140013bcb
cmp dword [rsp + 0x40], 0
setne al
mov byte [rbx + 0x228], al
movzx eax, byte [rbx + 0x228]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140013c40
Capabilities:
Access the windows event log

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x50
mov eax, dword [rdx + 0x48]
mov rbx, rdx
mov rdi, rcx
cmp eax, dword [rcx + 8]
jl 0x140013cd6
cmp eax, 5
jg 0x140013cd6
mov rcx, rdx
call fcn.140011a50
mov rcx, rax
call fcn.140007530
mov r9d, dword [rbx + 0x48]
mov r10d, 1
mov qword [rsp + 0x60], rax
cmp r9d, 2
jl 0x140013ca1
cmp r9d, 3
jle 0x140013ca1
cmp r9d, 4
je 0x140013c9a
cmp r9d, 5
jne 0x140013ca1
movzx eax, r10w
jmp 0x140013ca6
mov eax, 2
jmp 0x140013ca6
mov eax, 4
xor edx, edx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x40], rdx
xor r8d, r8d
mov qword [rsp + 0x38], rcx
mov rcx, qword [rdi + 0x18]
mov dword [rsp + 0x30], edx
mov word [rsp + 0x28], r10w
mov qword [rsp + 0x20], rdx
movzx edx, ax
call qword [sym.imp.ADVAPI32.dll_ReportEventW]
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret