joyce8/EMBER2024-capa huggingface dataset:
Function at 0x117b8
Capabilities:
Allocate or change rwx memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push r12
sub rsp, 0x50
and qword [rax - 0x10], 0
and qword [rax - 0x18], 0
and qword [rax - 0x28], 0
mov rdi, rdx
mov rsi, r8
mov dword [rax - 0x30], 0x40
lea r9, [rax - 0x20]
lea rdx, [rax - 0x28]
mov r12d, 0x262
xor r8d, r8d
mov rbx, rcx
mov dword [rax - 0x38], 0x1000
mov qword [rax - 0x20], r12
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x11826
mov rcx, qword [rsp + 0x30]
lea rdx, [0x0002e280]
mov r8, r12
call fcn.00011a90
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x40]
mov r12d, 0xbd0
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x40
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
test eax, eax
js 0x118ff
mov rcx, qword [rsp + 0x40]
lea rdx, [0x0002e4f0]
mov r8, r12
call fcn.00011a90
lea r9, [rsp + 0x38]
lea rdx, [rsp + 0x48]
mov r12d, 0xc800
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x28], 0x40
mov dword [rsp + 0x20], 0x1000
mov qword [rsp + 0x38], r12
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov ebx, eax
test eax, eax
js 0x118ff
mov rcx, qword [rsp + 0x48]
lea rdx, [0x000210e0]
mov r8, r12
call fcn.00011a90
mov rcx, qword [rsp + 0x30]
mov r11, qword [rsp + 0x40]
mov qword [rcx + 0x10], r11
mov rcx, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x48]
mov qword [rcx + 0x18], rdx
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 8], rdi
mov rax, qword [rdi]
mov rcx, qword [rsp + 0x30]
mov qword [rcx + 0x20], rax
mov eax, dword [rdi + 8]
mov dword [rcx + 0x28], eax
mov rax, qword [rsp + 0x30]
mov qword [rsi], rax
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
add rsp, 0x50
pop r12
ret

Function at 0x34064
Capabilities:
Check os version
Create device object

