Function at 0x40d420
Capabilities:
Encrypt data using rc4 prga
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x300
mov esi, esp
mov dword [esi + 0x1bc], 0x438c44
mov dword [esi + 0x1c], 0
mov eax, dword [str.a996f761dbcbc629c84bcf178e3f82d2]
mov dword [esi + 0x12c], eax
mov al, byte [esi + 0x2c]
mov byte [esi + 0x30], al
mov word [esi + 0x1d8], 0
mov dword [esi + 0x1d4], 0
mov dword [esi + 0x1d0], 0
mov dword [esi + 0x1cc], 0
mov dword [esi + 0x1c8], 0
mov dword [esi + 0x1c4], 0
mov dword [esi + 0x1c0], 0
mov byte [esi + 0x1c0], 0x26
mov byte [esi + 0x1c1], 0x6b
mov byte [esi + 0x1c2], 0x3f
mov byte [esi + 0x1c3], 3
mov dword [esi + 8], 0
mov eax, dword [esi + 8]
cmp eax, 0x1a
jae 0x40d506
jmp 0x40d4c5
mov edi, dword [esi + 8]
mov eax, dword [esi + 8]
movzx edx, byte [esi + eax + 0x1c0]
mov ecx, edi
sub ecx, 0xffffff80
mov eax, 0x7f
sub eax, edi
and ecx, edx
or eax, edx
not eax
add eax, edx
sub eax, ecx
add al, 0x80
mov ecx, dword [esi + 8]
mov byte [esi + ecx + 0x1c0], al
mov eax, dword [esi + 8]
inc eax
mov dword [esi + 8], eax
mov eax, dword [esi + 8]
cmp eax, 0x1a
jb 0x40d4c5
jmp 0x40d506
mov edi, dword [str.BVnUqo___zenvolord4]
mov al, byte [esi + 0x28]
mov byte [esi + 0x34], al
mov byte [esi + 0xc0], 0x39
mov byte [esi + 0xc1], 0x3a
mov byte [esi + 0xc2], 6
mov byte [esi + 0xc3], 0x5e
mov byte [esi + 0xc4], 0x16
mov byte [esi + 0xc5], 0x28
mov byte [esi + 0xc6], 0x25
mov byte [esi + 0xc7], 0x2e
mov byte [esi + 0xc8], 0x1e
mov byte [esi + 0xc9], 0x2c
mov byte [esi + 0xca], 0x25
mov byte [esi + 0xcb], 0x16
mov byte [esi + 0xcc], 0x21
mov byte [esi + 0xcd], 0x1e
mov byte [esi + 0xce], 0x1d
mov byte [esi + 0xcf], 0x2e
mov byte [esi + 0xd0], 0x27
mov byte [esi + 0xd1], 0x24
mov byte [esi + 0xd2], 0x64
mov byte [esi + 0xd3], 0x15
mov byte [esi + 0xd4], 0xd9
mov byte [esi + 0xd5], 0xe7
mov byte [esi + 0xd6], 0xb3
mov byte [esi + 0xd7], 0xab
mov byte [esi + 0xd8], 0xa6
mov byte [esi + 0xd9], 0xa1
mov byte [esi + 0xda], 0x9c
mov byte [esi + 0xdb], 0xe7
mov byte [esi + 0xdc], 0xd5
mov byte [esi + 0xdd], 0xd1
mov byte [esi + 0xde], 0xbb
mov byte [esi + 0xdf], 0x7f
mov dword [esi + 0xe0], 0
mov dword [esi + 0xc], 0
mov eax, dword [esi + 0xc]
cmp eax, 0x24
jae 0x40d64d
jmp 0x40d60d
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0xc]
movzx ecx, byte [esi + ecx + 0xc0]
mov edx, eax
add edx, 0xe465ab6c
lea eax, [eax + ecx - 0x1b9a5494]
and edx, ecx
add edx, edx
sub eax, edx
add al, 0xc
mov ecx, dword [esi + 0xc]
mov byte [esi + ecx + 0xc0], al
mov eax, dword [esi + 0xc]
inc eax
mov dword [esi + 0xc], eax
mov eax, dword [esi + 0xc]
cmp eax, 0x24
jb 0x40d60d
jmp 0x40d64d
sub esp, 8
lea eax, [esi + 0xc0]
mov dword [esp + 4], eax
lea ebx, [esi + 0x1ec]
mov dword [esp], ebx
call fcn.0040dfb0
mov dword [esp + 4], edi
mov dword [esp], eax
call fcn.0040dfb0
lea ecx, [esi + 0x1c0]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040dfb0
mov ecx, dword [esi + 0x12c]
mov dword [esp + 4], ecx
mov dword [esp], eax
call fcn.0040dfb0
add esp, 8
mov dword [esi + 0x1b4], eax
mov eax, dword [esi + 0x1b4]
sub eax, ebx
mov dword [esi + 0x1b0], eax
mov eax, dword [esi + 0x1b0]
mov cl, byte [esi + 0x24]
mov byte [esi + 0x38], cl
mov byte [esi + 0x40], 0x5b
mov byte [esi + 0x41], 0x99
mov byte [esi + 0x42], 0xd
mov byte [esi + 0x43], 0x9b
mov byte [esi + 0x44], 2
mov byte [esi + 0x45], 0x95
mov byte [esi + 0x46], 0x1a
mov byte [esi + 0x47], 0x97
mov byte [esi + 0x48], 0xd
mov byte [esi + 0x49], 0x91
mov byte [esi + 0x4a], 4
mov byte [esi + 0x4b], 0x93
mov byte [esi + 0x4c], 0
mov byte [esi + 0x4d], 0x8d
mov byte [esi + 0x4e], 0x5b
mov byte [esi + 0x4f], 0x8f
mov byte [esi + 0x50], 0x64
mov byte [esi + 0x51], 0x89
mov byte [esi + 0x52], 3
mov byte [esi + 0x53], 0x8b
mov byte [esi + 0x54], 0x14
mov byte [esi + 0x55], 0x85
mov byte [esi + 0x56], 0x1b
mov byte [esi + 0x57], 0x87
mov byte [esi + 0x58], 0x4a
mov byte [esi + 0x59], 0x81
mov byte [esi + 0x5a], 0xa2
mov byte [esi + 0x5b], 0x83
mov byte [esi + 0x5c], 0x5d
mov byte [esi + 0x5d], 0xbd
mov byte [esi + 0x5e], 0x2e
mov byte [esi + 0x5f], 0xbf
mov byte [esi + 0x60], 0x28
mov byte [esi + 0x61], 0xb9
mov byte [esi + 0x62], 0x2e
mov byte [esi + 0x63], 0xbb
mov byte [esi + 0x64], 0x2d
mov byte [esi + 0x65], 0xb5
mov byte [esi + 0x66], 0x55
mov byte [esi + 0x67], 0xb7
mov byte [esi + 0x68], 0x51
mov byte [esi + 0x69], 0xb1
mov byte [esi + 0x6a], 0x3e
mov byte [esi + 0x6b], 0xb3
mov byte [esi + 0x6c], 0x35
mov byte [esi + 0x6d], 0xad
mov byte [esi + 0x6e], 0x39
mov byte [esi + 0x6f], 0xaf
mov byte [esi + 0x70], 0x3e
mov byte [esi + 0x71], 0xa9
mov byte [esi + 0x72], 0x7d
mov byte [esi + 0x73], 0xab
mov byte [esi + 0x74], 0x2c
mov byte [esi + 0x75], 0xa5
mov byte [esi + 0x76], 0x73
mov byte [esi + 0x77], 0xa7
mov byte [esi + 0x78], 0x2f
mov byte [esi + 0x79], 0xa1
mov byte [esi + 0x7a], 0x2d
mov byte [esi + 0x7b], 0xa3
mov byte [esi + 0x7c], 0xd3
mov byte [esi + 0x7d], 0x5d
mov byte [esi + 0x7e], 0x8b
mov byte [esi + 0x7f], 0x5f
mov byte [esi + 0x80], 0xc6
mov byte [esi + 0x81], 0x59
mov byte [esi + 0x82], 0xcd
mov byte [esi + 0x83], 0x5b
mov byte [esi + 0x84], 0xc6
mov byte [esi + 0x85], 0x55
mov byte [esi + 0x86], 0xc3
mov byte [esi + 0x87], 0x57
mov byte [esi + 0x88], 0x85
mov byte [esi + 0x89], 0x51
mov byte [esi + 0x8a], 0xdf
mov byte [esi + 0x8b], 0x53
mov byte [esi + 0x8c], 0xde
mov byte [esi + 0x8d], 0x4d
mov byte [esi + 0x8e], 0xda
mov byte [esi + 0x8f], 0x4f
mov byte [esi + 0x90], 0xd5
mov byte [esi + 0x91], 0x49
mov byte [esi + 0x92], 0xdc
mov byte [esi + 0x93], 0x4b
mov byte [esi + 0x94], 0xa7
mov byte [esi + 0x95], 0x45
mov byte [esi + 0x96], 0xd1
mov byte [esi + 0x97], 0x47
mov byte [esi + 0x98], 0xdc
mov byte [esi + 0x99], 0x41
mov byte [esi + 0x9a], 0xdf
mov byte [esi + 0x9b], 0x43
mov byte [esi + 0x9c], 0xe0
mov byte [esi + 0x9d], 0x7d
mov byte [esi + 0x9e], 0x4b
mov byte [esi + 0x9f], 0x7f
mov byte [esi + 0xa0], 0x42
mov byte [esi + 0xa1], 0x79
mov byte [esi + 0xa2], 0x7a
mov byte [esi + 0xa3], 0x7b
mov dword [esi + 0xbc], 0
mov dword [esi + 0xb8], 0
mov dword [esi + 0xb4], 0
mov dword [esi + 0xb0], 0
mov dword [esi + 0xac], 0
mov dword [esi + 0xa8], 0
mov dword [esi + 0xa4], 0
mov dword [esi + 0x10], 0
mov ecx, dword [esi + 0x10]
cmp ecx, 0x80
jae 0x40d947
jmp 0x40d911
mov ecx, dword [esi + 0x10]
mov edx, dword [esi + 0x10]
movzx edx, byte [esi + edx + 0x40]
mov edi, ecx
add edi, 0x44
and edi, edx
add ecx, edx
add edi, edi
sub ecx, edi
add cl, 0x68
mov edx, dword [esi + 0x10]
mov byte [esi + edx + 0x40], cl
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
mov ecx, dword [esi + 0x10]
cmp ecx, 0x80
jb 0x40d911
jmp 0x40d947
mov cl, byte [esi + 0x20]
mov byte [esi + 0x3c], cl
mov byte [esi + 0x100], 0xef
mov byte [esi + 0x101], 0x19
mov byte [esi + 0x102], 0xbb
mov byte [esi + 0x103], 0x1b
mov byte [esi + 0x104], 0x54
mov byte [esi + 0x105], 0xe5
mov byte [esi + 0x106], 0x4f
mov byte [esi + 0x107], 0xe7
mov byte [esi + 0x108], 0xe0
mov byte [esi + 0x109], 0xe1
mov dword [esi + 0x111], 0
mov dword [esi + 0x10e], 0
mov dword [esi + 0x10a], 0
mov dword [esi + 0x14], 0
mov ecx, dword [esi + 0x14]
cmp ecx, 0x15
jae 0x40da07
jmp 0x40d9c2
mov ebx, dword [esi + 0x14]
mov ecx, dword [esi + 0x14]
movzx edi, byte [esi + ecx + 0x100]
mov edx, ebx
add edx, 0xfc
and edx, edi
mov ecx, 3
sub ecx, ebx
or ecx, edi
not ecx
add ecx, edi
sub ecx, edx
add cl, 0x1c
mov edx, dword [esi + 0x14]
mov byte [esi + edx + 0x100], cl
mov ecx, dword [esi + 0x14]
inc ecx
mov dword [esi + 0x14], ecx
mov ecx, dword [esi + 0x14]
cmp ecx, 0x15
jb 0x40d9c2
jmp 0x40da07
sub esp, 0x1c
lea ecx, [esi + 0xfc]
mov dword [esp + 0x18], ecx
lea ecx, [esi + 0x18]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
lea eax, [esi + 0x1ec]
mov dword [esp + 0xc], eax
lea eax, [esi + 0x40]
mov dword [esp + 8], eax
lea eax, [esi + 0x100]
mov dword [esp + 4], eax
mov dword [esp], 0x440c8c
call fcn.0040aa50
add esp, 0x1c
movzx eax, al
mov dword [esi + 0x1b8], eax
mov eax, dword [esi + 0x1bc]
mov ecx, dword [esi + 0x1b8]
mov eax, dword [eax + ecx*4]
mov ecx, dword [0x438c4c]
xor ecx, 0x2c1cfe4
sub eax, ecx
push eax
mov ecx, esp
mov dword [esi + 0x130], ecx
mov dword [ecx], 0x438c50
push eax
mov dword [esi + 0x128], esp
push eax
mov ecx, esp
mov dword [esi + 0x160], ecx
mov dword [ecx], 0x438c5c
push eax
mov dword [esi + 0x150], esp
push eax
mov ecx, esp
mov dword [esi + 0x14c], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438c68]
mov dword [esi + 0x148], ecx
push eax
mov edx, esp
mov dword [edx], 0x438490
mov ecx, dword [0x438c70]
mov dword [esi + 0x154], ecx
push eax
mov ecx, esp
mov dword [esi + 0x164], ecx
mov dword [ecx], 0x438c78
push eax
mov dword [esi + 0x15c], esp
push eax
mov ecx, esp
mov dword [esi + 0x188], ecx
mov dword [ecx], 0x438c84
push eax
mov dword [esi + 0x178], esp
push eax
mov ecx, esp
mov dword [esi + 0x170], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438c90]
mov dword [esi + 0x168], ecx
push eax
mov ecx, esp
mov dword [esi + 0x180], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438c98]
mov dword [esi + 0x174], ecx
push eax
mov ecx, esp
mov dword [esi + 0x18c], ecx
mov dword [ecx], 0x438ca0
push eax
mov dword [esi + 0x184], esp
push eax
mov ecx, esp
mov dword [esi + 0x1a4], ecx
mov dword [ecx], 0x438cac
push eax
mov dword [esi + 0x19c], esp
push eax
mov ecx, esp
mov dword [esi + 0x194], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438cb8]
mov dword [esi + 0x190], ecx
push eax
mov ecx, esp
mov dword [esi + 0x1a0], ecx
mov dword [ecx], 0x438cc0
push eax
mov dword [esi + 0x198], esp
push eax
mov ecx, esp
mov dword [esi + 0x1ac], ecx
mov dword [ecx], 0x438ccc
push eax
mov dword [esi + 0x1a8], esp
push eax
mov ebx, esp
mov dword [ebx], 0x438490
mov edi, dword [0x438cd8]
push eax
mov ecx, esp
mov dword [esi + 0x138], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438ce0]
mov dword [esi + 0x134], ecx
push eax
mov ecx, esp
mov dword [esi + 0x144], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438ce8]
mov dword [esi + 0x140], ecx
push eax
mov ecx, esp
mov dword [esi + 0x17c], ecx
mov dword [ecx], 0x438490
mov ecx, dword [0x438cf0]
mov dword [esi + 0x16c], ecx
jmp eax