joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18000b200
Capabilities:
Query or enumerate registry key

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 r13
push r14
sub rsp, 0x40
mov r10d, dword [rcx]
xor r14d, r14d
mov r12, r9
mov r11d, r8d
mov rbp, rdx
mov edi, r14d
test r10d, r10d
je 0x18000b338
dec r10d
jne 0x18000b375
cmp dword [rdx + 0x18], r14d
je 0x18000b375
cmp r11d, dword [rdx + 0x18]
jae 0x18000b375
cmp dword [rdx + 0x20], 0xffffffff
je 0x18000b375
mov rax, qword [rcx + 8]
movsxd rcx, dword [rdx + 0x20]
mov r8, qword [rax + 0x10]
add rcx, r8
movzx eax, word [rcx + 4]
cmp eax, 0x666c
je 0x18000b284
cmp eax, 0x686c
jne 0x18000b375
cmp word [rcx + 6], r14w
je 0x18000b375
movzx eax, word [rcx + 6]
cmp r11d, eax
jae 0x18000b375
movsxd rdx, dword [rcx + r11*8 + 8]
mov eax, 0x6b6e
add rdx, r8
cmp word [rdx + 4], ax
jne 0x18000b375
test r9, r9
je 0x18000b375
mov rsi, qword [rsp + 0x80]
test rsi, rsi
je 0x18000b375
test byte [rdx + 6], 0x20
je 0x18000b30e
movzx ebx, word [rdx + 0x4c]
cmp dword [rsi], ebx
seta dil
test edi, edi
je 0x18000b334
lea rcx, [rdx + 0x50]
mov edx, ebx
call fcn.18000e37c
mov rbp, rax
test rax, rax
je 0x18000b32f
lea r8, [rbx + rbx]
mov rdx, rax
mov rcx, r12
call fcn.180076230
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000b32f
movzx ebx, word [rdx + 0x4c]
shr ebx, 1
cmp dword [rsi], ebx
seta dil
test edi, edi
je 0x18000b334
movzx r8d, word [rbp + 0x4c]
add rdx, 0x50
mov rcx, r9
call fcn.180076230
mov word [r12 + rbx*2], r14w
mov dword [rsi], ebx
jmp 0x18000b375
mov r9, qword [rsp + 0x80]
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov r8, r12
mov edx, r11d
mov rcx, rbp
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete dil
test edi, edi
jne 0x18000b375
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov eax, edi
mov rdi, qword [rsp + 0x78]
add rsp, 0x40
pop r14
pop r13
pop r12
ret
Function at 0x18000b398
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
xor r15d, r15d
mov r10, rdx
mov edx, dword [rcx]
mov r14, r9
mov r11d, r8d
mov r13, rcx
mov edi, r15d
test edx, edx
je 0x18000b566
dec edx
jne 0x18000b5bb
test r10, r10
jne 0x18000b3e5
mov rax, qword [rcx + 8]
mov r10, qword [rax + 0x18]
mov eax, 0x6b6e
cmp word [r10 + 4], ax
jne 0x18000b5bb
cmp dword [r10 + 0x28], r15d
je 0x18000b5bb
cmp r11d, dword [r10 + 0x28]
jae 0x18000b5bb
cmp dword [r10 + 0x2c], 0xffffffff
je 0x18000b5bb
mov rax, qword [rcx + 8]
mov r8, qword [rax + 0x10]
movsxd rax, dword [r10 + 0x2c]
lea rcx, [r8 + rax]
mov eax, 0x6b76
movsxd rbx, dword [rcx + r11*4 + 4]
add rbx, r8
cmp word [rbx + 4], ax
jne 0x18000b5bb
test r9, r9
je 0x18000b5bb
mov rsi, qword [rsp + 0x90]
test rsi, rsi
je 0x18000b5bb
cmp word [rbx + 6], r15w
je 0x18000b4e9
test byte [rbx + 0x14], 1
movzx edx, word [rbx + 6]
je 0x18000b47c
lea rcx, [rbx + 0x18]
lea r12d, [rdx + 1]
call fcn.18000e37c
mov rbp, rax
jmp 0x18000b4b1
mov r12d, edx
mov ecx, 0x40
add rdx, 2
shr r12d, 1
inc r12d
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbp, rax
test rax, rax
je 0x18000b5bb
movzx r8d, word [rbx + 6]
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.180076230
test rbp, rbp
je 0x18000b5bb
cmp dword [rsi], r12d
setae dil
test edi, edi
je 0x18000b4de
mov r8d, r12d
mov rdx, rbp
mov rcx, r14
add r8, r8
call fcn.180076230
lea r11d, [r12 - 1]
mov dword [rsi], r11d
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x18000b4ec
mov dword [rsi], r15d
test edi, edi
je 0x18000b5bb
mov esi, dword [rbx + 8]
mov rcx, qword [rsp + 0x98]
btr esi, 0x1f
test rcx, rcx
je 0x18000b50d
mov eax, dword [rbx + 0x10]
mov dword [rcx], eax
mov rbp, qword [rsp + 0xa8]
test rbp, rbp
je 0x18000b5bb
mov rcx, qword [rsp + 0xa0]
test rcx, rcx
je 0x18000b561
cmp dword [rbp], esi
mov edi, r15d
setae dil
test edi, edi
je 0x18000b561
test dword [rbx + 8], 0x80000000
je 0x18000b548
lea rdx, [rbx + 0xc]
jmp 0x18000b559
mov rax, qword [r13 + 8]
movsxd r8, dword [rbx + 0xc]
mov rdx, qword [rax + 0x10]
lea rdx, [r8 + rdx + 4]
mov r8d, esi
call fcn.180076230
mov dword [rbp], esi
jmp 0x18000b5bb
mov rax, qword [rsp + 0xa8]
mov r9, qword [rsp + 0x90]
mov r8, r14
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0xa0]
mov edx, r11d
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x98]
mov rcx, r10
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
sete dil
test edi, edi
jne 0x18000b5bb
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea r11, [rsp + 0x40]
mov eax, edi
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x18000dc0c
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov rbp, rdx
mov rdx, rcx
xor ebx, ebx
mov rcx, rdi
lea r8d, [rbx + 4]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rsi, rax
test rax, rax
je 0x18000dc67
lea rax, [rsp + 0x58]
lea r9d, [rbx + 0x24]
mov r8, rbp
xor edx, edx
mov rcx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x18000dd04
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rdi, rcx
xor ebx, ebx
lea rdx, str.ServicesActive
lea r8d, [rbx + 1]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x18000dd6a
mov r8d, 0x10000
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x18000dd61
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rsi, qword [rsp + 0x38]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x18000dfc8
Capabilities:
Create service
Persist via windows service
Start service

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 r13
push r14
sub rsp, 0x70
mov r13, r8
mov r14, rdx
mov rbx, rcx
xor esi, esi
lea rdx, str.ServicesActive
xor ecx, ecx
lea r8d, [rsi + 3]
mov r12d, r9d
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
test rax, rax
je 0x18000e171
lea r8d, [rsi + 0x10]
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdi, rax
test rax, rax
je 0x18000e03e
lea rcx, str.____s_service_already_registered_n
mov rdx, rbx
call fcn.180008f6c
jmp 0x18000e109
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x424
jne 0x18000e0f5
lea rcx, str.____s_service_not_present_n
mov rdx, rbx
call fcn.180008f6c
and qword [rsp + 0x60], rsi
and qword [rsp + 0x58], rsi
and qword [rsp + 0x50], rsi
and qword [rsp + 0x48], rsi
and qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], r13
mov dword [rsp + 0x30], 1
mov r9d, 0x60010
mov r8, r14
mov rdx, rbx
mov rcx, rbp
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], r12d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
je 0x18000e0e6
lea rcx, str.____s_service_successfully_registered_n
mov rdx, rbx
call fcn.180008f6c
mov rcx, rdi
call fcn.18000de64
mov esi, eax
test eax, eax
je 0x18000e0d7
lea rcx, str.____s_service_ACL_to_everyone_n
jmp 0x18000e031
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___kull_m_service_addWorldToSD__0x_08x__n
jmp 0x18000e102
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___CreateService__0x_08x__n
jmp 0x18000e102
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenService__0x_08x__n
mov edx, eax
call fcn.180008f6c
test rdi, rdi
je 0x18000e166
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
mov esi, eax
test eax, eax
je 0x18000e12b
lea rcx, str.____s_service_started_n
jmp 0x18000e13f
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x18000e149
lea rcx, str.____s_service_already_started_n
mov rdx, rbx
call fcn.180008f6c
jmp 0x18000e15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___StartService__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x18000e185
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_service_install___OpenSCManager_create___0x_08x__n
mov edx, eax
call fcn.180008f6c
lea r11, [rsp + 0x70]
mov eax, esi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret
Function at 0x18000ec30
Capabilities:
Decode data using base64 via winapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
push rdi
sub rsp, 0x40
xor edi, edi
mov rsi, r8
mov rbx, rdx
and qword [rax - 0x18], rdi
and qword [rdx], rdi
and qword [rax - 0x20], rdi
and dword [r8], edi
mov qword [rax - 0x28], r8
lea r8d, [rdi + 1]
xor r9d, r9d
xor edx, edx
mov rbp, rcx
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
test eax, eax
je 0x18000ecba
mov edx, dword [rsi]
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18000ecba
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
lea r8d, [rdi + 1]
mov r9, rax
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.CRYPT32.dll_CryptStringToBinaryW]
mov edi, eax
test eax, eax
jne 0x18000ecba
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x40
pop rdi
ret

