joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140032650
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x58
lea rcx, [rsp + 0x58]
sub rcx, 8
lea r8, [0x140032260]
lea rdx, [rsp + 0x30]
call fcn.140028eb0
mov rdx, qword [rsp + 0x60]
lea r8, [rsp + 0x68]
mov rcx, rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x20], 0xffffffff
mov qword [rsp + 0x28], 0
call fcn.14002a100
cmp dword [0x14027e440], 6
jl 0x1400326cc
mov r8, qword [rsp + 0x30]
lea rdx, str.sys_exec__s_
mov ecx, 0x480006
mov r8, qword [r8]
call fcn.14002d1f0
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.140032860
test eax, eax
jns 0x140032708
cmp dword [0x14027e440], 6
jl 0x1400327bb
mov r8, qword [rsp + 0x30]
lea rdx, str.failed_sys_exec_bg__s_
mov ecx, 0x480006
mov r8, qword [r8]
call fcn.14002d1f0
jmp 0x1400327bb
cdqe
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x48], rdi
call fcn.140033c50
mov rbx, rax
mov edi, 0xffffffff
mov ecx, dword [0x140279188]
test ecx, ecx
je 0x140032747
imul ecx, ecx, 0x3e8
movsxd rdx, ecx
sub rdx, rax
xor eax, eax
add rdx, rbx
cmovne rax, rdx
jmp 0x14003274a
mov rax, rdi
mov rcx, qword [rsp + 0x28]
mov r8d, 1
mov edx, eax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
cmp eax, 0xc0
jne 0x14003276b
call fcn.140033c50
jmp 0x140032726
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x28]
test eax, eax
je 0x140032793
mov edx, reloc.WS2_32.dll_shutdown
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [rsp + 0x20], 0xfffffff7
jmp 0x1400327b1
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [rsp + 0x20]
mov ecx, 0xffffffea
cmp eax, 3
cmove eax, ecx
mov dword [rsp + 0x20], eax
lea rcx, [rsp + 0x28]
call fcn.140053680
mov rax, qword gs:[0x58]
mov edx, 0x1670
mov rcx, qword [rax]
mov eax, dword [rsp + 0x20]
mov dword [rdx + rcx], eax
add rsp, 0x58
ret

