joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001ef2c
Capabilities:
Get token privileges

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x30
xor ebx, ebx
and qword [rbp + 0x38], rbx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetCurrentThread]
lea edi, [rbx + 1]
mov rcx, rax
mov r8d, edi
lea r9, [rbp + 0x38]
lea edx, [rbx + 8]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_OpenThreadToken]
test eax, eax
je 0x14001f041
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
and dword [rbp + 0x28], ebx
lea r9d, [rbx + 4]
lea r8, [rbp + 0x20]
mov qword [rsp + 0x20], rax
lea edx, [rbx + 0x12]
mov dword [rbp + 0x20], edi
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x14001f001
cmp dword [rbp + 0x20], 2
cmove ebx, edi
cmp dword [rbp + 0x20], edi
jne 0x14001f08b
mov rcx, qword [rbp + 0x38]
lea rax, [rbp + 0x28]
lea r9d, [rdi + 3]
mov qword [rsp + 0x20], rax
lea r8, [rbp + 0x30]
mov dword [rbp + 0x28], 4
lea edx, [rdi + 0x13]
call qword [sym.imp.api_ms_win_security_base_l1_1_0.dll_GetTokenInformation]
test eax, eax
je 0x14001efd3
cmp dword [rbp + 0x30], 0
je 0x14001f08b
mov ebx, edi
jmp 0x14001f08b
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14001f08b
test byte [rcx + 0x44], dil
je 0x14001f08b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0xa
jmp 0x14001f025
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14001f08b
test byte [rcx + 0x44], dil
je 0x14001f08b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edx, 0xb
mov rcx, qword [0x1400ad2f8]
lea r8, [0x140093318]
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002efb8
jmp 0x14001f08b
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14001f08b
test byte [rcx + 0x44], dil
je 0x14001f08b
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
test eax, eax
jle 0x14001f06c
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400ad2f8]
lea r8, [0x140093318]
mov edx, 0xc
mov r9d, eax
mov rcx, qword [rcx + 0x38]
call fcn.14002efb8
mov rcx, qword [rbp + 0x38]
test rcx, rcx
je 0x14001f09a
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
mov eax, ebx
add rsp, 0x30
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001f0ac
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.NoWarningNoElevationOnInstall
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14001f108
cmp dword [rsp + 0x50], eax
je 0x14001f142
xor ebx, ebx
jmp 0x14001f142
jle 0x14001f112
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [0x1400ad2f8]
lea rdx, [0x1400ad2f8]
cmp rcx, rdx
je 0x14001f142
test byte [rcx + 0x44], bl
je 0x14001f142
mov rcx, qword [rcx + 0x38]
lea r8, [0x140093318]
mov edx, 0xd
mov r9d, eax
call fcn.14002efb8
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x14001f4d8
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
push rbx
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, str.RestrictDriverInstallationToAdministrators
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersPointAndPrint
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
test eax, eax
jne 0x14001f535
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x14001f571
mov rcx, qword [0x1400ad2f8]
lea rdx, [0x1400ad2f8]
cmp rcx, rdx
je 0x14001f571
test byte [rcx + 0x44], bl
je 0x14001f571
test eax, eax
jle 0x14001f559
movzx eax, ax
or eax, 0x80070000
mov rcx, qword [rcx + 0x38]
lea r8, [0x140093318]
mov edx, 0x17
mov r9d, eax
call fcn.14002efb8
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x14001f7d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rsp + 0x58], 4
lea rax, [r11 + 0x10]
mov dword [rsp + 0x50], ebx
mov qword [r11 - 0x18], rax
lea r8, str.RpcNamedPipeAuthentication
lea rax, [r11 + 8]
mov rcx, 0xffffffff80000002
mov qword [r11 - 0x20], rax
lea r9d, [rbx + 0x18]
lea rdx, str.SoftwarePoliciesMicrosoftWindows_NTPrintersRPC
mov qword [r11 - 0x28], rbx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
lea rdi, [0x1400ad2f8]
test eax, eax
jne 0x14001f84d
mov eax, dword [rsp + 0x50]
test eax, eax
je 0x14001f877
sub eax, 1
je 0x14001f846
mov rcx, qword [0x1400ad2f8]
cmp eax, 1
jne 0x14001f87e
lea ebx, [rax + 1]
jmp 0x14001f87e
mov ebx, 1
jmp 0x14001f877
mov rcx, qword [0x1400ad2f8]
cmp rcx, rdi
je 0x14001f8a3
test byte [rcx + 0x1c], 1
je 0x14001f87e
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400935b8]
mov edx, 0xb
mov r9d, eax
call fcn.14002efb8
mov rcx, qword [0x1400ad2f8]
cmp rcx, rdi
je 0x14001f8a3
test byte [rcx + 0x1c], 4
je 0x14001f8a3
mov r9d, dword [rsp + 0x50]
lea r8, [0x1400935b8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xc
call fcn.14002efb8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret

Function at 0x14001f8b8
Capabilities:
Get domain information

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
and qword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
xor ebx, ebx
xor ecx, ecx
lea edi, [rbx + 1]
mov edx, edi
call qword [sym.imp.DSROLE.dll_DsRoleGetPrimaryDomainInformation]
test eax, eax
jne 0x14001f8f4
mov rcx, qword [rsp + 0x30]
test dword [rcx], 0xfffffffd
cmovne ebx, edi
call qword [sym.imp.DSROLE.dll_DsRoleFreeMemory]
mov rcx, qword [0x1400ad2f8]
lea rax, [0x1400ad2f8]
cmp rcx, rax
je 0x14001f925
test byte [rcx + 0x1c], 4
je 0x14001f925
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400935b8]
mov edx, 0xa
mov r9d, ebx
call fcn.14002efb8
call fcn.14001f7d0
test ebx, ebx
je 0x14001f949
cmp eax, 2
je 0x14001f94d
call fcn.14001f958
test eax, eax
je 0x14001f94d
mov eax, edi
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, edi
je 0x14001f93c
xor eax, eax
jmp 0x14001f93e
Function at 0x14001f958
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rsi
sub rsp, 0x40
and dword [rsp + 0x50], 0
lea rax, [r11 + 0x10]
mov qword [r11 - 0x18], rax
lea r8, [0x140093580]
lea rax, [r11 + 8]
mov dword [rsp + 0x58], 4
mov qword [r11 - 0x20], rax
lea rdx, [0x140093440]
and qword [r11 - 0x28], 0
mov ebx, 1
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 0xf]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegGetValueW]
mov rcx, qword [0x1400ad2f8]
lea rsi, [0x1400ad2f8]
test eax, eax
jne 0x14001f9c7
xor ebx, ebx
cmp dword [rsp + 0x50], ebx
setne bl
jmp 0x14001f9f0
cmp rcx, rsi
je 0x14001fa15
test byte [rcx + 0x1c], bl
je 0x14001f9f0
mov rcx, qword [rcx + 0x10]
lea r8, [0x1400935b8]
mov edx, 0xd
mov r9d, eax
call fcn.14002efb8
mov rcx, qword [0x1400ad2f8]
cmp rcx, rsi
je 0x14001fa15
test byte [rcx + 0x1c], 4
je 0x14001fa15
mov r9d, dword [rsp + 0x50]
lea r8, [0x1400935b8]
mov rcx, qword [rcx + 0x10]
mov edx, 0xe
call fcn.14002efb8
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop rsi
ret

