joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1280d4d0
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rcx
mov rcx, rdx
mov rdi, rdx
call fcn.12803f90
mov rax, qword [rdi + 0x18]
mov edx, 0x104
cmp rax, rdx
je 0x1280d51c
cmp rax, rdx
jb 0x1280d50e
or r8, 0xffffffffffffffff
mov rcx, rdi
call fcn.128033a0
jmp 0x1280d51c
xor r8d, r8d
sub rdx, rax
mov rcx, rdi
call fcn.12803b90
cmp qword [rdi + 0x20], 8
jb 0x1280d529
mov rdx, qword [rdi + 8]
jmp 0x1280d52d
lea rdx, [rdi + 8]
mov esi, dword [rdi + 0x18]
test rdx, rdx
je 0x1280d5ad
mov r8d, esi
mov rcx, rbp
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test eax, eax
je 0x1280d5a1
cmp esi, ebx
jae 0x1280d578
mov rdx, rbx
mov rcx, rdi
call fcn.1280abe0
mov esi, dword [rdi + 0x18]
test esi, esi
je 0x1280d578
test rax, rax
je 0x1280d578
mov r8d, esi
mov rdx, rax
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov ebx, eax
test ebx, ebx
je 0x1280d5a1
cmp esi, ebx
jb 0x1280d5a1
mov edx, ebx
mov rcx, rdi
call fcn.1280d350
mov eax, ebx
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
mov rcx, rdi
call fcn.12803f90
mov eax, ebx
jmp 0x1280d58c
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
xor eax, eax
add rsp, 0x20
pop rdi
ret

Function at 0x1280e2c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x10
mov r15, rdx
mov rbx, rcx
xor r8d, r8d
test rcx, rcx
je 0x1280e3c2
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
movzx ecx, word [rax + 0x18]
mov edx, 0x10b
cmp dx, cx
jne 0x1280e304
add rax, 0x78
jmp 0x1280e318
mov edx, 0x20b
cmp dx, cx
jne 0x1280e3b6
add rax, 0x88
mov edi, dword [rax]
mov r14d, dword [rdi + rbx + 0x1c]
add r14, rbx
mov r12d, dword [rdi + rbx + 0x24]
add r12, rbx
mov edx, dword [rdi + rbx + 0x20]
add rdx, rbx
mov qword [rsp + 0x40], rdx
mov esi, dword [rdi + rbx + 0x18]
mov r13d, dword [rdi + rbx + 0x14]
mov r9d, r8d
mov dword [rsp], r8d
cmp r9d, esi
jae 0x1280e3b4
mov ecx, r9d
movsx eax, word [r12 + rcx*2]
cmp eax, r13d
jae 0x1280e3b0
mov r10d, dword [r14 + rax*4]
cmp r10, rdi
jb 0x1280e36a
lea rax, [rdi + r8]
cmp r10, rax
jb 0x1280e3a7
mov eax, dword [rdx + rcx*4]
add rax, rbx
mov r11, r15
sub r11, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r11]
sub edx, ecx
jne 0x1280e393
inc rax
test ecx, ecx
jne 0x1280e380
test edx, edx
jne 0x1280e3a2
lea r8, [r10 + rbx]
mov qword [rsp + 8], r8
jmp 0x1280e3b4
mov rdx, qword [rsp + 0x40]
inc r9d
mov dword [rsp], r9d
jmp 0x1280e346
xor eax, eax
jmp 0x1280e3c5
jmp 0x1280e3c2
xor eax, eax
jmp 0x1280e3c5
mov rax, r8
mov rbx, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x10
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1280e4e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
sub rsp, 0x30
cmp dword [rcx + 0x20], 0
mov rdi, rcx
je 0x1280e588
test byte [rcx + 0x24], 2
jne 0x1280e588
mov qword [rsp + 0x48], rbx
mov ebx, dword [rcx + 0xa0]
mov dword [rsp + 0x40], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rdi + 0x10]
mov r9d, 0x80
mov rcx, rax
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x1280e57c
mov r8d, dword [rdi + 0xa0]
mov rcx, qword [rdi + 0x10]
lea rdx, [rdi + 0xa4]
call fcn.12959240
mov ebx, dword [rdi + 0xa0]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r9d, dword [rsp + 0x40]
mov rdx, qword [rdi + 0x10]
mov rcx, rax
lea rax, [rsp + 0x40]
mov r8, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rbx, qword [rsp + 0x48]
mov dword [rdi + 0x20], 0
add rsp, 0x30
pop rdi
ret