Function at 0x140032e30
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_TerminateThread]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140032ef0
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
mov edx, 1
mov rsi, r8
lea ecx, [rdx + 0x1f]
call fcn.1401760a4
mov qword [rbx], rax
lea r8, [0x1400330d0]
mov r14, rax
xor edx, edx
mov r9, r14
xor ecx, ecx
mov qword [rax + 8], rdi
mov qword [rax + 0x10], rsi
mov dword [rax + 0x1c], 2
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], eax
call fcn.14017f394
mov qword [r14], rax
test rax, rax
je 0x140032f6e
mov rbx, qword [rsp + 0x40]
xor eax, eax
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
lea rdx, str.failed_create_thread:__m
mov ecx, 0x4a0000
call fcn.14002d6c0
int3
Function at 0x140033b00
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov qword [rsp + 0x60], rcx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x60]
call fcn.140172e50
mov rax, qword gs:[0x58]
mov esi, 0x18c4
mov rbx, qword [rax]
mov eax, dword [rsi + rbx]
inc eax
and eax, 0x80000007
jge 0x140033b4f
dec eax
or eax, 0xfffffff8
inc eax
movsxd rcx, eax
lea r9, [rsp + 0x20]
shl rcx, 8
mov r8, rdi
mov ebp, 0x18e0
mov edx, 0x100
add rcx, rbp
mov dword [rsi + rbx], eax
add rcx, rbx
call fcn.1401705e0
movsxd rax, dword [rsi + rbx]
mov rsi, qword [rsp + 0x78]
shl rax, 8
add rax, rbp
mov rbp, qword [rsp + 0x70]
add rax, rbx
mov rbx, qword [rsp + 0x68]
add rsp, 0x50
pop rdi
ret
Function at 0x14003c610
Capabilities:
Delete service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
or ebx, 0xffffffff
mov rdi, rcx
cmp qword [0x140279320], 0
je 0x14003c6d1
lea rcx, [rsp + 0x28]
mov rdx, rdi
sub rcx, 8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 0x10000
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
mov rsi, rax
test rax, rax
je 0x14003c6d1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c696
mov r8, rdi
lea rdx, str.Failed_deleting_service__s:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003c698
xor ebx, ebx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c6bf
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword gs:[0x58]
mov edx, 0x2f80
mov rcx, qword [rax]
mov rax, qword [rdx + rcx]
test rax, rax
jne 0x14003c6f0
call fcn.140176084
mov ecx, dword [rax]
mov rbx, qword [rsp + 0x30]
sub ecx, 0x424
mov rsi, qword [rsp + 0x38]
neg ecx
sbb eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x14003c710
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
xor ebx, ebx
mov rdi, rcx
cmp qword [0x140279320], rbx
je 0x14003c7d8
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
mov rsi, rax
test rax, rax
je 0x14003c7d8
lea rax, [rsp + 0x78]
xor edx, edx
lea r9d, [rbx + 0x24]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c7ab
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
test eax, eax
jne 0x14003c7af
mov ebx, dword [rsp + 0x4c]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c7ec
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003c7ec
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x5b0005
call fcn.14002d1f0
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003c810
Capabilities:
Query service status

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
or ebx, 0xffffffff
mov rdi, rcx
cmp qword [0x140279320], 0
je 0x14003c8da
lea rcx, [rsp + 0x68]
mov rdx, rdi
sub rcx, 8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
mov rsi, rax
test rax, rax
je 0x14003c8da
lea rax, [rsp + 0x78]
xor edx, edx
lea r9d, [rbx + 0x25]
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c8ad
mov r8, rdi
lea rdx, str.failed_query_service_status__s:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
test eax, eax
jne 0x14003c8b1
mov ebx, dword [rsp + 0x34]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003c8ee
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003c8ee
mov r8, rdi
lea rdx, str.service__s_doesnt_exist
mov ecx, 0x5b0005
call fcn.14002d1f0
mov rsi, qword [rsp + 0x80]
mov eax, ebx
mov rbx, qword [rsp + 0x70]
add rsp, 0x60
pop rdi
ret
Function at 0x14003c9b0
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
push rbx
push rbp
push rsi
push rdi
push r13
push r14
push r15
sub rsp, 0x60
mov eax, dword [0x140263bb0]
or r14d, 0xffffffff
mov r13, r9
mov rbx, rdx
mov rdi, rcx
cmp eax, r14d
jne 0x14003c9e5
call fcn.14003d560
mov r15d, dword [rsp + 0xc0]
cmp eax, 2
mov esi, 0x110
mov qword [rsp + 0xa0], r12
mov ecx, reloc.WS2_32.dll_recv
mov eax, r15d
cmovg esi, ecx
neg eax
sbb ebp, ebp
cmp qword [0x140279320], 0
je 0x14003cb18
lea rcx, [rsp + 0x98]
mov rdx, rdi
add rcx, 0xfffffffffffffff8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
mov r12, rax
test rax, rax
je 0x14003cb18
lea rcx, [rsp + 0x98]
mov rdx, rbx
add rcx, 0xfffffffffffffff8
call fcn.140029470
lea rcx, [rsp + 0x98]
mov rdx, r13
add rcx, 0xfffffffffffffff8
mov rbx, qword [rax]
call fcn.140029470
mov qword [rsp + 0x50], rbx
lea r8d, [rbp + 3]
xor ebx, ebx
mov edx, esi
mov qword [rsp + 0x48], rbx
mov rcx, r12
mov rax, qword [rax]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rbx
lea r9d, [rbx + 1]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003cae1
mov r8, rdi
lea rdx, str.Failed_changing_service_config__s:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003cae4
mov r14d, ebx
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003cb0b
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
test r14d, r14d
je 0x14003cb42
mov rbx, qword [rsp + 0xa8]
mov dword [rsp + 0x28], r15d
mov r9d, 1
mov r8, r13
mov dword [rsp + 0x20], 0xbb8
mov rdx, rbx
mov rcx, rdi
call fcn.14003c330
test eax, eax
je 0x14003cb42
or eax, 0xffffffff
jmp 0x14003cb61
mov r8d, dword [rsp + 0xc8]
mov rcx, rdi
mov rdx, qword [rsp + 0xb0]
call fcn.14003cb80
neg eax
sbb eax, eax
and eax, 0xfffffffe
mov r12, qword [rsp + 0xa0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14003cb80
Capabilities:
Modify service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
xor r14d, r14d
mov rbp, rdx
cmp qword [0x140279320], r14
mov esi, r8d
mov rdx, rcx
jne 0x14003cbaf
mov ebx, r14d
jmp 0x14003cbe1
lea rcx, [rsp + 0xa8]
sub rcx, 8
call fcn.140029470
mov rcx, qword [0x140279320]
mov r8d, 0xf01ff
mov rdx, qword [rax]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
call fcn.140171060
mov rbx, rax
lea rcx, [rsp + 0xa8]
mov rdx, rbp
sub rcx, 8
or edi, 0xffffffff
call fcn.140029470
lea r8, [rsp + 0xc8]
lea edx, [rdi + 2]
mov rcx, qword [rax]
mov qword [rsp + 0xc8], rcx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003cc3d
lea rdx, str.Failed_changing_service_description:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
test eax, eax
jne 0x14003cd1e
mov qword [rsp + 0x20], r14
xorps xmm0, xmm0
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x38], 0xffffffff
mov dword [rsp + 0x50], 1
movdqu xmmword [rsp + 0x40], xmm0
test esi, esi
je 0x14003cca3
mov dword [rsp + 0x20], 1
mov dword [rsp + 0x24], 0xea60
mov dword [rsp + 0x28], 1
mov dword [rsp + 0x2c], 0x1d4c0
mov dword [rsp + 0x38], 0x2a300
mov dword [rsp + 0x50], 3
lea r8, [rsp + 0x38]
mov edx, 2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003ccd8
lea rdx, str.Failed_changing_service_failure_action:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
test eax, eax
jne 0x14003cd1e
mov edx, 1
lea rcx, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
lea r8, [rsp + 0x60]
mov edx, 4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_SetServiceObjectSecurity]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003cd1b
lea rdx, str.failed_SetServiceObjectSecurity____m
mov ecx, 0x5b0003
call fcn.14002d1f0
jmp 0x14003cd1e
mov edi, r14d
test rbx, rbx
je 0x14003cd4a
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003cd4a
lea rdx, str.Failed_close_service_handle:__m
mov ecx, 0x5b0003
call fcn.14002d1f0
lea r11, [rsp + 0x90]
mov eax, edi
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
Function at 0x14003d0a0
Capabilities:
Create service

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x70
mov rbx, rdx
lea rdi, [rsp + 0x88]
mov rdx, qword [rsp + 0xb8]
mov rsi, rcx
add rdi, 0xfffffffffffffff8
mov r14d, r9d
mov rcx, rdi
mov r15d, r8d
call fcn.140029470
mov rdx, rbx
mov rcx, rdi
mov rbp, qword [rax]
call fcn.140029470
mov rdx, rsi
mov rcx, rdi
mov rbx, qword [rax]
call fcn.140029470
xor ecx, ecx
mov r9d, r15d
mov qword [rsp + 0x60], rcx
mov r8, rbx
mov qword [rsp + 0x58], rcx
mov rdx, qword [rax]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov ecx, dword [rsp + 0xb0]
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], ecx
mov rcx, qword [0x140279320]
mov dword [rsp + 0x20], r14d
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
jmp fcn.140171060

