joyce8/EMBER2024-capa huggingface dataset:
Function at 0x12885440
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [0x12a22e20], eax
add rsp, 0x28
ret

Function at 0x12885480
Capabilities:
Set thread local storage value

Disassembly:
sub rsp, 0x28
cmp dword [0x12a22e20], 0xffffffff
je 0x128854cc
mov ecx, 0x98
mov qword [rsp + 0x20], rbx
call fcn.12958d80
mov rbx, rax
test rax, rax
je 0x128854b6
xor edx, edx
mov r8d, 0x98
mov rcx, rax
call fcn.12959590
jmp 0x128854b8
xor ebx, ebx
mov ecx, dword [0x12a22e20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x128854e0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
sub rsp, 0x28
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x1288551d
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x12885518
mov ecx, dword [0x12a22e20]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, rbx
call fcn.12958250
mov rbx, qword [rsp + 0x20]
add rsp, 0x28
ret

Function at 0x12885530
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x38
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x1288556d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1288556d
mov eax, dword [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x38
ret
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x38
ret

Function at 0x12885590
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov ebx, ecx
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x128855ed
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x128855d3
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x128855ed
mov dword [rax], ebx
mov eax, 1
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret

Function at 0x12885610
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov ebx, ecx
mov ecx, dword [0x12a22e20]
mov rdi, rdx
cmp ecx, 0xffffffff
je 0x12885667
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x1288565a
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x12885667
mov ecx, dword [rax]
mov dword [rax], ebx
mov eax, 1
mov dword [rdi], ecx
jmp 0x12885669
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x12885690
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x128856dd
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x128856dd
mov rax, qword [rax + 8]
mov qword [rbx], rax
mov eax, 1
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret

Function at 0x12885700
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov ebx, ecx
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x1288575e
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x12885743
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1288575e
mov dword [rax + 0x10], ebx
mov eax, 1
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret

Function at 0x12885780
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov ebx, ecx
mov ecx, dword [0x12a22e20]
mov rdi, rdx
cmp ecx, 0xffffffff
je 0x128857d9
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x128857ca
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x128857d9
mov ecx, dword [rax + 0x10]
mov dword [rax + 0x10], ebx
mov eax, 1
mov dword [rdi], ecx
jmp 0x128857db
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x12885800
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x30
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x20], rax
mov rbx, rcx
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x1288584b
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x1288584b
mov eax, dword [rax + 0x10]
mov dword [rbx], eax
mov eax, 1
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret
xor eax, eax
mov rcx, qword [rsp + 0x20]
xor rcx, rsp
call fcn.12959850
add rsp, 0x30
pop rbx
ret
Function at 0x12885860
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0xd0
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rbx, rcx
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x128858e4
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x128858e4
mov rax, qword [rax + 0x80]
lea rcx, [rsp + 0xa0]
mov qword [rcx], rax
mov rax, qword [r11 + 0x88]
mov qword [rcx + 8], rax
mov rax, qword [r11 + 0x90]
mov qword [rcx + 0x10], rax
lea rcx, [rsp + 0xa0]
mov rax, qword [rcx]
mov qword [rbx], rax
mov rax, qword [rcx + 8]
mov qword [rbx + 8], rax
mov rax, qword [rcx + 0x10]
mov qword [rbx + 0x10], rax
mov eax, 1
jmp 0x128858e6
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.12959850
add rsp, 0xd0
pop rbx
ret

Function at 0x12885900
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rax, qword [rcx]
xor esi, esi
mov rdi, rdx
lea rdx, [rsp + 0xa0]
test rdi, rdi
lea rbx, [rsp + 0xc0]
mov qword [rdx], rax
mov rax, qword [rcx + 8]
cmove rbx, rsi
mov qword [rdx + 8], rax
mov rax, qword [rcx + 0x10]
mov ecx, dword [0x12a22e20]
mov qword [rdx + 0x10], rax
cmp ecx, 0xffffffff
je 0x12885a11
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x12885990
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x12885a11
test rbx, rbx
je 0x128859bf
mov rax, qword [r11 + 0x80]
mov qword [rbx + 0x80], rax
mov rax, qword [r11 + 0x88]
mov qword [rbx + 0x88], rax
mov rax, qword [r11 + 0x90]
mov qword [rbx + 0x90], rax
lea rcx, [rsp + 0xa0]
mov rax, qword [rcx]
mov qword [r11 + 0x80], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 0x88], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x90], rax
mov eax, 1
test rdi, rdi
je 0x12885a13
lea rdx, [rsp + 0x140]
mov rcx, qword [rdx]
mov qword [rdi], rcx
mov rcx, qword [rdx + 8]
mov qword [rdi + 8], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rdi + 0x10], rcx
jmp 0x12885a13
mov eax, esi
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x12885f90
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x240
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor eax, eax
mov ebx, edx
mov rdi, rcx
lea r8d, [rax + 0xa]
lea rdx, [rsp + 0x20]
mov ecx, ebx
mov word [rsp + 0x20], ax
call fcn.1295c71c
lea rdx, [rsp + 0x20]
lea rcx, str.VosAppMode
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
test eax, eax
je 0x12885fe3
mov dword [rdi], ebx
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x260]
add rsp, 0x240
pop rdi
ret
Function at 0x12886010
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0x240
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x230], rax
xor eax, eax
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov dword [rcx], eax
lea rcx, str.VosAppMode
mov r8d, 0x104
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x12886065
xor edx, edx
lea rcx, [rsp + 0x20]
lea r8d, [rdx + 0xa]
call fcn.1295abc4
mov dword [rbx], eax
mov eax, dword [rbx]
mov rcx, qword [rsp + 0x230]
xor rcx, rsp
call fcn.12959850
add rsp, 0x240
pop rbx
ret