Function at 0x18000f0c4
Capabilities:
Get token membership

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x40
xor ebx, ebx
mov rbp, r8
mov r12, rdx
lea rax, [r11 - 0x28]
lea r8, [r11 + 0x20]
lea r9d, [rbx + 4]
lea edx, [rbx + 8]
mov rsi, rcx
xor edi, edi
mov qword [r11 - 0x38], rax
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x18000f199
mov eax, dword [rsp + 0x78]
cmp eax, 1
jne 0x18000f153
lea rax, [rsp + 0x38]
lea r9d, [rbx + 1]
lea edx, [rbx + 8]
mov qword [rsp + 0x28], rax
xor r8d, r8d
mov rcx, rsi
mov dword [rsp + 0x20], 2
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edi, eax
test eax, eax
jne 0x18000f15d
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___DuplicateTokenEx__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov eax, dword [rsp + 0x78]
jmp 0x18000f158
mov qword [rsp + 0x38], rsi
cmp eax, 1
je 0x18000f1ad
mov rcx, qword [rsp + 0x38]
mov r8, rbp
mov rdx, r12
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ebx, eax
test eax, eax
jne 0x18000f188
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___CheckTokenMembership__0x_08x__n
mov edx, eax
call fcn.180008f6c
test edi, edi
je 0x18000f1ad
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x18000f1ad
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.ERROR_kull_m_token_CheckTokenMembership___GetTokenInformation__0x_08x__n
mov edx, eax
call fcn.180008f6c
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r12
pop rdi
pop rsi
ret
Function at 0x18000f2cc
Capabilities:
Get user security identifier

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
push rsi
push rdi
push r12
sub rsp, 0x50
xor esi, esi
test r9, r9
lea rbp, [r11 - 0x24]
cmovne rbp, r9
and dword [rsp + 0x40], esi
and dword [r11 + 0x20], esi
mov qword [r11 - 0x38], rbp
mov rbx, rdx
mov r12, rcx
lea rax, [r11 + 0x20]
mov rdx, rcx
mov rcx, qword [rsp + 0x90]
mov rdi, r8
mov qword [r11 - 0x40], rax
and qword [r11 - 0x48], rsi
lea r9, [r11 - 0x28]
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x18000f3bd
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x18000f3bd
mov edx, dword [rsp + 0x40]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rbx], rax
test rax, rax
je 0x18000f3bd
mov edx, dword [rsp + 0x88]
lea ecx, [rsi + 0x40]
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rdi], rax
test rax, rax
je 0x18000f3b1
mov r8, qword [rbx]
lea rcx, [rsp + 0x88]
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x28], rcx
mov rcx, qword [rsp + 0x90]
lea r9, [rsp + 0x40]
mov rdx, r12
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov esi, eax
test eax, eax
jne 0x18000f3bd
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rdi], rax
mov rcx, qword [rbx]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov qword [rbx], rax
mov rbx, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x78]
mov eax, esi
add rsp, 0x50
pop r12
pop rdi
pop rsi
ret
Function at 0x18001f748
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x20], rbx
mov dword [rsp + 0x18], r8d
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rsi, r9
mov rdi, rcx
cmp edx, dword [rcx + 0x3c]
jbe 0x18001f778
mov ecx, 0x10281
call fcn.1800496b8
jmp 0x18001f928
lea r8, [rsp + 0x38]
xor ebx, ebx
xor r9d, r9d
mov dword [rsp + 0x20], ebx
call fcn.18001aa90
test eax, eax
jne 0x18001f928
mov rbx, qword [rsp + 0x38]
xor eax, eax
cmp byte [rbx + 8], al
je 0x18001f7b0
mov ecx, 0x10286
call fcn.1800496b8
mov edi, eax
jmp 0x18001f919
mov byte [rbx + 8], 1
movzx ebp, byte [rbx + 5]
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x34], ebp
cmp ax, word [rbx + 0x12]
jae 0x18001f881
mov rdx, rax
mov qword [rsp + 0x38], rax
mov rcx, qword [rbx + 0x60]
movzx eax, byte [rdx + rcx]
shl eax, 8
movsxd rbp, eax
movzx eax, byte [rdx + rcx + 1]
or rbp, rax
movzx eax, word [rbx + 0x14]
and rbp, rax
xor eax, eax
add rbp, qword [rbx + 0x50]
cmp byte [rbx + 4], al
jne 0x18001f834
movzx eax, byte [rbp + 2]
movzx edx, byte [rbp + 1]
mov r9, rsi
shl edx, 8
mov r8d, 1
mov rcx, rdi
or edx, eax
movzx eax, byte [rbp]
shl eax, 0x18
shl edx, 8
or edx, eax
movzx eax, byte [rbp + 3]
or edx, eax
call fcn.18001f748
mov edi, eax
test eax, eax
jne 0x18001f919
lea r8, [rsp + 0x68]
mov rdx, rbp
mov rcx, rbx
call fcn.18001d074
mov edi, eax
test eax, eax
jne 0x18001f919
mov r8d, dword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
movzx eax, word [rbx + 0x12]
mov rdi, qword [rsp + 0x60]
inc r8d
add rdx, 2
mov dword [rsp + 0x30], r8d
mov qword [rsp + 0x38], rdx
cmp r8d, eax
jl 0x18001f7d2
mov ebp, dword [rsp + 0x34]
xor eax, eax
cmp byte [rbx + 4], al
jne 0x18001f8c9
lea eax, [rbp + 8]
mov r9, rsi
mov r8d, 1
movsxd rcx, eax
add rcx, qword [rbx + 0x50]
movzx eax, byte [rcx + 2]
movzx edx, byte [rcx + 1]
shl edx, 8
or edx, eax
movzx eax, byte [rcx]
shl eax, 0x18
shl edx, 8
or edx, eax
movzx eax, byte [rcx + 3]
mov rcx, rdi
or edx, eax
call fcn.18001f748
mov edi, eax
test eax, eax
jne 0x18001f919
xor edi, edi
jmp 0x18001f8d6
xor edi, edi
test rsi, rsi
je 0x18001f8d6
movzx eax, word [rbx + 0x12]
add dword [rsi], eax
cmp dword [rsp + 0x70], edi
je 0x18001f8f4
mov r8d, dword [rbx + 0x88]
mov rcx, qword [rbx + 0x48]
mov rdx, rbx
call fcn.18001cd10
jmp 0x18001f7a9
mov rcx, qword [rbx + 0x70]
call fcn.180019398
mov edi, eax
test eax, eax
jne 0x18001f919
mov rax, qword [rbx + 0x50]
movsxd rdx, ebp
mov rcx, rbx
movzx edx, byte [rax + rdx]
or edx, 8
call fcn.18001a8b4
mov byte [rbx + 8], 0
mov rcx, qword [rbx + 0x70]
call fcn.180018e70
mov eax, edi
mov rbx, qword [rsp + 0x78]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180049958
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, rcx
mov edi, 0xc0000001
test rcx, rcx
je 0x180049a00
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov ebp, eax
test eax, eax
je 0x180049a00
mov edx, ebp
mov ecx, 0x40
add rdx, rdx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rbx, rax
test rax, rax
je 0x180049a00
mov r8d, ebp
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp ebp, eax
je 0x1800499c5
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, rax
test rbx, rbx
je 0x180049a00
movzx eax, word [rbx]
cmp eax, 0x21
je 0x1800499ec
cmp eax, 0x2a
je 0x1800499e1
mov rcx, rbx
call fcn.180049a18
jmp 0x1800499f5
lea rcx, [rbx + 2]
call fcn.18006386c
jmp 0x1800499f5
lea rcx, [rbx + 2]
call fcn.180059da0
mov rcx, rbx
mov edi, eax
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov eax, edi
add rsp, 0x20
pop rdi
ret
Function at 0x180049d6c
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
and dword [rsp + 0x38], 0
lea rdx, [rsp + 0x38]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov rbx, rax
test rax, rax
je 0x180049dce
and qword [0x1800d7768], 0
mov edx, 0x1fe
mov ecx, 0x40
mov qword [0x1800d7760], 0xff
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [0x1800d7758], rax
test rax, rax
je 0x180049dc5
mov ecx, dword [rsp + 0x38]
mov rdx, rbx
call fcn.1800497cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rax, qword [0x1800d7758]
add rsp, 0x20
pop rbx
ret
Function at 0x180059da0
Capabilities:
Accept command line arguments

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
lea rdx, [rsp + 0x68]
xor r14d, r14d
mov ebp, r14d
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov ebx, r14d
mov r12, rax
test rax, rax
je 0x180059e7a
cmp dword [rsp + 0x68], r14d
jle 0x180059e7a
movzx edi, r14w
lea rsi, [0x18008f550]
lea r15d, [r14 + 1]
cmp di, 0x13
jae 0x180059e4d
mov rcx, qword [r12]
movzx r13d, di
shl r13, 5
mov rdx, qword [r13 + rsi + 0x10]
call fcn.180074e7c
mov ebx, r14d
test eax, eax
sete bl
test ebx, ebx
je 0x180059e45
mov rax, qword [r13 + rsi]
test rax, rax
je 0x180059e36
mov ecx, dword [rsp + 0x68]
lea rdx, [r12 + 8]
dec ecx
call rax
mov ebp, eax
jmp 0x180059e45
mov ecx, dword [r13 + rsi + 8]
xor r8d, r8d
xor edx, edx
call fcn.18000782c
add di, r15w
test ebx, ebx
je 0x180059df3
mov rsi, qword [rsp + 0x60]
test ebx, ebx
jne 0x180059e7a
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, rsi
repne scasw ax, word [rdi]
mov rdx, rsi
not rcx
sub rcx, r15
lea r8d, [rcx + rcx + 2]
mov ecx, 0x22c003
call fcn.18000782c
mov eax, ebp
mov rbx, qword [rsp + 0x70]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180085004
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x50
mov rax, qword [0x1800d1240]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov ebp, r8d
mov r14, rdx
mov r13, rcx
call fcn.180079f70
xor ebx, ebx
cmp qword [0x1800d6e98], rbx
mov rdi, rax
jne 0x180085117
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rsi, rax
test rax, rax
je 0x1800851ee
lea rdx, str.MessageBoxW
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1800851ee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x1800d6e98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x1800d6ea0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
lea rdx, str.GetUserObjectInformationW
mov rcx, rsi
mov qword [0x1800d6ea8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov r11, rax
mov qword [0x1800d6eb8], rax
test rax, rax
je 0x18008510e
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_EncodePointer]
mov qword [0x1800d6eb0], rax
jmp 0x18008511e
mov rax, qword [0x1800d6eb0]
jmp 0x180085125
mov rax, qword [0x1800d6eb0]
mov r11, qword [0x1800d6eb8]
cmp rax, rdi
je 0x18008518c
cmp r11, rdi
je 0x18008518c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov rcx, qword [0x1800d6eb8]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_DecodePointer]
mov r12, rax
test rsi, rsi
je 0x18008518c
test rax, rax
je 0x18008518c
call rsi
test rax, rax
je 0x180085186
lea rcx, [rsp + 0x30]
mov r9d, reloc.WLDAP32.dll_Ordinal_12
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x180085186
test byte [rsp + 0x40], 1
jne 0x18008518c
bts ebp, 0x15
jmp 0x1800851cc
mov rcx, qword [0x1800d6ea0]
cmp rcx, rdi
je 0x1800851cc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800851cc
call rax
mov rbx, rax
test rax, rax
je 0x1800851cc
mov rcx, qword [0x1800d6ea8]
cmp rcx, rdi
je 0x1800851cc
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800851cc
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x1800d6e98]
call qword [sym.imp.KERNEL32.dll_DecodePointer]
test rax, rax
je 0x1800851ee
mov r9d, ebp
mov r8, r14
mov rdx, r13
mov rcx, rbx
call rax
jmp 0x1800851f0
xor eax, eax
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.18007f410
add rsp, 0x50
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x1800854fb
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800d1240]
jne 0x18007f42a
rol rcx, 0x10
test cx, 0xffff
jne 0x18007f426
repz ret
ror rcx, 0x10
jmp 0x180085454
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x1800d6f60]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x1800d7058]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x1800854d9
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x1800d6f60]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x1800854fb
mov rax, qword [rsp + 0x88]
mov qword [0x1800d7058], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x1800d6ff8], rax
mov rax, qword [0x1800d7058]
mov qword [0x1800d6ed0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1800d6fe0], rax
mov dword [0x1800d6ec0], 0xc0000409
mov dword [0x1800d6ec4], 1
mov rax, qword [0x1800d1240]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800d1248]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x1800d6f58], eax
mov ecx, 1
call fcn.180081f50
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x18008dab8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1800d6f58], 0
jne 0x180085582
mov ecx, 1
call fcn.180081f50
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret