Function at 0x40422b
Capabilities:
Encrypt data using chaskey
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, edx
mov dword [ebp - 0x7b4], eax
mov eax, dword [ebp + 0x10]
lea edx, [ebp - 0x7c4]
mov ebx, ecx
push edx
mov dword [ebp - 0x7c8], eax
mov eax, dword [ebx + 0x30]
mov ecx, dword [eax]
push 0x449a80
push eax
mov dword [ebp - 0x7b0], 0x80004005
call dword [ecx]
test eax, eax
js 0x404464
mov edi, dword [ebx + 0x3c]
mov eax, dword [ebx + 0x40]
push dword [ebx + 0x28]
and dword [ebp - 0x7ac], 0
mov dword [ebp - 0x7bc], edi
mov dword [ebp - 0x7b8], eax
mov byte [ebp - 0x7a5], 0
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x7cc], eax
mov eax, 0x80000086
cmp ecx, eax
ja 0x404a0e
je 0x4049ba
cmp ecx, 0xd4
je 0x404645
cmp ecx, 0x80000080
je 0x40451c
cmp ecx, 0x80000081
je 0x4044fd
cmp ecx, 0x80000082
je 0x4044d1
cmp ecx, 0x80000083
je 0x40447b
cmp ecx, 0x80000084
jne 0x404458
mov esi, dword [esi + 8]
mov al, byte [esi + 0x18]
mov byte [ebx + 0x70], al
mov eax, dword [esi + 0x230]
shl eax, 5
xor eax, dword [ebx + 0x6c]
and eax, 0x20
xor dword [ebx + 0x6c], eax
lea eax, [ebp - 0x7b4]
push eax
mov eax, dword [ebx + 0x30]
push 0x449a50
push 0x449a50
call fcn.00401d75
mov eax, dword [ebp - 0x7b4]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x7b4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
push 0
push 0
push 0xb
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
push edi
call fcn.00401d44
mov eax, dword [esi + 0x18]
pop ecx
push dword [esi + 0x10]
mov ecx, dword [ebx + 0x38]
push dword [esi + 0xc]
call fcn.0040f638
pop ecx
pop ecx
push 0
push 1
push 0xb
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov al, byte [ebx + 0x70]
cmp al, 1
jbe 0x4043a0
mov dword [ebp - 0x7ac], 1
jmp 0x4043a9
movzx eax, al
mov dword [ebp - 0x7ac], eax
mov edi, dword [ebp - 0x7b8]
mov eax, dword [esi + 0x234]
push edi
call fcn.00402f80
pop ecx
push dword [ebp - 0x7ac]
mov ecx, edi
push dword [ebx + 0x38]
call fcn.0040f79d
mov eax, dword [ebx + 0x6c]
shr eax, 5
not eax
and eax, 1
push eax
call fcn.00402f3a
mov eax, dword [esi + 0x248]
shl eax, 0xd
xor eax, dword [ebx + 0x6c]
add esp, 0xc
and eax, 0x2000
xor dword [ebx + 0x6c], eax
mov dword [ebp - 0x7ac], 0x20
mov byte [ebp - 0x7a5], 1
and dword [ebp - 0x7b0], 0
push 1
push 0
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_InvalidateRect]
cmp byte [ebp - 0x7a5], 0
je 0x404437
lea eax, [ebp - 0x1c]
push eax
push dword [ebx + 0x28]
call dword [sym.imp.USER32.dll_GetClientRect]
lea ecx, [ebp - 0x1c]
call fcn.00405041
cmp dword [ebp - 0x7ac], 0
je 0x404458
push dword [ebp - 0x7ac]
mov eax, dword [ebp - 0x7c4]
push dword [ebp - 0x7cc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x7c4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x7b0]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044552e
leave
ret 0xc
movzx ecx, byte [ebx + 0x70]
mov eax, dword [esi + 8]
mov dword [ebp - 0x7bc], eax
cmp ecx, eax
je 0x404458
push eax
push dword [ebx + 0x38]
mov ecx, edi
mov byte [ebx + 0x70], al
call fcn.0040f79d
mov eax, dword [ebp - 0x7bc]
pop ecx
pop ecx
cmp eax, 1
jle 0x4044aa
xor eax, eax
inc eax
mov ecx, dword [ebp - 0x7b8]
push eax
push dword [ebx + 0x38]
call fcn.0040f79d
pop ecx
pop ecx
mov dword [ebp - 0x7ac], 0x20
mov byte [ebp - 0x7a5], 1
jmp 0x40440c
mov eax, dword [ebp - 0x7b4]
push dword [eax + 8]
push dword [esi + 8]
push 0x452
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404458
and dword [ebp - 0x7b0], 0
jmp 0x404458
mov esi, dword [esi + 8]
push 0
push esi
push 0x416
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x404458
jmp 0x4043f4
mov eax, dword [esi + 8]
and dword [ebp - 0x7ac], 0
mov dword [ebp - 0x7c0], eax
mov eax, dword [ebp - 0x7b4]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x7c8]
mov edx, dword [eax + 8]
mov dword [ebp - 0x7bc], ecx
test ecx, ecx
jle 0x40459a
lea eax, [edx + 4]
mov dword [ebp - 0x7b4], ecx
or dword [eax - 4], 0xffffffff
movzx ecx, byte [ebx + 0x70]
shl ecx, 0x10
or ecx, 0x7fff
mov dword [eax + 8], ecx
mov ecx, dword [eax]
lea esi, [ecx - 0x8000]
cmp esi, 0x40
ja 0x404589
add ecx, 0xffff8000
shl ecx, 4
mov cx, word [ecx + 0x44885e]
or word [ebp - 0x7ac], cx
add eax, 0x14
dec dword [ebp - 0x7b4]
jne 0x404551
mov ecx, dword [ebp - 0x7bc]
cmp dword [ebp - 0x7c0], 0xffffffff
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
jne 0x4045b5
push edx
push ecx
push 0x444
push edi
call esi
jmp 0x4045fc
and dword [ebp - 0x7b8], 0
test ecx, ecx
jle 0x4045fc
mov dword [ebp - 0x7b0], edx
push dword [ebp - 0x7b0]
mov ecx, dword [ebp - 0x7b8]
add ecx, dword [ebp - 0x7c0]
push ecx
push 0x443
push edi
call esi
inc dword [ebp - 0x7b8]
mov eax, dword [ebp - 0x7b8]
add dword [ebp - 0x7b0], 0x14
cmp eax, dword [ebp - 0x7bc]
jl 0x4045c6
cmp word [ebp - 0x7ac], 0
je 0x404634
movzx ecx, word [ebp - 0x7ac]
mov eax, dword [ebx + 0x34]
mov eax, dword [eax]
mov edx, ecx
shl edx, 0x10
or edx, ecx
push edx
push edi
push 4
push dword [ebx + 0x34]
call dword [eax + 0x60]
mov eax, dword [ebx + 0x34]
mov ecx, dword [eax]
push 0xfff
push edi
push 1
push eax
call dword [ecx + 0x60]
push 0
push 0
push 0x421
push edi
call esi
jmp 0x4043f4
xor esi, esi
push esi
push esi
push 0x418
lea eax, [ebp - 0x544]
push edi
mov dword [ebp - 0x554], esi
mov dword [ebp - 0x550], esi
mov dword [ebp - 0x54c], eax
mov dword [ebp - 0x548], esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 0x7b0], eax
mov dword [ebp - 0x7ac], esi
cmp eax, esi
jle 0x40478b
lea eax, [ebp - 0x44]
push eax
push dword [ebp - 0x7ac]
push 0x417
push edi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [ebp - 0x554]
cmp dword [ebp - 0x548], esi
jne 0x4046b7
cmp eax, 0x40
jge 0x4046b7
mov edi, eax
jmp 0x404754
lea ecx, [eax + 1]
mov eax, dword [ebp - 0x550]
cmp eax, ecx
jge 0x40474e
cmp dword [ebp - 0x548], esi
je 0x404700
imul eax, eax, 0x28
push eax
push dword [ebp - 0x548]
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
cmp eax, esi
je 0x404773
mov ecx, dword [ebp - 0x550]
add ecx, ecx
mov dword [ebp - 0x550], ecx
jmp 0x404742
push 0xa00
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x7c8], eax
cmp eax, esi
je 0x404773
push 0x500
lea ecx, [ebp - 0x544]
push ecx
push eax
call fcn.00444e00
mov eax, dword [ebp - 0x7c8]
add esp, 0xc
mov dword [ebp - 0x550], 0x80
mov dword [ebp - 0x548], eax
mov dword [ebp - 0x54c], eax
mov edi, dword [ebp - 0x554]
imul edi, edi, 0x14
add edi, dword [ebp - 0x54c]
push 5
pop ecx
lea esi, [ebp - 0x44]
rep movsd dword es:[edi], dword [esi]
inc dword [ebp - 0x554]
mov edi, dword [ebp - 0x7bc]
xor esi, esi
inc dword [ebp - 0x7ac]
mov eax, dword [ebp - 0x7ac]
cmp eax, dword [ebp - 0x7b0]
jl 0x404687
lea eax, [ebp - 0x30]
push eax
push esi
push 0x417
push dword [ebp - 0x7b8]
mov dword [ebp - 0x2c], esi
call dword [sym.imp.USER32.dll_SendMessageW]
lea eax, [ebp - 0x7c0]
push eax
mov eax, dword [ebx + 0x30]
push 0x449a50
push 0x449a50
call fcn.00401d75
mov eax, dword [ebp - 0x7c0]
mov ecx, dword [eax]
add esp, 0xc
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 0x7c0]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x54c]
mov dword [ebp - 0x798], eax
mov eax, dword [ebp - 0x554]
mov dword [ebp - 0x794], eax
movzx eax, byte [ebx + 0x70]
mov dword [ebp - 0x78c], eax
lea eax, [ebx + 0x10]
mov dword [ebp - 0x788], eax
xor eax, eax
mov word [ebp - 0x774], ax
mov eax, dword [ebx + 0x6c]
mov ecx, eax
shr ecx, 7
xor esi, esi
inc esi
and ecx, esi
mov dword [ebp - 0x56c], ecx
mov ecx, eax
shr ecx, 8
and ecx, 3
mov dword [ebp - 0x568], ecx
mov ecx, eax
shr ecx, 0xa
and ecx, 7
mov dword [ebp - 0x564], ecx
mov ecx, eax
shr eax, 0xd
and eax, esi
xor edi, edi
mov dword [ebp - 0x55c], eax
mov eax, dword [ebp - 0x2c]
shr ecx, 6
and ecx, esi
add eax, 0xffff7fbd
mov dword [ebp - 0x7a4], esi
mov dword [ebp - 0x7a0], 0x448858
mov dword [ebp - 0x79c], 0xa9
mov dword [ebp - 0x790], 0xff3f
mov dword [ebp - 0x780], edi
mov dword [ebp - 0x77c], edi
mov dword [ebp - 0x778], edi
mov dword [ebp - 0x574], edi
mov dword [ebp - 0x570], edi
mov dword [ebp - 0x560], ecx
cmp eax, 2
ja 0x4048bb
movzx ecx, byte [ebp - 0x28]
shr ecx, 3
not ecx
and ecx, esi
mov dword [ebp - 0x574], ecx
mov dword [ebp - 0x570], eax
mov eax, dword [ebp - 0x7c4]
lea edx, [ebp - 0x7b4]
push edx
mov dword [ebp - 0x81c], 0x50
mov dword [ebp - 0x818], esi
mov dword [ebp - 0x7b4], edi
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
test dword [ebp - 0x7b4], esi
jne 0x404910
and dword [ebp - 0x7a4], 0xfffffffe
or dword [ebp - 0x818], 4
lea eax, [ebp - 0x774]
mov dword [ebp - 0x808], eax
mov dword [ebp - 0x804], 0x100
mov eax, dword [ebp - 0x7c4]
mov ecx, dword [eax]
lea edx, [ebp - 0x81c]
push edx
push dword [ebp - 0x7cc]
push eax
call dword [ecx + 0x18]
test dword [ebp - 0x7b4], esi
jne 0x404966
xor eax, eax
cmp ax, word [ebp - 0x774]
jne 0x404953
mov ecx, dword [ebx + 0x8c]
push 0x449718
lea eax, [ebp - 0x774]
call fcn.0040fc44
pop ecx
mov eax, dword [ebp - 0x814]
shr eax, 0xa
not eax
and eax, esi
mov dword [ebp - 0x778], eax
mov eax, 0x4000
mov word [ebp - 0x1c], ax
push edi
lea eax, [ebp - 0x7a4]
push edi
mov dword [ebp - 0x14], eax
push edi
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx + 0x34]
push 0x60000010
call fcn.00414878
add esp, 0x14
mov dword [ebp - 0x7b0], eax
cmp dword [ebp - 0x548], edi
je 0x404458
push dword [ebp - 0x548]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x404458
mov eax, dword [esi + 8]
mov dword [ebp - 0x7bc], eax
mov eax, dword [ebp - 0x7b4]
mov edi, dword [eax + 8]
lea esi, [ebx + 0x8c]
call fcn.0040fc20
push dword [ebp - 0x7bc]
mov eax, dword [ebp - 0x7c4]
push dword [ebp - 0x7cc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp - 0x7bc], 0
je 0x404a02
mov dword [ebp - 0x7ac], 0x24
and dword [ebp - 0x7b0], 0
jmp 0x404437
cmp ecx, 0x80000087
je 0x4044f1
cmp ecx, 0x80000088
je 0x404aa1
cmp ecx, 0x80000090
je 0x404a6d
cmp ecx, 0x80000091
je 0x404a59
cmp ecx, 0x80000092
jne 0x404458
xor eax, eax
cmp dword [esi + 8], eax
setne al
shl eax, 0xd
xor eax, dword [ebx + 0x6c]
and eax, 0x2000
xor dword [ebx + 0x6c], eax
jmp 0x404405
push dword [ebp - 0x7b8]
mov eax, dword [esi + 8]
call fcn.00402f80
pop ecx
jmp 0x4043f4
mov eax, dword [esi + 8]
mov edi, dword [ebp - 0x7b8]
shl eax, 5
xor eax, dword [ebx + 0x6c]
push 0x20
pop esi
and eax, esi
xor dword [ebx + 0x6c], eax
mov eax, dword [ebx + 0x6c]
shr eax, 5
not eax
and eax, 1
push eax
call fcn.00402f3a
pop ecx
mov dword [ebp - 0x7ac], esi
jmp 0x4043fe
mov esi, dword [esi + 8]
mov eax, dword [esi + 0x238]
shl eax, 7
xor eax, dword [ebx + 0x6c]
and eax, 0x80
xor dword [ebx + 0x6c], eax
mov ecx, dword [ebx + 0x6c]
mov eax, dword [esi + 0x23c]
shl eax, 8
xor eax, ecx
and eax, 0x300
xor eax, ecx
mov dword [ebx + 0x6c], eax
mov ecx, dword [esi + 0x240]
shl ecx, 0xa
xor ecx, eax
and ecx, 0x1c00
xor ecx, eax
mov dword [ebx + 0x6c], ecx
mov eax, dword [esi + 0x244]
shl eax, 6
xor eax, ecx
and eax, 0x40
xor eax, ecx
mov dword [ebx + 0x6c], eax
mov ecx, dword [esi + 0x248]
shl ecx, 0xd
xor ecx, eax
and ecx, 0x2000
xor ecx, eax
mov dword [ebx + 0x6c], ecx
jmp 0x4044f1