Function at 0x12886080
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x170
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov esi, ecx
mov rdi, r8
mov ebp, edx
lea rcx, [rsp + 0xc4]
xor edx, edx
mov r8d, 0x94
call fcn.12959590
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x94
call fcn.12959590
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x1288610f
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x12886109
mov rcx, qword [rax + 0x48]
lea rdx, [rsp + 0x68]
mov qword [rdx], rcx
mov rcx, qword [rax + 0x50]
mov rax, qword [rax + 0x58]
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov ecx, dword [0x12a22e20]
mov ebx, dword [rsp + 0x68]
and esi, ebp
mov eax, ebp
not eax
and eax, ebx
or eax, esi
mov dword [rsp + 0x108], eax
cmp ecx, 0xffffffff
je 0x1288617d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x12886150
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x1288617d
lea rcx, [rsp + 0x108]
mov rax, qword [rcx]
mov qword [r11 + 0x48], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 0x50], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x58], rax
mov eax, 1
test rdi, rdi
je 0x1288617f
mov dword [rdi], ebx
jmp 0x1288617f
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x128861b0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0xd0
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
mov rsi, rcx
mov ecx, dword [0x12a22e20]
mov rbx, r8
mov rdi, rdx
cmp ecx, 0xffffffff
je 0x12886232
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x12886232
mov rax, qword [rax + 0x48]
lea rcx, [rsp + 0x68]
mov qword [rcx], rax
mov rax, qword [r11 + 0x50]
mov qword [rcx + 8], rax
mov rax, qword [r11 + 0x58]
mov qword [rcx + 0x10], rax
mov eax, dword [rsp + 0x68]
mov dword [rsi], eax
test rdi, rdi
je 0x1288621e
mov rax, qword [rsp + 0x70]
mov qword [rdi], rax
test rbx, rbx
je 0x1288622b
mov rax, qword [rsp + 0x78]
mov qword [rbx], rax
mov eax, 1
jmp 0x12886234
xor eax, eax
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.12959850
add rsp, 0xd0
pop rdi
pop rsi
pop rbx
ret
Function at 0x12886250
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x170
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x160], rax
mov rsi, qword [rsp + 0x1c0]
mov rbx, qword [rsp + 0x1d0]
mov ebp, ecx
mov r14, r8
mov r13d, edx
lea rcx, [rsp + 0x24]
xor edx, edx
mov r8d, 0x94
mov r12, r9
call fcn.12959590
lea rcx, [rsp + 0xc4]
xor edx, edx
mov r8d, 0x94
call fcn.12959590
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x128862f8
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x128862f2
mov rcx, qword [rax + 0x48]
lea rdx, [rsp + 0x108]
mov qword [rdx], rcx
mov rcx, qword [rax + 0x50]
mov rax, qword [rax + 0x58]
mov qword [rdx + 8], rcx
mov qword [rdx + 0x10], rax
mov ecx, dword [0x12a22e20]
mov edi, dword [rsp + 0x108]
mov eax, r13d
and ebp, r13d
not eax
mov qword [rsp + 0x70], r14
and eax, edi
or eax, ebp
mov dword [rsp + 0x68], eax
mov rax, qword [rsp + 0x1c8]
test rax, rax
je 0x12886329
mov rax, qword [rax]
mov qword [rsp + 0x78], rax
cmp ecx, 0xffffffff
je 0x128863a1
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x12886355
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x128863a1
lea rcx, [rsp + 0x68]
mov rax, qword [rcx]
mov qword [r11 + 0x48], rax
mov rax, qword [rcx + 8]
mov qword [r11 + 0x50], rax
mov rax, qword [rcx + 0x10]
mov qword [r11 + 0x58], rax
test r12, r12
je 0x1288637a
mov dword [r12], edi
test rsi, rsi
je 0x1288638a
mov rcx, qword [rsp + 0x110]
mov qword [rsi], rcx
mov eax, 1
test rbx, rbx
je 0x128863a3
mov rcx, qword [rsp + 0x118]
mov qword [rbx], rcx
jmp 0x128863a3
xor eax, eax
mov rcx, qword [rsp + 0x160]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret
Function at 0x128863d0
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x30], rax
sub rcx, 1
mov rsi, rdx
mov ebx, 0x57
je 0x12886487
cmp rcx, 2
jne 0x12886468
cmp r8, 4
jne 0x12886468
mov eax, dword [rdx]
mov ecx, dword [0x12a22e20]
xor edi, edi
mov dword [rsp + 0x20], eax
xor eax, eax
mov dword [rsp + 0x24], eax
mov dword [rsp + 0x2c], eax
cmp ecx, 0xffffffff
je 0x12886466
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
jne 0x12886450
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r11, rax
test rax, rax
je 0x12886466
mov rax, qword [r11 + 8]
mov rcx, qword [rsp + 0x20]
mov ebx, edi
mov qword [r11 + 8], rcx
mov qword [rsp + 0x28], rax
mov edi, eax
mov dword [rsi], edi
mov eax, ebx
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rdi
ret
cmp r8, 4
jne 0x12886468
mov ecx, dword [0x12a22e20]
cmp ecx, 0xffffffff
je 0x12886468
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
jne 0x128864b9
call fcn.12885480
mov ecx, dword [0x12a22e20]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x12886468
xor edi, edi
mov dword [rax], esi
mov eax, edi
jmp 0x1288646a

