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

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14004d870]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14002694b
cmp word [rdx], r13w
jne 0x14002694b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140026950
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140026a75
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140026a96
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140026989
mov rdx, r9
mov word [rbx], cx
jmp 0x1400269b0
cmp r9, r8
jae 0x1400269c0
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14002696a
jmp 0x140026a75
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140026a6a
cmp dword [rsp + 0x80], esi
je 0x140026a6a
lea r8, [0x14004d870]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140026a42
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140026a12
mov word [rbx], r13w
jmp 0x140026a72
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x140026a1f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140026a72
cmp word [rsp + 0x70], r13w
jne 0x140026a4f
cmp rbx, r14
je 0x140026a0c
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14002755c
cmp word [rsp + 0x70], r13w
je 0x140026a75
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14004d870]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140026a6f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140026a75
Function at 0x14002bcd8
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14002bd08
xor eax, eax
jmp 0x14002bdcb
mov rbp, rbx
cmp word [rax], si
je 0x14002bd2d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14002bd14
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002bd10
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14002a44c
movsxd r14, eax
test eax, eax
jne 0x14002bd6b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002bd01
mov rcx, r14
call fcn.140023100
mov rdi, rax
test rax, rax
jne 0x14002bd84
xor ecx, ecx
call fcn.1400230c4
jmp 0x14002bd60
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14002a44c
test eax, eax
jne 0x14002bdb5
mov rcx, rdi
call fcn.1400230c4
jmp 0x14002bdbf
xor ecx, ecx
call fcn.1400230c4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14002ef40
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140021f24
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14002efe1
cmp ebx, dword [rsp + 0x30]
je 0x14002efda
test esi, esi
je 0x14002efda
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14002efb5
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14002efc2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002ef9f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14002efc6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14002efe3
mov eax, 1
jmp 0x14002efe3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400333cc
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14001db38
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140033456
cmp byte [rbp - 0x21], r15b
je 0x140033451
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14003348c
call fcn.140024254
test eax, eax
jne 0x140033478
cmp byte [rbp - 0x21], r15b
je 0x140033470
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14003348c
cmp byte [rbp - 0x21], r15b
je 0x140033489
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14001e18c
test eax, eax
jne 0x14003352c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14001db38
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400334cb
cmp byte [rbp - 0x21], r15b
je 0x140033500
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140033500
call fcn.140024254
test eax, eax
jne 0x1400334ec
cmp byte [rbp - 0x21], r15b
je 0x1400334e5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140033500
cmp byte [rbp - 0x21], r15b
je 0x1400334fd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14001e18c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14003352c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14003352f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14003353d
mov rcx, rdi
call fcn.1400230c4
cmp byte [rbp + 0x3f], r15b
je 0x14003354c
mov rcx, qword [rbp + 0x27]
call fcn.1400230c4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x140034354
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14002755c
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14002755c
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1400344a4
cmp rax, 0xffffffffffffffff
je 0x1400344a4
xor edi, edi
test rbp, rbp
jle 0x14003444f
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14002304c
mov rbx, rax
test rax, rax
jne 0x1400343dc
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140034445
mov edx, 0x8000
mov ecx, r14d
call fcn.14001f800
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.140025cac
cmp eax, 0xffffffff
je 0x140034425
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400343ec
mov edx, r15d
mov ecx, r14d
call fcn.14001f800
jmp 0x140034445
cmp byte [rsi + 0x38], dil
je 0x14003443c
cmp dword [rsi + 0x34], 5
jne 0x14003443c
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140034445
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400230c4
jmp 0x1400344b8
jns 0x1400344b8
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14002755c
cmp rax, 0xffffffffffffffff
jne 0x140034470
cmp byte [rsi + 0x30], dil
je 0x1400344b8
mov edi, dword [rsi + 0x2c]
jmp 0x1400344b8
mov ecx, r14d
call fcn.14002c9ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1400344b8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x1400344b8
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1400344b1
mov eax, dword [rsi + 0x2c]
jmp 0x1400344b6
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14002755c
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x140034cc0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140034ce8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140034ce8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180001000
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rbp, rdx
mov esi, r8d
mov r9d, 0x3000
mov r8d, r8d
xor edx, edx
mov rdi, rcx
mov dword [rsp + 0x20], 0x40
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbx, rax
test rax, rax
je 0x180001075
mov r9, rsi
mov r8, rbp
mov rdx, rax
mov rcx, rdi
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x180001072
mov r9d, 0x8000
xor r8d, r8d
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rax, rbx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x180001490
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 0x20], r9
push rbp
push rsi
push r14
push r15
sub rsp, 0x58
xor r15d, r15d
mov rbp, r8
mov r14, rdx
mov dword [rsp + 0x40], r15d
mov dword [rsp + 0x98], r15d
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [rsp + 0x40]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcessId]
lea rdx, [rsp + 0x98]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
mov eax, dword [rsp + 0x98]
cmp dword [rsp + 0x40], eax
je 0x180001632
mov qword [rsp + 0x80], rbx
mov qword [rsp + 0x88], rdi
mov qword [rsp + 0x50], r12
call fcn.180001aa0
and eax, 0xffff0000
cmp eax, 0x6000000
ja 0x18000158c
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, [0x18000bea0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, r15d
mov r12d, 0x3d80
mov rbx, rax
cmp word [rbx], r12w
jne 0x180001563
mov ecx, dword [rbx + 2]
mov edx, 1
add rcx, 7
add rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsBadWritePtr]
test eax, eax
je 0x180001580
inc edi
inc rbx
cmp edi, 0x300
jl 0x180001544
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r15
jmp 0x1800015f7
mov eax, dword [rbx + 2]
lea rdi, [rbx + 7]
add rdi, rax
jmp 0x1800015ca
call fcn.180001aa0
and eax, 0xffff0000
cmp eax, 0x6010000
jne 0x180001617
lea rcx, str.KernelBase.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
lea rdx, str.KernelBaseGetGlobalData
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x180001622
call rax
test rax, rax
je 0x180001622
lea rdi, [rax + 0x5c]
test rdi, rdi
je 0x180001622
movzx ebx, byte [rdi]
mov qword [rsp + 0x30], r15
mov r9, r14
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov byte [rdi], 1
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov byte [rdi], bl
mov rdi, qword [rsp + 0x88]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x50]
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbp
ret
mov ecx, 0x32
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, 0x7f
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r15
jmp 0x1800015f7
mov qword [rsp + 0x30], r15
mov r9, r14
xor r8d, r8d
xor edx, edx
mov rcx, rsi
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
add rsp, 0x58
pop r15
pop r14
pop rsi
pop rbp
ret
Function at 0x180001910
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x20
mov ebx, dword [0x18000f2d4]
xor r8d, r8d
lea rbp, [0x18000f2dc]
test ebx, ebx
je 0x18000195d
xor ecx, ecx
nop word [rax + rax]
mov eax, dword [0x18000f2d0]
shr eax, cl
add ecx, 8
xor byte [r8 + rbp], al
mov ebx, dword [0x18000f2d4]
inc r8d
cmp r8d, ebx
jb 0x180001940
call fcn.180001c60
mov edi, eax
test eax, eax
je 0x1800019bb
mov qword [rsp + 0x30], rsi
call fcn.180001b60
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x1800019b9
mov r8d, ebx
mov rdx, rbp
mov ecx, edi
call fcn.180001660
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rsi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
jmp 0x1800019a4
mov rbx, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x180001b60
Capabilities:
Acquire debug privileges