Disassembly:
sub rsp, 0x28
mov r8, rdx
mov r9, rcx
call fcn.00034008
mov rdx, r8
mov rcx, r9
add rsp, 0x28
jmp fcn.000113c4
Function at 0x14004a30c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x30
mov rbx, rcx
mov rcx, qword [rcx + 0x10]
call fcn.140021134
mov r14d, 0xa8
lea rdi, [r14 + rax]
cmp byte [rdi], 0
je 0x14004a45f
mov ecx, 0x20
call fcn.14033576c
mov qword [rsp + 0x50], rax
test rax, rax
je 0x14004a362
lea rdx, [rbx + 0x18]
mov rcx, rax
call fcn.14017d020
mov rsi, rax
jmp 0x14004a364
xor esi, esi
mov qword [rbx + 0x38], rsi
mov rcx, qword [rbx + 0x10]
call fcn.140021134
lea rdx, [rax + 0x148]
mov rcx, rsi
call fcn.14017d194
movzx ebp, al
mov rcx, r14
call fcn.14033576c
mov qword [rsp + 0x50], rax
lea r14, [rdi + 8]
test rax, rax
je 0x14004a3ae
mov r9, qword [rbx + 0x38]
movzx r8d, word [rdi + 0x28]
mov rdx, r14
mov rcx, rax
call fcn.140054180
nop
mov qword [rbx + 0x28], rax
mov rcx, rax
call fcn.1400542b4
mov esi, eax
mov ecx, eax
test eax, eax
jns 0x14004a3cd
call fcn.1402aaf40
movzx ecx, word [rdi + 0x28]
jmp 0x14004a3d4
lea rax, [0x140370c0d]
xor ebp, 1
lea r8d, [rbp*4 + 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], ecx
mov r9, qword [r14]
lea rdx, str.HTTP_API
lea rcx, str.e_1_32m__e_0me_1_37m__13se_0me_1__dm_s:_d_e_1_31m_se_0m
call fcn.140020bc8
test esi, esi
jns 0x14004a40e
mov rcx, rbx
call fcn.14004a474
xor al, al
jmp 0x14004a461
mov word [rbx + 0x30], si
mov edx, 1
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.KERNEL32.DLL_FindResourceW]
mov rbx, rax
test rax, rax
je 0x14004a45f
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_LoadResource]
test rax, rax
je 0x14004a45f
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_LockResource]
mov qword [0x1404ef5c0], rax
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_SizeofResource]
mov ecx, eax
mov qword [0x1404ef5c8], rcx
mov al, 1
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r14
pop rdi
pop rsi
ret
Function at 0x14006b8e8
Capabilities:
Read file on windows

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 rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14006b916
xor eax, eax
jmp 0x14006b9fc
cmp qword [rcx + 0x68], 0
je 0x14006b927
call fcn.14002f8e8
jmp 0x14006b9fc
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14006b93e
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14006b940
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14006b972
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.140336c00
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14006b9f6
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14006b9a9
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14006b9d2
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.140346c68
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14006b9f6
cmp rsi, rbx
ja 0x14006b9b0
test rsi, rsi
je 0x14006b9f6
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.140346c68
sub rsi, rax
sub rbp, rsi
mov rax, rbp
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 0x140077a68
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x150
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor r9d, r9d
mov qword [rsp + 0x28], rcx
mov rbx, rcx
lea rdx, [rsp + 0x30]
xor ecx, ecx
lea r8d, [r9 + 0x1c]
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
xorps xmm0, xmm0
movups xmmword [rbx], xmm0
test eax, eax
je 0x140077ad5
and qword [rbx + 0x10], 0
lea rax, [rsp + 0x30]
and qword [rbx + 0x18], 0
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140077abc
lea rdx, [rsp + 0x30]
mov rcx, rbx
call fcn.140003aa8
jmp 0x140077afa
mov r8d, 1
mov qword [rbx + 0x18], reloc.WS2_32.dll_ntohs
lea rdx, [0x14037fe6c]
mov qword [rbx + 0x10], r8
mov rcx, rbx
call fcn.140336c00
mov byte [rbx + 1], 0
mov rax, rbx
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.1403358f0
add rsp, 0x150
pop rbx
ret
Function at 0x140087180
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x148
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rcx, qword [0x1404f0060]
lea rdx, [0x1404f0070]
test rcx, rcx
jne 0x1400871f6
lea rcx, str.nvml.dll
call fcn.1402ba240
test eax, eax
jne 0x1400871c0
mov al, 1
jmp 0x140087200
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.140337660
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._PROGRAMFILES_NVIDIA_CorporationNVSMI_nvml.dll
call qword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
lea rdx, [0x1404f0070]
lea rcx, [rsp + 0x20]
call fcn.1402ba240
test eax, eax
sete al
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1403358f0
add rsp, 0x148
ret
Function at 0x1400963b8
Capabilities:
Encode data using base64

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
mov rdi, rdx
mov rbx, rcx
and dword [rax - 0x38], 0
xorps xmm0, xmm0
movups xmmword [rcx], xmm0
and qword [rcx + 0x10], 0
and qword [rcx + 0x10], 0
mov qword [rcx + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rcx], 0
mov dword [rax - 0x38], 1
lea r15, [rdx + 0x10]
cmp qword [r15], 0xf
jbe 0x14009641e
xor r8d, r8d
mov rdx, qword [r15]
call fcn.140084dc4
and qword [rbx + 0x10], 0
xor esi, esi
lea r14d, [rsi - 6]
cmp qword [rdi + 0x18], 0x10
jb 0x140096436
mov rbp, qword [rdi]
mov rcx, rbp
mov rdi, rbp
jmp 0x14009643c
mov rbp, rdi
mov rcx, rdi
mov r12, qword [r15]
add r12, rcx
cmp rdi, r12
je 0x14009655d
lea r8, [0x1403c8800]
shl esi, 8
movzx eax, byte [rbp]
add esi, eax
add r14d, 8
js 0x1400964d8
movsxd r13, esi
movsxd rdi, r14d
lea ecx, [r14 + 6]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 2
mov r15d, edx
imul eax, edx, 0xfffffffa
add r14d, eax
mov rax, r13
mov rcx, rdi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x1400964b8
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x1400964ad
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x1400964ce
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001ada0
lea r8, [0x1403c8800]
sub rdi, 6
sub r15, 1
jne 0x14009647e
inc rbp
cmp rbp, r12
jne 0x140096452
cmp r14d, 0xfffffffa
jle 0x14009655d
lea ecx, [r14 + 8]
shl esi, 8
movsxd rax, esi
sar rax, cl
and eax, 0x3f
mov r9b, byte [rax + r8]
mov rcx, qword [rbx + 0x10]
cmp rcx, qword [rbx + 0x18]
jae 0x14009654e
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x14009651d
mov rax, qword [rbx]
mov byte [rax + rcx], r9b
mov byte [rax + rcx + 1], 0
jmp 0x14009655d
cmp rcx, qword [rbx + 0x18]
jae 0x14009654b
lea rax, [rcx + 1]
mov qword [rbx + 0x10], rax
mov rax, rbx
cmp qword [rbx + 0x18], 0x10
jb 0x140096543
mov rax, qword [rbx]
mov word [rax + rcx], 0x3d
jmp 0x14009655d
mov r9b, 0x3d
xor r8d, r8d
lea edx, [r8 + 1]
mov rcx, rbx
call fcn.14001ada0
mov rcx, qword [rbx + 0x10]
test cl, 3
jne 0x140096528
mov rax, rbx
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1400a3fc0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x48], rax
xor ebx, ebx
mov qword [rsp + 0x30], rcx
lea rdi, [rcx + 8]
mov rsi, rdx
cmp qword [rdi + 0x18], 0x10
mov r15d, ebx
mov rdx, rdi
lea r12d, [rbx + 2]
mov ebp, r12d
jb 0x1400a4008
mov rdx, qword [rdi]
lea r8, [rsp + 0x38]
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
mov r14d, 7
test eax, eax
je 0x1400a4028
lea r15d, [r14 + 9]
jmp 0x1400a404d
cmp qword [rdi + 0x18], 0x10
jb 0x1400a4032
mov rdi, qword [rdi]
lea r8, [rsp + 0x20]
mov rdx, rdi
mov ecx, r12d
call qword [sym.imp.WS2_32.dll_inet_pton]
test eax, eax
je 0x1400a4050
mov r15d, 4
mov ebp, r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, rsi
lea edx, [r9 + 0x55]
call fcn.1401c6c40
mov rdi, rax
test rax, rax
je 0x1400a4124
mov rcx, rax
mov r14b, bl
mov r12b, bl
call fcn.1401c2580
mov dword [rsp + 0x24], eax
mov esi, ebx
test eax, eax
jle 0x1400a4124
test r14b, r14b
jne 0x1400a4122
mov edx, esi
mov rcx, rdi
call fcn.1401c27b0
mov r13, rax
cmp dword [rax], ebp
jne 0x1400a410c
mov rcx, qword [rax + 8]
call fcn.1400182a0
mov rcx, qword [r13 + 8]
mov qword [rsp + 0x28], rax
call fcn.140181c70
movsxd r8, eax
cmp ebp, 2
je 0x1400a40fa
cmp ebp, 7
jne 0x1400a410c
mov r13, qword [rsp + 0x28]
lea rcx, [rsp + 0x38]
mov rdx, r13
mov r8, r15
call fcn.140337560
test eax, eax
je 0x1400a40f5
mov r8, r15
lea rcx, [rsp + 0x20]
mov rdx, r13
call fcn.140337560
test eax, eax
jne 0x1400a410c
mov r12b, 1
jmp 0x1400a410c
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x30]
call fcn.140096588
mov r14b, al
inc esi
cmp esi, dword [rsp + 0x24]
jl 0x1400a408a
test r14b, r14b
jne 0x1400a4122
test r12b, r12b
je 0x1400a4124
mov bl, 1
mov rcx, rdi
call fcn.1401c6c90
mov al, bl
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.1403358f0
mov rbx, qword [rsp + 0xa0]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400aed48
Capabilities:
Compare security identifiers

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
cmp byte [0x1404f0261], dil
je 0x1400aed80
mov al, byte [0x1404f0260]
jmp 0x1400aedd6
mov dword [rbp - 0x25], edi
mov word [rbp - 0x21], 0x500
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
lea r8, [rbp - 0x39]
mov edx, 8
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400aedd4
mov rcx, qword [rbp - 0x39]
lea rax, [rbp - 0x29]
mov r9d, 0x54
mov qword [rsp + 0x20], rax
lea r8, [rbp - 0x19]
lea edx, [r9 - 0x53]
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp - 0x39]
test eax, eax
jne 0x1400aedf7
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor al, al
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1403358f0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
lea rax, [rbp - 0x31]
xor r9d, r9d
mov qword [rsp + 0x50], rax
lea rcx, [rbp - 0x25]
mov dword [rsp + 0x48], edi
mov dl, 1
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
lea r8d, [r9 + 0x12]
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400aedd4
mov rdx, qword [rbp - 0x31]
mov rcx, qword [rbp - 0x19]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov rcx, qword [rbp - 0x31]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp byte [0x1404f0261], dil
jne 0x1400aee5f
mov byte [0x1404f0261], 1
test ebx, ebx
setne al
mov byte [0x1404f0260], al
jmp 0x1400aedd6
Function at 0x1400b2040
Capabilities:
Get system firmware table

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x80
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rsp + 0x70], rax
mov rdi, rcx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.DLL_GetSystemFirmwareTable]
mov esi, eax
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov rcx, rax
mov r8d, esi
mov edx, 8
call qword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x1400b209f
xor al, al
jmp 0x1400b214b
mov r9d, esi
mov r8, rbx
xor edx, edx
mov ecx, 0x52534d42
call qword [sym.imp.KERNEL32.DLL_GetSystemFirmwareTable]
cmp eax, esi
je 0x1400b20cc
call qword [sym.imp.KERNEL32.DLL_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.DLL_HeapFree]
jmp 0x1400b2098
movzx ecx, byte [rbx + 1]
shl ecx, 0x10
movzx eax, byte [rbx + 2]
shl eax, 8
add ecx, eax
movzx eax, byte [rbx + 3]
add ecx, eax
mov dword [rdi + 0x5c], ecx
mov eax, dword [rbx + 4]
mov dword [rdi + 0x58], eax
and qword [rsp + 0x68], 0
lea rcx, [rsp + 0x20]
call fcn.140040f8c
test al, al
je 0x1400b211a
lea rax, vtable.std::_Func_impl_no_alloc_class__lambda_b1841b2b3d7edfd58a8a013d8118f4e5___void___.0
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], rbx
lea rax, [rsp + 0x30]
mov qword [rsp + 0x68], rax
lea rdx, [rbx + 8]
lea r8, [rsp + 0x30]
mov rcx, rdi
call fcn.1400b1c04
mov bl, al
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400b2149
mov r8, qword [rcx]
lea rax, [rsp + 0x30]
cmp rcx, rax
setne dl
call qword [r8 + 0x20]
mov al, bl
mov rcx, qword [rsp + 0x70]
xor rcx, rsp
call fcn.1403358f0
lea r11, [rsp + 0x80]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x1400b37d0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov rax, qword [rdx + 0x28]
cmp byte [rax], 0x22
je 0x1400b380f
cmp byte [rax], 0x5b
je 0x1400b380a
cmp byte [rax], 0x66
je 0x1400b3805
cmp byte [rax], 0x6e
je 0x1400b3800
cmp byte [rax], 0x74
je 0x1400b37fb
cmp byte [rax], 0x7b
jne fcn.1400b29b8
jmp fcn.1400b31b8
jmp fcn.1400b3720
jmp fcn.1400b290c
jmp fcn.1400b27b4
jmp fcn.1400b2610
xor r9d, r9d
jmp fcn.1400b34a4