Function at 0x128868b0
Capabilities:
Get thread local storage value

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.128861b0
Function at 0x128868f0
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x30
cmp dword [0x12a25bb0], 0
je 0x12886908
mov rbx, qword [0x12a25d60]
jmp 0x12886972
mov rbx, qword [0x12a25ba0]
test rbx, rbx
jne 0x12886972
test byte [0x12a25bb4], 4
je 0x1288693b
lea r8, [0x12a25be0]
lea rdx, [0x12a25bc0]
lea rcx, [0x129adcc8]
call fcn.12820ba0
test al, al
je 0x12886972
mov rcx, qword [str.ntdll.dll]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x1288695f
mov rcx, qword [str.ntdll.dll]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x12886972
mov rdx, qword [str.NtClose]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
xor eax, eax
mov qword [0x129ade38], rbx
mov qword [rsp + 0x20], 0
mov qword [rsp + 0x28], rax
cmp dword [0x12a27f50], eax
je 0x1288699a
mov rbx, qword [0x12a28100]
jmp 0x12886a04
mov rbx, qword [0x12a27f40]
test rbx, rbx
jne 0x12886a04
test byte [0x12a27f54], 4
je 0x128869cd
lea r8, [0x12a27f80]
lea rdx, [0x12a27f60]
lea rcx, [0x129adcc8]
call fcn.12820ba0
test al, al
je 0x12886a04
mov rcx, qword [0x12a27f38]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x128869f1
mov rcx, qword [0x12a27f38]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x12886a04
mov rdx, qword [0x12a27f30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
cmp dword [0x12a28130], 0
mov qword [rsp + 0x20], rbx
je 0x12886a1b
mov rbx, qword [0x12a282e0]
jmp 0x12886a85
mov rbx, qword [0x12a28120]
test rbx, rbx
jne 0x12886a85
test byte [0x12a28134], 4
je 0x12886a4e
lea r8, [0x12a28160]
lea rdx, [0x12a28140]
lea rcx, [0x129adcc8]
call fcn.12820ba0
test al, al
je 0x12886a85
mov rcx, qword [0x12a28118]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
jne 0x12886a72
mov rcx, qword [0x12a28118]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x12886a85
mov rdx, qword [0x12a28110]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rcx, [rsp + 0x20]
mov qword [rsp + 0x28], rbx
call fcn.1280ea40
cmp dword [0x12a36230], 0
je 0x12886aa6
mov rax, qword [0x12a363e0]
jmp 0x12886ada
cmp dword [0x12a36050], 0
je 0x12886ab8
mov rax, qword [0x12a36200]
jmp 0x12886ada
mov rcx, qword [0x12a36038]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
je 0x12886ae1
mov rdx, qword [0x12a36030]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x129ade40], rax
cmp dword [0x12a25f70], 0
je 0x12886afe
mov rax, qword [0x12a26120]
mov qword [0x129ade48], rax
add rsp, 0x30
pop rbx
ret
mov rax, qword [0x12a21070]
test rax, rax
jne 0x12886b26
call fcn.12818f20
lea rdx, str.NtQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x12a21070], rax
mov qword [0x129ade48], rax
add rsp, 0x30
pop rbx
ret
Function at 0x12888850
Capabilities:
Query environment variable
Read file via mapping

Disassembly:
sub rsp, 0x38
cmp qword [0x129adf08], 0
jne 0x1288891b
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rsi
xor esi, esi
lea r8, [0x129d2838]
lea ecx, [rsi + 4]
xor edx, edx
mov qword [rsp + 0x30], rdi
call qword [sym.imp.KERNEL32.dll_OpenFileMappingW]
mov rdi, rax
test rax, rax
je 0x128888e9
cmp rax, 0xffffffffffffffff
je 0x128888e9
lea edx, [rsi + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov rbx, rax
test rax, rax
je 0x128888bc
mov rcx, rax
call fcn.12887da0
mov esi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x128888e9
mov rbx, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x30]
mov eax, esi
mov rsi, qword [rsp + 0x48]
add rsp, 0x38
ret
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rcx, rax
mov rdi, rax
call fcn.12887da0
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x30]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
mov eax, 1
add rsp, 0x38
ret
Function at 0x12889120
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
lea rdx, str.NtClose
mov rcx, rax
mov qword [rbx + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtCreatePort
mov qword [rbx], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtListenPort
mov qword [rbx + 8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtAcceptConnectPort
mov qword [rbx + 0x10], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtConnectPort
mov qword [rbx + 0x18], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtCompleteConnectPort
mov qword [rbx + 0x20], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtReplyPort
mov qword [rbx + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtReplyWaitReceivePort
mov qword [rbx + 0x30], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtRequestPort
mov qword [rbx + 0x38], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtRequestWaitReplyPort
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtCreateSection
mov qword [rbx + 0x48], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtOpenSection
mov qword [rbx + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtMapViewOfSection
mov qword [rbx + 0x58], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.NtUnmapViewOfSection
mov qword [rbx + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.RtlCreateHeap
mov qword [rbx + 0x68], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.RtlDestroyHeap
mov qword [rbx + 0x70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.RtlCreateTagHeap
mov qword [rbx + 0x78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.RtlAllocateHeap
mov qword [rbx + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [rbx + 0x98]
lea rdx, str.RtlFreeHeap
mov qword [rbx + 0x88], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbx + 0x90], rax
add rsp, 0x20
pop rbx
ret
Function at 0x1288aac0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
test rcx, rcx
je 0x1288ab0d
cmp rcx, 0xffffffffffffffff
je 0x1288ab0d
mov eax, 0x5a4d
cmp ax, word [rcx]
jne 0x1288ab04
movsxd rax, dword [rcx + 0x3c]
test eax, eax
js 0x1288ab04
cmp eax, 0x10000000
jge 0x1288ab04
add rax, rcx
mov qword [rsp + 8], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp + 8], rax
jmp 0x1288ab0d
mov rax, rdx
add rsp, 0x18
ret

Function at 0x1288af10
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rsi
push r12
sub rsp, 0x30
mov qword [rsp + 0x50], rbp
xor ebx, ebx
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
mov r12, r9
mov r15, rdx
mov r14d, r8d
mov rbp, rcx
mov esi, ebx
test rcx, rcx
jne 0x1288af4b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rbp, rax
movzx r9d, word [rsp + 0x70]
mov edx, 0x10
mov rcx, rbp
lea r8d, [rdx - 0xf]
call qword [sym.imp.KERNEL32.dll_FindResourceExW]
mov r13, rax
test rax, rax
je 0x1288afc7
mov rdx, rax
mov rcx, rbp
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test r15, r15
je 0x1288afbe
cmp r14d, edi
jb 0x1288afbe
mov rdx, r13
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x1288afc2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
je 0x1288afc2
mov r8, rdi
mov rdx, rax
mov rcx, r15
call fcn.12959240
mov esi, edi
mov ebx, 1
jmp 0x1288afc2
lea esi, [rdi + rdi + 4]
mov rdi, qword [rsp + 0x58]
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r13, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x50]
test r12, r12
je 0x1288afe4
mov dword [r12], esi
mov eax, ebx
add rsp, 0x30
pop r12
pop rsi
pop rbx
ret