Function at 0x40d9d8
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x8170
call fcn.004357e0
push ebx
push esi
push edi
mov esi, str._BASE64_
lea edi, [ebp - 0x60]
mov eax, dword [str.BASE64_]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x443134
lea edi, [ebp - 0x54]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
push 5
xor edx, edx
and byte [ebp - 0x21], dl
and byte [ebp - 0x19], dl
and byte [ebp - 0x1f9], dl
and byte [ebp - 0x1f1], dl
and byte [ebp - 0x1f0], dl
and byte [ebp - 0x1d6], dl
and byte [ebp - 0x1d5], dl
and byte [ebp - 0x1d4], dl
and byte [ebp - 0x1d3], dl
and byte [ebp - 0x1d2], dl
and byte [ebp - 0x1d1], dl
and byte [ebp - 0x1d0], dl
and byte [ebp - 0x1cf], dl
and byte [ebp - 0x1ce], dl
and byte [ebp - 0x1cd], dl
and byte [ebp - 0x1cc], dl
and byte [ebp - 0x1cb], dl
and byte [ebp - 0x1ca], dl
and byte [ebp - 0x1c9], dl
mov dword [ebp - 0x48], eax
mov eax, dword [0x443144]
pop esi
mov ebx, ecx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x28], 0x50
mov byte [ebp - 0x27], 0x4d
mov byte [ebp - 0x26], 0x4f
mov byte [ebp - 0x25], 0x20
mov byte [ebp - 0x24], 0x20
mov byte [ebp - 0x23], 0x20
mov byte [ebp - 0x22], 0x20
mov byte [ebp - 0x20], 0x31
mov byte [ebp - 0x1f], 0x2e
mov byte [ebp - 0x1e], 0x30
mov byte [ebp - 0x1d], 0x2e
mov byte [ebp - 0x1c], 0x30
mov byte [ebp - 0x1b], 0x2e
mov byte [ebp - 0x1a], 0x30
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov byte [ebp - 0x200], 0x4b
mov byte [ebp - 0x1ff], 0x43
mov byte [ebp - 0x1fe], 0x58
mov byte [ebp - 0x1fd], 0x50
mov byte [ebp - 0x1fc], 0x20
mov byte [ebp - 0x1fb], 0x20
mov byte [ebp - 0x1fa], 0x20
mov byte [ebp - 0x1f8], 0x31
mov byte [ebp - 0x1f7], 0x2e
mov byte [ebp - 0x1f6], 0x30
mov byte [ebp - 0x1f5], 0x2e
mov byte [ebp - 0x1f4], 0x30
mov byte [ebp - 0x1f3], 0x2e
mov byte [ebp - 0x1f2], 0x30
mov byte [ebp - 0x1ef], 2
mov dword [ebp - 0x1ee], 0x4e20
mov dword [ebp - 0x1ea], edx
mov dword [ebp - 0x1e6], edx
mov dword [ebp - 0x1e2], edx
mov dword [ebp - 0x1de], edx
mov dword [ebp - 0x1da], esi
and byte [ebp - 0x1c8], dl
and byte [ebp - 0x1c7], dl
and byte [ebp - 0x1c6], dl
and byte [ebp - 0x1c5], dl
and byte [ebp - 0x1c4], dl
and byte [ebp - 0x1c3], dl
and byte [ebp - 0x1c2], dl
and byte [ebp - 0x1c1], dl
and byte [ebp - 0x1c0], dl
and byte [ebp - 0x1bf], dl
and byte [ebp - 0x1be], dl
push 0x56
pop ecx
xor eax, eax
lea edi, [ebp - 0x1bd]
cmp dword [ebx + 0x8f48], edx
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
jne 0x40dbe9
mov eax, dword [ebx + 0x340]
cmp dword [eax + 8], esi
jne 0x40dbe9
cmp dword [ebx + 0x8f34], edx
jne 0x40dbe9
push dword [ebp + 8]
lea eax, [ebx + 0x855b]
add ebx, 0x8576
push eax
push ebx
push str.internal_call__s__s_return__s
push edx
push edx
call fcn.00426a9a
add esp, 0x18
jmp 0x40dfd0
lea eax, [ebx + 0x855b]
lea ecx, [ebx + 0x8576]
push eax
push ecx
push str._s__s_answer_start
push esi
push edx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], ecx
call fcn.00426a9a
add esp, 0x14
lea esi, [ebx + 0x8528]
lea edi, [ebp - 0x26c]
mov eax, dword [ebp + 0x14]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x85f0]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x211], eax
mov eax, dword [ebx + 0x85bc]
mov byte [ebp - 0x26b], 3
mov eax, dword [ecx + eax*4]
mov ecx, dword [eax + 0x64]
mov eax, dword [eax + 0x68]
test eax, eax
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x2c], eax
jle 0x40dc58
imul eax, eax, 0x3e8
mov dword [ebp - 0x2c], eax
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
lea eax, [ebp - 0x48]
push eax
push edi
call esi
pop ecx
test eax, eax
pop ecx
je 0x40dcc0
lea eax, [ebp - 0x60]
push eax
push edi
call esi
pop ecx
mov dword [ebp + 0x14], eax
test eax, eax
pop ecx
je 0x40dc94
lea eax, [ebp - 0x60]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, edi
sub ecx, eax
cmp dword [ebp + 0x14], ecx
jb 0x40dcba
lea eax, [ebp - 0x54]
push eax
push edi
call esi
pop ecx
mov dword [ebp + 0x14], eax
test eax, eax
pop ecx
je 0x40dcc0
lea eax, [ebp - 0x54]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
mov ecx, dword [ebp + 0xc]
add edi, ecx
sub edi, eax
cmp dword [ebp + 0x14], edi
jae 0x40dcc0
mov byte [ebp + 0x17], 1
jmp 0x40dcc4
and byte [ebp + 0x17], 0
push 0x18
lea eax, [ebp - 0x1bc]
push 0
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
mov eax, dword [ebp - 0x40]
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x33c]
add eax, 0x10
push 0x18
push eax
lea eax, [ebp - 0x1d4]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x33c]
push 0x18
add eax, 0x29
push eax
lea eax, [ebp - 0xab]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0x18
lea eax, [ebp - 0x1bc]
push dword [ebx + 0x8524]
push 0x44249c
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov eax, dword [ebx + 0x33c]
push 9
add eax, 0x42
mov byte [ebp - 0xf2], 4
push eax
lea eax, [ebp - 0x13b]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebx + 0x33c]
push 0x20
add eax, 0x4c
push eax
lea eax, [ebp - 0x112]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [ebp - 0x2c]
and byte [ebp - 0x1d6], 0
mov dword [ebp - 0x1ee], eax
mov eax, dword [0x454704]
mov byte [ebp - 0x1ef], 1
mov dword [ebp - 0x1da], 5
mov ecx, dword [eax + 0x20]
mov edi, dword [ebp - 0x34]
push str._CA
mov cl, byte [ecx + 0x30]
mov byte [ebp - 0xf0], cl
mov eax, dword [eax + 0x20]
mov al, byte [eax + 0x34]
mov byte [ebp - 0xf1], al
mov eax, dword [ebp + 8]
lea eax, [eax + edi + 1]
push eax
call esi
add esp, 0x2c
test eax, eax
je 0x40ddce
mov ecx, dword [ebp + 8]
lea edx, [edi + ecx + 0x7c82]
cmp eax, edx
jae 0x40ddce
sub eax, edi
sub eax, ecx
jmp 0x40dddc
mov esi, dword [ebp + 0xc]
mov eax, 0x7c82
sub esi, edi
cmp esi, eax
jl 0x40ddde
mov esi, eax
mov eax, dword [ebp + 8]
push esi
add eax, edi
push eax
lea eax, [ebp - 0x80f2]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp esi, 0x7c82
jge 0x40de04
and byte [ebp + esi - 0x80f2], 0
add edi, esi
cmp byte [ebp + 0x17], 0
mov dword [ebp - 0x34], edi
je 0x40de1d
cmp edi, dword [ebp + 0xc]
jge 0x40de1d
and byte [ebp - 0x263], 0
jmp 0x40de24
mov byte [ebp - 0x263], 2
cmp byte [ebp + 0x10], 0
je 0x40de36
cmp edi, dword [ebp + 0xc]
jl 0x40de36
mov byte [ebp - 0x263], 3
mov ax, word [ebx + 0x8524]
inc dword [ebx + 0x8524]
mov word [ebp - 0x265], ax
lea eax, [ebp - 0x26c]
push eax
lea eax, [ebp - 0x8170]
push eax
mov dword [ebp - 0x215], esi
call fcn.004246f5
pop ecx
lea eax, [esi + 0x7e]
pop ecx
mov dword [ebp - 0x86], eax
mov ecx, dword [0x454704]
mov dword [ebp - 0xc], eax
mov ecx, dword [ecx + 0x20]
cmp eax, dword [ecx + 0x38]
jg 0x40de86
and byte [ebp - 0xf1], 0
and dword [ebp - 8], 0
mov eax, dword [0x454704]
mov eax, dword [eax + 0x20]
cmp dword [eax + 0x44], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x8170]
push eax
lea eax, [ebp - 0x28]
push dword [ebp - 0xc]
push eax
lea eax, [ebp - 0x200]
push eax
push dword [ebx + 0x85b8]
push dword [ebx + 0x85b4]
jne 0x40dec8
call sub.kcxpapi.dll_KCXP_Put
jmp 0x40decd
call sub.kcxpapi.dll_KCXP_Put2
cmp dword [ebp - 0x30], 2
jne 0x40df8b
mov ecx, ebx
call fcn.004099fd
test al, al
jne 0x40dfb5
lea eax, [ebp - 0x36c]
push eax
lea eax, [ebp - 0x46c]
push eax
push dword [ebp - 4]
call sub.kcxpapi.dll_KCXP_ErrInfo
mov eax, dword [ebx + 0x85bc]
mov ecx, dword [ebx + 0x85f0]
lea edx, [ebp - 0x46c]
mov esi, 0x7d1
mov ecx, dword [ecx + eax*4]
mov eax, dword [ebx + 0x33c]
push edx
push dword [ebp - 4]
lea edx, [eax + 0x4c]
push edx
lea edx, [eax + 0x42]
push edx
lea edx, [ecx + 0xc]
push edx
add eax, 0x10
push dword [ecx + 4]
push eax
push str.KCXP_Put_MsgId_s_from__QId_d__QM_s__to__Node_s__Q_s__failed__reason_d__s
push esi
push 0
call fcn.00426a9a
push dword [ebp - 4]
call fcn.0041db9c
add esp, 0x2c
test al, al
je 0x40dfb5
push dword [ebx + 0x85d8]
lea eax, [ebx + 0x85a8]
push dword [ebx + 0x85f0]
push eax
call fcn.0041dbc2
add esp, 0xc
test al, al
jne 0x40df7e
push str.RestoreConnection_fail
push esi
push 0
call fcn.00426a9a
add esp, 0xc
inc dword [ebp - 8]
cmp dword [ebp - 8], 2
jl 0x40de8a
cmp dword [ebx + 0x8524], 1
jne 0x40dfa5
push dword [ebp - 0xc]
lea eax, [ebp - 0x8170]
mov ecx, ebx
push eax
call fcn.0040e41e
cmp edi, dword [ebp + 0xc]
jge 0x40dfb9
mov esi, dword [sym.imp.MSVCRT.dll_strstr]
jmp 0x40dcd7
xor al, al
jmp 0x40dfd2
push dword [ebp - 0x3c]
push dword [ebp - 0x38]
push str._s__s_answer_end
push 5
push 0
call fcn.00426a9a
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10