Function at 0x14003d200
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
or ebx, 0xffffffff
mov rcx, qword [rdx]
xor esi, esi
mov rdi, rdx
test rcx, rcx
je 0x14003d22f
call fcn.1401760ac
mov qword [rdi], rsi
mov edx, 1
mov ecx, 0x400
call fcn.1401760a4
lea r9, [rsp + 0x38]
mov qword [rdi], rax
mov r8d, 0x400
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_EnumProcessModules
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003d2a5
cmp dword [0x14027e484], 6
jl 0x14003d27e
lea rdx, str.EnumProcessModules_failed:__m
mov ecx, 0x590006
call fcn.14002d1f0
mov rcx, qword [rdi]
test rcx, rcx
je 0x14003d28e
call fcn.1401760ac
mov qword [rdi], rsi
mov rbp, qword [rsp + 0x40]
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
ret
mov ebx, dword [rsp + 0x38]
shr ebx, 3
cmp ebx, 0x80
jb 0x14003d28e
mov rcx, qword [rdi]
lea esi, [rbx + rbx]
mov edx, esi
shl rdx, 3
call fcn.14017d3c4
lea r8d, [rsi*8]
mov qword [rdi], rax
lea r9, [rsp + 0x38]
mov rdx, rax
mov rcx, rbp
call sub.PSAPI.DLL_EnumProcessModules
movsxd rcx, eax
call fcn.140171010
test rax, rax
je 0x14003d2fa
mov ebx, dword [rsp + 0x38]
shr ebx, 3
cmp ebx, esi
jae 0x14003d30c
jmp 0x14003d28e
lea rdx, str.EnumProcessModules_2nd_failed:__m
mov ecx, 0x590000
call fcn.14002d6c0
int3
lea rdx, str.EnumProcessModules_no_space
mov ecx, 0x590000
call fcn.14002d6c0
int3
Function at 0x14003d420
Capabilities:
Get token membership

