Function at 0x403830
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4377c0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbb0
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
lea ecx, [ebp - 0x38]
push eax
push ecx
mov ecx, esi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
call fcn.004033f0
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x40], ebx
jne 0x4038a4
push str.OpenPhysicalMemory_Error
call fcn.004187a5
push str.OpenPhysicalMemory_Error
call fcn.00402340
add esp, 8
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
push str.End_OpenPhysicalMemory
call fcn.00402340
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x48]
push edx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x4038e0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.OpenProcessToken_Error:_d_n
call fcn.004187a5
push str.OpenProcessToken_Error
jmp 0x40390a
mov eax, dword [ebp - 0x48]
push str.SeDebugPrivilege
push eax
mov ecx, esi
call fcn.00403760
test eax, eax
jne 0x403912
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.SetPrivlegesSE_DEBUG_NAME_Error:_d_n
call fcn.004187a5
push str.SetPrivlegesSE_DEBUG_NAME_Error
call fcn.00402340
add esp, 0xc
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x403920
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.DeviceTCP
mov ecx, esi
call fcn.004034a0
push str.DeviceUDP
mov ecx, esi
mov dword [ebp + 0xc], eax
call fcn.004034a0
mov ecx, esi
mov dword [ebp - 0x18], eax
call fcn.00403520
mov edi, eax
test edi, edi
mov dword [ebp - 0x44], edi
je 0x4039d3
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
push edi
mov ecx, esi
call fcn.004035e0
mov ecx, dword [ebp - 0x38]
lea edx, [ebp - 0x1b4]
push edx
mov edx, dword [eax + 8]
push ecx
push ebx
push edx
mov ecx, esi
mov dword [ebp - 0x34], eax
call fcn.00403620
test eax, eax
jne 0x40398a
push str.GetPTE_Error
jmp 0x4039c2
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
mov eax, dword [ebp - 0x18]
push eax
push edi
mov ecx, esi
call fcn.004035e0
mov edx, dword [ebp - 0x38]
lea ecx, [ebp - 0x188]
mov dword [ebp - 0x50], eax
mov eax, dword [eax + 8]
push ecx
push edx
push ebx
push eax
mov ecx, esi
call fcn.00403620
xor esi, esi
cmp eax, esi
jne 0x4039df
push str.GetPTE2_Error
call fcn.00402340
add esp, 4
push edi
call fcn.0042ab78
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
jmp 0x40388f
push esi
push esi
push 1
push esi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
push esi
push 2
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x28], eax
jne 0x403a23
push str.Failed_to_take_process_snapshot._Process_names_will_not_be_shown._n_n
call fcn.004187a5
push str.Failed_to_take_process_snapshot._Process_names_will_not_be_shown.
call fcn.00402340
add esp, 8
mov ecx, dword [edi]
mov ebx, dword [ebp + 8]
lea esi, [edi + 4]
mov dword [ebp - 0x3c], ecx
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x2c], 0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
cmp eax, edx
jge 0x40419c
mov ecx, dword [ebp - 0x34]
mov al, byte [esi + 4]
cmp al, byte [ecx + 4]
jne 0x40418a
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
lea edx, [ebp - 0x15c]
push edx
mov edx, dword [esi + 8]
push eax
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00403620
test eax, eax
je 0x40418a
mov eax, dword [ebp - 0x14c]
cmp eax, 1
je 0x403a8c
cmp eax, 2
jne 0x40418a
mov eax, dword [ebp - 0x1b0]
mov ecx, dword [ebp - 0x158]
cmp eax, ecx
jne 0x40418a
mov ecx, dword [esi]
mov dword [ebp - 0x1c], 0
push ecx
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404187
push 2
push 0
lea edx, [ebp - 0x1c]
push 0
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
xor eax, eax
mov ax, word [esi + 6]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x404187
xor edx, edx
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0x100]
mov dword [ebp - 0x104], edx
mov dword [ebp - 0x94], edx
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0x14c]
xor ecx, ecx
mov dword [ebp - 0x90], ecx
cmp eax, 2
mov dword [ebp - 0x8c], ecx
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x84], ecx
mov dword [ebp - 0x80], ecx
jne 0x403e46
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x104]
push edx
mov edx, dword [ebp - 0x1c]
push ecx
push 0x38
push eax
lea ecx, [ebp - 0x94]
push 0x18
push ecx
push 0x210012
push edx
mov dword [ebp - 0x84], 4
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404177
mov eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
test ax, ax
mov dword [ebp - 0x20], eax
je 0x40417d
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x9bc]
lea edx, [ebp - 0x9bc]
rep stosd dword es:[edi], eax
mov edi, 0x44740c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0xbbc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
and ecx, 0xffff
mov dword [ebp - 0x794], ecx
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00403300
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x9b0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x1b4e81b5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
sub edx, ecx
mov dword [ebp + 8], ecx
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x403d2f
mov esi, dword [ebx + 4]
test esi, esi
je 0x403c53
mov edx, ecx
mov eax, 0x1b4e81b5
sub edx, esi
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x403c58
mov edi, 1
test esi, esi
jne 0x403c60
xor edx, edx
jmp 0x403c73
sub ecx, esi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + edi]
test eax, eax
mov dword [ebp - 0x18], eax
jge 0x403c7f
xor eax, eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call fcn.0042ab4f
mov edi, dword [ebx + 4]
add esp, 4
mov dword [ebp - 0x14], eax
mov esi, eax
cmp edi, dword [ebp + 8]
je 0x403cb9
push edi
push esi
call fcn.00404da0
add esp, 8
add esi, 0x258
add edi, 0x258
jmp 0x403c9c
lea eax, [ebp - 0x9bc]
mov ecx, ebx
push eax
push 1
push esi
call fcn.00404d60
mov ecx, dword [ebx + 8]
mov edx, dword [ebp + 8]
add esi, 0x258
push esi
push ecx
push edx
mov ecx, ebx
call fcn.00404d20
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.0040a0b0
mov eax, dword [ebx + 4]
push eax
call fcn.0042ab78
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
add esp, 4
mov ecx, ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
mov dword [ebx + 0xc], eax
call fcn.00404cf0
lea eax, [eax + eax*2 + 3]
mov dword [ebx + 4], esi
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*8]
mov dword [ebx + 8], edx
jmp 0x403e0e
mov esi, dword [ebp + 8]
mov edx, ecx
sub edx, esi
mov eax, 0x1b4e81b5
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x403daa
lea edx, [esi + 0x258]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00404d20
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x9bc]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.00404d60
mov edx, dword [ebx + 8]
mov eax, esi
cmp eax, edx
je 0x403e07
mov ecx, 0x96
lea esi, [ebp - 0x9bc]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
jmp 0x403d90
push ecx
push ecx
add ecx, 0xfffffda8
push ecx
mov ecx, ebx
call fcn.00404d20
mov edx, dword [ebx + 8]
lea eax, [edx - 0x258]
cmp esi, eax
je 0x403de2
sub eax, 0x258
sub edx, 0x258
mov ecx, 0x96
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x403dc3
mov eax, esi
add esi, 0x258
cmp eax, esi
je 0x403e07
mov ecx, 0x96
lea esi, [ebp - 0x9bc]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x403de4
add dword [ebx + 8], 0x258
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0xbbc]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push eax
call fcn.00403300
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
and eax, 0xffff
push eax
push ecx
push str.TCP__PID___4d_PORT___6d__s_n
call fcn.004187a5
add esp, 0x10
jmp 0x40417d
cmp eax, 1
jne 0x40417d
lea edx, [ebp - 0x64]
lea eax, [ebp - 0x104]
push edx
mov edx, dword [ebp - 0x1c]
push 0
push 0x38
push eax
lea ecx, [ebp - 0x94]
push 0x18
push ecx
push 0x210012
push edx
mov dword [ebp - 0x84], 3
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404177
mov eax, dword [ebp - 0xf8]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
test ax, ax
mov dword [ebp - 0x20], eax
je 0x40417d
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x40c]
lea edx, [ebp - 0x40c]
rep stosd dword es:[edi], eax
mov edi, 0x44740c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x50c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
and ecx, 0xffff
mov dword [ebp - 0x1e4], ecx
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00403300
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x400]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x1b4e81b5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
sub edx, ecx
mov dword [ebp + 8], ecx
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x404063
mov esi, dword [ebx + 4]
test esi, esi
je 0x403f6b
mov edx, ecx
mov eax, 0x1b4e81b5
sub edx, esi
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x403f70
mov edi, 1
test esi, esi
jne 0x403f78
xor edx, edx
jmp 0x403f8b
sub ecx, esi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + edi]
test eax, eax
mov dword [ebp - 0x30], eax
jge 0x403f97
xor eax, eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call fcn.0042ab4f
mov esi, dword [ebx + 4]
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x403fd1
push esi
push edi
call fcn.00404da0
add esp, 8
add edi, 0x258
add esi, 0x258
jmp 0x403fb4
mov esi, 1
mov dword [ebp - 0x14], edi
test esi, esi
jbe 0x403ffe
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40c]
push eax
push ecx
call fcn.00404da0
mov eax, dword [ebp - 0x14]
add esp, 8
dec esi
add eax, 0x258
mov dword [ebp - 0x14], eax
jmp 0x403fd9
mov edx, dword [ebx + 8]
mov eax, dword [ebp + 8]
add edi, 0x258
mov ecx, ebx
push edi
push edx
push eax
call fcn.00404d20
mov ecx, dword [ebx + 8]
mov edx, dword [ebx + 4]
push ecx
push edx
mov ecx, ebx
call fcn.0040a0b0
mov eax, dword [ebx + 4]
push eax
call fcn.0042ab78
mov eax, dword [ebp - 0x30]
mov esi, dword [ebp - 0x18]
add esp, 4
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov dword [ebx + 0xc], ecx
mov ecx, ebx
call fcn.00404cf0
lea eax, [eax + eax*2 + 3]
mov dword [ebx + 4], esi
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
mov dword [ebx + 8], eax
jmp 0x404142
mov esi, dword [ebp + 8]
mov edx, ecx
sub edx, esi
mov eax, 0x1b4e81b5
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4040de
lea edx, [esi + 0x258]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00404d20
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x40c]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.00404d60
mov edx, dword [ebx + 8]
mov eax, esi
cmp eax, edx
je 0x40413b
mov ecx, 0x96
lea esi, [ebp - 0x40c]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
jmp 0x4040c4
push ecx
push ecx
add ecx, 0xfffffda8
push ecx
mov ecx, ebx
call fcn.00404d20
mov edx, dword [ebx + 8]
lea eax, [edx - 0x258]
cmp esi, eax
je 0x404116
sub eax, 0x258
sub edx, 0x258
mov ecx, 0x96
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x4040f7
mov eax, esi
add esi, 0x258
cmp eax, esi
je 0x40413b
mov ecx, 0x96
lea esi, [ebp - 0x40c]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x404118
add dword [ebx + 8], 0x258
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50c]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push eax
call fcn.00403300
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0x20]
and eax, 0xffff
push eax
push ecx
push str.TCP__PID___4d_PORT___6d___s_n
call fcn.004187a5
add esp, 0x10
jmp 0x40417d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x44]
mov eax, dword [ebp - 0x2c]
add esi, 0x10
inc eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x2c], eax
jmp 0x403a38
mov eax, dword [edi]
lea esi, [edi + 4]
mov dword [ebp - 0x3c], eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x2c], 0
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x2c]
cmp eax, ecx
jge 0x40497a
mov eax, dword [ebp - 0x50]
mov dl, byte [esi + 4]
cmp dl, byte [eax + 4]
jne 0x404965
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x40]
lea ecx, [ebp - 0x130]
push ecx
mov ecx, dword [esi + 8]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00403620
test eax, eax
je 0x404965
mov eax, dword [ebp - 0x120]
cmp eax, 1
je 0x404202
cmp eax, 2
jne 0x404965
mov edx, dword [ebp - 0x184]
mov eax, dword [ebp - 0x12c]
cmp edx, eax
jne 0x404965
mov eax, dword [esi]
mov dword [ebp - 0x20], 0
push eax
push 0
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x404965
push 2
push 0
lea ecx, [ebp - 0x20]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
push eax
mov dx, word [esi + 6]
push edx
push edi
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x404965
xor edx, edx
mov ecx, 0xd
xor eax, eax
lea edi, [ebp - 0xc8]
mov dword [ebp - 0xcc], edx
mov dword [ebp - 0x7c], edx
rep stosd dword es:[edi], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x120]
cmp eax, 2
jne 0x4045ca
lea ecx, [ebp - 0x64]
lea eax, [ebp - 0x7c]
push ecx
mov ecx, dword [ebp - 0x20]
push edx
lea edx, [ebp - 0xcc]
push 0x38
push edx
push 0x18
push eax
push 0x210012
push ecx
mov dword [ebp - 0x6c], 4
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404955
mov edx, dword [ebp - 0xc0]
push edx
call dword [sym.imp.WS2_32.dll_ntohs]
test ax, ax
mov dword [ebp - 0x1c], eax
je 0x40495b
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x40c]
lea edx, [ebp - 0x40c]
rep stosd dword es:[edi], eax
mov edi, 0x447408
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x50c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
and ecx, 0xffff
mov dword [ebp - 0x1e4], ecx
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00403300
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x400]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
mov edx, dword [ebx + 0xc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x1b4e81b5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebx + 8]
sub edx, ecx
mov dword [ebp + 8], ecx
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4044c0
mov esi, dword [ebx + 4]
test esi, esi
je 0x4043b2
mov edx, ecx
mov eax, 0x1b4e81b5
sub edx, esi
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov edi, edx
ja 0x4043b7
mov edi, 1
test esi, esi
jne 0x4043bf
xor edx, edx
jmp 0x4043d2
sub ecx, esi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
lea eax, [edx + edi]
test eax, eax
mov dword [ebp - 0x34], eax
jge 0x4043de
xor eax, eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
shl edx, 3
push edx
call fcn.0042ab4f
mov esi, dword [ebx + 4]
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x404418
push esi
push edi
call fcn.00404da0
add esp, 8
add edi, 0x258
add esi, 0x258
jmp 0x4043fb
mov esi, 1
mov dword [ebp - 0x14], edi
test esi, esi
jbe 0x404445
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x40c]
push eax
push ecx
call fcn.00404da0
mov eax, dword [ebp - 0x14]
add esp, 8
dec esi
add eax, 0x258
mov dword [ebp - 0x14], eax
jmp 0x404420
mov edx, dword [ebx + 8]
mov esi, dword [ebp + 8]
add edi, 0x258
mov dword [ebp - 0x30], edx
cmp esi, dword [ebp - 0x30]
je 0x404471
push esi
push edi
call fcn.00404da0
add esp, 8
add edi, 0x258
add esi, 0x258
jmp 0x404454
mov eax, dword [ebx + 8]
mov ecx, dword [ebx + 4]
push eax
push ecx
mov ecx, ebx
call fcn.0040a0b0
mov eax, dword [ebx + 4]
push eax
call fcn.0042ab78
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x18]
add esp, 4
mov ecx, ebx
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
lea eax, [esi + edx*8]
mov dword [ebx + 0xc], eax
call fcn.00404cf0
lea eax, [eax + eax*2 + 3]
mov dword [ebx + 4], esi
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*8]
mov dword [ebx + 8], edx
jmp 0x40459f
mov esi, dword [ebp + 8]
mov edx, ecx
sub edx, esi
mov eax, 0x1b4e81b5
imul edx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x40453b
lea edx, [esi + 0x258]
push edx
push ecx
push esi
mov ecx, ebx
call fcn.00404d20
mov edi, dword [ebx + 8]
lea eax, [ebp - 0x40c]
mov ecx, edi
push eax
sub ecx, esi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov ecx, edx
mov eax, 1
shr ecx, 0x1f
add edx, ecx
mov ecx, ebx
sub eax, edx
push eax
push edi
call fcn.00404d60
mov edx, dword [ebx + 8]
mov eax, esi
cmp eax, edx
je 0x404598
mov ecx, 0x96
lea esi, [ebp - 0x40c]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
jmp 0x404521
push ecx
push ecx
add ecx, 0xfffffda8
push ecx
mov ecx, ebx
call fcn.00404d20
mov edx, dword [ebx + 8]
lea eax, [edx - 0x258]
cmp esi, eax
je 0x404573
sub eax, 0x258
sub edx, 0x258
mov ecx, 0x96
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x404554
mov eax, esi
add esi, 0x258
cmp eax, esi
je 0x404598
mov ecx, 0x96
lea esi, [ebp - 0x40c]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
jmp 0x404575
add dword [ebx + 8], 0x258
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x50c]
mov edx, dword [esi]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
push eax
call fcn.00403300
mov ecx, dword [esi]
push eax
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
push eax
push ecx
jmp 0x404943
cmp eax, 1
jne 0x40495b
lea edx, [ebp - 0x64]
lea eax, [ebp - 0xcc]
push edx
mov edx, dword [ebp - 0x20]
push 0
push 0x38
push eax
lea ecx, [ebp - 0x7c]
push 0x18
push ecx
push 0x210012
push edx
mov dword [ebp - 0x6c], 3
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x404955
mov eax, dword [ebp - 0xc0]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
test ax, ax
mov dword [ebp - 0x1c], eax
je 0x40495b
mov ecx, 0x96
xor eax, eax
lea edi, [ebp - 0x764]
lea edx, [ebp - 0x764]
rep stosd dword es:[edi], eax
mov edi, 0x447408
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0xabc]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x28]
and ecx, 0xffff
mov dword [ebp - 0x53c], ecx
mov ecx, dword [eax]
push ecx
mov ecx, dword [ebp - 0x24]
push edx
call fcn.00403300
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x758]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, 0x1b4e81b5
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebx + 8]
mov ecx, dword [ebx + 0xc]
sub ecx, esi
mov dword [ebp + 8], esi
imul ecx
sar edx, 6
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
cmp edx, 1
jae 0x404811
mov edi, dword [ebx + 4]
test edi, edi
je 0x4046e9
mov ecx, esi
mov eax, 0x1b4e81b5
sub ecx, edi
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
mov ecx, edx
ja 0x4046ee
mov ecx, 1
test edi, edi
jne 0x4046f6
xor edx, edx
jmp 0x404709
sub esi, edi
mov eax, 0x1b4e81b5
imul esi
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea eax, [ecx + edx]
test eax, eax
mov dword [ebp - 0x34], eax
jge 0x404715
xor eax, eax
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea ecx, [eax + eax*4]
shl ecx, 3
push ecx
call fcn.0042ab4f
mov esi, dword [ebx + 4]
add esp, 4
mov dword [ebp - 0x18], eax
mov edi, eax
cmp esi, dword [ebp + 8]
je 0x40474f
push esi
push edi
call fcn.00404da0
add esp, 8
add edi, 0x258
add esi, 0x258
jmp 0x404732
mov esi, 1
mov dword [ebp - 0x14], edi
test esi, esi
jbe 0x40477c
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x764]
push edx
push eax
call fcn.00404da0
mov eax, dword [ebp - 0x14]
add esp, 8
dec esi
add eax, 0x258
mov dword [ebp - 0x14], eax
jmp 0x404757
mov ecx, dword [ebx + 8]
mov esi, dword [ebp + 8]
add edi, 0x258
mov dword [ebp - 0x30], ecx
cmp esi, dword [ebp - 0x30]
je 0x4047a8
push esi
push edi
call fcn.00404da0
add esp, 8
add edi, 0x258
add esi, 0x258
jmp 0x40478b
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x4047b7
add eax, 0x258
jmp 0x4047ab
mov edx, dword [ebx + 4]
push edx
call fcn.0042ab78
mov eax, dword [ebp - 0x34]
mov esi, dword [ebp - 0x18]
add esp, 4
lea eax, [eax + eax*2]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea ecx, [esi + eax*8]
mov eax, dword [ebx + 4]
test eax, eax
mov dword [ebx + 0xc], ecx
jne 0x4047e3
xor edx, edx
jmp 0x4047f9
mov ecx, dword [ebx + 8]
sub ecx, eax
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
lea edx, [edx + edx*2 + 3]
mov dword [ebx + 4], esi
lea eax, [edx + edx*4]
lea ecx, [eax + eax*4]
lea edx, [esi + ecx*8]
mov dword [ebx + 8], edx
jmp 0x40491d
mov edi, dword [ebp + 8]
mov ecx, esi
sub ecx, edi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp edx, 1
jae 0x4048b9
lea ecx, [edi + 0x258]
mov dword [ebp + 8], edi
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp + 8]
cmp eax, esi
je 0x40486b
mov edx, eax
mov eax, dword [ebp - 0x14]
push edx
push eax
call fcn.00404da0
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov eax, 0x258
add esp, 8
add edx, eax
add ecx, eax
mov dword [ebp - 0x14], edx
mov dword [ebp + 8], ecx
jmp 0x40483e
mov esi, dword [ebx + 8]
lea ecx, [ebp - 0x764]
push ecx
mov ecx, esi
sub ecx, edi
mov eax, 0x1b4e81b5
imul ecx
sar edx, 6
mov eax, edx
mov ecx, 1
shr eax, 0x1f
add edx, eax
sub ecx, edx
push ecx
push esi
mov ecx, ebx
call fcn.00404d60
mov edx, dword [ebx + 8]
mov eax, edi
cmp eax, edx
je 0x404916
mov ecx, 0x96
lea esi, [ebp - 0x764]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
jmp 0x40489f
push esi
push esi
add esi, 0xfffffda8
mov ecx, ebx
push esi
call fcn.00404d20
mov edx, dword [ebx + 8]
lea eax, [edx - 0x258]
cmp edi, eax
je 0x4048f1
sub eax, 0x258
sub edx, 0x258
mov ecx, 0x96
mov esi, eax
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
jmp 0x4048d2
mov eax, edi
add edi, 0x258
cmp eax, edi
je 0x404916
mov ecx, 0x96
lea esi, [ebp - 0x764]
mov edi, eax
add eax, 0x258
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 8]
jmp 0x4048f3
add dword [ebx + 8], 0x258
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x28]
lea edx, [ebp - 0xabc]
mov eax, dword [esi]
push edx
push eax
push ecx
mov ecx, dword [ebp - 0x24]
call fcn.00403300
mov edx, dword [esi]
push eax
mov eax, dword [ebp - 0x1c]
and eax, 0xffff
push eax
push edx
push str.UDP__PID___4d_PORT___6d___s_n
call fcn.004187a5
mov esi, dword [ebp + 0xc]
add esp, 0x10
jmp 0x40495b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp - 0x44]
add esi, 0x10
inc eax
mov dword [ebp + 0xc], esi
mov dword [ebp - 0x2c], eax
jmp 0x4041ae
push edi
call fcn.0042ab78
mov ecx, dword [ebp - 0x40]
add esp, 4
push ecx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edx, dword [ebp - 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x28]
push eax
call esi
jmp 0x40388f