Function at 0x1280e6f0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x20], rbx
push rsi
sub rsp, 0x4a0
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov rbx, rcx
xor ecx, ecx
mov esi, edx
call qword [sym.imp.KERNEL32.dll_SetLastError]
test rbx, rbx
jne 0x1280e728
xor eax, eax
jmp 0x1280e7f5
cmp qword [rbx], 0
je 0x1280e721
cmp qword [rbx + 8], 0
je 0x1280e721
cmp qword [rbx + 0x10], 0
je 0x1280e721
test esi, esi
je 0x1280e746
cmp dword [rbx + 0x20], 0
je 0x1280e721
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x434
mov qword [rsp + 0x4b8], rbp
mov dword [rsp + 0x50], 0x438
mov qword [rsp + 0x4c0], rdi
call fcn.12959590
lea rdx, [rsp + 0x20]
lea rcx, [fcn.1280e590]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rbp, qword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 8]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1280e7e0
lea rdx, [rsp + 0x50]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1280e7d7
mov rdx, qword [rsp + 0x78]
cmp rdx, rbp
je 0x1280e7c6
mov r8d, esi
mov rcx, rbx
call fcn.1280e590
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1280e7b1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x4c0]
mov rbp, qword [rsp + 0x4b8]
mov eax, 1
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x4c8]
add rsp, 0x4a0
pop rsi
ret
Function at 0x1280e900
Capabilities:
Enumerate process modules

Disassembly:
push rbx
sub rsp, 0x4a0
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x490], rax
mov eax, dword [rcx + 0x28]
mov rbx, rcx
cmp eax, 1
je 0x1280e938
add eax, 0xfffffffe
cmp eax, 1
ja 0x1280e946
call fcn.1280e4e0
jmp 0x1280ea19
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
cmp qword [rbx], 0
jne 0x1280e94d
xor eax, eax
jmp 0x1280ea1e
cmp qword [rbx + 8], 0
je 0x1280e946
cmp qword [rbx + 0x10], 0
je 0x1280e946
cmp dword [rbx + 0x20], 0
je 0x1280e946
lea rcx, [rsp + 0x54]
xor edx, edx
mov r8d, 0x434
mov qword [rsp + 0x4b8], rsi
mov dword [rsp + 0x50], 0x438
mov qword [rsp + 0x4c0], rdi
call fcn.12959590
lea rdx, [rsp + 0x20]
lea rcx, [fcn.1280e590]
mov r8d, 0x30
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
mov rsi, qword [rsp + 0x28]
xor edx, edx
lea ecx, [rdx + 8]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1280ea02
lea rdx, [rsp + 0x50]
mov rcx, rax
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x1280e9f9
nop dword [rax]
mov rdx, qword [rsp + 0x78]
cmp rdx, rsi
je 0x1280e9e8
mov r8d, 1
mov rcx, rbx
call fcn.1280e590
lea rdx, [rsp + 0x50]
mov rcx, rdi
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x1280e9d0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdi, qword [rsp + 0x4c0]
mov rsi, qword [rsp + 0x4b8]
mov dword [rbx + 0x20], 0
mov eax, 1
mov rcx, qword [rsp + 0x490]
xor rcx, rsp
call fcn.12959850
add rsp, 0x4a0
pop rbx
ret

Function at 0x1280f8b0
Capabilities:
Get system information on windows

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
sub rsp, 0x50
mov rbp, r9
mov rdi, rdx
mov r12, rcx
test rdx, rdx
je 0x1280f9b9
cmp dword [0x129ab5a4], 0
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], r13
mov qword [rax - 0x20], r14
lea rsi, [rdx + r8]
mov qword [rax - 0x28], r15
jne 0x1280f8fb
lea rcx, [0x129ab5a0]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ebx, dword [0x129ab5c8]
mov rax, rsi
test rsi, rsi
je 0x1280f91c
test rbx, rbx
je 0x1280f91c
xor edx, edx
lea rax, [rbx + rsi - 1]
div rbx
imul rax, rbx
mov r14d, dword [rsp + 0x98]
mov r15d, dword [rsp + 0x90]
lea r8, [rdi + 0x7fffffff]
mov dword [rsp + 0x30], r14d
mov r9, rbp
mov rdx, rax
mov rcx, r12
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
call fcn.1280e820
mov r13, qword [rsp + 0x80]
test rax, rax
jne 0x1280f99c
lea rax, [rsi - 0x7fffffff]
test rax, rax
je 0x1280f97c
test rbx, rbx
je 0x1280f97c
lea rax, [rbx + rax - 1]
xor edx, edx
div rbx
imul rax, rbx
mov dword [rsp + 0x30], r14d
mov r9, rbp
mov r8, rdi
mov rdx, rax
mov rcx, r12
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], rbx
call fcn.1280e820
mov r14, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
add rsp, 0x50
pop r12
pop rdi
pop rbp
ret
mov eax, dword [rsp + 0x98]
mov r9d, dword [rsp + 0x90]
mov r8, rbp
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
add rsp, 0x50
pop r12
pop rdi
pop rbp
ret
Function at 0x12818e50
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x470
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov rsi, rdx
mov edx, ecx
xor edi, edi
lea ecx, [rdi + 8]
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov rbx, rax
test rax, rax
je 0x12818ee7
lea rdx, [rsp + 0x20]
mov rcx, rax
mov dword [rsp + 0x20], 0x438
call sub.KERNEL32.dll_Module32FirstW
test eax, eax
je 0x12818ede
nop word [rax + rax]
lea rdx, [rsp + 0x50]
mov r8d, 0x100
mov rcx, rsi
call fcn.1295a8a4
test eax, eax
je 0x12818eda
lea rdx, [rsp + 0x20]
mov rcx, rbx
call sub.KERNEL32.dll_Module32NextW
test eax, eax
jne 0x12818eb0
jmp 0x12818ede
mov edi, dword [rsp + 0x40]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.12959850
lea r11, [rsp + 0x470]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x12819070
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x48
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rbx, rcx
xor ecx, ecx
mov rbp, r8
lea rax, [r11 - 0x18]
mov qword [r11 - 8], r12
mov r12, rdx
mov qword [r11 - 0x20], rax
mov dword [rsp + 0x30], ecx
mov qword [r11 - 0x28], rcx
mov rcx, r12
xor r8d, r8d
mov rdx, rbp
mov rsi, r9
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
test eax, eax
jne 0x1281911d
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x1281911d
mov rdx, rax
mov rax, qword [rbx]
mov rcx, rbx
add rdx, qword [rsp + 0x78]
mov qword [rsp + 0x68], rdi
call qword [rax + 0x18]
mov rdi, rax
test rax, rax
jne 0x128190e7
lea r11d, [rax + 8]
jmp 0x12819118
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x10]
mov r9, rsi
xor r8d, r8d
mov dword [rsp + 0x30], eax
lea rax, [rsp + 0x30]
mov rdx, rbp
mov qword [rsp + 0x28], rax
mov rcx, r12
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov r11d, eax
mov rdi, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x70]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
test rcx, rcx
je 0x12819141
mov eax, dword [rsp + 0x30]
mov dword [rcx], eax
mov eax, r11d
add rsp, 0x48
ret
Function at 0x12819930
Capabilities:
Link many functions at runtime

Disassembly:
sub rsp, 0x28
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rax, qword [0x12a21058]
test rax, rax
jne 0x12819961
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x12a21058], rax
cmp qword [0x12a21068], 0
jne 0x1281999b
test rax, rax
jne 0x12819984
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x12a21058], rax
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x12a21068], rax
lea rcx, [0x129bbc08]
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test rax, rax
je 0x128199c4
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x12a21078], rax
cmp qword [0x12a21060], 0
jne 0x128199e2
lea rcx, [0x129bbc08]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x12a21060], rax
cmp qword [0x12a21070], 0
jne 0x12819a23
mov rax, qword [0x12a21058]
test rax, rax
jne 0x12819a0c
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x12a21058], rax
lea rdx, str.NtQueryObject
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x12a21070], rax
cmp qword [0x12a21080], 0
jne 0x12819a64
mov rax, qword [0x12a21058]
test rax, rax
jne 0x12819a4d
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x12a21058], rax
lea rdx, str.NtQuerySystemInformation
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x12a21080], rax
cmp qword [0x12a21088], 0
jne 0x12819aa5
mov rax, qword [0x12a21058]
test rax, rax
jne 0x12819a8e
lea rcx, [0x129b4df0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x12a21058], rax
lea rdx, [0x129bca20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x12a21088], rax
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x38], 0
call qword [0x12a21040]
mov rcx, qword [rsp + 0x38]
call qword [0x12a21048]
mov dword [rsp + 0x30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [0x12a21038]
add rsp, 0x28
ret
Function at 0x1281a720
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
mov r12, r9
mov rbp, r8
mov r13, rdx
mov r14, rcx
mov rcx, r9
call fcn.12803f90
xor r15d, r15d
mov rbx, r15
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x90], r15d
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test eax, eax
jne 0x1281a807
mov esi, dword [rsp + 0x90]
add rsi, 2
mov rcx, rsi
call fcn.12958238
mov rbx, rax
test rax, rax
je 0x1281a7bf
xor ecx, ecx
call fcn.12958250
mov qword [rsp + 0x38], rbx
test rbx, rbx
jne 0x1281a7ce
lea edi, [rbx + 8]
jmp 0x1281a807
cmp dword [rsp + 0x90], 0
je 0x1281a807
mov dword [rsp + 0x90], esi
lea rax, [rsp + 0x90]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0x30]
xor r8d, r8d
mov rdx, r13
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
test edi, edi
jne 0x1281a852
mov edi, 0x70c
mov eax, dword [rsp + 0x30]
cmp eax, 2
je 0x1281a81e
cmp eax, 1
jne 0x1281a856
mov ecx, dword [rsp + 0x90]
shr ecx, 1
je 0x1281a856
mov edi, ecx
mov word [rbx + rcx*2], r15w
mov r8d, ecx
mov rdx, rbx
mov rcx, r12
call fcn.12803dc0
mov rdx, rdi
mov rcx, r12
call fcn.1280d350
mov edi, r15d
mov eax, dword [rsp + 0x30]
jmp 0x1281a856
mov eax, dword [rsp + 0x30]
test rbp, rbp
je 0x1281a85e
mov dword [rbp], eax
mov rcx, rbx
call fcn.12958250
mov eax, edi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
Function at 0x1281add0
Capabilities:
Query or enumerate registry key

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov ebp, edx
mov edx, dword [rcx + 0x24]
mov rdi, r8
mov rsi, rcx
cmp rdx, 0xffffffffffffffff
je 0x1281ae1e
mov rax, qword [rcx + 0x50]
cmp rdx, rax
je 0x1281ae1e
ja 0x1281ae0f
or r8, 0xffffffffffffffff
add rcx, 0x38
call fcn.128033a0
jmp 0x1281ae1e
xor r8d, r8d
sub rdx, rax
add rcx, 0x38
call fcn.12803b90
cmp qword [rsi + 0x58], 8
jb 0x1281ae2b
mov r8, qword [rsi + 0x40]
jmp 0x1281ae2f
lea r8, [rsi + 0x40]
mov eax, dword [rsi + 0x50]
mov rcx, qword [rsi]
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x50], eax
xor eax, eax
lea r9, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov edx, ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov edi, eax
test eax, eax
jne 0x1281ae8b
mov edx, dword [rsp + 0x50]
mov rax, qword [rsi + 0x50]
lea rcx, [rsi + 0x38]
cmp rdx, rax
ja 0x1281ae7e
or r8, 0xffffffffffffffff
call fcn.128033a0
jmp 0x1281aead
xor r8d, r8d
sub rdx, rax
call fcn.12803b90
jmp 0x1281aead
cmp eax, 0xea
jne 0x1281aea4
mov eax, dword [rsp + 0x50]
cmp eax, dword [rsi + 0x24]
jbe 0x1281aead
inc eax
mov dword [rsi + 0x24], eax
mov edx, eax
jmp 0x1281ae66
lea rcx, [rsi + 0x38]
call fcn.12803f90
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov eax, edi
add rsp, 0x40
pop rdi
ret
Function at 0x1281ee60
Capabilities:
Terminate thread

Disassembly:
sub rsp, 0x28
mov rcx, qword [0x129ad908]
test rcx, rcx
je 0x1281ee9e
xor edx, edx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x1281ee91
mov rcx, qword [0x129ad908]
mov edx, 3
call qword [sym.imp.KERNEL32.dll_TerminateThread]
mov rcx, qword [0x129ad908]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x129ad8f8]
test rcx, rcx
je 0x1281eebb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x129ad8f8], 0
mov rcx, qword [0x129ad900]
test rcx, rcx
je 0x1281eed8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x129ad900], 0
mov eax, 1
add rsp, 0x28
ret

Function at 0x1281f3f0
Capabilities:
Create pipe

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
xor ebp, ebp
mov eax, ebp
xchg dword [0x12a21874], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, 1
mov r11d, eax
xor r9d, r9d
xor r8d, r8d
mov edx, esi
xor ecx, ecx
mov qword [0x12a21888], r11
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov qword [0x12a218a0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x68]
mov r9d, 0x100000
xor r8d, r8d
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x70], rbp
call qword [sym.imp.KERNEL32.dll_CreatePipe]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x1281f576
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x70]
mov dword [rsp + 0x30], 2
lea r9, [0x12a21898]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x1281f56d
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdx, qword [rsp + 0x68]
mov dword [rsp + 0x30], 2
lea r9, [0x12a21890]
mov r8, rbx
mov rcx, rax
mov dword [rsp + 0x28], ebp
mov dword [rsp + 0x20], ebp
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
test ebx, ebx
je 0x1281f564
mov rax, qword [rsp + 0x68]
lea rdx, [rsp + 0x60]
lea rcx, [0x12a21880]
mov qword [0x129abb60], rax
mov rax, qword [rsp + 0x70]
mov dword [rsp + 0x60], 0xffffffff
mov qword [0x129abb68], rax
call qword [0x12a218c0]
mov r8d, dword [rsp + 0x60]
mov edi, eax
test eax, eax
jne 0x1281f554
test r8d, r8d
jne 0x1281f554
mov eax, esi
xchg dword [0x129abb74], eax
mov rcx, qword [0x12a218a0]
call qword [sym.imp.KERNEL32.dll_SetEvent]
jmp 0x1281f584
lea rcx, str.InitPnpEC_PnpEC_Faild__dwErr:_0x_x__ntStatus:_0x_x
mov edx, eax
call fcn.12805270
jmp 0x1281f584
lea rcx, str.InitPnpEC_DupPRd_Faild__dwErr:_0x_x
jmp 0x1281f57d
lea rcx, str.InitPnpEC_DupPWr_Faild__dwErr:_0x_x
jmp 0x1281f57d
lea rcx, str.InitPnpEC_CreateP_Faild__dwErr:_0x_x
mov edx, eax
call fcn.12805270
xchg dword [0x129abb70], esi
mov rbx, qword [rsp + 0x78]
mov eax, edi
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x1281f5a0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x58
mov eax, dword [0x129abb74]
test eax, eax
je 0x1281f68d
mov eax, dword [0x129abb70]
test eax, eax
je 0x1281f68d
xor eax, eax
xchg dword [0x129abb74], eax
mov rcx, qword [0x12a218a0]
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov r11d, dword [0x129abb78]
test r11d, r11d
je 0x1281f632
mov rcx, qword [0x129abb68]
xor eax, eax
lea r9, [rsp + 0x60]
mov qword [rsp + 0x40], rax
lea rdx, [rsp + 0x30]
mov r8d, eax
mov dword [rsp + 0x30], 0x1c
mov dword [rsp + 0x34], 0x1c
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x48], eax
mov dword [rsp + 0x44], 2
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, qword [0x12a21890]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x12a21898]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x129abb60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x129abb68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x12a218a0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rsp + 0x68]
lea rcx, [0x12a21880]
mov dword [rsp + 0x68], 0xffffffff
call qword [fcn.12a218c8]
add rsp, 0x58
ret

Function at 0x12820fe0
Capabilities:
Check os version

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x150
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x140], rax
mov rdi, rcx
lea rcx, [rsp + 0x20]
mov rbx, rdx
mov dword [rsp + 0x20], 0x11c
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x128210e3
test rdi, rdi
je 0x12821038
lea rdx, [rsp + 0x20]
mov rcx, rdi
mov r8d, 0x11c
call fcn.12959240
mov ecx, dword [rsp + 0x28]
mov edx, dword [rsp + 0x24]
test rbx, rbx
je 0x12821060
movzx eax, word [rsp + 0x134]
mov dword [rbx], edx
mov dword [rbx + 4], ecx
mov dword [rbx + 8], eax
movzx eax, word [rsp + 0x136]
mov dword [rbx + 0xc], eax
mov eax, dword [rsp + 0x30]
sub eax, 1
je 0x1282107b
cmp eax, 1
jne 0x128210e3
sub edx, 4
je 0x1282108e
sub edx, eax
je 0x12821092
cmp edx, eax
je 0x128210a2
test ecx, ecx
je 0x128210dc
cmp ecx, 0xa
je 0x128210d5
cmp ecx, 0x5a
jne 0x128210e3
lea eax, [rcx - 0x57]
jmp 0x128210e5
test ecx, ecx
je 0x128210ce
mov eax, ecx
test ecx, ecx
je 0x128210c7
sub eax, 1
je 0x128210c0
cmp eax, 1
je 0x128210b9
mov eax, ecx
test ecx, ecx
je 0x128210b2
cmp eax, 1
jne 0x1282107b
lea eax, [rcx + 8]
jmp 0x128210e5
mov eax, 8
jmp 0x128210e5
mov eax, 7
jmp 0x128210e5
mov eax, 6
jmp 0x128210e5
mov eax, 5
jmp 0x128210e5
mov eax, 4
jmp 0x128210e5
mov eax, 2
jmp 0x128210e5
mov eax, 1
jmp 0x128210e5
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.12959850
mov rbx, qword [rsp + 0x170]
add rsp, 0x150
pop rdi
ret
Function at 0x12821170
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x258
mov rax, qword [0x12a52ee0]
xor rax, rsp
mov qword [rsp + 0x240], rax
test ecx, ecx
je 0x128211d7
lea rdx, [rsp + 0x30]
lea rcx, [0x129bead0]
mov r8d, 0x104
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x128211bd
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0xa]
call fcn.1295ab94
test eax, eax
jne 0x128211d7
xor eax, eax
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.12959850
add rsp, 0x258
ret
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [0x129bfbb8]
lea r8, str._s_u
lea rcx, [rsp + 0x30]
mov edx, 0x103
mov dword [rsp + 0x20], eax
call fcn.1295c4f8
lea r8, [rsp + 0x30]
lea rcx, [0x129ada60]
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.12959850
add rsp, 0x258
ret