Disassembly:
sub rsp, 0x68
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x30]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x180001bb3
lea r8, [rsp + 0x38]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov rcx, qword [rsp + 0x30]
test eax, eax
jne 0x180001bc7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180001fe0
add rsp, 0x68
ret
mov rax, qword [rsp + 0x38]
lea r8, [rsp + 0x40]
xor edx, edx
mov qword [rsp + 0x44], rax
xor eax, eax
mov dword [rsp + 0x40], 1
mov qword [rsp + 0x28], rax
lea r9d, [rax + 0x10]
mov dword [rsp + 0x4c], 2
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
jne 0x180001c3b
mov qword [rsp + 0x60], rbx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, ebx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
xor al, al
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180001fe0
add rsp, 0x68
ret
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x50]
xor rcx, rsp
call fcn.180001fe0
add rsp, 0x68
ret
Function at 0x180001c60
Capabilities:
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
xor edi, edi
mov ebx, edi
nop
add rbx, 0x1000
mov rcx, rdi
mov rdx, rbx
call fcn.180002394
mov rdi, rax
test rax, rax
je 0x180001ce9
xor r9d, r9d
mov r8d, ebx
mov rdx, rax
lea ecx, [r9 + 5]
call qword [sym.imp.ntdll.dll_ZwQuerySystemInformation]
cmp eax, 0xc0000004
je 0x180001c70
test eax, eax
js 0x180001ce1
mov rbx, rdi
nop dword [rax + rax]
mov rdx, qword [rbx + 0x40]
test rdx, rdx
je 0x180001cd6
cmp word [rbx + 0x38], 0x16
jne 0x180001cd6
lea rcx, str.svchost.exe
mov r8d, 0xb
call fcn.180008d8c
test eax, eax
je 0x180001cf6
mov eax, dword [rbx]
test eax, eax
je 0x180001ce1
add rbx, rax
jne 0x180001cb0
mov rcx, rdi
call fcn.180002000
xor eax, eax
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rbx + 0x50]
mov rcx, rdi
call fcn.180002000
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14004788c
Capabilities:
Check if file exists

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x150]
sub rsp, 0x250
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x140], rax
and qword [r8], 0
mov r14, r8
mov r8, rcx
mov ebx, 0x104
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140046064
lea r8, [0x14033f318]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1400460e8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rdi, rax
test rax, rax
jne 0x14004792e
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140047a01
lea edx, [rbx - 0x3c]
mov rcx, qword [rbp + 0x168]
lea r8, [0x14033f2a0]
call fcn.140047698
mov esi, eax
jmp 0x140047a03
and dword [rsp + 0x24], 0
lea rdx, [rsp + 0x24]
and dword [rsp + 0x20], 0
mov rcx, rdi
call fcn.140047740
mov esi, eax
test eax, eax
jns 0x14004796b
mov rcx, qword [rbp + 0x168]
lea r8, [0x14033f2a0]
mov r9d, eax
mov edx, 0xce
call fcn.140047668
jmp 0x140047a03
lea r8, [0x14033f320]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400460e8
lea r8, [rsp + 0x30]
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.api_ms_win_core_synch_l1_1_0.dll_OpenSemaphoreW]
mov rbx, rax
test rax, rax
jne 0x1400479a3
mov edx, 0xd4
jmp 0x140047914
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140047740
mov esi, eax
test eax, eax
jns 0x1400479e0
mov rcx, qword [rbp + 0x168]
lea r8, [0x14033f2a0]
mov r9d, eax
mov edx, 0xd6
call fcn.140047668
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140047a3e
jmp 0x140047a03
mov rcx, rbx
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140047a57
movsxd rcx, dword [rsp + 0x20]
movsxd rax, dword [rsp + 0x24]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
xor esi, esi
test rdi, rdi
je 0x140047a15
mov rcx, rdi
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
test eax, eax
je 0x140047a70
mov eax, esi
mov rcx, qword [rbp + 0x140]
xor rcx, rsp
call fcn.1402dfdb0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilResource.h
mov edx, 0x879
call fcn.1400476b0
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilResource.h
mov edx, 0x879
call fcn.1400476b0
int3
mov rcx, qword [rbp + 0x168]
lea r8, str.internal_sdkincwilResource.h
mov edx, 0x879
call fcn.1400476b0
int3
Function at 0x14004c2d4
Capabilities:
Terminate process