Function at 0x14001fa28
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rcx
mov dword [rbp + 0x30], 4
xor edi, edi
lea rcx, [rbp - 8]
mov dword [rbp + 0x28], edi
call fcn.140053264
lea rcx, [rbp - 0x10]
call fcn.140053264
lea r8, [rbp - 8]
mov edx, 0x20019
mov rcx, rbx
call fcn.140055428
test eax, eax
jne 0x14001fac7
mov rcx, qword [rbp - 8]
lea rax, [rbp - 0x10]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, str.SoftwareMicrosoftWindows_NTCurrentVersionWindows
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001fac7
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x30]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x38]
lea rax, [rbp + 0x28]
xor r8d, r8d
lea rdx, str.MaintainDefaultPrinter
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001fac7
lea eax, [rdi + 1]
cmp dword [rbp + 0x28], eax
cmove edi, eax
lea rcx, [rbp - 0x10]
call fcn.14001a430
lea rcx, [rbp - 8]
call fcn.14001a430
mov eax, edi
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x14001fd20
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rdi
mov rbp, rsp
sub rsp, 0x40
xor ebx, ebx
lea rax, [rbp - 0x10]
mov rdi, r8
mov qword [rbp - 0x10], rbx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SYSTEMSetup
mov rcx, 0xffffffff80000002
lea r9d, [rbx + 1]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x14001fdbf
mov rcx, qword [rbp - 0x10]
lea rax, [rbp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rbp + 0x28]
lea rax, [rbp + 0x20]
mov dword [rbp + 0x20], ebx
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.Upgrade
mov dword [rbp + 0x38], 4
mov dword [rbp + 0x28], ebx
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
test eax, eax
jne 0x14001fdb5
cmp dword [rbp + 0x28], 4
jne 0x14001fdb5
test rdi, rdi
je 0x14001fdb0
mov eax, dword [rbp + 0x20]
mov dword [rdi], eax
mov ebx, 1
mov rcx, qword [rbp - 0x10]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x40
pop rdi
pop rbx
pop rbp
ret
Function at 0x140036134
Capabilities:
Contain obfuscated stackstrings
Resolve function by fnv-1a hash

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x1c8
movabs rax, 0x6f646e69575c3a43
lea rbx, [rsp + 0x70]
mov qword [rbx], rax
movabs rax, 0x5c706d65545c7377
mov qword [rbx + 8], rax
movabs rax, 0x6e695f6873616c66
mov qword [rbx + 0x10], rax
movabs rax, 0x78652e6c6c617473
mov qword [rbx + 0x18], rax
mov word [rbx + 0x20], 0x65
movabs rax, 0x2f2f3a7370747468
lea rdi, [rsp + 0x98]
mov qword [rdi], rax
movabs rax, 0x73616c662e777777
mov qword [rdi + 8], rax
movabs rax, 0x6d64632f6e632e68
mov qword [rdi + 0x10], rax
movabs rax, 0x2f74736574616c2f
mov qword [rdi + 0x18], rax
movabs rax, 0x6e65636873616c66
mov qword [rdi + 0x20], rax
movabs rax, 0x615f70705f726574
mov qword [rdi + 0x28], rax
movabs rax, 0x6c6174736e695f78
mov qword [rdi + 0x30], rax
movabs rax, 0x6578652e6e635f6c
mov qword [rdi + 0x38], rax
xor esi, esi
mov byte [rdi + 0x40], sil
mov rcx, rdi
mov rdx, rbx
call fcn.14003687a
add byte [rcx - 0x5c19093d], bh
call fcn.140036747
mov rbp, rax
mov rcx, rax
mov edx, 0x3285501
call fcn.1400367d9
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rbp
mov rcx, rbp
mov edx, 0x53b2070f
call fcn.1400367d9
movabs rcx, 0x2e74656e696e6977
mov qword [rdi], rcx
mov dword [rdi + 8], 0x6c6c64
lea rbp, [rsp + 0x98]
mov rcx, rbp
call rax
mov r13, rax
mov rcx, rax
mov edx, 0xe23b96e7
call fcn.1400367d9
mov r12, rax
mov rcx, r13
mov edx, 0xbc1ee529
call fcn.1400367d9
mov r15, rax
mov rcx, r13
mov edx, 0x6e003e7d
call fcn.1400367d9
mov rdi, rax
mov rcx, r13
mov edx, 0xccdb7a14
call fcn.1400367d9
mov r14, rax
mov esi, eax
mov rcx, r13
mov edx, 0xbad8ab23
call fcn.1400367d9
mov qword [rsp + 0x58], rax
mov rcx, r13
mov edx, 0xee43c82
call fcn.1400367d9
mov qword [rsp + 0x60], rax
mov rcx, r13
mov edx, 0x960cb4c6
call fcn.1400367d9
mov r13, rax
mov dword [rsp + 0x20], esi
xor ecx, ecx
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call r12
movabs rcx, 0x63696d762e777777
mov qword [rbp], rcx
movabs rcx, 0x616863786570766b
mov qword [rbp + 8], rcx
movabs rcx, 0x767265732e65676e
mov qword [rbp + 0x10], rcx
mov dword [rbp + 0x18], 0x73656369
mov byte [rbp + 0x1c], sil
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x28], 3
lea rbp, [rsp + 0x98]
mov rcx, rax
mov rdx, rbp
mov r8w, 0x1bb
xor r9d, r9d
call r15
movabs rcx, 0x2e52484f2f68742f
push rdx
mov qword cs:[rbp], rcx
movabs rcx, 0x6f54656970706948
mov qword [rbp + 8], rcx
movabs rcx, 0x504a2d414a5f6e77
mov qword [rbp + 0x10], rcx
movabs rcx, 0x3336313335333137
mov qword [rbp + 0x18], rcx
movabs rcx, 0x78303238315f3435
mov qword [rbp + 0x20], rcx
movabs rcx, 0x67706a2e30383031
mov qword [rbp + 0x28], rcx
mov byte [rbp + 0x30], sil
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rsi
mov dword [rsp + 0x30], 0x84c03200
lea rbp, [rsp + 0x98]
mov rcx, rax
xor edx, edx
mov r8, rbp
xor r9d, r9d
call rdi
mov rdi, rax
mov dword [rbx], 0x3380
lea r8, [rsp + 0x70]
mov rcx, rax
mov edx, 0x1f
mov r9d, 4
call r14
movabs rax, 0x203a747065636341
mov qword [rbp], rax
Function at 0x140036747
Capabilities:
Access peb ldr_data
Encode data using xor
Hash data using fnv

Disassembly:
push rsi
push rdi
mov rax, qword gs:[0x60]
mov r8, qword [rax + 0x18]
mov r9, qword [r8 + 0x20]
add r8, 0x20
cmp r9, r8
je 0x1400367d4
mov rax, qword [r9 + 0x20]
test rax, rax
je 0x1400367cf
movsxd rdx, dword [rax + 0x3c]
mov edx, dword [rax + rdx + 0x88]
test rdx, rdx
je 0x1400367cf
mov r10d, dword [rax + rdx + 0xc]
mov dl, byte [rax + r10]
test dl, dl
je 0x1400367c4
lea r11, [rax + r10]
inc r11
mov r10d, 0x811c9dc5
lea esi, [rdx - 0x41]
lea edi, [rdx + 0x20]
cmp sil, 0x1a
movzx edx, dl
movzx esi, dil
cmovae esi, edx
movzx edx, sil
xor edx, r10d
imul r10d, edx, 0x1000193
mov dl, byte [r11]
inc r11
test dl, dl
jne 0x140036796
jmp 0x1400367ca
mov r10d, 0x811c9dc5
cmp r10d, ecx
je 0x1400367d6
mov r9, qword [r9]
jmp 0x14003675e
xor eax, eax
pop rdi
pop rsi
ret

Function at 0x1400367d9
Capabilities:
Encode data using xor
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
movsxd rax, dword [rcx + 0x3c]
mov eax, dword [rcx + rax + 0x88]
test rax, rax
je 0x14003685c
mov r8d, dword [rcx + rax + 0x18]
test r8, r8
je 0x14003685c
mov r10d, dword [rcx + rax + 0x20]
add r10, rcx
mov r9d, dword [rcx + rax + 0x24]
add r9, rcx
mov r11d, dword [rcx + rax + 0x1c]
add r11, rcx
lea r15, [rcx + 1]
xor eax, eax
xor edi, edi
mov ebx, dword [r10 + rdi*4]
mov r14b, byte [rcx + rbx]
test r14b, r14b
je 0x140036849
add rbx, r15
mov ebp, 0x811c9dc5
movzx esi, r14b
xor esi, ebp
imul ebp, esi, 0x1000193
mov r14b, byte [rbx]
inc rbx
test r14b, r14b
jne 0x140036830
jmp 0x14003684e
mov ebp, 0x811c9dc5
cmp ebp, edx
je 0x140036860
inc rdi
cmp rdi, r8
jb 0x14003681b
jmp 0x140036871
xor eax, eax
jmp 0x140036871
mov eax, edi
movzx eax, word [r9 + rax*2]
mov eax, dword [r11 + rax*4]
add rcx, rax
mov rax, rcx
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14003687a
Capabilities:
Resolve function by fnv-1a hash

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x40
mov r15, rdx
mov r14, rcx
mov ecx, 0xa3e6f6c3
call fcn.140036747
mov rcx, rax
mov edx, 0x53b2070f
call fcn.1400367d9
mov rbx, rax
movabs rax, 0x642e6e6f6d6c7255
lea rdi, [rsp + 0x30]
lea edi, [rsp + 0x30]
mov qword [rdi], rax
mov word [rdi + 8], 0x6c6c
mov byte [rdi + 0xa], 0
mov rcx, rdi
call rbx
mov rcx, rax
mov edx, 0xd8d746fc
call fcn.1400367d9
mov rsi, rax
movabs rax, 0x2e32336c6c656853
push rbx
push 0x336c6c65
xor ch, byte [rsi]
mov qword [rdi], rax
mov dword [rdi + 8], 0x6c6c64
lea rcx, [rsp + 0x30]
call rbx
mov rcx, rax
mov edx, 0xb0ff5bf
call fcn.1400367d9
mov rbx, rax
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov rdx, r14
mov r8, r15
xor r9d, r9d
call rsi
test eax, eax
js 0x140036945
lea rdx, [rsp + 0x30]
mov dword [rdx], 0x6e65706f
mov byte [rdx + 4], 0
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], 0
xor ecx, ecx
mov r8, r15
xor r9d, r9d
call rbx
nop
add rsp, 0x40
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140037fc4
Capabilities:
Check if file exists

