Function at 0x436820
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Enumerate gui resources
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5afe86
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], esp
mov esi, ecx
push ebx
mov dword [ebp - 0x14], esi
call fcn.005a53f6
lea ecx, [esi + 0xc0]
mov dword [ebp - 4], ebx
call fcn.004e4b50
lea ecx, [esi + 0xd8]
mov byte [ebp - 4], 1
call fcn.0040f4a0
lea ecx, [esi + 0x138]
mov byte [ebp - 4], 2
call fcn.00429850
mov dword [esi + 0x1b0], ebx
mov dword [esi + 0x1bc], ebx
mov dword [esi + 0x1b8], ebx
mov dword [esi + 0x1b4], ebx
mov dword [esi + 0x1ac], 0x5ca7dc
lea edi, [esi + 0x1c4]
mov byte [ebp - 4], 4
mov ecx, edi
call fcn.00480870
push 0x652f04
mov dword [esi], 0x5cffc0
push ebx
mov dword [0x679ee0], ebx
mov dword [0x679edc], ebx
push ebx
mov byte [ebp - 4], 6
mov dword [esi + 0x1a8], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 0x17c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x17c], ebx
jne 0x436918
push eax
lea eax, [ebp - 0x94]
push 0x652eb4
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x94]
push 1
push ecx
mov ecx, edi
call fcn.00480980
push ebx
call fcn.00580907
cmp eax, 0xb7
jne 0x436b00
push 0x652d14
push ebx
call dword [sym.imp.USER32.dll_FindWindowA]
cmp eax, ebx
mov dword [0x67a060], eax
jne 0x436954
push 0x67a060
push 0x436790
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [0x67a060], ebx
je 0x436b58
lea ecx, [ebp - 0x58]
call fcn.0043b790
lea edx, [ebp - 0x58]
mov ecx, esi
push edx
mov byte [ebp - 4], 7
call fcn.005a5540
cmp byte [ebp - 0x24], bl
je 0x436a3a
mov eax, dword [ebp - 0x30]
cmp dword [eax - 8], 6
jle 0x436a3a
lea ecx, [ebp - 0x14]
push ebx
push ecx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x652748
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x436a34
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [eax - 8]
inc ecx
push ecx
push eax
push 1
push ebx
push 0x652ea4
push edx
call esi
test eax, eax
jne 0x436a34
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x4369e4
inc eax
push eax
mov eax, dword [ebp - 0x14]
push ecx
push 1
push ebx
push 0x652e94
push eax
call esi
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx - 8]
cmp eax, 1
jle 0x436a00
inc eax
push eax
push ecx
mov ecx, dword [ebp - 0x14]
push 1
push ebx
push 0x652e84
push ecx
call esi
mov dl, byte [ebp - 0x21]
mov cl, byte [ebp - 0x20]
xor eax, eax
cmp dl, bl
setne al
cmp cl, bl
je 0x436a14
add eax, 2
cmp byte [ebp - 0x1f], bl
je 0x436a1c
add eax, 4
mov edx, dword [0x67a060]
push eax
push 0x13be
push 0x111
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.00580907
mov al, byte [ebp - 0x23]
push ebx
cmp al, bl
je 0x436a5e
mov eax, dword [0x67a060]
push 0x1398
push 0x111
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
push ebx
call fcn.00580907
mov ecx, dword [0x67a060]
push 0x2714
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edx, dword [0x67a060]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov eax, dword [0x67a060]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
jne 0x436b52
push 1
push 0x652e58
mov ecx, edi
call fcn.00480980
push ebx
mov ecx, esi
call fcn.0043ae70
push 0x652f04
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x17c], eax
jne 0x436af4
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x114]
push 0x652eb4
push ecx
call fcn.0057f2ea
add esp, 0xc
lea edx, [ebp - 0x114]
mov ecx, edi
push 1
push edx
call fcn.00480980
push ebx
call fcn.00580907
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
call fcn.0043b810
push 0x652e4c
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0x19c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x19c], ebx
jne 0x436bba
push eax
lea edx, [ebp - 0x114]
push 0x652dfc
push edx
call fcn.0057f2ea
add esp, 0xc
lea eax, [ebp - 0x114]
mov ecx, edi
push 1
push eax
call fcn.00480980
push ebx
call fcn.00580907
push ebx
call fcn.00580907
push 1
push 0x652dbc
mov ecx, edi
call fcn.00480980
push ebx
mov ecx, esi
call fcn.0043ae70
push 0x652f04
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
mov dword [esi + 0x17c], eax
jne 0x436b00
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x114]
push 0x652eb4
push eax
call fcn.0057f2ea
add esp, 0xc
lea ecx, [ebp - 0x114]
push 1
push ecx
mov ecx, edi
call fcn.00480980
push ebx
call fcn.00580907
cmp eax, 0xb7
jne 0x436bd8
push 0x652e4c
push ebx
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventA]
mov dword [esi + 0x19c], eax
lea ecx, [esi + 0x1a4]
push ecx
push ebx
push esi
push 0x474d20
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
mov dword [esi + 0x1a0], eax
jne 0x436c23
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x114]
push 0x652d6c
push edx
call fcn.0057f2ea
add esp, 0xc
lea eax, [ebp - 0x114]
mov ecx, edi
push 1
push eax
call fcn.00480980
call fcn.00433b40
cmp al, bl
jne 0x436c32
push ebx
call fcn.00580907
mov dword [esi + 0x180], ebx
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret