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

Disassembly:
push 0xffffffffffffffff
push 0x4a9636
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
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 + 0x14], cl
jne 0x4611e5
mov esi, ecx
and esi, 0xff
mov eax, esi
and al, 0xfe
cmp eax, 2
jge 0x4611dd
mov byte [esp + 0x14], 1
jmp 0x4611e5
mov eax, esi
shr eax, 1
mov byte [esp + 0x14], 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 0x461223
mov eax, dword [ebx + 0x130]
test eax, eax
je 0x461228
mov byte [esp + 0x12], 0x11
movzx si, cl
mov ax, si
imul ax, word [ebx + 0x190]
mov dword [esp + 0x3c], eax
mov al, byte [ebx + 0x18d]
cmp al, 0x40
jbe 0x46125c
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 + 0x20], 2
je 0x46127d
mov dword [esp + 0x20], ebp
mov edx, dword [esp + 0xc4]
mov ecx, 8
xor eax, eax
lea edi, [esp + 0x50]
rep stosd dword es:[edi], eax
push eax
lea eax, [esp + 0x34]
lea ecx, [esp + 0x33]
push eax
mov eax, dword [esp + 0xc8]
push ecx
push edx
push eax
mov ecx, ebx
call fcn.0043e490
mov ecx, dword [esp + 0x30]
push ecx
mov ecx, ebx
call fcn.0043b370
mov esi, dword [esp + 0x18]
xor edx, edx
mov dl, byte [ebx + 0x18d]
and esi, 0xff
mov dword [esp + 0x30], eax
mov byte [esp + 0x1c], 0
lea eax, [edx + esi - 1]
cdq
idiv esi
mov ecx, eax
test ecx, ecx
mov dword [esp + 0x24], ecx
jle 0x461376
mov eax, ebp
xor esi, esi
and eax, 0xffff
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x14]
and eax, 0xff
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
and eax, 0xffff
cdq
idiv dword [esp + 0x28]
mov edx, ecx
sub edx, esi
mov edi, eax
mov eax, dword [esp + 0x18]
cmp eax, edx
jl 0x461320
mov al, dl
xor dl, dl
test al, al
jbe 0x461350
and edi, 0xffff
lea esi, [esp + esi*2 + 0x50]
mov di, word [ebx + edi*2 + 0x37b2]
xor cx, cx
add esi, 2
mov cl, dl
add ecx, edi
inc dl
mov word [esi - 2], cx
cmp dl, al
jb 0x461338
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
mov al, byte [esp + 0x1c]
add edx, ebp
mov dword [esp + 0x20], edx
mov dl, byte [esp + 0x14]
add al, dl
mov byte [esp + 0x1c], al
mov esi, dword [esp + 0x1c]
and esi, 0xff
cmp esi, ecx
jl 0x461302
mov eax, dword [esp + 0x20]
and ebp, 0xffff
and eax, 0xffff
xor ecx, ecx
cdq
idiv ebp
mov cl, byte [ebx + 0x192]
xor edx, edx
push 0x80
and eax, 0xffff
mov dx, word [ebx + eax*2 + 0x37b2]
mov eax, edx
cdq
idiv ecx
mov dl, byte [ebx + 0xf2]
lea ecx, [esp + 0x3c]
mov byte [ebx + 0x3270], al
mov al, byte [ebx + 0xec]
push edx
push eax
push ecx
mov ecx, ebx
call fcn.0043f110
lea edx, [esp + 0x40]
lea eax, [esp + 0x38]
push edx
push 0x80
push ecx
xor esi, esi
mov ecx, esp
mov dword [esp + 0x30], esp
push eax
mov dword [esp + 0xc8], esi
call fcn.004a57ee
mov cl, byte [ebx + 0x24]
mov byte [esp + 0xc4], 1
push ecx
push ecx
mov ecx, esp
mov dword [esp + 0x3c], esp
push 0x4e60d8
call fcn.004a57ee
lea ecx, [ebx + 0x120]
mov byte [esp + 0xcc], 0
call fcn.004584c0
cmp byte [esp + 0x4a], 1
sete byte [esp + 0x13]
xor ecx, ecx
mov cx, word [ebx + 0x142]
mov edx, ecx
and edx, 0x800003ff
jns 0x461442
dec edx
or edx, 0xfffffc00
inc edx
jne 0x46144e
xor eax, eax
mov al, byte [ebx + 0x141]
jmp 0x46145f
xor eax, eax
xor ecx, ecx
mov ax, word [ebx + 0x144]
mov cl, byte [ebx + 0x141]
imul eax, ecx
mov ecx, dword [esp + 0x42]
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 0x461485
mov dword [esp + 0x18], ecx
mov ebp, dword [esp + 0xcc]
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 + 0x34], esi
jne 0x4614c5
mov byte [ebp + 4], al
jmp 0x46165d
cmp al, 0x86
mov cl, 0x92
je 0x461652
cmp al, cl
je 0x461652
cmp al, 0x90
jne 0x4614e3
mov byte [ebp + 4], al
jmp 0x46165d
cmp al, 0x96
jne 0x4614ef
mov byte [ebp + 4], al
jmp 0x461656
cmp al, 0x10
mov cl, 0x13
je 0x4614f9
cmp al, cl
jne 0x46150f
test byte [ebx + 0x110], 0x10
je 0x46150f
mov byte [ebp + 4], 0x10
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0x10
je 0x461517
cmp al, cl
jne 0x46152d
test byte [ebx + 0x110], 0x20
je 0x46152d
mov byte [ebp + 4], 0x12
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0x10
je 0x461535
cmp al, cl
jne 0x46154b
test byte [ebx + 0x110], 0x80
je 0x46154b
mov byte [ebp + 4], 0x15
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0x10
je 0x461553
cmp al, cl
jne 0x4615a8
test byte [ebx + 0x110], 0x40
je 0x4615a8
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcd
jne 0x461575
mov byte [ebp + 4], 0x98
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0xe0
jne 0x461586
mov byte [ebp + 4], 0x16
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0xe2
jne 0x461597
mov byte [ebp + 4], 0x17
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0xe6
jne 0x46159f
mov byte [ebp + 4], 0x19
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0x10
je 0x4615b0
cmp al, cl
jne 0x4615ef
mov edx, dword [ebx + 0x110]
test dh, 1
je 0x4615ef
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcf
jne 0x4615d3
mov byte [ebp + 4], cl
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0xe1
jne 0x4615e1
mov byte [ebp + 4], 0x18
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0xe3
jne 0x46159f
mov byte [ebp + 4], 0x19
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0x10
je 0x4615f7
cmp al, cl
jne 0x461625
mov edx, dword [ebx + 0x110]
test dh, 2
je 0x461625
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xcf
jne 0x461617
mov byte [ebp + 4], cl
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0xe1
jne 0x4615e1
mov byte [ebp + 4], 0x18
mov byte [ebp + 5], 0x88
jmp 0x46165d
cmp al, 0x10
je 0x46162d
cmp al, cl
jne 0x46165d
mov eax, dword [ebx + 0x110]
test ah, 0x60
je 0x46165d
mov ax, word [ebx + 0x26]
shr ax, 8
cmp al, 0xe5
je 0x461648
cmp al, 0xe8
jne 0x46164c
mov byte [ebp + 4], 0x21
mov byte [ebp + 5], 0x88
jmp 0x46165d
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 0x461678
mov eax, 8
lea edx, [esp + 0x34]
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 0x4616e1
xor eax, eax
mov esi, dword [esp + 0xc8]
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 0x4616f2
mov esi, dword [esp + 0xc8]
lea edi, [ebp + 0x14]
mov ecx, 0x39
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0xc0]
mov ecx, dword [esp + 0xc4]
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 + 0x24], al
je 0x46178e
mov edi, dword [esp + 0x24]
lea eax, [esp + 0x50]
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 0x461779
test byte [ebx + 0x110], 8
je 0x4617dc
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 0x4617bc
mov byte [ebp + 0x120], 0x51
mov ecx, dword [0x4e5bb8]
push ecx
push 0
push str.InterceptUFI
push 0x4df17c
call esi
test al, al
je 0x4617dc
mov byte [ebp + 0x121], 0x51
xor edx, edx
mov dl, byte [ebx + 0x27]
cmp dl, 0xe3
jne 0x461810
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 0x461823
mov byte [ebp + 0x140], al
mov eax, dword [esp + 0x34]
test ax, ax
je 0x46183c
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 0x46186f
mov al, byte [ebp + 0xc]
cmp al, 0x40
je 0x461861
cmp al, 0x50
jne 0x46186f
mov byte [ebp + 0x192], 1
mov byte [ebp + 0x193], 0x8f
jmp 0x46186f
mov byte [ebp + 0x192], 1
mov byte [ebp + 0x193], 0xec
cmp word [ebx + 0x148], 0x100
jne 0x461896
mov ecx, ebx
call fcn.0044e8c0
test ax, ax
je 0x461896
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 0x4618e4
test byte [ebx + 0x110], 8
jne 0x4618e4
cmp al, 0x96
jne 0x4618f8
cmp byte [ebx + 0x2a99], 1
sete al
mov byte [ebp + 0x19f], al
jmp 0x4618f8
cmp byte [ebx + 0x2a99], 1
setne cl
dec ecx
and ecx, 0x51
mov byte [ebp + 0x19f], cl
test byte [ebx + 0x110], 8
je 0x4619ed
mov edx, dword [esp + 0xc8]
mov ecx, 0x10
xor eax, eax
lea edi, [esp + 0x70]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x1c]
push edx
lea ecx, [esp + 0x74]
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 + 0x75]
mov byte [ebp + 0x1a0], dl
lea esi, [esp + eax*2 + 0x74]
mov al, byte [esp + eax*2 + 0x74]
mov byte [ebp + 0x1a1], al
mov eax, 0x14
cdq
idiv ecx
mov dl, byte [esp + eax*2 + 0x74]
xor ecx, ecx
mov cl, byte [esp + eax*2 + 0x75]
mov byte [ebp + 0x1a3], dl
mov byte [ebp + 0x1a2], cl
mov ecx, ebx
lea eax, [esp + eax*2 + 0x74]
call fcn.0044a4b0
cmp al, 0x14
jbe 0x4619ed
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 + 0x75]
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 + 0x74]
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 0x46198b
mov eax, dword [ebx + 0x326c]
test eax, eax
je 0x461a03
mov cl, byte [ebx + 0x3270]
mov byte [ebp + 0x1a6], cl
test byte [ebx + 0x110], 8
je 0x461a23
mov dl, byte [esp + 0x4c]
mov ecx, ebx
mov byte [ebp + 0x1a7], dl
call fcn.0044a010
mov byte [ebp + 0x1a8], al
mov al, byte [ebx + 0xf2]
cmp al, 0xc
mov byte [esp + 0x12], al
jne 0x461a38
mov byte [esp + 0x12], 8
jmp 0x461a41
cmp al, 2
jne 0x461a41
mov byte [esp + 0x12], 4
cmp byte [ebx + 0x24], 0x90
je 0x461a59
test byte [ebx + 0x110], 8
jne 0x461a59
mov dx, word [ebx + 0xf4]
jmp 0x461a9f
xor esi, esi
xor edx, edx
mov si, word [ebx + 0xf4]
xor eax, eax
mov dword [esp + 0x14], 0x10
mov edi, 1
mov ecx, eax
shl edi, cl
test esi, edi
je 0x461a91
mov edi, 2
shl edi, cl
test esi, edi
je 0x461a91
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 0x461a6e
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 + 0x3c]
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 + 0xc4]
mov byte [ebp + 0x1fc], cl
lea ecx, [esp + 0x38]
mov byte [ebp + 0x1f9], 0
mov byte [ebp + 0x1fe], dl
mov byte [ebp + 0x1ff], al
mov dword [esp + 0xb8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xac
ret 0x10