Function at 0x508ecd
Capabilities:
Contain obfuscated stackstrings
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x88
mov eax, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x5c], eax
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [ebp - 0xc], eax
xor eax, eax
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x638]
cmp eax, 2
jne 0x508f63
cmp dword [ebp - 0x54], 0
setne al
movzx eax, al
test eax, eax
jne 0x508f53
mov dword [esp], str.src_feature_keymgt_loadkey.c
call fcn.006c14d2
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], str.buflen
mov dword [esp + 8], str.do_getpass
mov dword [esp + 4], 0x7a
mov dword [esp], eax
call fcn.006c1140
call fcn.006c14b8
mov eax, dword [ebp - 0x50]
mov byte [eax], 0
mov eax, 0
jmp 0x50919c
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x2c], 0xffffffff
mov dword [ebp - 0x34], 0xffffffff
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x63c]
test eax, eax
je 0x508fd8
mov dword [ebp - 0x58], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x640]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x54]
sub eax, 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x2c]
mov dword [esp], eax
call fcn.006a08f1
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
js 0x50911c
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
add eax, edx
mov byte [eax], 0
jmp 0x50911c
cmp dword [ebp - 0x58], 0
je 0x509080
mov dword [ebp - 0x1b], 0x20656e4f
mov dword [ebp - 0x17], 0x65726f6d
mov dword [ebp - 0x13], 0x6d697420
mov word [ebp - 0xf], 0x3a65
mov byte [ebp - 0xd], 0
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
add eax, 1
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0xe
ja 0x50901f
mov dword [ebp - 0x30], 0xf
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.006c50a0
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], 0x20
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x30]
sub edx, 0xf
add eax, edx
mov edx, dword [ebp - 0x1b]
mov dword [eax], edx
mov edx, dword [ebp - 0x17]
mov dword [eax + 4], edx
mov edx, dword [ebp - 0x13]
mov dword [eax + 8], edx
movzx edx, word [ebp - 0xf]
mov word [eax + 0xc], dx
movzx edx, byte [ebp - 0xd]
mov byte [eax + 0xe], dl
mov eax, dword [ebp - 0x54]
mov dword [esp], eax
call fcn.006c514f
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x54]
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x50]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x4c]
mov dword [esp], eax
call fcn.006c401c
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 0
js 0x50911f
cmp dword [ebp - 0x58], 0
je 0x509122
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
mov dword [esp + 4], edx
mov dword [esp], eax
call fcn.006c401c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x34]
cmp eax, dword [ebp - 0x28]
jne 0x5090e9
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x50]
mov dword [esp], eax
call fcn.006c7e89
test eax, eax
jne 0x509125
mov dword [esp], 2
mov eax, dword [fcn.006f3460]
call eax
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x13
mov dword [esp + 4], 1
mov dword [esp], str.That_didnt_match._n
call sub.msvcrt.dll_fwrite
jmp 0x509080
nop
jmp 0x509126
nop
jmp 0x509126
nop
jmp 0x509126
nop
cmp dword [ebp - 0x58], 0
je 0x50917e
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x24]
mov dword [eax], 0
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x54]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call fcn.005db498
lea eax, [ebp - 0x38]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [esp], eax
call sub.msvcrt.dll_free
mov eax, dword [ebp - 0x20]
mov dword [eax], 0
mov eax, dword [ebp - 0x5c]
mov eax, dword [eax + 0x638]
cmp eax, 1
jne 0x509199
cmp dword [ebp - 0x34], 0
jne 0x509199
mov eax, 0xffffffff
jmp 0x50919c
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
je 0x5091ac
call sub.libssp_0.dll___stack_chk_fail
leave
ret