Function at 0x1002e4c0
Capabilities:
Contain obfuscated stackstrings
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d95c5
mov eax, dword fs:[0]
push eax
sub esp, 0x180
mov eax, dword [0x1010f16c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x160], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x164], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0
mov al, byte [ebp - 0x16c]
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x100f5610
mov dword [ebp - 0x34], 0x10032230
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 1
lea esi, [ebx + 0x150]
mov dword [ebp - 0x64], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002e569
mov eax, dword [ecx]
lea edx, [ebp - 0x88]
push edx
call dword [eax]
mov dword [ebp - 0x64], eax
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x88]
push esi
call fcn.100342e0
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x64]
test ecx, ecx
je 0x1002e59e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x88]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x64], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0xd4], eax
test eax, eax
jne 0x1002e5c1
mov byte [ebp - 0x10d], al
jmp 0x1002e668
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 5
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x100f5640
mov dword [ebp - 0x5c], 0x10033810
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 6
add esi, 0x28
push eax
lea ecx, [esi + 8]
call fcn.10033e00
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x100722f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi], eax
sete al
mov byte [ebp - 0x10d], al
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1002e63e
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
push eax
call edx
mov al, byte [ebp - 0x10d]
mov dword [ebp - 0x3c], 0
test al, al
je 0x1002e661
push dword [ebx + 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x224], 0
mov byte [ebp - 0x10d], 0
jmp 0x1002e668
mov byte [ebp - 0x10d], 1
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002e68d
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x14], 0
cmp byte [ebp - 0x10d], 0
je 0x1002ef59
push 0x2c
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x12c], 0
mov dword [ebp - 0x128], 0
call fcn.10090929
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x12c], eax
mov dword [ebp - 4], 0xb
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x15c], ecx
cmp eax, ecx
je 0x1002eb40
nop word [eax + eax]
push eax
lea ecx, [ebp - 0x10c]
call fcn.10011650
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x18c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.100350d0
mov eax, dword [ebp - 0x18c]
cmp byte [eax + 0x28], 0
jne 0x1002eb14
push 0x250
call fcn.10090929
mov edi, eax
add esp, 4
mov dword [ebp - 0x178], edi
mov byte [ebp - 4], 0xd
mov dword [edi], 0x100f5278
mov byte [ebp - 4], 0xe
lea eax, [edi + 4]
mov dword [ebp - 0x17c], eax
mov dword [eax], 0
mov dword [eax + 4], 0
mov byte [ebp - 4], 0x10
lea ecx, [edi + 0xc]
mov dword [edi], 0x100f529c
call fcn.100115a0
mov byte [ebp - 4], 0x11
lea eax, [edi + 0xc0]
push 2
push eax
mov dword [edi + 0x90], 0
mov dword [ebp - 0x180], eax
call fcn.10079b82
mov byte [ebp - 4], 0x13
lea eax, [edi + 0xf0]
push eax
call fcn.1007b0c7
mov byte [ebp - 4], 0x14
mov dword [edi + 0x118], 0
mov dword [edi + 0x22c], 0
mov dword [edi + 0x230], 0xf
mov byte [edi + 0x21c], 0
mov byte [ebp - 4], 0x15
mov dword [edi + 0x244], 0
mov dword [edi + 0x248], 0xf
mov byte [edi + 0x234], 0
mov byte [ebp - 4], 0x16
lea ecx, [edi + 0x98]
push 0
push 0
call fcn.10005d60
push 0
push 0
lea ecx, [edi + 0xa0]
call fcn.10005d60
mov dword [edi + 0xb8], 0
mov dword [edi + 0xbc], 0
mov dword [edi + 0x218], 0
mov byte [ebp - 4], 0xc
push 0x10
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call fcn.10090929
mov esi, eax
add esp, 0x20
mov dword [ebp - 0x184], esi
mov byte [ebp - 4], 0x17
lea eax, [esi + 4]
mov dword [eax], 1
mov dword [esi + 8], 1
mov dword [esi], 0x100f5670
mov dword [esi + 0xc], edi
mov byte [ebp - 4], 0xc
lea ecx, [edi + 4]
mov dword [ebp - 0x118], edi
mov dword [ebp - 0x114], esi
mov edx, dword [ecx + 4]
test edx, edx
je 0x1002e8a5
cmp dword [edx + 4], 0
jne 0x1002e901
mov dword [ebp - 0x14c], 0
mov dword [ebp - 0x148], 0
lock inc dword [eax]
mov dword [ebp - 0x14c], edi
mov dword [ebp - 0x148], esi
mov byte [ebp - 4], 0x18
lea eax, [ebp - 0x14c]
push eax
call fcn.10034ee0
mov byte [ebp - 4], 0xc
or eax, 0xffffffff
lea edx, [esi + 4]
lock xadd dword [edx], eax
jne 0x1002e901
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lea ecx, [esi + 8]
lock xadd dword [ecx], eax
jne 0x1002e901
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0x19
lea eax, [ebp - 0x154]
push eax
mov ecx, ebx
call fcn.10032b30
mov byte [ebp - 4], 0x1a
sub esp, 0x28
lea eax, [ebp - 0x144]
mov dword [ebp - 0x134], esp
mov edx, esp
mov dword [ebp - 0x120], eax
mov dword [ebp - 0x158], edx
lea eax, [esi + 4]
mov dword [ebp - 0x144], 0
mov dword [ebp - 0x140], 0
lock inc dword [eax]
mov dword [ebp - 0x144], edi
mov dword [ebp - 0x140], esi
mov byte [ebp - 4], 0x1b
mov ecx, dword [ebp - 0x150]
mov dword [ebp - 0x13c], 0
mov dword [ebp - 0x138], 0
test ecx, ecx
je 0x1002e986
lock inc dword [ecx + 4]
mov ecx, dword [ebp - 0x150]
mov eax, dword [ebp - 0x154]
mov dword [ebp - 0x13c], eax
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 0x1d
mov dword [edx + 0x24], 0
mov byte [ebp - 4], 0x1e
lea eax, [ebp - 0x144]
push eax
mov ecx, edx
call fcn.10035a10
mov ecx, dword [ebp - 0x158]
mov dword [ecx + 0x24], eax
mov byte [ebp - 4], 0x1a
lea ecx, [ebp - 0x144]
call fcn.1002f160
mov byte [ebp - 4], 0x1f
lea eax, [ebp - 0x10c]
push dword [ebp - 0x11c]
push eax
mov byte [ebp - 4], 0x1a
mov ecx, edi
call fcn.1002c7a0
test al, al
lea eax, [ebp - 0x10c]
je 0x1002ea92
push eax
lea eax, [ebp - 0x16c]
push eax
lea ecx, [ebp - 0x12c]
call fcn.100350d0
mov eax, dword [ebp - 0x16c]
lea ecx, [ebx + 0x230]
mov byte [eax + 0x28], 1
mov eax, dword [ecx + 4]
cmp dword [ecx + 8], eax
je 0x1002ea40
mov dword [eax], 0
lea edx, [esi + 4]
mov dword [eax + 4], 0
lock inc dword [edx]
mov dword [eax], edi
mov dword [eax + 4], esi
add dword [ecx + 4], 8
jmp 0x1002ea59
lea edx, [ebp - 0x118]
push edx
push eax
call fcn.1000b6c0
mov esi, dword [ebp - 0x114]
mov edi, dword [ebp - 0x118]
mov eax, dword [edi + 0xb8]
test eax, eax
je 0x1002ea7e
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, 2
mov dword [ebp - 0x11c], eax
jmp 0x1002eabc
xor eax, eax
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
add eax, 2
mov dword [ebp - 0x11c], eax
jmp 0x1002eabc
cmp dword [ebp - 0xf8], 0x10
cmovae eax, dword [ebp - 0x10c]
push eax
push str.server__s_check_false
push str.server_mgr::init
push 0x48
push str.d:projectwireguard_engine_rules_server_mgr.cpp
push 8
call fcn.10070dc0
add esp, 0x18
mov byte [ebp - 4], 0x19
mov edi, dword [ebp - 0x150]
test edi, edi
je 0x1002eaeb
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002eaeb
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002eaeb
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov byte [ebp - 4], 0xc
test esi, esi
je 0x1002eb14
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1002eb14
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1002eb14
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x10c]
call fcn.1000e880
mov eax, dword [ebp - 0x130]
add eax, 0x84
mov dword [ebp - 0x130], eax
cmp eax, dword [ebp - 0x15c]
jne 0x1002e700
mov ecx, dword [ebx + 0x230]
cmp ecx, dword [ebx + 0x234]
jne 0x1002ec06
push str.server_mgr_init_m_vec_servers_is_empty
push str.server_mgr::init
push 0x4e
push str.d:projectwireguard_engine_rules_server_mgr.cpp
push 0x20
call fcn.10070dc0
mov eax, dword [ebx + 0x224]
add esp, 0x14
mov byte [ebx + 0x228], 1
test eax, eax
je 0x1002ebc4
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov eax, dword [ebx + 0x178]
test eax, eax
je 0x1002ebae
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebx + 0x178]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x178], 0
push dword [ebx + 0x224]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x224], 0
xor bl, bl
mov dword [ebp - 4], 0x37
lea ecx, [ebp - 0x12c]
mov eax, dword [ebp - 0x12c]
push eax
push dword [eax]
lea eax, [ebp - 0x120]
push eax
call fcn.10033560
mov dword [ebp - 4], 0xffffffff
push 0x2c
push dword [ebp - 0x12c]
call fcn.1009091b
add esp, 8
mov al, bl
jmp 0x1002ef5b
push dword [ebp - 0x160]
mov ecx, dword [ecx]
call fcn.1002ccb0
push 0x158
call fcn.10090929
add esp, 4
mov dword [ebp - 0x120], eax
mov byte [ebp - 4], 0x22
mov ecx, eax
call fcn.100181a0
mov esi, eax
mov byte [ebp - 4], 0xb
push 0x10
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call fcn.10090929
mov ecx, eax
add esp, 4
mov dword [ebp - 0x120], ecx
mov byte [ebp - 4], 0x23
mov dword [ecx + 4], 1
mov dword [ecx + 8], 1
mov dword [ecx], 0x100f5600
mov dword [ecx + 0xc], esi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], ecx
mov byte [ebp - 4], 0x24
mov eax, dword [ebx + 0x298]
mov dword [ebx + 0x298], esi
mov esi, dword [ebx + 0x29c]
mov dword [ebp - 0x114], esi
mov dword [ebp - 0x118], eax
mov dword [ebx + 0x29c], ecx
mov byte [ebp - 4], 0xb
test esi, esi
je 0x1002ecd9
or eax, 0xffffffff
lock xadd dword [esi + 4], eax
jne 0x1002ecd9
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [esi + 8], eax
jne 0x1002ecd9
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [ebx + 0x298]
test ecx, ecx
je 0x1002ebc4
push dword [ebp - 0x164]
call fcn.10018710
test al, al
je 0x1002ebc4
mov dword [ebp - 0x3c], 0
mov byte [ebp - 4], 0x27
lea eax, [ebp - 0x60]
mov dword [ebp - 0x60], 0x100f56b0
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x3c], eax
mov byte [ebp - 4], 0x28
lea ecx, [ebx + 0x150]
push eax
sub esp, 0xc
call fcn.10032890
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x1002ed4a
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
lea eax, [ebp - 0x60]
cmp ecx, eax
setne al
push eax
call edx
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x124]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x124], ecx
cmp eax, ecx
je 0x1002eef5
nop dword [eax]
push 0x58
call fcn.10090929
mov esi, eax
mov dword [ebp - 0x120], esi
mov byte [ebp - 4], 0x2a
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
mov dword [ebp - 0x134], esi
mov byte [esi], 0
mov byte [ebp - 4], 0x2b
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov byte [ebp - 4], 0x2c
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0xf
mov byte [esi + 0x24], 0
mov byte [ebp - 4], 0x2d
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov byte [ebp - 4], 0x2f
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov byte [ebp - 4], 0x30
mov word [esi + 0x54], 0
mov byte [ebp - 4], 0xb
push 0x10
mov dword [ebp - 0x118], 0
mov dword [ebp - 0x114], 0
call fcn.10090929
mov edi, eax
add esp, 8
mov dword [ebp - 0x134], edi
mov byte [ebp - 4], 0x31
mov dword [edi + 4], 1
mov dword [edi + 8], 1
mov dword [edi], 0x100f5680
mov dword [edi + 0xc], esi
mov byte [ebp - 4], 0xb
mov dword [ebp - 0x118], esi
mov dword [ebp - 0x114], edi
mov byte [ebp - 4], 0x32
mov ecx, esi
push dword [ebp - 0x11c]
call fcn.1002c0d0
test al, al
je 0x1002eeb1
mov eax, dword [ebx + 0x240]
lea ecx, [ebx + 0x23c]
cmp dword [ecx + 8], eax
je 0x1002ee9e
mov dword [eax], 0
lea edx, [edi + 4]
mov dword [eax + 4], 0
lock inc dword [edx]
mov dword [eax], esi
mov dword [eax + 4], edi
add dword [ecx + 4], 8
jmp 0x1002eeb1
lea edx, [ebp - 0x118]
push edx
push eax
call fcn.1000b6c0
mov edi, dword [ebp - 0x114]
mov byte [ebp - 4], 0xb
test edi, edi
je 0x1002eeda
or eax, 0xffffffff
lock xadd dword [edi + 4], eax
jne 0x1002eeda
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
or eax, 0xffffffff
lock xadd dword [edi + 8], eax
jne 0x1002eeda
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebp - 0x11c]
add eax, 0x48
mov dword [ebp - 0x11c], eax
cmp eax, dword [ebp - 0x124]
jne 0x1002ed70
mov dword [ebp - 0x14], 0
mov byte [ebp - 4], 0x33
mov al, byte [ebp - 0x16c]
mov byte [ebp - 0x30], al
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0x100f5628
mov dword [ebp - 0x34], 0x10031ef0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0x34
lea ecx, [ebx + 8]
push ecx
push eax
call fcn.10032f10
mov bl, al
mov byte [ebp - 4], 0xb
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x1002ebc6
mov edx, dword [ecx]
lea eax, [ebp - 0x38]
cmp ecx, eax
setne al
push eax
call dword [edx + 0x10]
mov dword [ebp - 0x14], 0
jmp 0x1002ebc6
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.100908e7
mov esp, ebp
pop ebp
ret 0x10