Function at 0x140003380
Capabilities:
Enumerate gui resources
Get system information on windows
Parse pe header

Disassembly:
push rbx
sub rsp, 0xb0
mov rax, qword [0x140028010]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [0x140029ef0], 0
mov rbx, rdx
jne 0x1400039c0
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x140029ef0]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x1400039cb
mov rax, qword [0x140029e38]
xorps xmm0, xmm0
mov qword [rsp + 0xc0], rbp
mov ecx, 0x5a4d
mov qword [rsp + 0xa0], r14
xor r14d, r14d
test rax, rax
mov dword [rsp + 0x30], r14d
movups xmmword [rsp + 0x70], xmm0
cmove rax, rbx
movups xmmword [rsp + 0x80], xmm0
mov qword [0x140029e38], rax
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
cmp word [rax], cx
jne 0x1400034a0
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
cmp dword [rbx], 0x4550
jne 0x1400034a0
mov eax, 0x8664
cmp word [rbx + 4], ax
jne 0x1400034a0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
lea edx, [r14 + 8]
lea r8d, [r14 + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
jne 0x140003473
lea ecx, [rax + 0xe]
jmp 0x1400034a5
mov qword [rax], rbx
mov rax, qword [rbx + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r14
mov dword [rcx + 0x18], r14d
mov dword [rcx + 0x20], r14d
mov eax, dword [rsp + 0x44]
mov dword [rcx + 0x24], eax
cmp dword [rbx + 0x28], r14d
je 0x1400034ae
mov dword [rcx + 0x1c], 1
jmp 0x1400034ae
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r14
mov qword [0x140029d08], rcx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea r8, str.127.0.0.1
mov edx, 0x100
lea rcx, [0x140029d10]
mov ebp, eax
call fcn.14000beb0
mov rcx, qword [0x140029d08]
lea r8, [0x140024820]
lea rdx, [0x140024830]
mov ebx, r14d
call fcn.140007b20
test rax, rax
je 0x14000351e
mov rcx, qword [0x140029d08]
mov edx, dword [rax]
add rdx, qword [rcx + 8]
je 0x14000351e
cmp dword [rax + 4], ebx
jbe 0x14000351e
movsx ebx, byte [rdx]
sub ebx, 0x30
cmp ebx, 2
jg 0x140003939
lea rdx, [rsp + 0x70]
mov ecx, ebx
call fcn.140002070
test eax, eax
jne 0x140003939
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400023b0
cmp dword [rsp + 0x30], r14d
je 0x140003939
lea rcx, [rsp + 0x70]
call fcn.140002e90
test eax, eax
jne 0x140003939
mov rcx, qword [0x140029e38]
lea rdx, [0x140002010]
mov qword [rsp + 0xd0], rsi
xor r8d, r8d
mov qword [rsp + 0xa8], rdi
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov rdi, qword [0x140029e30]
mov esi, r14d
test rdi, rdi
je 0x140003664
nop dword [rax]
mov rcx, qword [rdi]
mov rax, qword [rcx]
cmp rax, qword [0x1400248a0]
jne 0x1400035da
mov rax, qword [rcx + 8]
cmp rax, qword [0x1400248a8]
jne 0x1400035da
lea rax, [fcn.140004ba0]
lea rcx, [0x140004b70]
lea rdx, [0x1400047c0]
lea r8, [0x140004450]
jmp 0x14000360f
mov rax, qword [rcx]
cmp rax, qword [0x140028a10]
jne 0x14000362e
mov rax, qword [rcx + 8]
cmp rax, qword [0x140028a18]
jne 0x14000362e
lea rax, [fcn.140004ba0]
lea rcx, [0x140004f00]
lea rdx, [0x140004bc0]
lea r8, [0x140004bb0]
mov qword [rdi + 8], r8
xor r8d, r8d
mov qword [rdi + 0x10], rdx
mov rdx, rdi
mov qword [rdi + 0x18], rcx
xor ecx, ecx
mov qword [rdi + 0x20], rax
call fcn.1400012f0
mov esi, eax
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x1400035a0
mov rdi, qword [0x140029e30]
test rdi, rdi
je 0x140003664
nop word [rax + rax]
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call fcn.14000c004
mov rdi, rbx
test rbx, rbx
jne 0x140003650
test esi, esi
mov qword [0x140029e30], r14
mov rsi, qword [rsp + 0xd0]
jne 0x140003931
lea rcx, [rsp + 0x70]
call fcn.140003100
test eax, eax
je 0x140003931
cmp dword [0x140029e40], 0x80
je 0x14000375d
movups xmm0, xmmword [0x140029ec0]
lea rax, [0x140005240]
mov dword [0x140029e40], 0x80
mov qword [0x140029e48], rax
lea rax, [fcn.140003fa0]
mov qword [0x140029e50], rax
lea rax, [0x140001210]
mov qword [0x140029e70], rax
lea rax, [0x140001190]
mov qword [0x140029e78], rax
lea rax, [fcn.140001230]
mov qword [0x140029e80], rax
lea rax, [0x140004190]
mov qword [0x140029e88], rax
lea rax, [0x140004210]
mov qword [0x140029e90], rax
lea rax, [0x140004330]
mov qword [0x140029e98], rax
lea rax, [0x140006d90]
mov qword [0x140029ea0], rax
lea rax, [0x140006dc0]
mov qword [0x140029ea8], rax
lea rax, [0x140006e70]
mov qword [0x140029eb0], rax
lea rax, [0x140001170]
mov qword [0x140029eb8], rax
movaps xmmword [0x140029e60], xmm0
call fcn.140003d30
test eax, eax
jne 0x14000390b
call fcn.140003ee0
mov ecx, 0x28
mov dword [0x140029ed8], 5
mov edi, r14d
call fcn.14000c018
mov qword [0x140029ee8], rax
test rax, rax
je 0x1400038aa
mov r9d, dword [0x140029ed8]
xor edx, edx
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [0x140029ee0], rax
test rax, rax
jne 0x1400037c0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [0x140029ed8]
mov ebx, r14d
test ecx, ecx
je 0x14000381c
nop dword [rax]
mov qword [rsp + 0x28], r14
lea r8, [0x140005160]
xor r9d, r9d
mov dword [rsp + 0x20], r14d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x140029ee8]
mov edx, ebx
mov qword [rcx + rdx*8], rax
test rax, rax
je 0x14000380e
mov ecx, dword [0x140029ed8]
inc ebx
cmp ebx, ecx
jb 0x1400037d0
jmp 0x14000381c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x140029ed8]
mov edi, eax
test edi, edi
jne 0x1400038aa
mov rdx, qword [0x140029ee8]
lea r8d, [rdi + 1]
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x140003846
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [0x140029ee0], r14
je 0x1400038aa
mov rdx, qword [0x140029ee8]
mov r9d, 0xffffffff
mov ecx, dword [0x140029ed8]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, r14d
cmp dword [0x140029ed8], ebx
jbe 0x14000389d
nop dword [rax]
mov rcx, qword [0x140029ee8]
mov eax, ebx
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [0x140029ed8]
jb 0x140003880
mov rcx, qword [0x140029ee0]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140029cf0]
test rcx, rcx
je 0x1400038d4
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov rcx, qword [rcx]
call fcn.140003c10
mov rcx, rbx
test rbx, rbx
jne 0x1400038c0
mov rcx, qword [0x140029e20]
mov qword [0x140029cf0], r14
test rcx, rcx
je 0x140003904
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov rcx, qword [rcx]
call fcn.140003ae0
mov rcx, rbx
test rbx, rbx
jne 0x1400038f0
mov qword [0x140029cf0], r14
mov rbx, qword [0x140029e28]
test rbx, rbx
je 0x140003931
nop word [rax + rax]
mov rcx, rbx
mov rbx, qword [rbx + 8]
call fcn.14000c004
test rbx, rbx
jne 0x140003920
mov rdi, qword [rsp + 0xa8]
mov r14, qword [rsp + 0xa0]
test ebp, ebp
mov rbp, qword [rsp + 0xc0]
js 0x140003953
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [0x140029d00]
test rbx, rbx
je 0x140003970
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000c004
mov rbx, qword [0x140029cf8]
test rbx, rbx
je 0x14000398d
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000c004
mov rbx, qword [0x140029e18]
test rbx, rbx
je 0x1400039aa
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000c004
mov rcx, qword [0x140029ef0]
test rcx, rcx
je 0x1400039cb
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x1400039cb
mov ecx, 0x4df
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.140007c70
add rsp, 0xb0
pop rbx
ret