Function at 0x45da20
Capabilities:
Encrypt data using rc4 ksa
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4a95b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x94
push ebx
mov ebx, ecx
push ebp
push esi
mov al, byte [ebx + 0x12e]
mov cl, byte [ebx + 0x192]
cmp al, 4
push edi
mov byte [esp + 0x20], cl
jne 0x45da75
mov esi, ecx
and esi, 0xff
mov eax, esi
and al, 0xfe
cmp eax, 2
jge 0x45da6d
mov byte [esp + 0x20], 1
jmp 0x45da75
mov eax, esi
shr eax, 1
mov byte [esp + 0x20], al
mov eax, 0x1000
xor esi, esi
mov si, word [ebx + 0x18e]
mov byte [esp + 0x12], 0x10
cdq
idiv esi
mov dl, byte [ebx + 0x17d]
mov byte [esp + 0x18], al
mov al, byte [ebx + 0x17e]
mov byte [esp + 0x13], al
mov al, byte [ebx + 0xa0]
test al, al
jne 0x45dab3
mov eax, dword [ebx + 0x130]
test eax, eax
je 0x45dab8
mov byte [esp + 0x12], 0x11
movzx si, cl
mov ax, si
imul ax, word [ebx + 0x190]
mov dword [esp + 0x30], eax
mov al, byte [ebx + 0x18d]
cmp al, 0x40
jbe 0x45daec
lea ecx, [esp + 0x18]
push 0x4d8340
push ecx
mov dword [esp + 0x20], 0xf1000
call sub.MSVCRT.dll__CxxThrowException
movzx bp, byte [esp + 0x13]
movzx dx, dl
imul ebp, edx
imul ebp, esi
cmp cl, 1
mov dword [esp + 0x1c], ebp
jne 0x45db0a
mov ebp, 2
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x44]
rep stosd dword es:[edi], eax
mov ecx, ebx
call fcn.00435fc0
mov esi, dword [esp + 0x18]
xor eax, eax
mov al, byte [ebx + 0x18d]
and esi, 0xff
mov byte [esp + 0x14], 0
lea eax, [eax + esi - 1]
cdq
idiv esi
mov edi, eax
test edi, edi
jle 0x45dba0
mov ecx, dword [esp + 0x20]
xor esi, esi
and ecx, 0xff
mov dword [esp + 0x18], ecx
mov eax, edi
sub eax, esi
cmp ecx, eax
jge 0x45db5c
mov al, cl
xor dl, dl
test al, al
jbe 0x45db7e
lea esi, [esp + esi*2 + 0x44]
xor cx, cx
add esi, 2
mov cl, dl
add ecx, ebp
inc dl
mov word [esi - 2], cx
cmp dl, al
jb 0x45db66
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov al, byte [esp + 0x14]
add ebp, edx
mov dl, byte [esp + 0x20]
add al, dl
mov byte [esp + 0x14], al
mov esi, dword [esp + 0x14]
and esi, 0xff
cmp esi, edi
jl 0x45db52
mov al, byte [ebx + 0xf2]
mov cl, byte [ebx + 0xec]
push 0x80
push eax
lea edx, [esp + 0x34]
push ecx
push edx
mov ecx, ebx
call fcn.0043f110
lea eax, [esp + 0x34]
lea edx, [esp + 0x2c]
push eax
push 0x80
push ecx
mov dword [esp + 0xb8], 0
mov ecx, esp
mov dword [esp + 0x34], esp
push edx
call fcn.004a57ee
mov al, byte [ebx + 0x24]
mov byte [esp + 0xb8], 1
push eax
push ecx
mov ecx, esp
mov dword [esp + 0x2c], esp
push 0x4e60d8
call fcn.004a57ee
lea ecx, [ebx + 0x120]
mov byte [esp + 0xc0], 0
call fcn.004584c0
cmp byte [esp + 0x3e], 1
sete byte [esp + 0x13]
xor ecx, ecx
mov cx, word [ebx + 0x142]
mov edx, ecx
and edx, 0x800003ff
jns 0x45dc3a
dec edx
or edx, 0xfffffc00
inc edx
jne 0x45dc46
xor eax, eax
mov al, byte [ebx + 0x141]
jmp 0x45dc57
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x144]
mov cl, byte [ebx + 0x141]
imul eax, ecx
mov ecx, dword [esp + 0x36]
xor edx, edx
and ecx, 0xff
div ecx
xor ecx, ecx
mov cx, word [ebx + 0x18e]
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x45dc7d
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0xc0]
mov edx, dword [esp + 0x18]
mov ecx, 0x80
xor eax, eax
mov edi, ebp
add edx, 0xfffffff6
rep stosd dword es:[edi], eax
mov al, 6
mov byte [ebp], 0xd
mov byte [ebp + 1], al
mov byte [ebp + 2], 5
mov byte [ebp + 3], al
mov al, byte [ebx + 0x24]
cmp al, 0x84
mov dword [esp + 0x28], edx
mov dword [esp + 0x24], 0
jne 0x45dcc1
mov byte [ebp + 4], al
jmp 0x45de59
cmp al, 0x86
mov cl, 0x92
je 0x45de4e
cmp al, cl
je 0x45de4e
cmp al, 0x90
jne 0x45dcdf
mov byte [ebp + 4], al
jmp 0x45de59
cmp al, 0x96
jne 0x45dceb
mov byte [ebp + 4], al
jmp 0x45de52
cmp al, 0x10
mov cl, 0x13
je 0x45dcf5
cmp al, cl
jne 0x45dd0b
test byte [ebx + 0x110], 0x10
je 0x45dd0b
mov byte [ebp + 4], 0x10
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0x10
je 0x45dd13
cmp al, cl
jne 0x45dd29
test byte [ebx + 0x110], 0x20
je 0x45dd29
mov byte [ebp + 4], 0x12
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0x10
je 0x45dd31
cmp al, cl
jne 0x45dd47
test byte [ebx + 0x110], 0x80
je 0x45dd47
mov byte [ebp + 4], 0x15
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0x10
je 0x45dd4f
cmp al, cl
jne 0x45dda4
test byte [ebx + 0x110], 0x40
je 0x45dda4
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcd
jne 0x45dd71
mov byte [ebp + 4], 0x98
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0xe0
jne 0x45dd82
mov byte [ebp + 4], 0x16
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0xe2
jne 0x45dd93
mov byte [ebp + 4], 0x17
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0xe6
jne 0x45dd9b
mov byte [ebp + 4], 0x19
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0x10
je 0x45ddac
cmp al, cl
jne 0x45ddeb
mov edx, dword [ebx + 0x110]
test dh, 1
je 0x45ddeb
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcf
jne 0x45ddcf
mov byte [ebp + 4], cl
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0xe1
jne 0x45dddd
mov byte [ebp + 4], 0x18
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0xe3
jne 0x45dd9b
mov byte [ebp + 4], 0x19
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0x10
je 0x45ddf3
cmp al, cl
jne 0x45de21
mov edx, dword [ebx + 0x110]
test dh, 2
je 0x45de21
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcf
jne 0x45de13
mov byte [ebp + 4], cl
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0xe1
jne 0x45dddd
mov byte [ebp + 4], 0x18
mov byte [ebp + 5], 0x88
jmp 0x45de59
cmp al, 0x10
je 0x45de29
cmp al, cl
jne 0x45de59
mov eax, dword [ebx + 0x110]
test ah, 0x60
je 0x45de59
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xe5
je 0x45de44
cmp al, 0xe8
jne 0x45de48
mov byte [ebp + 4], 0x21
mov byte [ebp + 5], 0x88
jmp 0x45de59
mov byte [ebp + 4], 0x85
mov byte [ebp + 5], 0x88
mov byte [ebp + 6], cl
mov eax, 0x400
xor ecx, ecx
mov cx, word [ebx + 0x190]
cdq
idiv ecx
cmp eax, 8
jle 0x45de74
mov eax, 8
lea edx, [esp + 0x24]
mov ecx, ebx
push edx
mov byte [ebp + 0xb], al
call fcn.00449dc0
mov byte [ebp + 0xc], al
mov byte [ebp + 0xd], 1
mov byte [ebp + 0xe], 1
mov byte [ebp + 0xf], 0
mov byte [ebp + 0x10], 0
mov ecx, ebx
mov byte [ebp + 0x11], 3
call fcn.00449d00
mov byte [ebp + 0x12], al
mov al, byte [esp + 0x12]
mov byte [ebp + 0x13], al
mov al, byte [ebx + 0x110]
test al, 8
je 0x45dedd
xor eax, eax
mov esi, dword [esp + 0xbc]
mov al, byte [ebx + 0x3d06]
lea edi, [ebp + 0x14]
lea ecx, [eax + eax*2]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x45deee
mov esi, dword [esp + 0xbc]
lea edi, [ebp + 0x14]
mov ecx, 0x39
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0xb4]
mov cx, word [esp + 0xb8]
mov byte [ebp + 0x100], 0xa0
mov byte [ebp + 0x101], 0
mov byte [ebp + 0x102], al
mov ax, cx
mov dl, byte [esp + 0x13]
shr ax, 8
mov byte [ebp + 0x103], al
mov byte [ebp + 0x104], cl
mov cl, byte [ebx + 0x104]
mov word [esp + 0x20], ax
mov byte [ebp + 0x105], cl
mov ecx, ebx
mov byte [ebp + 0x106], dl
call fcn.00449d00
mov byte [ebp + 0x10f], al
mov eax, dword [ebx + 0x110]
and al, 8
neg al
sbb al, al
and al, 0xf8
add al, 0x10
mov byte [esp + 0x1c], al
je 0x45df8b
mov edi, dword [esp + 0x1c]
lea eax, [esp + 0x44]
lea esi, [ebp + 0x111]
and edi, 0xff
mov dl, byte [eax]
xor ecx, ecx
mov cl, byte [eax + 1]
add eax, 2
mov byte [esi - 1], cl
mov byte [esi], dl
add esi, 2
dec edi
jne 0x45df76
test byte [ebx + 0x110], 8
je 0x45dfd9
mov eax, dword [0x4e5bb8]
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push eax
push 0
push str.TimeToReady
push 0x4df17c
call esi
test al, al
je 0x45dfb9
mov byte [ebp + 0x120], 0x51
mov ecx, dword [0x4e5bb8]
push ecx
push 0
push str.InterceptUFI
push 0x4df17c
call esi
test al, al
je 0x45dfd9
mov byte [ebp + 0x121], 0x51
xor edx, edx
mov dl, byte [ebx + 0x27]
cmp dl, 0xe3
jne 0x45e00d
mov byte [ebp + 0x122], 0
mov byte [ebp + 0x123], 0x3e
mov byte [ebp + 0x124], 0xe9
mov byte [ebp + 0x125], 0xe1
mov byte [ebp + 0x126], 0x50
mov byte [ebp + 0x127], 0xa
mov eax, dword [ebx + 8]
mov al, byte [eax + 0xc8]
test al, al
je 0x45e020
mov byte [ebp + 0x140], al
mov eax, dword [esp + 0x24]
test ax, ax
je 0x45e039
xor ecx, ecx
mov byte [ebp + 0x193], al
mov cl, ah
mov byte [ebp + 0x192], cl
mov al, byte [ebx + 0x116]
test al, al
jne 0x45e06c
mov al, byte [ebp + 0xc]
cmp al, 0x40
je 0x45e05e
cmp al, 0x50
jne 0x45e06c
mov byte [ebp + 0x192], 1
mov byte [ebp + 0x193], 0x8f
jmp 0x45e06c
mov byte [ebp + 0x192], 1
mov byte [ebp + 0x193], 0xec
cmp word [ebx + 0x148], 0x100
jne 0x45e093
mov ecx, ebx
call fcn.0044e8c0
test ax, ax
je 0x45e093
xor edx, edx
mov byte [ebp + 0x193], al
mov dl, ah
mov byte [ebp + 0x192], dl
mov al, byte [ebx + 0x3d01]
mov ecx, ebx
mov byte [ebp + 0x194], al
call fcn.00449b10
mov byte [ebp + 0x195], al
mov ecx, dword [ebx + 8]
mov dl, byte [ecx + 0x96]
mov byte [ebp + 0x19e], dl
mov al, byte [ebx + 0x24]
cmp al, 0x90
je 0x45e0e1
test byte [ebx + 0x110], 8
jne 0x45e0e1
cmp al, 0x96
jne 0x45e0f5
cmp byte [ebx + 0x2a99], 1
sete al
mov byte [ebp + 0x19f], al
jmp 0x45e0f5
cmp byte [ebx + 0x2a99], 1
setne cl
dec ecx
and ecx, 0x51
mov byte [ebp + 0x19f], cl
test byte [ebx + 0x110], 8
je 0x45e1ea
mov edx, dword [esp + 0xbc]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x64]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x68]
push eax
push ecx
mov ecx, ebx
call fcn.004487d0
mov ecx, dword [esp + 0x1c]
mov eax, 0x18
cdq
and ecx, 0xff
push 1
idiv ecx
xor edx, edx
mov byte [esp + 0x18], 0x14
mov dl, byte [esp + eax*2 + 0x69]
mov byte [ebp + 0x1a0], dl
lea esi, [esp + eax*2 + 0x68]
mov al, byte [esp + eax*2 + 0x68]
mov byte [ebp + 0x1a1], al
mov eax, 0x14
cdq
idiv ecx
mov dl, byte [esp + eax*2 + 0x68]
xor ecx, ecx
mov cl, byte [esp + eax*2 + 0x69]
mov byte [ebp + 0x1a3], dl
mov byte [ebp + 0x1a2], cl
mov ecx, ebx
lea eax, [esp + eax*2 + 0x68]
call fcn.0044a4b0
cmp al, 0x14
jbe 0x45e1ea
mov ecx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
and ecx, 0xff
and edi, 0xff
push 1
lea eax, [ecx - 0x14]
cdq
sub eax, edx
sar eax, 1
lea esi, [eax + ebx]
mov eax, ecx
cdq
idiv edi
xor edx, edx
mov dl, byte [esp + eax*2 + 0x69]
mov eax, ecx
mov byte [esi + 0x3af7], dl
mov edi, dword [esp + 0x20]
cdq
and edi, 0xff
mov ecx, ebx
idiv edi
mov al, byte [esp + eax*2 + 0x68]
mov byte [esi + 0x3af8], al
mov al, byte [esp + 0x18]
add al, 4
mov byte [esp + 0x18], al
call fcn.0044a4b0
cmp byte [esp + 0x14], al
jb 0x45e188
mov eax, dword [ebx + 0x326c]
test eax, eax
je 0x45e200
mov cl, byte [ebx + 0x3270]
mov byte [ebp + 0x1a6], cl
test byte [ebx + 0x110], 8
je 0x45e220
mov dl, byte [esp + 0x40]
mov ecx, ebx
mov byte [ebp + 0x1a7], dl
call fcn.0044a010
mov byte [ebp + 0x1a8], al
mov al, byte [ebx + 0xf2]
xor edx, edx
cmp al, 0xc
mov byte [esp + 0x12], al
jne 0x45e237
mov byte [esp + 0x12], 8
jmp 0x45e240
cmp al, 2
jne 0x45e240
mov byte [esp + 0x12], 4
cmp byte [ebx + 0x24], 0x90
je 0x45e258
test byte [ebx + 0x110], 8
jne 0x45e258
mov dx, word [ebx + 0xf4]
jmp 0x45e29c
xor esi, esi
xor eax, eax
mov si, word [ebx + 0xf4]
mov dword [esp + 0x14], 8
mov edi, 1
mov ecx, eax
shl edi, cl
test esi, edi
je 0x45e28e
mov edi, 2
shl edi, cl
test esi, edi
je 0x45e28e
shr ecx, 1
mov edi, 1
shl edi, cl
or edx, edi
mov ecx, dword [esp + 0x14]
add eax, 2
dec ecx
mov dword [esp + 0x14], ecx
jne 0x45e26b
mov cl, byte [esp + 0x12]
xor eax, eax
mov al, dh
mov byte [ebp + 0x1ef], dl
mov byte [ebp + 0x1ed], al
mov eax, dword [esp + 0x30]
xor edx, edx
mov byte [ebp + 0x1ee], cl
mov dl, ah
mov byte [ebp + 0x1f1], al
mov byte [ebp + 0x1f0], dl
mov al, byte [ebx + 0x18d]
xor ecx, ecx
mov byte [ebp + 0x1f2], al
mov byte [ebp + 0x1f3], 0
mov cl, byte [ebx + 0x191]
mov byte [ebp + 0x1f4], cl
mov dl, byte [ebx + 0x190]
mov byte [ebp + 0x1f5], dl
mov al, byte [ebx + 0x18c]
mov byte [ebp + 0x1f6], al
mov eax, dword [esp + 0x18]
mov byte [ebp + 0x1f7], 0
mov cl, byte [ebx + 0x192]
xor edx, edx
mov byte [ebp + 0x1f8], cl
mov dl, ah
mov byte [ebp + 0x1fb], al
mov eax, dword [esp + 0x28]
xor ecx, ecx
mov cl, ah
mov byte [ebp + 0x1fa], dl
mov dl, byte [esp + 0x20]
mov byte [ebp + 0x1fd], al
mov al, byte [esp + 0xb8]
mov byte [ebp + 0x1fc], cl
lea ecx, [esp + 0x2c]
mov byte [ebp + 0x1f9], 0
mov byte [ebp + 0x1fe], dl
mov byte [ebp + 0x1ff], al
mov dword [esp + 0xac], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xa4]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa0
ret 0x10