joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d800
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x4c8
mov rax, qword [0x140020878]
xor rax, rsp
mov qword [rsp + 0x4b0], rax
call fcn.1400111d0
mov dword [rsp + 0x60], eax
lea rcx, [rsp + 0x80]
call fcn.140002260
nop
mov rdx, qword [rsp + 0x4d0]
lea rcx, [rsp + 0x88]
call fcn.140002f80
lea rcx, [rsp + 0xa0]
call fcn.140002260
nop
mov edx, 0x400
mov rcx, qword [rsp + 0x4d8]
call fcn.14000c360
mov qword [rsp + 0x50], rax
mov r8d, 0x60
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140011b50
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d8b4
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x50]
call fcn.140011b50
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
jne 0x14000d8ca
call fcn.140005b10
mov dword [rsp + 0x30], eax
jmp 0x14000da38
mov r8, qword [rsp + 0x4e8]
mov rdx, qword [rsp + 0x4e0]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FindResourceW]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000d900
call fcn.140005b10
mov dword [rsp + 0x30], eax
jmp 0x14000da38
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14000d92b
call fcn.140005b10
mov dword [rsp + 0x30], eax
jmp 0x14000da38
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [rsp + 0x34], eax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x70], rax
mov eax, dword [rsp + 0x34]
inc eax
cmp eax, dword [rsp + 0x34]
jae 0x14000d962
mov dword [rsp + 0x30], 0x8007000e
jmp 0x14000da38
mov eax, dword [rsp + 0x34]
inc eax
mov eax, eax
mov edx, eax
lea rcx, [rsp + 0xa0]
call fcn.1400050f0
nop
jmp 0x14000d97c
lea rcx, [rsp + 0xa0]
call fcn.140003d40
test rax, rax
jne 0x14000d99b
mov dword [rsp + 0x30], 0x8007000e
jmp 0x14000da38
lea rcx, [rsp + 0xa0]
call fcn.140003d40
mov qword [rsp + 0x68], rax
call fcn.1400111d0
mov ecx, dword [rsp + 0x34]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rsp + 0x68]
mov qword [rsp + 0x20], rcx
mov r9d, dword [rsp + 0x34]
mov r8, qword [rsp + 0x70]
xor edx, edx
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x40], eax
cmp dword [rsp + 0x40], 0
jne 0x14000d9ee
call fcn.140005b10
mov dword [rsp + 0x30], eax
jmp 0x14000da38
mov eax, dword [rsp + 0x40]
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xa0]
call fcn.140003d40
xor ecx, ecx
mov rdx, qword [rsp + 0x78]
mov word [rax + rdx*2], cx
lea rcx, [rsp + 0xa0]
call fcn.140003d40
mov r8d, dword [rsp + 0x4f0]
mov rdx, rax
lea rcx, [rsp + 0x88]
call fcn.14000d380
mov dword [rsp + 0x30], eax
cmp qword [rsp + 0x38], 0
je 0x14000da4b
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x44], eax
lea rcx, [rsp + 0xa0]
call fcn.1400037e0
nop
lea rcx, [rsp + 0x80]
call fcn.140003100
mov eax, dword [rsp + 0x44]
mov rcx, qword [rsp + 0x4b0]
xor rcx, rsp
call fcn.140015420
add rsp, 0x4c8
ret
Function at 0x14000f1e0
Capabilities:
Delete registry key

Disassembly:
push rsi
push rdi
sub rsp, 0xe8
mov rax, qword [0x140020878]
xor rax, rsp
mov qword [rsp + 0xd0], rax
lea rax, [rsp + 0x70]
lea rcx, str.SystemCurrentControlSetcontrolPrintPorts
mov rdi, rax
mov rsi, rcx
mov ecx, 0x5a
rep movsb byte [rdi], byte [rsi]
lea r8, [rsp + 0x68]
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000f2c0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000f29c
mov dword [rsp + 0x60], 1
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x60], 0
jne 0x14000f2c0
lea rdx, [rsp + 0x70]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0xd0]
xor rcx, rsp
call fcn.140015420
add rsp, 0xe8
pop rdi
pop rsi
ret

