Function at 0x418930
Capabilities:
Access peb ldr_data
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push 0xffffffffffffffff
push 0x4348e1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x449654]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x449654]
xor eax, esp
push eax
lea eax, [esp + 0x2e8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x2f8]
mov dword [esp + 0x30], ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], edx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x2fc]
push ecx
lea edx, [esp + 0x48]
xor ebx, ebx
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x28], ebx
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov esi, eax
mov eax, dword [0x44f98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44f98c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2f0], ebx
mov eax, dword [0x44f98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44f98c
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2f0], 1
xor eax, eax
mov dword [esp + 0x2d1], eax
mov dword [esp + 0x2d5], eax
mov dword [esp + 0x2d9], eax
mov dword [esp + 0x2dd], eax
mov word [esp + 0x2e1], ax
mov byte [esp + 0x2e3], al
mov eax, dword [0x44f98c]
mov edx, dword [eax + 0xc]
mov ecx, 0x44f98c
mov byte [esp + 0x2d0], bl
call edx
lea ebp, [eax + 0x10]
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x2f0], 2
cmp esi, 0x6f
jne 0x418e7d
mov eax, dword [esp + 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ecx, dword [esp + 0x20]
push ecx
mov esi, eax
push ebx
push esi
mov dword [esp + 0x40], esi
call fcn.0041e9c0
add esp, 0xc
cmp esi, ebx
je 0x418e60
lea edx, [esp + 0x20]
push edx
push esi
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov dword [esp + 0x3c], eax
mov dword [esp + 0x18], esi
lea esp, [esp]
mov ebp, dword [esp + 0x18]
add ebp, 0x1b0
cmp ebp, ebx
je 0x418ae5
push ebx
push ebx
push 0xffffffffffffffff
push ebp
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
dec esi
cmp esi, ebx
jle 0x418ae5
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x418ac3
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.004014df
mov edi, dword [esp + 0x28]
push esi
push edi
push 0xffffffffffffffff
push ebp
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp esi, dword [edi - 8]
jg 0x418e56
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
jmp 0x418b31
mov esi, dword [edi - 0x10]
cmp dword [edi - 0xc], ebx
lea eax, [edi - 0x10]
je 0x418b31
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x418b0b
cmp dword [edi - 8], ebx
jl 0x418e56
xor ecx, ecx
mov dword [edi - 0xc], ebx
mov word [edi], cx
jmp 0x418b31
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418b21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov ebp, dword [esp + 0x18]
add ebp, 0x1c0
cmp ebp, ebx
je 0x418ba0
push ebx
push ebx
push 0xffffffffffffffff
push ebp
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
dec esi
cmp esi, ebx
jle 0x418ba0
mov eax, dword [esp + 0x14]
mov ecx, 1
sub ecx, dword [eax - 4]
mov eax, dword [eax - 8]
sub eax, esi
or eax, ecx
jge 0x418b74
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.004014df
mov ecx, dword [esp + 0x14]
push esi
push ecx
push 0xffffffffffffffff
push ebp
push ebx
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov edx, dword [esp + 0x14]
cmp esi, dword [edx - 8]
jg 0x418e56
mov eax, edx
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
jmp 0x418bf0
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0x10]
cmp dword [edx - 0xc], ebx
lea eax, [edx - 0x10]
je 0x418bf0
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x418bca
cmp dword [edx - 8], ebx
jl 0x418e56
xor eax, eax
mov dword [edx - 0xc], ebx
mov word [edx], ax
jmp 0x418bf0
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418be0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx + 0xc]
mov ecx, esi
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov byte [esp + 0x2d0], bl
cmp dword [esp + 0x2c], ebx
je 0x418c3d
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp dword [ecx + 0x190], ebx
jbe 0x418c3d
lea ebp, [esp + 0x2d0]
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi + 0x194]
push eax
push 0x44353c
push ebp
call fcn.0041de36
mov ecx, dword [esp + 0x24]
inc esi
add esp, 0xc
add ebp, 2
cmp esi, dword [ecx + 0x190]
jb 0x418c12
cmp dword [edi - 0xc], ebx
jl 0x418c7f
push 0x4439e8
push edi
call fcn.0041d720
add esp, 8
cmp eax, ebx
je 0x418c5e
sub eax, edi
sar eax, 1
jns 0x418da2
cmp dword [edi - 0xc], ebx
jl 0x418c7f
push 0x4439f8
push edi
call fcn.0041d720
add esp, 8
cmp eax, ebx
je 0x418c7f
sub eax, edi
sar eax, 1
jns 0x418da2
lea edx, [esp + 0x2d0]
push 0x443a08
push edx
call fcn.0041e220
add esp, 8
test eax, eax
jne 0x418da2
cmp dword [edi - 0xc], ebx
jl 0x418cf3
push 0x443a14
push edi
call fcn.0041d720
add esp, 8
cmp eax, ebx
je 0x418cb9
sub eax, edi
sar eax, 1
jns 0x418d09
cmp dword [edi - 0xc], ebx
jl 0x418cf3
push 0x443a20
push edi
call fcn.0041d720
add esp, 8
cmp eax, ebx
je 0x418cd6
sub eax, edi
sar eax, 1
jns 0x418d09
cmp dword [edi - 0xc], ebx
jl 0x418cf3
push 0x443a28
push edi
call fcn.0041d720
add esp, 8
cmp eax, ebx
je 0x418cf3
sub eax, edi
sar eax, 1
jns 0x418d09
push 0x443a34
lea esi, [esp + 0x18]
call fcn.00409240
test eax, eax
jl 0x418d9a
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x418d2a
lea eax, [esp + 0x2d0]
mov ecx, eax
sub edx, ecx
lea esp, [esp]
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x418d20
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x418d4d
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
call fcn.00402842
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esi], eax
mov ebp, dword [esp + 0x38]
cmp ebp, ebx
je 0x418d6d
push edi
lea eax, [esp + 0x20]
call fcn.00402842
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp], eax
mov edx, dword [esp + 0x18]
add edx, 0x1d8
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x418d80
mov ecx, dword [esp + 0x40]
sub eax, esi
push eax
push edx
call fcn.00403405
cmp byte [ebp], 0xc0
je 0x418db4
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
jmp 0x418da8
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x418a80
mov ecx, dword [esp + 0x34]
mov esi, dword [esp + 0x3c]
push ecx
push ebx
add esi, 0xf0000000
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
jne 0x418e83
mov byte [esp + 0x2f0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418e01
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e28
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2f0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418e4f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x418f06
push 0x80070057
call fcn.0040161b
lea eax, [ebp - 0x10]
mov byte [esp + 0x2f0], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x418df5
add esi, 0xe0000000
xor ecx, ecx
cmp esi, ebx
sete cl
mov byte [esp + 0x2f0], 1
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
mov esi, ecx
mov ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x418eb6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x2f0], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418edd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
mov dword [esp + 0x2f0], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x418f04
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x2e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2d0]
xor ecx, esp
call fcn.0041cb1b
add esp, 0x2e0
ret 8