Disassembly:
push rbx
sub rsp, 0x60
xor ebx, ebx
mov dword [rsp + 0x78], 0
lea rax, [rsp + 0x80]
mov word [rsp + 0x7c], 0x500
mov qword [rsp + 0x50], rax
lea rcx, [rsp + 0x78]
mov dword [rsp + 0x48], ebx
mov r9d, 0x220
mov dword [rsp + 0x40], ebx
lea r8d, [rbx + 0x20]
mov dword [rsp + 0x38], ebx
mov dl, 2
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003d486
add rsp, 0x60
pop rbx
ret
mov rdx, qword [rsp + 0x80]
lea r8, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003d4bd
lea rdx, str.failed_CheckTokenMembership__:__m
mov ecx, 0x550003
call fcn.14002d1f0
mov dword [rsp + 0x70], ebx
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [rsp + 0x70]
add rsp, 0x60
pop rbx
ret

Function at 0x14003d560
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x140263bb0]
cmp ecx, 0xffffffff
jne 0x14003d66b
mov qword [rsp + 0x20], rbx
xor ebx, ebx
cmp dword [0x140263bb4], ecx
jne 0x14003d666
cmp dword [0x140279340], ebx
jne 0x14003d5b6
lea rcx, [0x140279340]
mov dword [0x140279340], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140171010
test rax, rax
je 0x14003d672
mov edx, dword [0x140279344]
movzx r8d, word [0x140279454]
mov eax, dword [0x140279348]
cmp edx, 0xa
jg 0x14003d62e
jne 0x14003d5dc
test eax, eax
jns 0x14003d62e
mov ebx, 6
jmp 0x14003d633
cmp edx, 6
jg 0x14003d5d5
jne 0x14003d60b
cmp eax, 3
jge 0x14003d5d5
cmp eax, 2
jge 0x14003d604
cmp eax, 1
jge 0x14003d5fd
test eax, eax
js 0x14003d627
mov ebx, 3
jmp 0x14003d633
mov ebx, 4
jmp 0x14003d633
mov ebx, 5
jmp 0x14003d633
cmp edx, 5
jg 0x14003d627
jne 0x14003d633
cmp eax, 2
jge 0x14003d627
cmp eax, 1
jge 0x14003d627
test eax, eax
js 0x14003d633
mov ebx, 1
jmp 0x14003d633
mov ebx, 2
jmp 0x14003d633
mov ebx, 7
mov dword [0x140263bb8], eax
mov ecx, ebx
mov eax, dword [0x14027934c]
mov dword [0x140263bbc], eax
mov eax, dword [0x140279350]
mov dword [0x140263bc0], eax
mov dword [0x140263bb0], ebx
mov dword [0x140263bb4], edx
mov dword [0x140263bc4], r8d
mov rbx, qword [rsp + 0x20]
mov eax, ecx
add rsp, 0x28
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x55
call fcn.140028ae0
int3
Function at 0x14003d7a0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
mov r10d, dword [0x140263bb4]
xor ebx, ebx
mov rsi, r9
mov r14, r8
mov r15, rdx
mov rbp, rcx
cmp r10d, 0xffffffff
je 0x14003d7f8
mov ebx, dword [0x140263bb0]
mov eax, dword [0x140263bb8]
mov edi, dword [0x140263bbc]
mov r11d, dword [0x140263bc0]
mov r9d, dword [0x140263bc4]
jmp 0x14003d8dd
cmp dword [0x140279340], ebx
jne 0x14003d828
lea rcx, [0x140279340]
mov dword [0x140279340], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
movsxd rcx, eax
call fcn.140171010
test rax, rax
je 0x14003d92f
mov r10d, dword [0x140279344]
mov eax, dword [0x140279348]
mov edi, dword [0x14027934c]
mov r11d, dword [0x140279350]
movzx r9d, word [0x140279454]
cmp r10d, 0xa
jg 0x14003d8b1
jne 0x14003d85d
test eax, eax
jns 0x14003d8b1
mov ebx, 6
jmp 0x14003d8b6
cmp r10d, 6
jg 0x14003d856
jne 0x14003d88d
cmp eax, 3
jge 0x14003d856
cmp eax, 2
jge 0x14003d886
cmp eax, 1
jge 0x14003d87f
test eax, eax
js 0x14003d8aa
mov ebx, 3
jmp 0x14003d8b6
mov ebx, 4
jmp 0x14003d8b6
mov ebx, 5
jmp 0x14003d8b6
cmp r10d, 5
jg 0x14003d8aa
jne 0x14003d8b6
cmp eax, 2
jge 0x14003d8aa
cmp eax, 1
jge 0x14003d8aa
test eax, eax
js 0x14003d8b6
mov ebx, 1
jmp 0x14003d8b6
mov ebx, 2
jmp 0x14003d8b6
mov ebx, 7
mov dword [0x140263bb0], ebx
mov dword [0x140263bb4], r10d
mov dword [0x140263bb8], eax
mov dword [0x140263bbc], edi
mov dword [0x140263bc0], r11d
mov dword [0x140263bc4], r9d
test rbp, rbp
je 0x14003d8e5
mov dword [rbp], ebx
test r15, r15
je 0x14003d8ed
mov dword [r15], r10d
test r14, r14
je 0x14003d8f5
mov dword [r14], eax
test rsi, rsi
je 0x14003d8fc
mov dword [rsi], edi
mov rax, qword [rsp + 0x60]
test rax, rax
je 0x14003d909
mov dword [rax], r11d
mov rax, qword [rsp + 0x68]
test rax, rax
je 0x14003d916
mov dword [rax], r9d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
lea rdx, str.GetVersionEx_failed__m
mov ecx, 0x55
call fcn.140028ae0
int3
Function at 0x14003d950
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x40
mov r14, rcx
mov qword [rsp + 0x78], 0
mov ebp, r8d
lea rcx, [rsp + 0x58]
mov esi, edx
lea r8, [0x14003daa0]
sub rcx, 8
lea rdx, [rsp + 0x38]
call fcn.140028eb0
mov edx, 0x104
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
mov qword [rsp + 0x30], 0
mov rdi, rax
or rbx, 0xffffffffffffffff
call fcn.14002ac60
test ebp, ebp
je 0x14003d9e5
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ecx, eax
lea rdx, [rsp + 0x30]
call sub.WTSAPI32.dll_WTSQueryUserToken
movsxd rcx, eax
call fcn.140171010
test rax, rax
jne 0x14003d9e5
lea rdx, str.failed_get_token_for_active_user__m
mov rcx, rdi
call fcn.14002a020
jmp 0x14003da5d
mov rax, qword [rsp + 0x78]
xor r9d, r9d
mov r8, qword [rsp + 0x30]
mov edx, esi
xor ecx, ecx
mov qword [rsp + 0x20], rax
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x14003da0e
lea rdx, str.failed_get_path_for_cid__d
jmp 0x14003da52
mov rdx, qword [rsp + 0x78]
mov rcx, r14
call fcn.14002a200
mov rax, qword [r14]
test rax, rax
je 0x14003da4b
cmp byte [rax], 0
je 0x14003da4b
nop dword [rax + rax]
cmp byte [rax + rbx + 1], 0
lea rbx, [rbx + 1]
jne 0x14003da30
cmp byte [rbx + rax - 1], 0x5c
jne 0x14003da47
mov byte [rbx + rax - 1], 0
xor ebx, ebx
jmp 0x14003da6a
lea rdx, str.got_empty_path_for__d
mov r8d, esi
mov rcx, rdi
call fcn.14002a0d0
mov rdx, qword [rdi]
mov ecx, 0x550003
call fcn.14002d1f0
test ebp, ebp
je 0x14003da78
lea rcx, [rsp + 0x30]
call fcn.140053680
lea rcx, [rsp + 0x78]
call fcn.14002abb0
mov rbp, qword [rsp + 0x68]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
add rsp, 0x40
pop r14
pop rdi
pop rsi
ret
Function at 0x14003f2b0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x20
movsxd rbx, edx
mov r15, r8
mov edx, 0x3d
movsxd rbp, r9d
mov rsi, rcx
call fcn.140174a1c
mov r14, rbx
test rax, rax
jne 0x14003f2ea
lea rax, [rbx + rsi]
movzx ebx, word [rax - 3]
lea rcx, [rsi + 3]
movzx edi, byte [rax - 1]
sub rax, 3
sub rax, rsi
mov rdx, rsi
mov r8, rax
call fcn.140174c80
mov word [rsi], bx
lea r11, [r14 + rsi]
mov byte [rsi + 2], dil
lea rbx, [r15 + rbp]
cmp byte [rsi], 0
mov r9, r15
je 0x14003f3f0
lea r10, [r15 + 3]
lea rdi, [0x140263c20]
nop
cmp rsi, r11
jae 0x14003f3f0
movzx eax, byte [rsi]
cmp al, 0x3d
je 0x14003f34d
movzx eax, al
cmp byte [rax + rdi], 0xff
je 0x14003f3f0
xor r8d, r8d
xor eax, eax
or rcx, 0xffffffffffffffff
inc rcx
cmp byte [rsi + rcx], al
jne 0x14003f356
cmp rcx, 4
jb 0x14003f413
xor edx, edx
nop word [rax + rax]
movzx ecx, byte [rdx + rsi]
shl eax, 6
cmp cl, 0x3d
jne 0x14003f381
inc r8d
jmp 0x14003f393
test r8d, r8d
jne 0x14003f413
movzx ecx, cl
movsx ecx, byte [rcx + rdi]
add eax, ecx
inc rdx
cmp rdx, 4
jl 0x14003f370
cmp r8d, 2
ja 0x14003f413
cmp eax, 0xffffffff
je 0x14003f413
mov ecx, r8d
add rcx, rbx
cmp r10, rcx
ja 0x14003f413
mov ecx, eax
inc r10
shr ecx, 0x10
mov byte [r9], cl
inc r9
cmp r8d, 2
jae 0x14003f3d4
mov ecx, eax
shr ecx, 8
mov byte [r9], cl
inc r9
inc r10
cmp r8d, 1
jae 0x14003f3e3
mov byte [r9], al
inc r9
inc r10
add rsi, 4
cmp byte [rsi], 0
jne 0x14003f330
mov byte [r9], 0
sub r9d, r15d
mov eax, r9d
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop rdi
ret
or eax, 0xffffffff
jmp 0x14003f3fa
Function at 0x14003f4b0
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
movsxd r11, edx
mov rbp, r8
add r11, rcx
mov r10, r8
cmp rcx, r11
jae 0x14003f5ab
movsxd rax, r9d
lea rsi, [r8 - 4]
add rsi, rax
lea r9, [rcx + 2]
lea r8, [rcx + 1]
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_
cmp r8, r11
jb 0x14003f4fe
xor dil, dil
jmp 0x14003f502
movzx edi, byte [r8]
cmp r9, r11
jb 0x14003f50b
xor bl, bl
jmp 0x14003f50f
movzx ebx, byte [r9]
cmp r10, rsi
jae 0x14003f5d2
movzx eax, byte [rcx]
shr rax, 2
movzx eax, byte [rax + r14]
mov byte [r10], al
movsx rdx, byte [rcx]
inc rcx
and edx, 3
movzx eax, dil
shr rax, 4
lea rdi, [r10 + 3]
shl rdx, 4
or rdx, rax
movzx eax, byte [rdx + r14]
mov byte [r10 + 1], al
mov byte [rdi], 0x3d
mov byte [r10 + 2], 0x3d
mov byte [r10 + 4], 0
cmp rcx, r11
je 0x14003f5cc
movsx rdx, byte [rcx]
inc rcx
and edx, 0xf
movzx eax, bl
shr rax, 6
shl rdx, 2
or rdx, rax
movzx eax, byte [rdx + r14]
mov byte [r10 + 2], al
lea r10, [rdi + 1]
cmp rcx, r11
je 0x14003f5ab
movsx rax, byte [rcx]
add r8, 3
and eax, 0x3f
inc rcx
add r9, 3
movzx eax, byte [rax + r14]
mov byte [rdi], al
cmp rcx, r11
jb 0x14003f4f4
mov byte [r10], 0
sub r10d, ebp
mov eax, r10d
mov rbx, qword [rsp + 0x10]
mov rbp, qword [rsp + 0x18]
mov rsi, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x28]
pop r14
ret
add r10, 4
jmp 0x14003f5ab
or eax, 0xffffffff
jmp 0x14003f5b5