Disassembly:
mov r11, rsp
push rbx
push rsi
sub rsp, 0x268
mov rax, qword [0x1400ad768]
xor rax, rsp
mov qword [rsp + 0x250], rax
mov qword [r11 + 0x10], rdi
xor esi, esi
mov qword [r11 - 0x18], r14
mov edi, 0x104
mov r14, r8
mov qword [r8], rsi
mov r8, rcx
mov edx, edi
lea rcx, [rsp + 0x40]
call fcn.140010a10
mov ecx, edi
lea rax, [rsp + 0x40]
nop dword [rax]
cmp word [rax], si
je 0x140038023
add rax, 2
sub rcx, 1
jne 0x140038014
mov rax, rdi
mov r8, rsi
sub rax, rcx
test rcx, rcx
cmovne r8, rax
je 0x140038050
mov rdx, rdi
lea rcx, [rsp + 0x40]
sub rdx, r8
lea rcx, [rcx + r8*2]
lea r9, [0x14009e728]
call fcn.140037ee8
lea r8, [rsp + 0x40]
mov qword [rsp + 0x280], rbp
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 0x14003809a
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
cmp eax, 2
je 0x140038189
mov rcx, qword [rsp + 0x278]
mov edx, 0xc8
call fcn.140037b78
mov esi, eax
jmp 0x140038189
lea rdx, [rsp + 0x34]
mov dword [rsp + 0x34], esi
mov rcx, rbx
mov dword [rsp + 0x30], esi
call fcn.1400371e0
mov ebp, eax
test eax, eax
jns 0x1400380d1
mov rcx, qword [rsp + 0x278]
mov r9d, eax
mov edx, 0xce
call fcn.140037b98
mov esi, ebp
jmp 0x140038189
lea r8, [rsp + 0x38]
mov rdx, rdi
lea rcx, [rsp + 0x40]
call fcn.14001da90
test eax, eax
js 0x140038107
mov rax, qword [rsp + 0x38]
lea rcx, [rsp + 0x40]
sub rdi, rax
lea r9, [0x14009e730]
mov rdx, rdi
lea rcx, [rcx + rax*2]
call fcn.140037ee8
lea r8, [rsp + 0x40]
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 0x140038139
mov rcx, qword [rsp + 0x278]
mov edx, 0xd4
call fcn.140037b78
mov ebp, eax
mov esi, eax
jmp 0x140038189
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400371e0
mov ebp, eax
test eax, eax
jns 0x14003816d
mov rcx, qword [rsp + 0x278]
mov r9d, eax
mov edx, 0xd6
call fcn.140037b98
mov rcx, rdi
call fcn.14003668c
mov esi, ebp
jmp 0x140038189
mov rcx, rdi
call fcn.14003668c
movsxd rcx, dword [rsp + 0x30]
movsxd rax, dword [rsp + 0x34]
shl rcx, 0x1f
or rax, rcx
mov qword [r14], rax
mov r14, qword [rsp + 0x260]
mov rdi, qword [rsp + 0x288]
mov rbp, qword [rsp + 0x280]
test rbx, rbx
je 0x1400381ae
mov rcx, rbx
call fcn.14003668c
mov eax, esi
mov rcx, qword [rsp + 0x250]
xor rcx, rsp
call fcn.14001aad0
add rsp, 0x268
pop rsi
pop rbx
ret
Function at 0x14003ddf0
Capabilities:
Create thread

