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

Disassembly:
push 0xffffffffffffffff
push 0x423dd1
mov eax, dword fs:[0]
push eax
sub esp, 0x2d4
mov eax, dword [0x43514c]
xor eax, esp
mov dword [esp + 0x2d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x43514c]
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 [0x43b30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43b30c
call edx
lea edi, [eax + 0x10]
mov dword [esp + 0x28], edi
mov dword [esp + 0x2f0], ebx
mov eax, dword [0x43b30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43b30c
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 [0x43b30c]
mov edx, dword [eax + 0xc]
mov ecx, 0x43b30c
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 0x41258d
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.00414a20
add esp, 0xc
cmp esi, ebx
je 0x412570
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 0x4121f5
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 0x4121f5
mov eax, dword [edi - 8]
mov ecx, 1
sub ecx, dword [edi - 4]
sub eax, esi
or eax, ecx
jge 0x4121d3
mov eax, esi
lea ecx, [esp + 0x28]
call fcn.00401479
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 0x412566
xor eax, eax
mov dword [edi - 0xc], esi
mov word [edi + esi*2], ax
jmp 0x412241
mov esi, dword [edi - 0x10]
cmp dword [edi - 0xc], ebx
lea eax, [edi - 0x10]
je 0x412241
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x41221b
cmp dword [edi - 8], ebx
jl 0x412566
xor ecx, ecx
mov dword [edi - 0xc], ebx
mov word [edi], cx
jmp 0x412241
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412231
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 0x4122b0
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 0x4122b0
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 0x412284
mov eax, esi
lea ecx, [esp + 0x14]
call fcn.00401479
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 0x412566
mov eax, edx
xor ecx, ecx
mov dword [eax - 0xc], esi
mov word [eax + esi*2], cx
jmp 0x412300
mov edx, dword [esp + 0x14]
mov esi, dword [edx - 0x10]
cmp dword [edx - 0xc], ebx
lea eax, [edx - 0x10]
je 0x412300
cmp dword [eax + 0xc], ebx
lea ecx, [eax + 0xc]
jge 0x4122da
cmp dword [edx - 8], ebx
jl 0x412566
xor eax, eax
mov dword [edx - 0xc], ebx
mov word [edx], ax
jmp 0x412300
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4122f0
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 0x41234d
mov ecx, dword [esp + 0x18]
xor esi, esi
cmp dword [ecx + 0x190], ebx
jbe 0x41234d
lea ebp, [esp + 0x2d0]
mov edx, dword [esp + 0x18]
movzx eax, byte [edx + esi + 0x194]
push eax
push 0x431a38
push ebp
call fcn.00414205
mov ecx, dword [esp + 0x24]
inc esi
add esp, 0xc
add ebp, 2
cmp esi, dword [ecx + 0x190]
jb 0x412322
cmp dword [edi - 0xc], ebx
jl 0x41238f
push 0x431a88
push edi
call fcn.00413d2c
add esp, 8
cmp eax, ebx
je 0x41236e
sub eax, edi
sar eax, 1
jns 0x4124b2
cmp dword [edi - 0xc], ebx
jl 0x41238f
push 0x431a98
push edi
call fcn.00413d2c
add esp, 8
cmp eax, ebx
je 0x41238f
sub eax, edi
sar eax, 1
jns 0x4124b2
lea edx, [esp + 0x2d0]
push 0x431aa8
push edx
call fcn.004145d0
add esp, 8
test eax, eax
jne 0x4124b2
cmp dword [edi - 0xc], ebx
jl 0x412403
push 0x431ab4
push edi
call fcn.00413d2c
add esp, 8
cmp eax, ebx
je 0x4123c9
sub eax, edi
sar eax, 1
jns 0x412419
cmp dword [edi - 0xc], ebx
jl 0x412403
push 0x431ac0
push edi
call fcn.00413d2c
add esp, 8
cmp eax, ebx
je 0x4123e6
sub eax, edi
sar eax, 1
jns 0x412419
cmp dword [edi - 0xc], ebx
jl 0x412403
push 0x431ac8
push edi
call fcn.00413d2c
add esp, 8
cmp eax, ebx
je 0x412403
sub eax, edi
sar eax, 1
jns 0x412419
push 0x431ad4
lea esi, [esp + 0x18]
call fcn.004092ea
test eax, eax
jl 0x4124aa
mov edx, dword [esp + 0x2c]
cmp edx, ebx
je 0x41243a
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 0x412430
mov esi, dword [esp + 0x30]
cmp esi, ebx
je 0x41245d
mov edx, dword [esp + 0x14]
push edx
lea eax, [esp + 0x20]
call fcn.004025a2
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 0x41247d
push edi
lea eax, [esp + 0x20]
call fcn.004025a2
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 0x412490
mov ecx, dword [esp + 0x40]
sub eax, esi
push eax
push edx
call fcn.00403527
cmp byte [ebp], 0xc0
je 0x4124c4
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
jmp 0x4124b8
mov eax, dword [esp + 0x18]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
cmp eax, ebx
jne 0x412190
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 0x412593
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 0x412511
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 0x412538
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 0x41255f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x412616
push 0x80070057
call fcn.004015b5
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 0x412505
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 0x4125c6
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 0x4125ed
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 0x412614
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.00413194
add esp, 0x2e0
ret 8