Function at 0x14000f8c0
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
xor eax, eax
test eax, eax
jne 0x14000f8d3
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x40]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x38
ret

Function at 0x14000f9d0
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
xor eax, eax
test eax, eax
jne 0x14000f9e3
cmp qword [rsp + 0x70], 0
je 0x14000f9fb
mov dword [rsp + 0x38], 1
jmp 0x14000fa03
mov dword [rsp + 0x38], 0
mov eax, dword [rsp + 0x38]
mov dword [rsp + 0x3c], eax
cmp dword [rsp + 0x3c], 0
jne 0x14000fa1c
mov eax, 0xd
jmp 0x14000fa9c
xor eax, eax
test eax, eax
jne 0x14000f9e9
mov dword [rsp + 0x34], 0
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x30]
mov rcx, qword [rsp + 0x40]
lea rax, [rcx + rax*2]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x30]
mov ecx, dword [rsp + 0x34]
lea rax, [rcx + rax*2]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x30], 1
jne 0x14000fa34
mov eax, dword [rsp + 0x34]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
mov rdx, qword [rsp + 0x68]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x58
ret
Function at 0x14000fb00
Capabilities:
Set registry value

Disassembly:
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x48
xor eax, eax
test eax, eax
jne 0x14000fb18
cmp qword [rsp + 0x60], 0
je 0x14000fb30
mov dword [rsp + 0x30], 1
jmp 0x14000fb38
mov dword [rsp + 0x30], 0
mov eax, dword [rsp + 0x30]
mov dword [rsp + 0x34], eax
cmp dword [rsp + 0x34], 0
jne 0x14000fb4e
mov eax, 0xd
jmp 0x14000fb8f
xor eax, eax
test eax, eax
jne 0x14000fb1e
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
inc eax
mov eax, eax
shl rax, 1
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rax, qword [rsp + 0x50]
mov rcx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
add rsp, 0x48
ret

Function at 0x1400102d0
Capabilities:
Delete service
Stop service

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov rax, qword [0x140020878]
xor rax, rsp
mov qword [rsp + 0x58], rax
mov rcx, qword [rsp + 0x70]
call fcn.14000b680
test eax, eax
jne 0x140010300
mov eax, 1
jmp 0x140010401
mov r8d, 0xf003f
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140010342
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r9d, r9d
mov r8, rax
lea rdx, str.Couldnt_open_service_manager
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140010401
mov rax, qword [rsp + 0x70]
add rax, 0x50
mov r8d, 0x10020
mov rdx, rax
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140010399
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r9d, r9d
mov r8, rax
lea rdx, str.Couldnt_open_service
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x140010401
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_ControlService]
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov dword [rsp + 0x30], eax
mov rcx, qword [rsp + 0x20]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [rsp + 0x30], 0
je 0x1400103e1
mov eax, 1
jmp 0x140010401
mov rax, qword [rsp + 0x70]
add rax, 0x50
xor r9d, r9d
mov r8, rax
lea rdx, str.Service_could_not_be_deleted
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.140015420
add rsp, 0x68
ret
Function at 0x140011d60
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x24], 0
cmp dword [0x140021aac], 0
je 0x140011d87
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
cmp dword [0x140021aa0], 0
je 0x140011d9c
mov dword [rsp + 0x24], 1
jmp 0x140011dd3
cmp dword [0x140021aac], 0
jne 0x140011db2
call fcn.140011e90
test eax, eax
jne 0x140011db2
jmp 0x140011dd3
mov rdx, qword [rsp + 0x40]
mov rcx, qword [section..data]
call fcn.140011a90
test eax, eax
jne 0x140011dcb
jmp 0x140011dd3
mov dword [rsp + 0x24], 1
cmp dword [rsp + 0x24], 0
jne 0x140011e19
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0x7f
je 0x140011e07
cmp dword [rsp + 0x20], 0x7e
je 0x140011e07
cmp dword [rsp + 0x20], 0x78
je 0x140011e07
cmp dword [rsp + 0x20], 1
je 0x140011e07
cmp dword [rsp + 0x20], 0x32
jne 0x140011e19
mov dword [0x140021aa0], 1
mov dword [rsp + 0x24], 1
mov eax, dword [rsp + 0x24]
add rsp, 0x38
ret