Function at 0x1400b4ff4
Capabilities:
Manipulate user privileges

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x80
xor edi, edi
mov esi, edi
call qword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
mov rcx, rax
lea r8, [rbp + 0x28]
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x1400b50fd
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
lea ebx, [rdi + 1]
mov dword [rbp + 0x20], edi
mov edx, ebx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov r9d, dword [rbp + 0x20]
test r9d, r9d
je 0x1400b5065
mov edx, r9d
lea ecx, [rdi + 0x40]
call qword [sym.imp.KERNEL32.DLL_LocalAlloc]
mov r9d, dword [rbp + 0x20]
mov rsi, rax
mov rcx, qword [rbp + 0x28]
lea rax, [rbp + 0x20]
mov r8, rsi
mov qword [rsp + 0x20], rax
mov edx, ebx
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
test rsi, rsi
je 0x1400b50fd
xor edx, edx
lea rcx, [rbp - 0x30]
lea r8d, [rdx + 0x30]
call fcn.140337660
lea r9, [rbp + 0x30]
mov r8d, 0xf0fff
lea rdx, [rbp - 0x30]
xor ecx, ecx
call sub.ADVAPI32.dll_LsaOpenPolicy
test eax, eax
jne 0x1400b50f0
lea rdx, str.SeLockMemoryPrivilege
lea rcx, [rbp - 0x40]
call fcn.1400b51c4
mov rdx, qword [rsi]
lea r8, [rbp - 0x50]
mov rcx, qword [rbp + 0x30]
mov r9d, ebx
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x50], xmm0
call sub.ADVAPI32.dll_LsaAddAccountRights
mov rcx, qword [rbp + 0x30]
mov ebx, eax
call sub.ADVAPI32.dll_LsaClose
test ebx, ebx
sete dil
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_LocalFree]
mov eax, edi
jmp 0x1400b50ff
xor eax, eax
mov rbx, qword [rsp + 0xb8]
add rsp, 0x80
pop rdi
pop rsi
pop rbp
ret

