Function at 0x408d60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
mov ebx, edx
sub esp, 0x5c
mov esi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
mov dword [esp + 0x4c], eax
xor eax, eax
mov eax, dword [ecx + 8]
mov edi, dword [ebx + 0x164]
mov dword [esp + 0x38], 0x1000000
mov dword [esp + 0x3c], esi
mov dword [esp + 0x44], eax
shr eax, 0x18
xor edi, esi
mov ecx, eax
and eax, 0xffffffc0
mov dword [esp + 0x10], edi
mov edi, dword [ebx + 0x16c]
and ecx, 0x3f
mov byte [esp + 0x47], al
mov eax, 0x1000000
xor eax, dword [ebx + 0x160]
mov byte [esp + 0x1f], cl
mov ecx, dword [ebx + 0x168]
mov dword [esp + 0x40], edx
xor ecx, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x44]
or eax, dword [esp + 0x20]
xor edi, ecx
or edi, dword [esp + 0x10]
or edi, eax
jne 0x408f08
mov eax, dword [ebx + 0x178]
mov edx, dword [ebx + 0x17c]
mov esi, dword [ebx + 0x170]
mov edi, dword [ebx + 0x174]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], edx
movzx ecx, byte [esp + 0x1f]
test cl, cl
je 0x408ec4
movzx eax, cl
mov edx, 0x40
sub edx, eax
mov eax, esi
mov dword [esp + 0x20], edx
mov edx, edi
shl eax, cl
shld edx, esi, cl
xor esi, esi
test cl, 0x20
movzx ecx, byte [esp + 0x20]
cmovne edx, eax
cmovne eax, esi
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x14]
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
cmovne eax, edx
cmovne edx, edi
or eax, dword [esp + 0x28]
mov esi, eax
mov eax, dword [ebx + 0x180]
mov ecx, edx
mov edx, dword [esp + 0x2c]
or edx, ecx
movzx ecx, byte [esp + 0x20]
mov edi, edx
mov edx, dword [ebx + 0x184]
xor ebx, ebx
shrd eax, edx, cl
shr edx, cl
test cl, 0x20
movzx ecx, byte [esp + 0x1f]
cmovne eax, edx
cmovne edx, ebx
xor ebx, ebx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x14]
shld edx, eax, cl
shl eax, cl
test cl, 0x20
cmovne edx, eax
cmovne eax, ebx
mov ecx, eax
mov eax, dword [esp + 0x20]
or eax, ecx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x24]
or eax, edx
mov dword [esp + 0x14], eax
mov edx, esi
mov ecx, edi
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
bswap edx
bswap ecx
mov dword [ebp + 4], edx
mov eax, esi
mov ebx, edi
mov dword [ebp], ecx
bswap eax
bswap ebx
mov dword [ebp + 0xc], eax
mov dword [ebp + 8], ebx
mov eax, dword [esp + 0x4c]
sub eax, dword [sym.imp.cygwin1.dll___stack_chk_guard]
jne 0x408fbb
add esp, 0x5c
mov eax, ebp
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebx + 0x284]
mov dword [ebx + 0x164], esi
mov dword [ebx + 0x168], edx
mov dword [ebx + 0x16c], ecx
mov dword [ebx + 0x160], 0x1000000
mov dword [esp + 8], eax
lea eax, [ebx + 0x170]
mov dword [esp + 4], eax
lea eax, [esp + 0x38]
mov dword [esp], eax
call sub.cygcrypto_1.1.dll_AES_encrypt
mov eax, dword [ebx + 0x170]
mov edx, dword [ebx + 0x174]
bswap edx
bswap eax
mov esi, edx
mov edi, eax
mov dword [ebx + 0x170], edx
mov edx, dword [ebx + 0x17c]
mov dword [ebx + 0x174], eax
mov eax, dword [ebx + 0x178]
bswap edx
mov dword [esp + 0x10], edx
bswap eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x14]
mov dword [ebx + 0x178], eax
mov eax, esi
mov dword [ebx + 0x17c], edx
shl eax, 8
mov edx, edi
shr ecx, 0x18
shld edx, esi, 8
xor ecx, eax
mov eax, edx
xor ecx, esi
xor eax, edi
mov dword [ebx + 0x180], ecx
mov dword [ebx + 0x184], eax
jmp 0x408e04
call sub.cygwin1.dll___stack_chk_fail