Disassembly:
test rcx, rcx
je 0x14003de64
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
xor edi, edi
cmp word [rcx], di
je 0x14003de5a
call sym.spoolsv.exe_PrvDllAllocSplStr
mov rbx, rax
test rax, rax
je 0x14003de5a
lea rax, [rsp + 0x40]
mov r9, rbx
mov qword [rsp + 0x28], rax
lea r8, [0x14003c320]
mov edx, 0x10000
mov dword [rsp + 0x20], edi
xor ecx, ecx
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_CreateThread]
test rax, rax
je 0x14003de48
mov rcx, rax
call qword [sym.imp.api_ms_win_core_handle_l1_1_0.dll_CloseHandle]
jmp 0x14003de5a
mov rcx, qword [0x1400af198]
mov r8, rbx
xor edx, edx
call qword [sym.imp.api_ms_win_core_heap_l1_1_0.dll_HeapFree]
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret

Function at 0x14003fdd0
Capabilities:
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov edi, r9d
mov rbx, r8
mov esi, edx
mov rbp, rcx
test r8, r8
je 0x14003fe05
cmp qword [r8 + 8], 0
jne 0x14003fe05
mov eax, 0x57
jmp 0x14003feb5
mov ecx, dword [rsp + 0x60]
call fcn.14000695c
test eax, eax
je 0x14003feaf
mov ecx, dword [0x1400af1ac]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
test rbx, rbx
je 0x14003fe32
mov r9, qword [rbx + 8]
jmp 0x14003fe35
xor r9d, r9d
test rbx, rbx
je 0x14003fe3f
mov r8d, dword [rbx]
jmp 0x14003fe42
xor r8d, r8d
mov edx, esi
mov dword [rsp + 0x20], edi
mov rcx, rbp
call sym.spoolsv.exe_PrvSetJobW
mov ecx, dword [0x1400af1ac]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov ecx, dword [rsp + 0x60]
call fcn.1400065f4
test ebx, ebx
je 0x14003fe71
xor eax, eax
jmp 0x14003feb5
mov rax, qword [0x1400ad2f8]
lea rcx, [0x1400ad2f8]
cmp rax, rcx
je 0x14003feaf
test byte [rax + 0x44], 1
je 0x14003feaf
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400ad2f8]
lea r8, [0x140093318]
mov r9d, eax
mov edx, 0x1d
mov rcx, qword [rcx + 0x38]
call fcn.14002efb8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret
Function at 0x14003fed0
Capabilities:
Set thread local storage value

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, 0x20
mov r14, rcx
mov esi, r9d
mov rcx, r8
mov rbx, r8
mov rbp, rdx
call fcn.14003c354
xor edi, edi
test eax, eax
jne 0x14003ff0d
mov eax, 0x57
jmp 0x14003ffba
cmp dword [r8], 3
je 0x14003ff20
mov ecx, 0x7c
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_SetLastError]
jmp 0x14003ff03
mov ecx, esi
call fcn.14000695c
test eax, eax
jne 0x14003ff36
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
jmp 0x14003ffba
mov ecx, dword [0x1400af1a8]
mov edx, 1
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov r9, qword [rbx + 8]
mov rdx, rbp
mov r8d, dword [rbx]
mov rcx, r14
call sym.spoolsv.exe_PrvSetPortW
mov ecx, dword [0x1400af1a8]
xor edx, edx
mov ebx, eax
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_TlsSetValue]
mov ecx, esi
call fcn.1400065f4
test ebx, ebx
jne 0x14003ffb8
mov rax, qword [0x1400ad2f8]
lea rcx, [0x1400ad2f8]
cmp rax, rcx
je 0x14003ffb0
test byte [rax + 0x44], 1
je 0x14003ffb0
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov rcx, qword [0x1400ad2f8]
lea edx, [rbx + 0x56]
mov r9d, eax
lea r8, [0x140093318]
mov rcx, qword [rcx + 0x38]
call fcn.14002efb8
call qword [sym.imp.api_ms_win_core_errorhandling_l1_1_0.dll_GetLastError]
mov edi, eax
mov eax, edi
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x140040bdc
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x30
lea rax, [rsp + 0x58]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140093440]
mov rcx, 0xffffffff80000002
mov ebx, 0x3200000
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegOpenKeyExW]
test eax, eax
jne 0x140040c5e
and dword [rsp + 0x40], eax
lea r9, [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
lea rdx, str.MaxRpcSize
lea rax, [rsp + 0x40]
mov dword [rsp + 0x48], 4
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x58]
test eax, eax
cmove ebx, dword [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_registry_l1_1_0.dll_RegCloseKey]
mov eax, ebx
add rsp, 0x30
pop rbx
ret