Disassembly:
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xc0
mov rax, qword [0x14049e510]
xor rax, rsp
mov qword [rbp + 0x47], rax
and qword [rbp - 0x21], 0
lea rax, str.Sense
and qword [rbp - 0x19], 0
lea rcx, [rbp - 0x31]
mov qword [rbp - 0x31], rax
lea rax, [0x14004be10]
mov qword [rbp - 0x29], rax
call qword [sym.imp.api_ms_win_service_core_l1_1_0.dll_StartServiceCtrlDispatcherW]
mov rcx, qword [rbp + 0x5f]
lea rdx, str.Failed_to_start_service_control_dispatcher
mov qword [rsp + 0x20], rdx
lea r8, str.amcorewcd_source_service_src_service.cpp
mov edx, 0x29e
mov r9d, eax
call fcn.14004d29c
cmp qword [0x1404a3b08], 0
jne 0x14004c35a
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
jne 0x14004c404
jmp 0x14004c3ef
cmp dword [reloc.OLEAUT32.dll_SysReAllocString], 1
je 0x14004c3ef
call fcn.14004d8a4
mov rcx, qword [rax + 8]
cmp dword [rcx], 2
jbe 0x14004c3db
and dword [rbp + 0x23], 0
lea rax, [rbp - 0x39]
and dword [rbp + 0x33], 0
mov edx, 4
and dword [rbp + 0x43], 0
mov qword [rbp + 0x17], rax
lea rax, str.Service_stopped_with_unexpected_service_status._Terminating_process
mov qword [rbp + 0x27], rax
lea rax, reloc.OLEAUT32.dll_SysReAllocString
mov qword [rbp + 0x37], rax
mov dword [rbp - 0x39], 0x507
mov dword [rbp + 0x1f], edx
mov dword [rbp + 0x2f], 0x88
mov dword [rbp + 0x3f], edx
lea rax, [rbp - 9]
xor r9d, r9d
mov qword [rsp + 0x28], rax
lea rdx, [0x1403d527e]
xor r8d, r8d
mov dword [rsp + 0x20], 5
call fcn.140001158
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 2
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TerminateProcess]
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1402dfdb0
add rsp, 0xc0
pop rbp
ret
mov ecx, 0x8007000e
call fcn.140048a6c
mov rcx, qword [rbp + 0x5f]
lea r8, str.amcorewcd_source_service_src_service.cpp
mov r9d, eax
mov edx, 0x2a3
lea rax, str.Service_control_dispatcher_failed_without_saying_so...
mov qword [rsp + 0x20], rax
call fcn.14004d1a0
int3
Function at 0x14005d708
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push r12
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r15, rdx
mov r14, rcx
movabs rcx, 0xcbf29ce484222325
xor edx, edx
movzx eax, byte [rdx + r8]
xor rcx, rax
movabs r9, 0x100000001b3
imul rcx, r9
inc rdx
cmp rdx, 8
jb 0x14005d73f
mov rsi, qword [r14 + 0x30]
and rsi, rcx
mov rcx, qword [r14 + 8]
add rsi, rsi
mov rax, qword [r14 + 0x18]
cmp qword [rax + rsi*8], rcx
jne 0x14005d77b
mov rbx, rcx
jmp 0x14005d783
mov rbx, qword [rax + rsi*8 + 8]
mov rbx, qword [rbx]
cmp rbx, qword [rax + rsi*8]
je 0x14005d7ae
mov rdx, qword [r8]
mov rbx, qword [rbx + 8]
cmp rdx, qword [rbx + 0x10]
je 0x14005d79e
cmp rbx, qword [rax + rsi*8]
jne 0x14005d78c
jmp 0x14005d7ae
mov qword [r15], rbx
mov byte [r15 + 8], 0
mov rax, r15
jmp 0x14005d89c
mov rdi, qword [rcx]
mov r12, qword [rdi + 8]
mov r9, r8
mov r8, r12
mov rdx, rdi
call fcn.14005e004
mov rdx, rax
mov rax, qword [r14 + 0x10]
movabs rcx, 0xaaaaaaaaaaaaaa9
sub rcx, rax
cmp rcx, 1
jae 0x14005d7eb
lea rcx, str.list_T__too_long
call qword [sym.imp.msvcp_win.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
inc rax
mov qword [r14 + 0x10], rax
mov qword [rdi + 8], rdx
mov qword [r12], rdx
mov rcx, qword [r14 + 8]
mov rdi, qword [rcx]
mov qword [rsp + 0x20], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x14005d83f
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rcx, qword [r14 + 8]
mov rdx, qword [r14 + 0x18]
cmp qword [rdx + rsi*8], rcx
jne 0x14005d858
mov qword [rdx + rsi*8], rdi
mov rax, qword [r14 + 0x18]
mov qword [rax + rsi*8 + 8], rdi
jmp 0x14005d888
cmp qword [rdx + rsi*8], rbx
jne 0x14005d864
mov qword [rdx + rsi*8], rdi
jmp 0x14005d888
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + rsi*8 + 8], rcx
cmp rcx, rdi
je 0x14005d888
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + rsi*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + rsi*8 + 8], rcx
mov rcx, r14
call fcn.14005dc00
nop
mov qword [r15], rdi
mov byte [r15 + 8], 1
mov rax, r15
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r12
ret