Function at 0x408070
Capabilities:
Create process on windows
Get local ipv4 addresses
Get mac address on windows
Query or enumerate registry value
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x41a269
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xed4
push ebx
push ebp
push esi
mov ebp, ecx
push edi
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_1
push str._LogonUserToDomain_
push 4
xor esi, esi
push 1
mov dword [esp + 0xef8], esi
call fcn.004195d0
push eax
call fcn.00419410
mov dword [ebp + 0x92c], esi
mov dword [ebp + 0x930], esi
mov eax, dword [ebp + 0x258]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
call fcn.0040aff0
cmp al, 1
jne 0x408111
push esi
push esi
push 0x427dbc
call sub.MFC42.DLL_AfxMessageBox
push 0x427dbc
push esi
mov ecx, ebp
call fcn.00402ef0
push 0x427d80
push 3
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
jmp 0x40afbd
mov dword [esp + 0xf8], esi
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push esi
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0xf00], 1
mov dword [esp + 0x2c], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, esi
jne 0x4081be
mov esi, dword [esp + 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
xor eax, eax
mov byte [esp + 0x6e4], 0
mov ecx, 0xff
lea edi, [esp + 0x6e5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xcc]
push ecx
lea edx, [esp + 0x6e8]
push edx
stosb byte es:[edi], al
lea eax, [esp + 0x24]
push eax
push 0
push str.ServerAddr
push esi
mov dword [esp + 0x110], esi
mov dword [esp + 0xe4], 0x400
mov dword [esp + 0x34], 0
call ebx
test eax, eax
je 0x4081f2
mov ecx, dword [0x423734]
push ecx
push 0x31
mov ecx, ebp
call fcn.00402ef0
mov edx, dword [0x423734]
push edx
jmp 0x40821b
mov edx, dword [0x423730]
push edx
push 0x30
mov ecx, ebp
call fcn.00402ef0
mov eax, dword [0x423730]
push eax
push 0x30
push 0x427d48
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
jmp 0x40afbd
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x6e4]
repne scasb al, byte es:[edi]
not ecx
dec ecx
jne 0x408242
mov eax, dword [0x423734]
push eax
push 0x31
mov ecx, ebp
call fcn.00402ef0
mov ecx, dword [0x423734]
push ecx
push 0x31
push 0x427d18
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
test esi, esi
je 0x40afbd
push esi
jmp 0x40afb7
or ecx, 0xffffffff
xor eax, eax
lea edi, [esp + 0x6e4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [ebp + 0x40]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0xb8]
push edx
mov edx, dword [esp + 0x20]
xor eax, eax
lea ecx, [esp + 0x40]
push ecx
push eax
push str.ServerPortNum
push edx
mov dword [esp + 0xcc], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x34], 4
call ebx
test eax, eax
jne 0x4082b0
mov eax, dword [esp + 0xb4]
xor esi, esi
cmp eax, esi
jne 0x4082be
jmp 0x4082b2
xor esi, esi
mov eax, 0x1bb
mov dword [esp + 0xb4], eax
mov edi, dword [esp + 0x18]
mov dword [ebp + 0x240], eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0xf8]
push ecx
lea edx, [esp + 0x40]
push edx
push esi
push str.IsServerAddr
push edi
mov dword [esp + 0x50], esi
mov dword [esp + 0x34], 4
call ebx
cmp eax, esi
je 0x40830e
lea eax, [ebp + 0x40]
push eax
mov ecx, ebp
mov dword [esp + 0xf8], 1
call fcn.004059a0
mov dword [ebp + 0x3c], eax
jmp 0x40832e
cmp dword [esp + 0xf4], esi
je 0x408327
lea eax, [ebp + 0x40]
push eax
mov ecx, ebp
call fcn.004059a0
mov dword [ebp + 0x3c], eax
jmp 0x40832e
mov dword [ebp + 0x3c], 0xffffffff
push 0x429f08
lea ecx, [esp + 0x18]
call fcn.00419824
lea eax, [esp + 0xcc]
push eax
lea ecx, [esp + 0x6e8]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push str.HideRelogonWnd
push edi
mov dword [esp + 0xe4], 0x400
mov dword [esp + 0x48], esi
mov dword [esp + 0x34], esi
call ebx
cmp eax, esi
jne 0x4083b6
mov edi, 0x427ce4
lea eax, [esp + 0x6e4]
mov dl, byte [eax]
mov bl, byte [edi]
mov cl, dl
cmp dl, bl
jne 0x4083a5
test cl, cl
je 0x4083a1
mov dl, byte [eax + 1]
mov bl, byte [edi + 1]
mov cl, dl
cmp dl, bl
jne 0x4083a5
add eax, 2
add edi, 2
test cl, cl
jne 0x40837d
xor eax, eax
jmp 0x4083aa
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, esi
jne 0x4083b6
mov dword [esp + 0x30], 1
mov al, byte [esp + 0xf00]
test al, al
mov ebx, dword [esp + 0xef4]
jne 0x40848b
mov esi, dword [esp + 0xefc]
test esi, esi
je 0x408406
or ecx, 0xffffffff
xor eax, eax
mov edi, esi
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408406
push esi
push ebx
lea eax, [ebp + 0x3c4]
push str._s__s
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea edx, [ebp + 0x4e4]
mov edi, esi
jmp 0x408444
push 0x40
push ebx
call dword [sym.imp.MSVCRT.dll_strchr]
add esp, 8
test eax, eax
je 0x40843c
or ecx, 0xffffffff
lea edi, [eax + 1]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edx, [ebp + 0x4e4]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edx, [ebp + 0x3c4]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0xef8]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
lea edx, [ebp + 0x4c4]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xb4]
push ebx
push ecx
lea eax, [ebp + 0x40]
push eax
push 0x427c88
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov bl, byte [esp + 0xf1c]
mov eax, dword [ebp + 0x2c]
add esp, 0x1c
test bl, bl
lea edx, [esp + 0x2e4]
lea ecx, [esp + 0x13]
mov dword [esp + 0x128], edx
mov dword [esp + 0x12c], 0x3c
mov dword [esp + 0x130], eax
mov byte [esp + 0x134], 0
mov dword [esp + 0x138], ecx
mov byte [esp + 0x13], 0
push 0x427c84
jne 0x4085af
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
push 0x427c78
lea ecx, [esp + 0x54]
mov byte [esp + 0xef0], 2
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x40]
push eax
mov byte [esp + 0xef8], 3
call sub.MFC42.DLL_operator_2
push esi
push eax
lea ecx, [esp + 0x24]
push ecx
mov byte [esp + 0xef8], 4
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x2e4]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xeec], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xeec], 2
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xeec], 1
lea ecx, [esp + 0x24]
jmp 0x40865b
lea ecx, [esp + 0x28]
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
push 0x427c6c
lea ecx, [esp + 0x54]
mov byte [esp + 0xef0], 5
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x40]
push edx
mov byte [esp + 0xef8], 6
call sub.MFC42.DLL_operator_2
push esi
push eax
lea eax, [esp + 0x24]
push eax
mov byte [esp + 0xef8], 7
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x2e4]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xeec], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x50]
mov byte [esp + 0xeec], 5
call sub.MFC42.DLL_CString::CString
mov byte [esp + 0xeec], 1
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x128]
push ecx
lea ecx, [esp + 0x58]
call fcn.00412200
mov eax, dword [esp + 0x30]
test eax, eax
mov byte [esp + 0xeec], 8
je 0x408685
test bl, bl
jne 0x408699
push 0
lea ecx, [esp + 0x58]
call fcn.00412420
lea ecx, [esp + 0x54]
call fcn.00412470
push 0x427c5c
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004033e0
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearArpEntry_void_]
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearArpProxy_void_]
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearDhcpEntry_void_]
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearDnsEntry_void_]
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearFirewallPolicy_void_]
push 0x427c34
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov edx, dword [0x42443c]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
xor eax, eax
mov ecx, 0xa
lea edi, [esp + 0x10c]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ax, word [0x424440]
add esp, 0x10
push 0x1020304
mov dword [esp + 0x100], edx
mov word [esp + 0x104], ax
call esi
push 0xffffffffffffffff
mov dword [esp + 0x106], eax
call esi
xor edi, edi
push edi
mov dword [esp + 0x10a], eax
mov dword [esp + 0x10e], edi
call esi
push edi
mov dword [esp + 0x112], eax
call esi
push edi
mov dword [esp + 0x116], eax
call esi
push edi
mov dword [esp + 0x11a], eax
call esi
push edi
mov dword [esp + 0x11e], eax
call esi
lea ecx, [esp + 0xfc]
push ecx
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0x122], eax
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::AddDhcpEntry_struct__RS_DHCP_ENTRY__]
mov ecx, ebp
call fcn.00405580
mov ecx, dword [ebp + 0x28]
lea edx, [esp + 0xb0]
push edx
mov dword [esp + 0xb4], edi
mov edi, dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::GetAdapterHandleByMacAddress_unsigned_char___void___]
push 0x42443c
call edi
test eax, eax
mov ebx, dword [sym.imp.MSVCRT.dll_time]
je 0x4087c9
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x40884f
push 0x427c24
lea ecx, [esp + 0x58]
call fcn.00412340
push str.isc_exec_devcon_enable_iscmini_n
call fcn.00406c50
add esp, 4
push 0x427be0
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
push 0
call ebx
add esp, 0x14
mov esi, eax
mov ecx, dword [ebp + 0x28]
lea eax, [esp + 0xb0]
push eax
push 0x42443c
call edi
test eax, eax
je 0x408822
mov eax, dword [esp + 0xb0]
test eax, eax
jne 0x408841
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call ebx
sub eax, esi
add esp, 4
cmp eax, 0x1e
jg 0x40af57
jmp 0x408801
push 0x427bcc
lea ecx, [esp + 0x58]
call fcn.00412340
push 0x427ba4
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
mov dword [esp + 0x24], 0
or edi, 0xffffffff
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [0x423670]
push ecx
xor ebx, ebx
push ebx
mov ecx, ebp
call fcn.00402ef0
mov edx, dword [ebp + 0x7bc]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
cmp dword [ebp + 0x280], ebx
je 0x4088b3
push 0xa
call esi
cmp dword [ebp + 0x280], ebx
jne 0x4088a7
mov ecx, dword [ebp + 0x2a8]
cmp ecx, ebx
je 0x4088c3
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov dword [ebp + 0x2a8], ebx
mov dword [ebp + 0x27c], ebx
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
push str.DHE_RSA_AES256_SHA:DHE_DSS_AES256_SHA:AES256_SHA:DHE_RSA_AES128_SHA:DHE_DSS_AES128_SHA:AES128_SHA:EXP1024_DHE_DSS_DES_CBC_SHA:EXP1024_DES_CBC_SHA:EXP1024_RC2_CBC_MD5:EXP1024_DHE_DSS_RC4_SHA:EXP1024_RC4_SHA:EXP1024_RC4_MD5:NULL_MD5:NULL_SHA:
call dword [edx + 0x40]
push 0x427b90
lea ecx, [esp + 0x58]
call fcn.00412340
push 0x427b50
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
cmp edi, 0xffffffff
jne 0x408982
mov ecx, dword [ebp + 0x2c]
lea eax, [esp + 0x54]
push eax
mov eax, dword [ebp + 0x3c]
push ecx
xor edx, edx
mov dx, word [ebp + 0x240]
push 0x3c
push str.HTTP_200_OK
push str.CONNECT_ISC_SERVER_HTTP_1.1__r_n_r_n
mov ecx, ebp
push edx
push eax
call fcn.004070b0
mov edi, eax
cmp edi, 0xffffffff
jne 0x408982
push 0x427b10
lea ecx, [esp + 0x58]
call fcn.00412340
mov al, byte [esp + 0x13]
test al, al
jne 0x408b38
push str._LogonUserToDomain__CONNECT_ISC_SERVER_HTTP_l
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427a8c
lea ecx, [esp + 0x58]
call fcn.00412340
push 0xbb8
call esi
jmp 0x408877
push 0x427a68
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427a58
lea ecx, [esp + 0x58]
call fcn.00412340
push ecx
mov eax, esp
mov dword [eax], 0
mov cx, word [ebp + 0x240]
mov edx, dword [ebp + 0x3c]
mov dword [esp + 0x30], esp
lea eax, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edx
push edi
push eax
call dword [sym.imp.sslsm.dll_public:_class_SharedObjectPtr_class_SharedObject____thiscall_RSSslStateMachine::AttachSocket_unsigned_int__unsigned_long_int__short_int__class_SharedObjectPtr_class_SharedObject__]
mov esi, dword [eax]
test esi, esi
mov byte [esp + 0xeec], 9
je 0x4089e5
mov ecx, esi
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::AddRef_void_]
mov ecx, dword [ebp + 0x2a8]
test ecx, ecx
je 0x4089f5
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [ebp + 0x2a8], esi
mov byte [esp + 0xeec], 8
je 0x408a11
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov eax, dword [ebp + 0x2a8]
test eax, eax
jne 0x408a74
push 0x427a48
lea ecx, [esp + 0x58]
call fcn.00412340
mov al, byte [esp + 0x13]
test al, al
jne 0x408b91
push str._LogonUserToDomain__SSL
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427a8c
lea ecx, [esp + 0x58]
call fcn.00412340
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
push 0xbb8
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408871
push 0x4279ec
lea ecx, [esp + 0x58]
call fcn.00412340
push 0x4279c8
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x7bc]
mov edx, dword [ebp + 0x2c]
add esp, 0x10
push 0xea60
push 0
lea eax, [esp + 0xf4]
push eax
push 2
mov dword [esp + 0xfc], ecx
mov dword [esp + 0x100], edx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x408bf1
push str._LogonUserToDomain__60
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427980
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
lea ecx, [esp + 0x13]
push ecx
mov ecx, ebp
call fcn.00407020
mov edx, dword [ebp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esp + 0x24]
cmp eax, 2
jg 0x408be4
mov ecx, eax
inc ecx
push 0xbb8
mov dword [esp + 0x28], ecx
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x408871
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0x54]
call fcn.00412490
mov eax, dword [0x423688]
push eax
push 6
mov ecx, ebp
call fcn.00402ef0
push 0x42793c
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
lea ecx, [esp + 0x54]
mov byte [esp + 0xeec], 1
call fcn.004122d0
mov eax, dword [esp + 0x18]
cmp eax, ebx
jmp 0x40af53
mov ecx, dword [0x423688]
push ecx
push 6
push 0x427904
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0x54]
call fcn.00412490
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov edx, dword [0x423688]
push edx
push 6
mov ecx, ebp
call fcn.00402ef0
jmp 0x40af3c
mov eax, dword [0x4236b0]
push eax
push 0x10
jmp 0x40af2c
test eax, eax
jne 0x408c97
push 0x4278f4
lea ecx, [esp + 0x58]
call fcn.00412340
push 0x4278d4
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
lea ebx, [ebp + 0x78c]
push ebx
lea eax, [ebp + 0x4c4]
push eax
lea ecx, [ebp + 0x3c4]
push ecx
lea ecx, [esp + 0x60]
push ecx
push 0
mov dword [esp + 0x68], 0
call dword [sym.imp.ssrapi.dll_ssr_ConstructCltLogonSvrRequest2]
movsx edx, word [esp + 0x68]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 0x28
test esi, esi
jne 0x408d5b
push str._LogonUserToDomain__
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427890
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov eax, dword [0x423720]
push eax
push 0x2c
jmp 0x40af2c
cmp eax, 1
jne 0x408d0b
push 0x42786c
push 5
push eax
call fcn.004195d0
push eax
call fcn.00419410
mov al, byte [esp + 0x23]
add esp, 0x10
test al, al
je 0x408cc8
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
lea ecx, [esp + 0x54]
mov dword [ebp + 0x27c], 0
call fcn.00412490
mov ecx, dword [ebp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, byte [esp + 0x13]
test al, al
je 0x40af3c
push 0x427970
push 6
mov ecx, ebp
call fcn.00402ef0
jmp 0x40af3c
push 0x427848
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push str.
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
lea edx, [esp + 0x13]
push edx
mov ecx, ebp
call fcn.00407020
lea ecx, [esp + 0x54]
call fcn.00412490
mov eax, dword [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
jmp 0x40af3c
movsx ecx, word [esp + 0x44]
mov edx, ecx
xor eax, eax
shr ecx, 2
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
push ebx
lea eax, [ebp + 0x4c4]
push eax
lea eax, [ebp + 0x3c4]
push eax
lea eax, [esp + 0x50]
push eax
push esi
call dword [sym.imp.ssrapi.dll_ssr_ConstructCltLogonSvrRequest2]
movsx ecx, word [esp + 0x58]
add esp, 0x14
push ecx
push esi
mov ecx, ebp
call fcn.00404080
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push str._LogonUserToDomain__Wait_for_Logon_response
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0xea60
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.004052b0
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x48]
push ecx
push edx
mov esi, eax
push esi
push str._LogonUserToDomain__PeekSslData:_Status__d__pSslData_0x_p__DataSize__d
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x1c
cmp esi, 1
je 0x408e58
cmp esi, 2
je 0x408e92
cmp esi, 3
je 0x408ed9
cmp esi, 4
je 0x40a3b1
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov dword [ebp + 0x7b8], eax
lea eax, [esp + 0x44]
push eax
push ecx
push ebx
call dword [sym.imp.ssrapi.dll_ssr_ExtractPacketHeader]
mov edi, eax
add esp, 0x10
cmp edi, 0xfffffff8
je 0x408dbf
cmp edi, 0xfffffff7
jne 0x408f21
jmp 0x408dbf
push str._LogonUserToDomain__SSL_Receive_Timeout
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427784
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov edx, dword [0x4236fc]
push edx
push 0x23
jmp 0x40af2c
push str._LogonUserToDomain__SSL_Receive_Server_disconnect
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x423828
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x5f0]
test eax, eax
jne 0x40a3c8
mov eax, dword [0x42373c]
push eax
push 0x33
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a3c8
push str._LogonUserToDomain__SSL_Receive_Failure
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427714
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x5f0]
test eax, eax
jne 0x40a3c8
mov ecx, dword [0x423700]
push ecx
push 0x24
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a3c8
xor esi, esi
cmp edi, esi
je 0x408fd2
mov si, word [ebx]
xor edx, edx
mov dx, word [ebx + 2]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov eax, esi
mov ecx, esi
shr eax, 8
push eax
shr ecx, 4
and ecx, 0xf
push ecx
and esi, 0xf
push esi
push edi
push str._LogonUserToDomain__SSR_Extract_Packet_Header_Error___dHdr_version_is__d__type_is__d__code_is__d__payload_size_is__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x24
push str.SSR
lea ecx, [esp + 0x58]
call fcn.00412340
mov edx, dword [str.SSR]
push edx
push 0x29
mov ecx, ebp
call fcn.00402ef0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push str.Invalid_SSR_Packet
call dword [sym.imp.util.dll_void___cdecl_DumpData_char___char___unsigned_int_]
add esp, 0xc
mov ecx, ebp
call fcn.004039d0
lea ecx, [esp + 0x54]
call fcn.00412490
lea ecx, [esp + 0x54]
mov byte [esp + 0xeec], 1
call fcn.004122d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40afbd
mov edx, eax
push edx
jmp 0x40afb7
mov eax, dword [esp + 0x40]
mov cl, al
and cl, 0xf0
cmp cl, 0x10
je 0x40905f
xor edx, edx
mov dx, word [ebx + 2]
xor esi, esi
mov si, word [ebx]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov eax, esi
mov ecx, esi
shr eax, 8
push eax
shr ecx, 4
and ecx, 0xf
push ecx
and esi, 0xf
push esi
push str._LogonUserToDomain__SSL_Extract_Packet_Error__not_SSR_TYPE_MNG._Hdr_version_is__d__type_is__d__code_is__d__payload_size_is__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x20
push str.SSR
lea ecx, [esp + 0x58]
call fcn.00412340
mov edx, dword [str.SSR]
push edx
push 0x29
mov ecx, ebp
call fcn.00402ef0
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
push eax
push ecx
push str.Invalid_SSR_Packet
call dword [sym.imp.util.dll_void___cdecl_DumpData_char___char___unsigned_int_]
add esp, 0xc
mov ecx, ebp
call fcn.004039d0
jmp 0x40af33
mov ecx, eax
and ecx, 0xff00
cmp cx, 0x1500
jne 0x409606
push str._LogonUserToDomain__SSR_CODE_MNG_SVR_CLT_LOGON_ACK
push 1
push 1
mov dword [esp + 0x5c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0xb8], esi
mov dword [esp + 0x30], esi
mov byte [esp + 0x36], 0
mov byte [esp + 0x2f], 0
call fcn.004195d0
push eax
call fcn.00419410
mov edx, dword [esp + 0x5c]
lea ebx, [esp + 0x33]
push ebx
lea ebx, [esp + 0x38]
push ebx
lea ebx, [esp + 0xc4]
push ebx
lea ebx, [esp + 0x46]
push ebx
lea ebx, [esp + 0x70]
push ebx
lea ebx, [esp + 0x58]
push ebx
lea ebx, [ebp + 0x278]
push ebx
lea ebx, [ebp + 0x274]
push ebx
lea ebx, [ebp + 0x270]
push ebx
lea edi, [ebp + 0x26c]
push edi
lea eax, [ebp + 0x260]
push eax
lea ecx, [ebp + 0x25c]
push ecx
lea eax, [esp + 0x12c]
push eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x60], edx
lea ecx, [esp + 0x70]
push ecx
lea edx, [ebp + 0x2ac]
push edx
lea edx, [esp + 0x68]
push edx
push eax
call dword [sym.imp.ssrapi.dll_ssr_ExtractSvrCltLogonAck]
add esp, 0x54
test eax, eax
je 0x409189
push str._LogonUserToDomain__SSR_CODE_MNG_SVR_CLT_LOGON_ACK_Extract_MNG_ACK_Error.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x4238cc
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov ecx, dword [0x423718]
push ecx
push 0x2a
mov ecx, ebp
call fcn.00402ef0
lea ecx, [esp + 0x54]
call fcn.00412490
lea ecx, [esp + 0x54]
mov byte [esp + 0xeec], 1
call fcn.004122d0
mov eax, dword [esp + 0x18]
cmp eax, esi
jmp 0x40af53
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0xac]
mov ecx, dword [edi]
push edx
push eax
push ecx
push str._LogonUserToDomain_DNS
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov bl, byte [esp + 0x3f]
mov eax, dword [esp + 0x50]
add esp, 0x1c
test bl, bl
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
setne dl
mov byte [ebp + 0x30], dl
mov ecx, dword [eax]
push ecx
call ebx
mov esi, eax
test esi, esi
mov dword [esp + 0x38], esi
je 0x409274
lea edx, [esi + esi*2]
lea eax, [edx*4 + 4]
push eax
call sub.MFC42.DLL_operatornew
add esp, 4
xor edi, edi
test esi, esi
mov dword [ebp + 0x2b0], eax
mov dword [eax], esi
jbe 0x409274
xor esi, esi
mov ecx, dword [esp + 0x34]
mov edx, dword [esi + ecx + 4]
push edx
call ebx
mov ecx, dword [ebp + 0x2b0]
mov dword [esi + ecx + 4], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esi + edx + 8]
push eax
call ebx
mov ecx, dword [ebp + 0x2b0]
mov dword [esi + ecx + 8], eax
mov edx, dword [esp + 0x34]
mov eax, dword [esi + edx + 0xc]
push eax
call ebx
mov ecx, dword [ebp + 0x2b0]
mov dword [esi + ecx + 0xc], eax
mov eax, dword [ebp + 0x2b0]
mov edx, dword [eax + esi + 0xc]
mov ecx, dword [eax + esi + 8]
push edx
mov edx, dword [eax + esi + 4]
push ecx
push edx
push edi
push 0x42750c
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov eax, dword [esp + 0x58]
add esp, 0x20
inc edi
add esi, 0xc
cmp edi, eax
jb 0x4091fc
mov eax, dword [esp + 0x50]
xor esi, esi
xor ecx, ecx
mov dword [ebp + 0x2bc], esi
mov cx, word [eax]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
cmp ax, si
mov word [ebp + 0x2b4], ax
mov dword [ebp + 0x2b8], esi
je 0x4095cd
mov esi, eax
and esi, 0xffff
lea edx, [esi + esi*2]
shl edx, 2
push edx
call sub.MFC42.DLL_operatornew
mov dword [ebp + 0x2b8], eax
mov eax, dword [esp + 0x54]
add esp, 4
test esi, esi
lea ebx, [eax + 2]
jle 0x409375
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], esi
mov ecx, dword [ebx]
push ecx
call dword [sym.imp.WS2_32.dll_ntohl]
mov edx, dword [ebp + 0x2b8]
mov esi, dword [esp + 0x30]
mov edi, dword [sym.imp.WS2_32.dll_ntohs]
mov dword [esi + edx], eax
xor eax, eax
mov ax, word [ebx + 4]
push eax
call edi
mov ecx, dword [ebp + 0x2b8]
xor edx, edx
mov word [esi + ecx + 4], ax
mov dx, word [ebx + 4]
push edx
call edi
and eax, 0xffff
push eax
call sub.MFC42.DLL_operatornew
mov ecx, dword [ebp + 0x2b8]
mov dword [esi + ecx + 8], eax
mov edx, dword [ebp + 0x2b8]
mov edi, dword [esi + edx + 8]
xor ecx, ecx
mov cx, word [esi + edx + 4]
lea eax, [esi + edx]
lea esi, [ebx + 6]
add esp, 4
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor ecx, ecx
mov cx, word [ebx + 4]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
add dword [esp + 0x30], 0xc
and eax, 0xffff
lea ebx, [ebx + eax + 6]
dec dword [esp + 0x38]
jne 0x4092da
mov eax, dword [esp + 0xac]
test eax, eax
mov dl, byte [esp + 0x2a]
mov byte [ebp + 0x5e4], dl
je 0x4093db
mov eax, dword [ebp + 0x2a0]
push eax
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0xb0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0xb4]
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
mov dword [ebp + 0x2a0], edx
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40942e
mov eax, dword [ebp + 0x2a4]
push eax
call sub.MFC42.DLL_operatordelete
mov edi, dword [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42.DLL_operatornew
mov edi, dword [esp + 0x2c]
or ecx, 0xffffffff
mov edx, eax
xor eax, eax
mov dword [ebp + 0x2a4], edx
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov dword [ebp + 0x27c], 5
mov ecx, dword [0x423670]
push ecx
push 0
mov ecx, ebp
call fcn.00402ef0
movsx edx, word [esp + 0x1c]
push edx
mov ecx, ebp
call fcn.00405360
mov ecx, ebp
call fcn.004039d0
push str._LogonUserToDomain__Logon_Server_Success__Check_Policy.
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
mov ecx, ebp
call fcn.004039d0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
call fcn.00407020
mov ecx, dword [ebp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
push 0x4274c0
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x2a4]
test eax, eax
je 0x409853
push str.policy_hostcheck_off
push eax
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
jne 0x409853
xor esi, esi
mov dword [esp + 0x2c], esi
mov byte [esp + 0xae4], 0
mov ecx, 0xff
lea edi, [esp + 0xae5]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x1c]
push edx
push 0xf003f
stosb byte es:[edi], al
xor edi, edi
push edi
push str.SoftwareNetentSecISCClient
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [esp + 0xf00], 0xa
mov dword [esp + 0x4c], 0x400
mov dword [esp + 0x30], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, edi
jne 0x409562
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0xae8]
push ecx
lea edx, [esp + 0x48]
push edx
push edi
push str.HostCheckUrl
push esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x58], edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, edi
jne 0x40954c
cmp dword [esp + 0x38], edi
jne 0x409562
lea eax, [esp + 0xae4]
push str._nac_hostcheck.php
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 8
lea ecx, [esp + 0x24]
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0xae4]
push str.disabled
mov bl, 0xb
push ecx
mov byte [esp + 0xef4], bl
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
je 0x40982f
mov eax, dword [ebp + 0x240]
cmp eax, 0x1bb
jne 0x40969d
lea eax, [ebp + 0x3c4]
push eax
lea edx, [esp + 0xae8]
push edx
lea eax, [ebp + 0x40]
push eax
lea eax, [esp + 0x30]
push str.https:___s_s_username_s
push eax
call sub.MFC42.DLL_CString::Format
add esp, 0x14
jmp 0x4096c3
push str._LogonUserToDomain__No_Valid_Gateway
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427424
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov eax, dword [0x4236ac]
push eax
push 0xf
jmp 0x40915d
cmp cx, 0x1600
jne 0x40a6e6
mov ecx, dword [esp + 0x4c]
push str._LogonUserToDomain__SSR_CODE_MNG_SVR_CLT_LOGON_NAK
push 1
push 1
mov dword [esp + 0x38], ecx
call fcn.004195d0
push eax
call fcn.00419410
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x44]
push ecx
push edx
call dword [sym.imp.ssrapi.dll_ssr_ExtractCltSvrLogonNak]
add esp, 0x20
test eax, eax
je 0x409658
push str._LogonUserToDomain__SSR_CODE_MNG_SVR_CLT_LOGON_NAK_Extract_Error.
jmp 0x40a66f
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [ebp + 0x3c4]
push eax
push str._LogonUserToDomain__SvrLogonNak__UserId___s__Error___d__ErrorMsg___s
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
add esp, 0x1c
push eax
push ecx
mov ecx, ebp
call fcn.00402ef0
mov ecx, ebp
call fcn.004039d0
jmp 0x409164
lea ecx, [ebp + 0x3c4]
push ecx
lea ecx, [esp + 0xae8]
push ecx
push eax
lea eax, [ebp + 0x40]
push eax
lea edx, [esp + 0x34]
push str.https:___s:_d_s_username_s
push edx
call sub.MFC42.DLL_CString::Format
add esp, 0x18
push ecx
lea eax, [esp + 0x28]
mov ecx, esp
mov dword [esp + 0xf0], esp
push eax
call sub.MFC42.DLL_CString::CString_2
push 0
lea ecx, [esp + 0x184]
call fcn.00413180
lea ecx, [esp + 0x17c]
mov byte [esp + 0xeec], 0xc
call sub.MFC42.DLL_CDialog::DoModal
lea ecx, [esp + 0x17c]
call fcn.004135f0
test eax, eax
jne 0x4097cc
lea ecx, [esp + 0x54]
call fcn.00412490
mov ecx, dword [0x423740]
push ecx
push 0x34
mov ecx, ebp
call fcn.00402ef0
lea ecx, [esp + 0x260]
mov byte [esp + 0xeec], 0x10
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x25c]
mov byte [esp + 0xeec], 0xf
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x21c]
mov byte [esp + 0xeec], 0xe
call sub.MFC42.DLL_CWnd::CWnd
lea ecx, [esp + 0x1dc]
mov byte [esp + 0xeec], 0xd
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x17c]
mov byte [esp + 0xeec], bl
call fcn.004197ac
lea ecx, [esp + 0x24]
mov byte [esp + 0xeec], 0xa
call sub.MFC42.DLL_CString::CString
test esi, esi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x4097a7
push esi
call edi
lea ecx, [esp + 0x54]
mov byte [esp + 0xeec], 1
call fcn.004122d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40afbd
push eax
call edi
jmp 0x40afbd
lea ecx, [esp + 0x260]
mov byte [esp + 0xeec], 0x14
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x25c]
mov byte [esp + 0xeec], 0x13
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x21c]
mov byte [esp + 0xeec], 0x12
call sub.MFC42.DLL_CWnd::CWnd
lea ecx, [esp + 0x1dc]
mov byte [esp + 0xeec], 0x11
call sub.MFC42.DLL_CStatic::CStatic
lea ecx, [esp + 0x17c]
mov byte [esp + 0xeec], bl
call fcn.004197ac
lea ecx, [esp + 0x24]
mov byte [esp + 0xeec], 0xa
call sub.MFC42.DLL_CString::CString
test esi, esi
mov byte [esp + 0xeec], 8
je 0x409853
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp + 0x30]
test al, al
je 0x4098e2
mov al, byte [esp + 0xf00]
test al, al
jne 0x4098e2
push 1
lea ecx, [esp + 0x58]
call fcn.004123a0
lea edx, [ebp + 0x928]
push edx
lea eax, [ebp + 0x924]
push eax
lea ecx, [ebp + 0x920]
push ecx
lea edx, [ebp + 0x91c]
push edx
lea eax, [ebp + 0x918]
push eax
lea ecx, [ebp + 0x914]
push ecx
mov ecx, dword [ebp + 0x1c]
call dword [sym.imp.sslsm.dll_public:_int___thiscall_RSSslStateMachine::ChooseCertificate_char____char____char____char____char____char___]
test eax, eax
jne 0x4098d7
push 0x4237f8
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0x54]
call fcn.00412490
mov edx, dword [0x423744]
push edx
push 0x35
mov ecx, ebp
call fcn.00402ef0
jmp 0x40af3c
push 0
lea ecx, [esp + 0x58]
call fcn.004123a0
push 0x427340
lea ecx, [esp + 0x3c]
mov byte [ebp + 0x5fc], 0
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
push 0x427c78
lea ecx, [esp + 0x20]
mov byte [esp + 0xef0], 0x15
call sub.MFC42.DLL_CString::CString_3
lea ecx, [esp + 0x14]
push ecx
push eax
lea edx, [esp + 0x48]
mov bl, 0x16
push edx
mov byte [esp + 0xef8], bl
call sub.MFC42.DLL_operator_2
push esi
push eax
lea eax, [esp + 0x34]
push eax
mov byte [esp + 0xef8], 0x17
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x2e4]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xeec], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xeec], 0x15
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xeec], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2e4]
push ecx
lea ecx, [esp + 0x58]
call fcn.00412340
mov edx, dword [ebp + 0x934]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, byte [esp + 0x13]
xor esi, esi
test al, al
jne 0x409f0b
push 0x427324
lea ecx, [esp + 0x58]
call fcn.00412340
cmp dword [ebp + 0x280], esi
je 0x4099f1
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [ebp + 0x280], esi
jne 0x4099e1
mov ecx, dword [ebp + 0x2a8]
cmp ecx, esi
je 0x409a01
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
lea ecx, [esp + 0x34]
mov dword [ebp + 0x2a8], esi
call sub.MFC42.DLL_CString::CString_1
push str._LogonUserToDomain__Start_Logon_Gateway.
push 4
push 1
mov byte [esp + 0xef8], 0x18
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x4272e4
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [ebp + 0x2bc]
xor ecx, ecx
mov cx, word [ebp + 0x2b4]
mov dword [ebp + 0x5f0], esi
mov dword [ebp + 0x5f4], esi
mov dword [ebp + 0x5f8], esi
cmp eax, ecx
jge 0x409a7e
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x2b8]
mov ecx, dword [eax + edx*4]
mov dword [esp + 0x30], ecx
jmp 0x409a90
mov edx, dword [ebp + 0x2b8]
mov dword [ebp + 0x2bc], esi
mov eax, dword [edx]
mov dword [esp + 0x30], eax
push 0
push 0
lea ecx, [esp + 0xc0]
call dword [sym.imp.TLV.dll_public:_void___thiscall_TlvParser::constructor_char___unsigned_short_int_]
mov ecx, dword [ebp + 0x2bc]
mov dword [ebp + 0x2c0], ecx
xor eax, eax
lea ebx, [ebp + 0x2c4]
mov ecx, 0x40
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x2c0]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x2b8]
mov cx, word [eax + edx*4 + 4]
mov esi, dword [eax + edx*4 + 8]
lea eax, [eax + edx*4]
mov byte [esp + 0xeec], 0x19
push ecx
push esi
call dword [sym.imp.TLV.dll_tlv_Check]
add esp, 8
test eax, eax
jne 0x409b7e
mov edi, dword [sym.imp.TLV.dll_tlv_GetType]
lea ecx, [esp + 0x2a]
push ecx
push esi
call edi
add esp, 8
cmp word [esp + 0x2a], 1
jne 0x409b7e
push esi
lea ecx, [esp + 0xbc]
call dword [sym.imp.TLV.dll_public:_int___thiscall_TlvParser::Parse_struct__TLV__]
test eax, eax
je 0x409b7e
lea ecx, [esp + 0xb8]
call dword [sym.imp.TLV.dll_public:_struct__TLV____thiscall_TlvParser::FirstTlv_void_]
mov esi, eax
test esi, esi
je 0x409b7e
lea edx, [esp + 0x2a]
push edx
push esi
call edi
add esp, 8
cmp word [esp + 0x2a], 2
jne 0x409b7e
lea eax, [esp + 0x40]
push eax
push esi
call dword [sym.imp.TLV.dll_tlv_GetData]
lea ecx, [esp + 0x34]
push ecx
push esi
call dword [sym.imp.TLV.dll_tlv_GetLength]
mov ecx, dword [esp + 0x3c]
mov esi, dword [esp + 0x50]
and ecx, 0xffff
mov edx, ecx
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 0x10
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [ebp + 0x2bc]
mov eax, dword [esp + 0x30]
inc ecx
test eax, eax
mov dword [ebp + 0x2bc], ecx
je 0x409bce
push eax
call dword [sym.imp.WS2_32.dll_htonl]
push eax
lea ebx, [ebp + 0x140]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push str._LogonUserToDomain__connect_to_gateway_mapped_address__s
jmp 0x409bfa
or ecx, 0xffffffff
xor eax, eax
lea edi, [ebp + 0x40]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
lea ebx, [ebp + 0x140]
mov esi, edi
shr ecx, 2
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
push str._LogonUserToDomain__gateway_mapped_address_is_0.0.0.0__connect_to_server__s
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov al, byte [ebp + 0x5e4]
add esp, 0x14
cmp al, 3
jne 0x409c3c
push str._LogonUserToDomain___RS_SSL_DEFAULT_CIPHERS
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
add esp, 0x10
push str.DHE_RSA_AES256_SHA:DHE_DSS_AES256_SHA:AES256_SHA:DHE_RSA_AES128_SHA:DHE_DSS_AES128_SHA:AES128_SHA:EXP1024_DHE_DSS_DES_CBC_SHA:EXP1024_DES_CBC_SHA:EXP1024_RC2_CBC_MD5:EXP1024_DHE_DSS_RC4_SHA:EXP1024_RC4_SHA:EXP1024_RC4_MD5:NULL_MD5:NULL_SHA:
jmp 0x409cd8
cmp al, 2
jne 0x409c66
push str._LogonUserToDomain___RS_SSL_INTM_CIPHERS
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
add esp, 0x10
push str.DHE_RSA_AES128_SHA:DHE_DSS_AES128_SHA:AES128_SHA:EXP1024_DHE_DSS_DES_CBC_SHA:EXP1024_DES_CBC_SHA:EXP1024_RC2_CBC_MD5:EXP1024_DHE_DSS_RC4_SHA:EXP1024_RC4_SHA:EXP1024_RC4_MD5:
call dword [eax + 0x40]
jmp 0x409cdb
cmp al, 1
jne 0x409c8d
push str._LogonUserToDomain___RS_SSL_FAST_CIPHERS
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
add esp, 0x10
push str.EXP1024_RC4_SHA:EXP1024_RC4_MD5:EXP1024_DHE_DSS_DES_CBC_SHA:EXP1024_DES_CBC_SHA:EXP1024_RC2_CBC_MD5:EXP1024_DHE_DSS_RC4_SHA:
jmp 0x409cd8
test al, al
jne 0x409cb7
push str._LogonUserToDomain___RS_SSL_NULL_CIPHER
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
add esp, 0x10
push str.NULL_MD5:NULL_SHA:
call dword [eax + 0x40]
jmp 0x409cdb
push str._LogonUserToDomain___RS_SSL_INTM_CIPHERS
push 1
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x20]
mov edx, dword [ecx]
add esp, 0x10
push str.DHE_RSA_AES128_SHA:DHE_DSS_AES128_SHA:AES128_SHA:EXP1024_DHE_DSS_DES_CBC_SHA:EXP1024_DES_CBC_SHA:EXP1024_RC2_CBC_MD5:EXP1024_DHE_DSS_RC4_SHA:EXP1024_RC4_SHA:EXP1024_RC4_MD5:
call dword [edx + 0x40]
mov ecx, ebp
call fcn.00405580
push ebx
mov ecx, ebp
call fcn.004059a0
mov ecx, dword [ebp + 0x1c]
mov edi, eax
mov eax, dword [ebp + 0x2c]
push eax
mov byte [ebp + 0x290], 1
call dword [sym.imp.sslsm.dll_public:_void___thiscall_RSSslStateMachine::SetCancelEvent_void__]
lea ecx, [esp + 0x54]
push ecx
mov dword [ebp + 0x930], 1
mov edx, dword [ebp + 0x2c]
push edx
xor eax, eax
mov ax, word [ebp + 0x240]
push 0x3c
push str.HTTP_200_OK
push str.CONNECT_ISC_GATEWAY_HTTP_1.1__r_n_r_n
mov ecx, ebp
push eax
push edi
call fcn.004070b0
mov esi, eax
cmp esi, 0xffffffff
jne 0x409dc0
push 0x427030
lea ecx, [esp + 0x58]
call fcn.00412340
mov al, byte [esp + 0x13]
test al, al
jne 0x409f59
mov al, byte [esp + 0xf00]
test al, al
jne 0x409f9b
push str._LogonUserToDomain__Failed_to_connect_Gateway__Handshake_Error.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x426fc8
lea ecx, [esp + 0x58]
call fcn.00412340
push 0xbb8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xb8]
mov byte [esp + 0xeec], 0x18
call dword [sym.imp.TLV.dll_public_virtual:_void___thiscall_TlvParser::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xeec], 8
call sub.MFC42.DLL_CString::CString
jmp 0x4099bd
push ecx
mov eax, esp
mov dword [eax], 0
mov cx, word [ebp + 0x240]
mov dword [esp + 0xf0], esp
lea edx, [esp + 0x20]
push ecx
mov ecx, dword [ebp + 0x1c]
push edi
push esi
push edx
call dword [sym.imp.sslsm.dll_public:_class_SharedObjectPtr_class_SharedObject____thiscall_RSSslStateMachine::AttachSocket_unsigned_int__unsigned_long_int__short_int__class_SharedObjectPtr_class_SharedObject__]
mov edi, dword [eax]
test edi, edi
mov byte [esp + 0xeec], 0x1a
je 0x409dfe
mov ecx, edi
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::AddRef_void_]
mov ecx, dword [ebp + 0x2a8]
test ecx, ecx
je 0x409e0e
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
mov dword [ebp + 0x2a8], edi
mov byte [esp + 0xeec], 0x19
je 0x409e2a
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_SharedObject::Release_void_]
mov eax, dword [ebp + 0x2a8]
test eax, eax
jne 0x409e8e
push 0x427030
lea ecx, [esp + 0x58]
call fcn.00412340
mov al, byte [esp + 0x13]
test al, al
jne 0x409fe7
mov al, byte [esp + 0xf00]
test al, al
jne 0x40a031
push str._LogonUserToDomain__Failed_to_connect_Gateway__Attach_Error.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x426fc8
lea ecx, [esp + 0x58]
call fcn.00412340
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x409d8a
push 0x426f70
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x7bc]
mov ecx, dword [ebp + 0x2c]
push 0xea60
push 0
lea edx, [esp + 0x40]
push edx
push 2
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
cmp eax, 0x102
jne 0x40a05b
push 0x426f58
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x409d95
mov eax, dword [ebp + 0x2a8]
test eax, eax
je 0x409d95
mov ecx, ebp
call fcn.004039d0
push 0x1388
mov ecx, ebp
call fcn.00407060
jmp 0x409d95
push str._LogonUserToDomain__Logon_Gateway_User_Cancel
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
lea ecx, [esp + 0x54]
mov dword [ebp + 0x27c], esi
call fcn.00412490
push 0x427970
push 6
mov ecx, ebp
call fcn.00402ef0
jmp 0x40916d
push str._LogonUserToDomain__Logon_Gateway_User_Cancel
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0x54]
call fcn.00412490
mov eax, dword [0x423688]
push eax
push 6
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a1ef
push str._LogonUserToDomain__relogon_is_true__return_RS_ERROR_NEED_RELOGON
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x426ec8
lea ecx, [esp + 0x58]
call fcn.00412340
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x42389c
push 0x2d
mov ecx, ebp
call fcn.00402ef0
lea ecx, [esp + 0x54]
call fcn.00412490
jmp 0x40a1ef
push str._LogonUserToDomain__Logon_Gateway_User_Cancel
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0x54]
call fcn.00412490
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [0x423688]
push ecx
push 6
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a1ef
push str._LogonUserToDomain__relogon_is_true__return_RS_ERROR_NEED_RELOGON
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x42389c
lea ecx, [esp + 0x58]
call fcn.00412340
jmp 0x409fcb
test eax, eax
jne 0x40a154
push 0x426eb4
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0xb8]
mov byte [esp + 0xeec], 0x18
call dword [sym.imp.TLV.dll_public_virtual:_void___thiscall_TlvParser::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xeec], 8
call sub.MFC42.DLL_CString::CString
push str._LogonUserToDomain__Connect_Gateway_Success.
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov eax, dword [ebp + 0x2bc]
mov ecx, dword [ebp + 0x2b8]
mov ebx, dword [sym.imp.ssrapi.dll_ssr_ConstructCltRegRequest]
lea eax, [eax + eax*2]
lea eax, [ecx + eax*4]
mov ecx, dword [ebp + 0x25c]
mov dword [esp + 0x54], 0
mov edx, dword [eax - 4]
mov ax, word [eax - 8]
push edx
xor edx, edx
mov dl, byte [ebp + 0x5e4]
lea edi, [ebp + 0x3c4]
push eax
mov eax, dword [ebp + 0x2ac]
push ecx
push edx
push edi
push eax
lea ecx, [esp + 0x6c]
push ecx
push 0
call ebx
movsx edx, word [esp + 0x74]
push edx
call dword [sym.imp.MSVCRT.dll_malloc]
mov esi, eax
add esp, 0x34
test esi, esi
jne 0x40a21a
movsx eax, word [esp + 0x44]
push eax
push str._LogonUserToDomain__Allocate__d_bytes_for_CltRegRequest_fail
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x14
push 0x426e2c
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov ecx, dword [0x423720]
push ecx
push 0x2c
jmp 0x40af2c
cmp eax, 1
jne 0x40a1ab
mov al, byte [esp + 0x13]
test al, al
je 0x40a16f
push 0x427970
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
lea ecx, [esp + 0x54]
mov dword [ebp + 0x27c], 0
call fcn.00412490
mov edx, dword [ebp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov al, byte [esp + 0x13]
test al, al
je 0x40a1ef
push 0x427970
push 6
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a1ef
push 0x426e18
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
lea eax, [esp + 0x13]
push eax
mov ecx, ebp
call fcn.00407020
mov ecx, dword [0x4236bc]
push ecx
push 0x13
mov ecx, ebp
call fcn.00402ef0
lea ecx, [esp + 0x54]
call fcn.00412490
mov edx, dword [ebp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea ecx, [esp + 0xb8]
mov byte [esp + 0xeec], 0x18
call dword [sym.imp.TLV.dll_public_virtual:_void___thiscall_TlvParser::destructor_void_]
lea ecx, [esp + 0x34]
mov byte [esp + 0xeec], 8
call sub.MFC42.DLL_CString::CString
jmp 0x40af3c
mov eax, dword [ebp + 0x2bc]
lea edx, [eax + eax*2]
mov eax, dword [ebp + 0x2b8]
mov ecx, dword [eax + edx*4 - 4]
lea eax, [eax + edx*4]
push ecx
xor edx, edx
mov dx, word [eax - 8]
mov eax, dword [ebp + 0x25c]
xor ecx, ecx
mov cl, byte [ebp + 0x5e4]
push edx
mov edx, dword [ebp + 0x2ac]
push eax
push ecx
push edi
push edx
lea eax, [esp + 0x5c]
push eax
push esi
call ebx
movsx ecx, word [esp + 0x64]
add esp, 0x20
push ecx
push esi
mov ecx, ebp
call fcn.00404080
push esi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push str._LogonUserToDomain__Wait_for_Gateway_Logon_response
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov esi, dword [sym.imp.ssrapi.dll_ssr_ExtractPacketHeader]
add esp, 0x10
push 0xea60
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x50]
push eax
mov ecx, ebp
call fcn.004052b0
cmp eax, 1
je 0x40a2f6
cmp eax, 2
je 0x40a32f
cmp eax, 3
je 0x40a370
cmp eax, 4
je 0x40a3b1
push 0
call dword [sym.imp.MSVCRT.dll_time]
mov edx, dword [esp + 0x50]
mov edi, dword [esp + 0x4c]
lea ecx, [esp + 0x30]
push ecx
push edx
push edi
mov dword [ebp + 0x7b8], eax
call esi
mov ebx, eax
add esp, 0x10
cmp ebx, 0xfffffff8
je 0x40a290
cmp ebx, 0xfffffff7
jne 0x40a3dd
jmp 0x40a290
push str._LogonUserToDomain__SSL_Receive_Timeout
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x4261c4
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov eax, dword [0x4236fc]
push eax
push 0x23
jmp 0x40af2c
push str._LogonUserToDomain__SSL_Receive_Server_disconnect
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x423ac0
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x5f0]
test eax, eax
jne 0x40a3c8
mov ecx, dword [0x42373c]
push ecx
push 0x33
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a3c8
push str._LogonUserToDomain__SSL_Receive_Failure
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x426dd0
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [ebp + 0x5f0]
test eax, eax
jne 0x40a3c8
mov edx, dword [0x423700]
push edx
push 0x24
mov ecx, ebp
call fcn.00402ef0
jmp 0x40a3c8
push str._LogonUserToDomain__SSL_Receive_User_Cancel
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
lea ecx, [esp + 0x54]
call fcn.00412490
mov ecx, ebp
call fcn.004039d0
jmp 0x40af3c
xor esi, esi
cmp ebx, esi
je 0x40a448
mov si, word [edi]
xor eax, eax
mov ax, word [edi + 2]
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov ecx, esi
mov edx, esi
shr ecx, 8
push ecx
shr edx, 4
and edx, 0xf
push edx
and esi, 0xf
push esi
push ebx
push str._LogonUserToDomain__SSR_Extract_Packet_Header_Error___dHdr_version_is__d__type_is__d__code_is__d__payload_size_is__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x24
push str.SSR
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [str.SSR]
push eax
push 0x29
mov ecx, ebp
call fcn.00402ef0
mov ecx, ebp
call fcn.004039d0
jmp 0x40af33
mov eax, dword [esp + 0x2c]
mov cl, al
and cl, 0xf0
cmp cl, 0x10
je 0x40a4aa
xor edx, edx
mov dx, word [edi + 2]
xor esi, esi
mov si, word [edi]
push edx
call dword [sym.imp.WS2_32.dll_ntohl]
push eax
mov eax, esi
mov ecx, esi
shr eax, 8
push eax
shr ecx, 4
and ecx, 0xf
push ecx
and esi, 0xf
push esi
push str._LogonUserToDomain__SSL_Extract_Packet_Error__not_SSR_TYPE_MNG._Hdr_version_is__d__type_is__d__code_is__d__payload_size_is__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x20
push str.SSR
lea ecx, [esp + 0x58]
call fcn.00412340
mov edx, dword [str.SSR]
push edx
jmp 0x40a433
mov ecx, eax
and ecx, 0xff00
cmp cx, 0x1000
jne 0x40a622
mov eax, dword [esp + 0x4c]
push str._LogonUserToDomain__SSR_CODE_MNG_GW_CLT_REG_ACK
push 1
push 1
mov dword [esp + 0x5c], eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x3c], esi
call fcn.004195d0
push eax
call fcn.00419410
lea ecx, [esp + 0x40]
push ecx
lea edx, [esp + 0x4c]
push edx
mov edx, dword [esp + 0x60]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x6c]
push ecx
push edx
call dword [sym.imp.ssrapi.dll_ssr_ExtractCltRegisterAck]
add esp, 0x24
test eax, eax
je 0x40a515
push str._LogonUserToDomain__SSR_CODE_MNG_GW_CLT_REG_ACK_Extract_MNG_ACK_Error.
jmp 0x40a66f
mov eax, dword [esp + 0x1c]
cmp ax, 1
jne 0x40a589
push str._LogonUserToDomain__Gateway_need_to_Re_assigned_Client_IP_Address.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x40]
add esp, 0x10
mov dword [ebp + 0x25c], ecx
mov dword [ebp + 0x260], edx
mov ecx, dword [ebp + 0x934]
push ecx
mov dword [ebp + 0x27c], 6
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edx, dword [0x423670]
push edx
push esi
mov ecx, ebp
call fcn.00402ef0
movsx eax, word [esp + 0x50]
push eax
mov ecx, ebp
call fcn.00405360
mov ecx, ebp
call fcn.004053f0
jmp 0x40a729
cmp ax, 3
jne 0x40a5c7
mov eax, dword [0x42374c]
push eax
push 0x37
push str._LogonUserToDomain__User_Cert_invalid.__d___s
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
push 0x4237c8
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, dword [0x42374c]
push ecx
push 0x37
jmp 0x40a606
cmp ax, si
je 0x40a54a
mov edx, dword [0x423748]
push edx
push 0x36
push str._LogonUserToDomain__User_State_Error.__d___s
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
push 0x4237dc
lea ecx, [esp + 0x58]
call fcn.00412340
mov eax, dword [0x423748]
push eax
push 0x36
mov ecx, ebp
call fcn.00402ef0
lea ecx, [esp + 0x54]
call fcn.00412490
mov ecx, ebp
call fcn.004039d0
jmp 0x40916d
cmp cx, 0x1100
jne 0x40a6e6
mov ecx, dword [esp + 0x4c]
push str._LogonUserToDomain__SSR_CODE_MNG_GW_CLT_REG_NAK
push 1
push 1
mov dword [esp + 0x4c], ecx
call fcn.004195d0
push eax
call fcn.00419410
lea edx, [esp + 0x2c]
push edx
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x4c]
push eax
lea ecx, [esp + 0x58]
push ecx
push edx
call dword [sym.imp.ssrapi.dll_ssr_ExtractCltRegisterNak]
add esp, 0x20
test eax, eax
je 0x40a6a1
push str._LogonUserToDomain__SSR_CODE_MNG_GW_CLT_REG_NAK_Extract_Error.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 0x4238cc
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov eax, dword [0x423718]
push eax
jmp 0x40915b
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
push ecx
push edx
lea eax, [ebp + 0x3c4]
push eax
push str._LogonUserToDomain__GWLogonNak__UserId___s__Error___d__ErrorMsg___s
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x54]
add esp, 0x1c
push eax
push ecx
mov ecx, ebp
call fcn.00402ef0
mov ecx, ebp
call fcn.004039d0
jmp 0x409164
and eax, 0xffff
shr eax, 8
push eax
push str._LogonUserToDomain__Invalid_SSR_Response_Code__d
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x14
push 0x4238bc
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.004039d0
mov edx, dword [0x42371c]
push edx
push 0x2b
jmp 0x40915d
push str._LogonUserToDomain__Logon_ISC_Gateway_Success
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push 1
lea ecx, [esp + 0x58]
call fcn.00412850
push esi
lea ecx, [esp + 0x58]
call fcn.004029a0
push 0x426b58
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_void___thiscall_CNdisApi::AddSystemRoute_void_]
mov ecx, ebp
call fcn.00402f90
test al, al
jne 0x40a79a
push str._LogonUserToDomain__Start_Capture_Failed.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
mov ecx, ebp
call fcn.004039d0
jmp 0x409164
push esi
mov byte [esp + 0x2e], 0
call dword [sym.imp.MSVCRT.dll_time]
add esp, 4
mov dword [esp + 0x2c], eax
mov byte [esp + 0x23], 0
mov al, byte [esp + 0x13]
test al, al
jne 0x40a8be
mov edi, dword [sym.imp.MSVCRT.dll_time]
push 0
call edi
mov esi, dword [esp + 0x30]
sub eax, esi
add esp, 4
cmp eax, 0xf
jle 0x40a7f7
mov al, byte [ebp + 0x29c]
test al, al
jne 0x40a7f7
mov ecx, ebp
mov byte [ebp + 0x29c], 1
call fcn.00402170
test eax, eax
jne 0x40a7f7
mov byte [esp + 0x23], 1
push 0
call edi
sub eax, esi
add esp, 4
cmp eax, 0x19
jg 0x40a8c6
lea eax, [esp + 0x30]
push eax
push 0
mov dword [esp + 0x38], 0
call sub.iphlpapi.dll_GetAdaptersInfo
mov ecx, dword [esp + 0x30]
push ecx
call dword [sym.imp.MSVCRT.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
mov dword [esp + 0x40], ebx
je 0x40a90c
lea edx, [esp + 0x30]
push edx
push ebx
call sub.iphlpapi.dll_GetAdaptersInfo
mov al, byte [esp + 0x13]
test al, al
jne 0x40a899
cmp dword [ebx + 0x1a0], 6
jne 0x40a88c
mov ecx, 3
mov edi, 0x42443c
lea esi, [ebx + 0x194]
xor eax, eax
repe cmpsw word [esi], word es:[edi]
jne 0x40a88c
lea ecx, [ebx + 0x1b0]
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov edx, dword [ebp + 0x25c]
push edx
mov esi, eax
call dword [sym.imp.WS2_32.dll_htonl]
cmp esi, eax
je 0x40a894
mov ebx, dword [ebx]
test ebx, ebx
jne 0x40a844
jmp 0x40a899
mov byte [esp + 0x2a], 1
mov eax, dword [esp + 0x40]
push eax
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, byte [esp + 0x2a]
test al, al
je 0x40a7b2
mov al, byte [esp + 0x23]
test al, al
je 0x40a92b
push str._LogonUserToDomain__Start_Adapter_Failed.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
mov ecx, ebp
call fcn.004033e0
lea ecx, [esp + 0x54]
mov dword [ebp + 0x27c], 0
call fcn.00412490
mov edx, dword [0x4236b0]
push edx
push 0x10
mov ecx, ebp
call fcn.00402ef0
jmp 0x40af3c
mov ecx, ebp
call fcn.004033e0
mov dword [ebp + 0x27c], 0
mov ecx, dword [0x423720]
push ecx
push 0x2c
jmp 0x40af2c
mov eax, dword [ebp + 0x298]
mov ecx, dword [ebp + 0x25c]
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0xd0], eax
mov eax, dword [ebp + 0x260]
and ecx, eax
mov edx, eax
not edx
or edx, ecx
push ecx
mov dword [esp + 0xd8], 2
mov dword [esp + 0xdc], ecx
mov dword [esp + 0xe0], edx
mov dword [esp + 0xe4], eax
call esi
mov dword [esp + 0xd8], eax
mov eax, dword [esp + 0xdc]
push eax
call esi
mov ecx, dword [esp + 0xe0]
push ecx
mov dword [esp + 0xe0], eax
call esi
mov edx, dword [0x42461c]
mov ecx, dword [ebp + 0x28]
mov dword [esp + 0xe0], eax
mov ax, word [0x424620]
mov dword [esp + 0xe4], edx
mov word [esp + 0xe8], ax
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearArpEntry_void_]
lea ecx, [esp + 0xd0]
push ecx
mov ecx, dword [ebp + 0x28]
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::AddArpProxy_struct__RS_ARP_PROXY__]
push str.isc_exec_arp__d__n
call fcn.00406c50
add esp, 4
push str.isc_exec_ipconfig__flushdns_n
call fcn.00406c50
add esp, 4
push 0x426abc
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, ebp
call fcn.00405a80
test al, al
jne 0x40aa3b
push str._LogonUserToDomain__Apply_Policy_Failed.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
mov ecx, dword [ebp + 0x28]
add esp, 0x10
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::ClearFirewallPolicy_void_]
mov ecx, ebp
call fcn.004033e0
mov edx, dword [0x4236e4]
push edx
push 0x1d
jmp 0x40af2c
push str._LogonUserToDomain__Apply_policy_success.
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push ebp
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [ebp + 0x2b0]
test eax, eax
je 0x40ac01
cmp dword [eax], 0
jbe 0x40ac01
push 0x426a50
lea ecx, [esp + 0x58]
call fcn.00412340
mov ecx, dword [ebp + 0x250]
call fcn.00414fd0
mov dword [esp + 0x40], eax
mov eax, dword [ebp + 0x2b0]
cmp dword [eax], 0
mov dword [esp + 0x1c], 0
jbe 0x40abe6
xor ebx, ebx
jmp 0x40aaae
mov esi, dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0xd0], 0x67
mov eax, dword [eax + ebx + 4]
push eax
call esi
mov ecx, dword [ebp + 0x2b0]
mov dword [esp + 0xd4], eax
mov edx, dword [ebx + ecx + 8]
push edx
call esi
mov dword [esp + 0xd8], eax
mov eax, dword [ebp + 0x2b0]
mov ecx, dword [ebx + eax + 0xc]
push ecx
call esi
mov edx, dword [ebp + 0x25c]
push edx
mov dword [esp + 0xe0], eax
call esi
mov ecx, dword [esp + 0xd4]
test ecx, ecx
mov edx, dword [esp + 0xd8]
mov dword [esp + 0xe0], eax
mov dword [esp + 0xe4], 0xffffffff
jne 0x40ac2e
test edx, edx
jne 0x40ac2e
mov ecx, dword [ebp + 0x250]
lea eax, [esp + 0x2c]
push eax
mov byte [ebp + 0x5fc], 1
mov dword [esp + 0x30], 0x6f
call fcn.004155a0
mov ecx, dword [ebp + 0x250]
call fcn.004156b0
mov eax, dword [esp + 0xdc]
test eax, eax
je 0x40abb7
mov edx, dword [0x42461c]
xor ecx, ecx
mov dword [esp + 0xb8], ecx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ecx
mov dword [esp + 0xc4], ecx
mov word [esp + 0xc8], cx
mov cx, word [0x424620]
mov dword [esp + 0xb8], edx
lea edx, [esp + 0xb8]
mov word [esp + 0xbc], cx
mov ecx, dword [ebp + 0x28]
push edx
mov dword [esp + 0xc2], eax
call dword [sym.imp.ndisapi.dll_public:_int___thiscall_CNdisApi::AddArpEntry_struct__RS_ARP_ENTRY__]
mov ecx, dword [ebp + 0x250]
lea eax, [esp + 0xd0]
push eax
call fcn.00415050
mov ecx, dword [esp + 0x1c]
mov eax, dword [ebp + 0x2b0]
mov edx, dword [eax]
inc ecx
add ebx, 0xc
cmp ecx, edx
mov dword [esp + 0x1c], ecx
jb 0x40aaa8
mov ecx, dword [esp + 0x40]
push ecx
mov ecx, dword [ebp + 0x250]
call fcn.00415030
push 0xc8
call dword [sym.imp.KERNEL32.dll_Sleep]
push ebp
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
test eax, eax
mov dword [ebp + 0x954], eax
jne 0x40ad03
push str._LogonUserToDomain__Create_check_network_event_error.
jmp 0x40ad65
and eax, edx
and edx, ecx
cmp edx, eax
jne 0x40ab52
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0xfc]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xe0]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x15c]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xd8]
push ecx
call dword [sym.imp.WS2_32.dll_inet_ntoa]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x13c]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x15c]
push ecx
lea edx, [esp + 0x140]
push edx
lea eax, [esp + 0x104]
push eax
push str._LogonUserToDomain__Ignore_route__conflict__ForwardDest__s__ForwardIf__s__FormardMask__s
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x1c
jmp 0x40abca
push 0x38
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0xec], eax
test eax, eax
mov byte [esp + 0xeec], 0x1b
je 0x40ad2b
mov ecx, eax
call fcn.00413620
mov esi, eax
jmp 0x40ad2d
xor esi, esi
test esi, esi
mov byte [esp + 0xeec], 8
je 0x40ad60
mov edx, dword [ebp + 0x954]
push edx
mov ecx, esi
call fcn.00413790
push 0
mov ecx, esi
call dword [sym.imp.util.dll_public:_unsigned_long_int___thiscall_RSThread::Create_int_]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov dword [ebp + 0x958], esi
jmp 0x40ad77
push str._LogonUserToDomain__Start_check_network_thread_error.
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
push str._LogonUserToDomain__Logon_VPN_Success.
push 4
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x10
mov dword [ebp + 0x28c], 0
mov ecx, dword [ebp + 0x258]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x423c3c
lea ecx, [esp + 0x3c]
call sub.MFC42.DLL_CString::CString_3
mov esi, eax
mov bl, 0x1c
push 0x426954
lea ecx, [esp + 0x20]
mov byte [esp + 0xef0], bl
call sub.MFC42.DLL_CString::CString_3
lea edx, [esp + 0x14]
push edx
push eax
lea eax, [esp + 0x48]
push eax
mov byte [esp + 0xef8], 0x1d
call sub.MFC42.DLL_operator_2
push esi
push eax
lea ecx, [esp + 0x34]
push ecx
mov byte [esp + 0xef8], 0x1e
call sub.MFC42.DLL_operator_2
mov eax, dword [eax]
or ecx, 0xffffffff
mov edi, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
lea edx, [esp + 0x2e4]
mov esi, edi
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x2c]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x40]
mov byte [esp + 0xeec], 0x1d
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1c]
mov byte [esp + 0xeec], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x38]
mov byte [esp + 0xeec], 8
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2e4]
push ecx
lea ecx, [esp + 0x58]
call fcn.00412340
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call fcn.00402110
mov edi, eax
test edi, edi
mov esi, edi
je 0x40af22
mov al, byte [esi + 0x194]
test al, al
jne 0x40aec1
cmp byte [esi + 0x195], 0xff
jne 0x40aec1
cmp byte [esi + 0x196], 0xff
jne 0x40aec1
cmp byte [esi + 0x197], 0xff
jne 0x40aec1
mov al, byte [esi + 0x198]
test al, al
jne 0x40aec1
mov al, byte [esi + 0x199]
test al, al
je 0x40aec9
mov esi, dword [esi]
test esi, esi
jne 0x40ae88
jmp 0x40af18
mov edx, dword [esi + 0x19c]
push edx
call fcn.00401e30
mov eax, dword [esi + 0x19c]
add esp, 4
push eax
push str.netsh_interface_ip_set_interface___d__metric1_forwardingenabled_storeactive
lea ecx, [esp + 0x26c]
push 0x80
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
add esp, 0x10
push 0
lea edx, [esp + 0x268]
push edx
call esi
push 0
lea eax, [esp + 0x268]
push eax
call esi
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
lea ecx, [esp + 0x2e4]
push ecx
push 0
mov ecx, ebp
call fcn.00402ef0
lea ecx, [esp + 0x54]
call fcn.00412490
lea ecx, [esp + 0x54]
mov byte [esp + 0xeec], 1
call fcn.004122d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40afbd
jmp 0x40afb6
push 0x4268f0
lea ecx, [esp + 0x58]
call fcn.00412340
lea ecx, [esp + 0x54]
call fcn.00412490
mov edx, dword [0x423738]
push edx
push 0x32
mov ecx, ebp
call fcn.00402ef0
mov eax, dword [0x423738]
push eax
push 0x32
push 0x4268c4
push 5
push 1
call fcn.004195d0
push eax
call fcn.00419410
add esp, 0x18
lea ecx, [esp + 0x54]
mov byte [esp + 0xeec], 1
call fcn.004122d0
mov eax, dword [esp + 0x18]
test eax, eax
je 0x40afbd
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [esp + 0x14]
mov dword [esp + 0xeec], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xee4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xee0
ret 0x10