Function at 0x140014670
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
lea r8, [rsp + 0x30]
lea rdx, [0x1400201e8]
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x14001469d
xor eax, eax
jmp 0x14001475f
mov dword [rsp + 0x20], 0x104
lea r9, [rsp + 0x20]
mov r8, qword [rsp + 0x50]
xor edx, edx
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x24], 0
je 0x1400146d9
xor eax, eax
jmp 0x14001475f
mov eax, 2
imul rax, rax, 0
mov rcx, qword [rsp + 0x50]
movzx eax, word [rcx + rax]
cmp eax, 0x22
jne 0x140014732
mov rax, qword [rsp + 0x50]
add rax, 2
mov rdx, rax
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov dx, 0x22
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_wcschr
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x140014726
xor eax, eax
jmp 0x14001475f
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
jmp 0x14001475a
lea rdx, [0x140020208]
mov rcx, qword [rsp + 0x50]
call sub.VCRUNTIME140.dll_wcsstr
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
je 0x14001475a
xor eax, eax
mov rcx, qword [rsp + 0x28]
mov word [rcx], ax
mov eax, 1
add rsp, 0x48
ret
Function at 0x140014ce0
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x260
mov rax, qword [0x140020878]
xor rax, rsp
mov qword [rsp + 0x250], rax
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x200
rep stosb byte [rdi], al
lea rdx, [0x1400203e0]
lea rcx, [0x140020408]
call fcn.140001b90
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140014dd0
lea rdx, [0x140020448]
lea rcx, [0x140020470]
call fcn.140001b90
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140014dd0
lea rdx, [0x1400204b0]
lea rcx, [0x1400204d8]
call fcn.140001b90
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140014dd0
lea rdx, str.Languagecurrent
lea rcx, [0x140020540]
call fcn.140001b90
lea r8, [rsp + 0x38]
mov rdx, rax
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x140014dd0
xor eax, eax
jmp 0x140014eeb
mov dword [rsp + 0x30], 0x100
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x50]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [rsp + 0x40], eax
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0x40], 0
jne 0x140014ee9
cmp dword [rsp + 0x44], 1
jne 0x140014ee9
cmp dword [rsp + 0x30], 6
jb 0x140014ee9
lea rcx, [rsp + 0x50]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rax, [rsp + rax*2 + 0x4a]
mov rdx, rax
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
lea rdx, [0x140020580]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
je 0x140014e8d
lea rdx, [0x140020588]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
test eax, eax
jne 0x140014ea9
lea rdx, [0x140020590]
mov rcx, qword [rsp + 0x270]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy]
mov eax, 1
jmp 0x140014eeb
cmp qword [rsp + 0x278], 0
je 0x140014ee0
cmp dword [rsp + 0x30], 0xd
jb 0x140014ee0
mov eax, 2
imul rax, rax, 0
lea rax, [rsp + rax + 0x50]
mov r8d, 0xd
mov rdx, rax
mov rcx, qword [rsp + 0x278]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
mov eax, 1
jmp 0x140014eeb
xor eax, eax
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.140015420
add rsp, 0x260
pop rdi
ret
Function at 0x140015280
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x818
mov rax, qword [0x140020878]
xor rax, rsp
mov qword [rsp + 0x800], rax
lea r8, [rsp + 0x28]
mov rdx, qword [rsp + 0x828]
mov rcx, qword [rsp + 0x820]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1400152cf
mov eax, dword [rsp + 0x20]
jmp 0x140015326
mov r9d, 0x7d0
lea r8, [rsp + 0x30]
xor edx, edx
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x140015305
lea rdx, [rsp + 0x30]
mov rcx, qword [rsp + 0x28]
call fcn.140015280
test eax, eax
je 0x1400152cf
mov rcx, qword [rsp + 0x28]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdx, qword [rsp + 0x828]
mov rcx, qword [rsp + 0x820]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rcx, qword [rsp + 0x800]
xor rcx, rsp
call fcn.140015420
add rsp, 0x818
ret
Function at 0x1400f1680
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1400f168d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1400f169d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1400f1685
lea eax, [rcx + 1]
jmp 0x1400f16ab
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1400f16be
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1400f16a4
sub eax, 3
jb 0x1400f16de
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400f172d
sar eax, 1
movsxd rbp, eax
jb 0x1400f1714
jmp 0x1400f16ec
add ebx, ebx
jne 0x1400f16ea
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f1714
inc ecx
add ebx, ebx
jne 0x1400f16fa
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1400f1714
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1400f170d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1400f16fc
add ecx, 2
jmp 0x1400f1719
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.1400f1642
jmp 0x1400f168d
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xef000]
mov eax, dword [rdi]
or eax, eax
je 0x1400f1789
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xf11dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1400f1739
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1400f1783
mov qword [rbx], rax
add rbx, 8
jmp 0x1400f1759
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1400f17c3
cmp al, 0xef
ja 0x1400f17b5
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1400f1795
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x1400f17a4
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x22f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1400f1817
sub rsp, 0xffffffffffffff80
jmp 0x1400402f6
Function at 0x1400017c0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r9, rcx
mov r10d, 0x270
mov ecx, dword [rcx]
cmp ecx, r10d
jne 0x140001821
lea r8, [r9 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r10, 1
jne 0x1400017e0
mov ecx, dword [r9]
jmp 0x14000190b
cmp ecx, 0x4e0
jb 0x14000190b
lea r10, [r9 + 0x9c4]
mov qword [rsp], rbx
mov r11d, dword [r10]
mov ebx, 0xe3
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
add r10, 4
mov edx, r11d
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x634]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001840
lea r10, [r9 + 0xd50]
mov ebx, 0x18c
mov r11d, dword [r10]
nop
mov eax, r11d
mov r8, r10
mov r11d, dword [r10 + 4]
mov edx, eax
xor edx, r11d
add r10, 4
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 - 0xd4c]
xor ecx, edx
mov dword [r8 - 0x9c0], ecx
sub rbx, 1
jne 0x140001890
mov eax, dword [r9 + 0x1380]
mov edx, eax
xor edx, dword [r9 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r9 + 0x634]
xor ecx, edx
mov dword [r9 + 0x9c0], ecx
xor ecx, ecx
mov dword [r9], ecx
mov eax, ecx
mov edx, dword [r9 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r9], eax
mov ecx, edx
mov eax, dword [r9 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret

Function at 0x140002314
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000235e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000235e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000235e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000235e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000235e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002360
xor al, al
add rsp, 0x28
ret

Function at 0x140001cc8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001d12
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001d12
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], reloc.KERNEL32.dll_QueryPerformanceCounter
jne 0x140001d12
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001d12
cmp dword [rcx + 0x84], 0xe
jbe 0x140001d12
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001d14
xor al, al
add rsp, 0x28
ret
Function at 0x140001f00
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
xor edx, edx
mov r8d, 0xf003f
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
xor ebx, ebx
mov rdi, rax
cmp rax, rbx
jne 0x140001f30
xor al, al
jmp 0x140001f7f
mov r8d, 2
mov rdx, rsi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
cmp rax, rbx
je 0x140001f74
lea rax, str.Microsoft_.NET_Framework_NGEN
lea r8, [rsp + 0x38]
mov edx, 1
mov rcx, rsi
mov qword [rsp + 0x38], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2A]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov bl, 1
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140001f90
Capabilities:
Create service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x14000f3b0]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rbx, rcx
mov esi, 2
xor edx, edx
mov r8d, esi
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
je 0x140002089
lea rdx, [rsp + 0x70]
mov r8d, 0x105
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x140002078
and qword [rsp + 0x60], 0
and qword [rsp + 0x58], 0
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
and dword [rsp + 0x30], 0
lea r8, str.Microsoft_.NET_Framework_NGEN_v4.5.4703_X64
mov r9d, 0xf01ff
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov edx, 0x22
mov r8, rbx
mov rsi, rax
mov r9d, edx
test rax, rax
je 0x14000206c
lea rcx, str.Install_Service__c_s_c_Successfully_n
call fcn.14000268c
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140002078
lea rcx, str.Fail_To_Install_Service__c_s_c_n
call fcn.14000268c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call fcn.140001f00
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.140002c70
lea r11, [rsp + 0x190]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret