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

Disassembly:
push rbx
sub rsp, 0xc0
mov rax, qword [0x14002a040]
xor rax, rsp
mov qword [rsp + 0x90], rax
cmp qword [0x14002bf60], 0
mov rbx, rdx
jne 0x140004cf1
mov r9d, 0x18
mov dword [rsp + 0x20], 0xf0000000
xor r8d, r8d
lea rcx, [0x14002bf60]
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
je 0x140004cfc
mov rax, qword [0x14002bf30]
xorps xmm0, xmm0
mov qword [rsp + 0xe8], rdi
mov qword [rsp + 0xb8], r12
mov qword [rsp + 0xb0], r13
xor r13d, r13d
mov dword [rsp + 0x30], r13d
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rsp + 0x80], xmm0
test rax, rax
jne 0x1400045ca
mov rax, rbx
mov qword [0x14002bf30], rbx
mov ecx, 0x5a4d
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
cmp word [rax], cx
jne 0x14000465a
movsxd rbx, dword [rax + 0x3c]
add rbx, rax
cmp dword [rbx], 0x4550
jne 0x14000465a
mov eax, 0x8664
cmp word [rbx + 4], ax
jne 0x14000465a
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov edx, 8
mov rcx, rax
lea r8d, [rdx + 0x20]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rcx, rax
test rax, rax
jne 0x14000462d
lea ecx, [rax + 0xe]
jmp 0x14000465f
mov qword [rax], rbx
mov rax, qword [rbx + 0x30]
mov qword [rcx + 8], rax
mov qword [rcx + 0x10], r13
mov dword [rcx + 0x18], r13d
mov dword [rcx + 0x20], r13d
mov eax, dword [rsp + 0x44]
mov dword [rcx + 0x24], eax
cmp dword [rbx + 0x28], r13d
je 0x140004668
mov dword [rcx + 0x1c], 1
jmp 0x140004668
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rcx, r13
mov qword [rsp + 0xd0], rbp
xor edx, edx
mov qword [rsp + 0xe0], rsi
mov qword [0x14002bd78], rcx
xor ecx, ecx
mov qword [rsp + 0xa8], r14
mov qword [rsp + 0xa0], r15
call qword [sym.imp.ole32.dll_CoInitializeEx]
lea r8, str.127.0.0.1
mov edx, 0x100
lea rcx, [0x14002bd80]
mov r12d, eax
call fcn.14000dca4
mov rbx, qword [0x14002bd78]
mov edi, r13d
test rbx, rbx
je 0x1400047ca
mov r14, qword [rbx + 8]
mov rbx, qword [rbx]
cmp dword [rbx + 0x9c], r13d
jne 0x1400046e7
mov ecx, 0x714
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400047ca
call qword [sym.imp.KERNEL32.dll_GetThreadLocale]
mov esi, dword [rbx + 0x98]
lea r8, str.CONF
add rsi, r14
mov r15d, eax
mov rdx, rsi
mov rcx, rsi
call fcn.140009150
test rax, rax
jne 0x140004720
mov ecx, 0x715
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400047ca
mov eax, dword [rax + 4]
lea r8, str.CONF0
mov edx, dword [rbx + 0x98]
btr eax, 0x1f
add rax, r14
mov rcx, rsi
add rdx, rax
call fcn.140009150
test rax, rax
jne 0x140004754
mov ecx, 0x716
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400047ca
mov eax, dword [rax + 4]
mov rcx, rsi
mov ebp, dword [rbx + 0x98]
btr eax, 0x1f
add rax, r14
movzx r8d, r15w
add rbp, rax
mov rdx, rbp
call fcn.140009150
test rax, rax
jne 0x140004792
cmp word [rbp + 0xe], di
jne 0x14000478e
mov ecx, 0x717
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400047ca
lea rax, [rbp + 0x10]
mov eax, dword [rax + 4]
mov ecx, dword [rbx + 0x98]
btr eax, 0x1f
add rax, r14
add rcx, rax
je 0x1400047ca
mov rax, qword [0x14002bd78]
mov edx, dword [rcx]
add rdx, qword [rax + 8]
je 0x1400047ca
cmp dword [rcx + 4], edi
jbe 0x1400047ca
movsx edi, byte [rdx]
sub edi, 0x30
cmp edi, 2
jg 0x140004c41
lea rdx, [rsp + 0x70]
mov ecx, edi
call fcn.1400021b0
test eax, eax
jne 0x140004c41
lea r8, [rsp + 0x38]
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400025d0
cmp dword [rsp + 0x30], r13d
je 0x140004c41
lea rcx, [rsp + 0x70]
call fcn.140003560
test eax, eax
jne 0x140004c41
mov rcx, qword [0x14002bf30]
lea rdx, [0x140002150]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
mov rdi, qword [0x14002bea0]
mov esi, r13d
test rdi, rdi
je 0x140004904
mov rdx, qword [0x140026928]
mov r8, qword [0x140026920]
mov rcx, qword [rdi]
cmp qword [rcx], r8
jne 0x140004873
cmp qword [rcx + 8], rdx
jne 0x140004873
lea rax, [fcn.140006260]
lea rcx, [0x140006230]
lea rdx, [0x140005e80]
lea r8, [0x140005b80]
jmp 0x1400048a8
mov rax, qword [rcx]
cmp rax, qword [0x14002aa80]
jne 0x1400048d5
mov rax, qword [rcx + 8]
cmp rax, qword [0x14002aa88]
jne 0x1400048d5
lea rax, [fcn.140006260]
lea rcx, [0x1400065c0]
lea rdx, [0x140006280]
lea r8, [0x140006270]
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.140001320
mov rdx, qword [0x140026928]
mov esi, eax
mov r8, qword [0x140026920]
mov rdi, qword [rdi + 0x28]
test rdi, rdi
jne 0x140004847
mov rdi, qword [0x14002bea0]
test rdi, rdi
je 0x140004904
nop
mov rbx, qword [rdi + 0x28]
mov rcx, rdi
call fcn.14000ddf8
mov rdi, rbx
test rbx, rbx
jne 0x1400048f0
mov qword [0x14002bea0], r13
test esi, esi
jne 0x140004c41
lea rcx, [rsp + 0x70]
call fcn.1400039a0
test eax, eax
je 0x140004c41
cmp dword [0x14002beb0], 0x80
je 0x1400049f5
movups xmm0, xmmword [0x14002bf38]
lea rax, [0x140006900]
mov dword [0x14002beb0], 0x80
mov qword [0x14002beb8], rax
lea rax, [fcn.140005780]
mov qword [0x14002bec0], rax
lea rax, [0x140001240]
mov qword [0x14002bee0], rax
lea rax, [0x1400010e0]
mov qword [0x14002bee8], rax
lea rax, [fcn.140001260]
mov qword [0x14002bef0], rax
lea rax, [0x1400058d0]
mov qword [0x14002bef8], rax
lea rax, [0x140005950]
mov qword [0x14002bf00], rax
lea rax, [0x140005a60]
mov qword [0x14002bf08], rax
lea rax, [0x140008470]
mov qword [0x14002bf10], rax
lea rax, [0x1400084a0]
mov qword [0x14002bf18], rax
lea rax, [0x140008550]
mov qword [0x14002bf20], rax
lea rax, [0x1400010c0]
mov qword [0x14002bf28], rax
movaps xmmword [0x14002bed0], xmm0
call fcn.140004f50
test eax, eax
jne 0x140004c24
call fcn.140005100
mov ecx, 0x28
mov dword [0x14002bea8], 5
mov edi, r13d
call fcn.14000de0c
mov qword [0x14002bf58], rax
test rax, rax
je 0x140004b4a
mov r9d, dword [0x14002bea8]
xor edx, edx
xor r8d, r8d
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov qword [0x14002bf50], rax
test rax, rax
jne 0x140004a58
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov ecx, dword [0x14002bea8]
mov ebx, r13d
test ecx, ecx
je 0x140004abc
nop word [rax + rax]
mov qword [rsp + 0x28], r13
lea r8, [0x140006820]
xor r9d, r9d
mov dword [rsp + 0x20], r13d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, qword [0x14002bf58]
mov edx, ebx
mov qword [rcx + rdx*8], rax
test rax, rax
je 0x140004aae
mov ecx, dword [0x14002bea8]
inc ebx
cmp ebx, ecx
jb 0x140004a70
jmp 0x140004abc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x14002bea8]
mov edi, eax
test edi, edi
jne 0x140004b4a
mov rdx, qword [0x14002bf58]
lea r8d, [rdi + 1]
mov r9d, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0xffffffff
jne 0x140004ae6
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp qword [0x14002bf50], r13
je 0x140004b4a
mov rdx, qword [0x14002bf58]
mov r9d, 0xffffffff
mov ecx, dword [0x14002bea8]
mov r8d, 1
call qword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ebx, r13d
cmp dword [0x14002bea8], ebx
jbe 0x140004b3d
nop dword [rax]
mov rcx, qword [0x14002bf58]
mov eax, ebx
mov rcx, qword [rcx + rax*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [0x14002bea8]
jb 0x140004b20
mov rcx, qword [0x14002bf50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x14002bd60]
test rcx, rcx
je 0x140004b74
nop word [rax + rax]
mov rbx, qword [rcx + 8]
mov rcx, qword [rcx]
call fcn.140004e20
mov rcx, rbx
test rbx, rbx
jne 0x140004b60
mov rsi, qword [0x14002be90]
mov qword [0x14002bd60], r13
test rsi, rsi
je 0x140004c1d
nop dword [rax + rax]
mov rbp, qword [rsi + 8]
mov rsi, qword [rsi]
cmp qword [rsi + 0x50], r13
je 0x140004c11
mov rdx, qword [0x14002bd60]
mov rdi, r13
test rdx, rdx
je 0x140004bf3
nop dword [rax]
mov rcx, qword [rdx]
mov rbx, qword [rdx + 8]
mov rax, qword [rcx + 0x44]
cmp rax, qword [rsi + 0x1c]
jne 0x140004be8
mov rax, qword [rcx + 0x4c]
cmp rax, qword [rsi + 0x24]
jne 0x140004be8
call fcn.140004e20
test eax, eax
jne 0x140004c09
test rdi, rdi
je 0x140004bdf
mov qword [rdi + 8], rbx
jmp 0x140004beb
mov qword [0x14002bd60], rbx
jmp 0x140004beb
mov rdi, rdx
mov rdx, rbx
test rbx, rbx
jne 0x140004bb0
xor ecx, ecx
call qword [rsi + 0x50]
test eax, eax
jne 0x140004c11
lea rcx, [rsi + 0x1c]
call fcn.140008560
mov dword [rsi + 0x40], r13d
mov rcx, rsi
call fcn.1400032e0
mov rsi, rbp
test rbp, rbp
jne 0x140004b90
mov qword [0x14002bd60], r13
mov rbx, qword [0x14002be98]
test rbx, rbx
je 0x140004c41
mov rcx, rbx
mov rbx, qword [rbx + 8]
call fcn.14000ddf8
test rbx, rbx
jne 0x140004c30
mov r15, qword [rsp + 0xa0]
test r12d, r12d
mov r12, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xa8]
mov r13, qword [rsp + 0xb0]
mov rdi, qword [rsp + 0xe8]
mov rsi, qword [rsp + 0xe0]
mov rbp, qword [rsp + 0xd0]
js 0x140004c84
call qword [sym.imp.ole32.dll_CoUninitialize]
mov rbx, qword [0x14002bd70]
test rbx, rbx
je 0x140004ca1
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000ddf8
mov rbx, qword [0x14002bd68]
test rbx, rbx
je 0x140004cbe
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000ddf8
mov rbx, qword [0x14002be88]
test rbx, rbx
je 0x140004cdb
mov rcx, qword [rbx]
call qword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov rcx, rbx
call fcn.14000ddf8
mov rcx, qword [0x14002bf60]
test rcx, rcx
je 0x140004cfc
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
jmp 0x140004cfc
mov ecx, 0x4df
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1400092d0
add rsp, 0xc0
pop rbx
ret