Function at 0x1400b5234
Capabilities:
Allocate or change rwx memory

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test dl, dl
je 0x1400b526a
lea rdx, [rcx - 1]
mov r8d, 0x20003000
xor ecx, ecx
and rdx, 0xffffffffffe00000
add rdx, 0x200000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
test rax, rax
jne 0x1400b5281
mov r9d, 0x40
mov r8d, 0x3000
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
add rsp, 0x20
pop rbx
ret

Function at 0x1400b536c
Capabilities:
Allocate or change rwx memory

Disassembly:
sub rsp, 0x28
lea r9, [rsp + 0x40]
mov r8d, 0x20
call qword [sym.imp.KERNEL32.DLL_VirtualProtect]
test eax, eax
setne al
add rsp, 0x28
ret
Function at 0x1400b6218
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rax, qword [0x1404e8f18]
xor rax, rsp
mov qword [rbp + 0x47], rax
lea rax, [rcx + 0x3c]
mov rbx, rcx
lea rcx, [rbp - 0x39]
mov edi, reloc.WS2_32.dll_recv
cmp rcx, rax
ja 0x1400b627b
xor r9d, r9d
lea rax, [rbp + 3]
cmp rax, rbx
jb 0x1400b627b
mov r8d, edi
lea rcx, [rbp - 0x39]
sub r8, r9
lea rcx, [rcx + r9*4]
shl r8, 2
lea rdx, [rbx + r9*4]
call fcn.140336c00
jmp 0x1400b629a
movups xmm0, xmmword [rbx]
movups xmm1, xmmword [rbx + 0x10]
movaps xmmword [rbp - 0x39], xmm0
movups xmm0, xmmword [rbx + 0x20]
movaps xmmword [rbp - 0x29], xmm1
movups xmm1, xmmword [rbx + 0x30]
movaps xmmword [rbp - 0x19], xmm0
movaps xmmword [rbp - 9], xmm1
xor r8d, r8d
lea rdx, [rbp - 0x79]
lea rcx, [rbp - 0x39]
call fcn.1400b638c
mov r8d, 1
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x79]
call fcn.1400b638c
mov r8d, 2
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.1400b638c
mov r8d, 3
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x79]
call fcn.1400b638c
mov r8d, 4
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.1400b638c
mov r8d, 5
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x79]
call fcn.1400b638c
mov r8d, 6
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.1400b638c
mov r8d, 7
lea rdx, [rbp + 7]
lea rcx, [rbp - 0x79]
call fcn.1400b638c
mov r8d, 8
lea rdx, [rbp - 0x79]
lea rcx, [rbp + 7]
call fcn.1400b638c
mov r8d, 9
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x79]
call fcn.1400b638c
lea rcx, [rbp - 0x39]
sub rcx, rbx
mov eax, dword [rcx + rbx]
xor dword [rbx], eax
lea rbx, [rbx + 4]
sub rdi, 1
jne 0x1400b635c
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1403358f0
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret

Function at 0x1400b881c
Capabilities:
Encode data using xor

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rdx, [rcx + 0x20]
mov ecx, 8
mov rax, qword [rdx + 0x80]
xor qword [rdx], rax
lea rdx, [rdx + 8]
sub rcx, 1
jne 0x1400b882e
mov rcx, rbx
call fcn.1400b7a5c
lea rcx, [rbx + 0x60]
mov edx, 8
mov rax, qword [rcx + 0x40]
xor qword [rcx], rax
lea rcx, [rcx + 8]
sub rdx, 1
jne 0x1400b8853
add rsp, 0x20
pop rbx
ret
Function at 0x1401678a8
Capabilities:
Resolve function by parsing pe exports

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 eax, dword [rcx + 0x20]
lea r14, [rdx + 0x100]
shr rax, 3
mov rbx, rcx
and eax, 0x3f
add rcx, 0x28
add rcx, rax
mov edi, gethostname
mov rsi, rdx
lea rdx, [0x1403cd5d0]
lea rbp, [rbx + 0x28]
cmp rax, rdi
jae 0x140167901
sub rdi, rax
mov r8, rdi
call fcn.140336c00
jmp 0x14016792d
mov r8d, 0x40
sub r8, rax
call fcn.140336c00
mov r9, r14
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.140167a68
mov r8, rdi
xor edx, edx
mov rcx, rbp
call fcn.140337660
mov rcx, qword [rbx + 0x20]
mov r9, r14
mov rax, rcx
mov byte [rbx + 0x67], cl
shr rax, 8
mov r8, rsi
mov byte [rbx + 0x66], al
mov rdx, rbp
mov rax, rcx
shr rax, 0x10
mov byte [rbx + 0x65], al
mov rax, rcx
shr rax, 0x18
mov byte [rbx + 0x64], al
mov rax, rcx
shr rax, 0x20
mov byte [rbx + 0x63], al
mov rax, rcx
shr rax, 0x28
mov byte [rbx + 0x62], al
mov rax, rcx
shr rcx, 0x38
mov byte [rbx + 0x60], cl
mov rcx, rbx
shr rax, 0x30
mov byte [rbx + 0x61], al
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
jmp fcn.140167a68