Function at 0x40ac60
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x108
cmp dword [ecx + 0x20], 0
je 0x40b168
mov esi, ecx
lea eax, [ecx + 0x10]
push eax
call fcn.004065c0
add esp, 4
mov edx, dword [esi + 0x10]
mov eax, dword [esi + 0x58]
mov eax, dword [eax + 0x48]
mov dword [esp + 8], eax
movzx eax, byte [esi]
imul ecx, eax, 0xcd
shr ecx, 0xa
and ecx, 0xfffffffe
lea ecx, [ecx + ecx*4]
sub al, cl
movzx eax, al
movzx eax, byte [eax + str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ]
mov byte [esp + 6], al
mov byte [esp + 7], 0
mov dword [esp + 0xc], edx
lea eax, [edx + 0x400]
push eax
call fcn.00409550
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x6c], 0xdde5f29c
mov byte [esp + 0x70], pe_nt_image_headers32
mov dword [esp + 0x71], 0
mov byte [esp + 0x75], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, eax
and ecx, 0xd
mov edx, eax
and edx, 2
mov ebp, eax
or ebp, 2
imul ebp, edx
xor edx, 2
imul edx, ecx
mov ecx, eax
xor ecx, 0xbf
add ecx, ebp
add ecx, edx
xor cl, byte [esp + eax + 0x6c]
add cl, 0x45
mov byte [esp + eax + 0x6c], cl
inc eax
cmp eax, 0xa
jne 0x40acf0
lea ebp, [esp + 0x6c]
mov ecx, esi
push 0x44a954
push ebp
push dword [esp + 8]
call fcn.0040a560
mov dword [esp + 0x6c], 0xe11a1c14
mov byte [esp + 0x70], 0
xor ecx, ecx
mov eax, 0xffffffff
nop
nop
mov edx, eax
or edx, 0xddeb69a9
add edx, ecx
inc edx
mov ebx, edx
and ebx, 0xfffffffd
mov edi, edx
and edi, 2
or edx, 2
imul edx, edi
xor edi, 2
imul edi, ebx
mov ebx, ecx
xor ebx, 0xddeb69a9
add ebx, edx
add ebx, edi
movzx edx, byte [esp + ecx + 0x6c]
xor ebx, edx
mov edx, ebx
and edx, 0x15
xor ebx, 0x15
lea edx, [ebx + edx*2]
add dl, 0x9e
mov byte [esp + ecx + 0x6c], dl
inc ecx
dec eax
cmp ecx, 5
jne 0x40ad50
lea eax, [esp + 6]
mov ecx, esi
push eax
push ebp
push dword [esp + 8]
call fcn.0040a560
mov eax, dword [str.hRjzG3__BARGUZIN]
mov dword [esp + 0x6c], 0x374a404c
mov dword [esp + 0x70], 0
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, ecx
add dl, 0x36
xor dl, byte [esp + ecx + 0x6c]
add dl, 0xf2
mov byte [esp + ecx + 0x6c], dl
inc ecx
cmp ecx, 8
jne 0x40add0
mov ecx, esi
push eax
push ebp
push dword [esp + 8]
call fcn.0040a560
mov dword [esp + 0x6c], 0xb040417
mov dword [esp + 0x70], 0x1c0f0037
mov dword [esp + 0x74], 0x1215301f
mov byte [esp + 0x78], 0x8c
mov dword [esp + 0x79], 0
mov byte [esp + 0x7d], 0
xor eax, eax
nop
mov ecx, eax
add cl, 0xa6
xor cl, byte [esp + eax + 0x6c]
add cl, 0xc2
mov byte [esp + eax + 0x6c], cl
mov ecx, eax
and ecx, 1
xor eax, 1
lea eax, [eax + ecx*2]
cmp eax, 0x12
jb 0x40ae20
mov dword [esp + 0x10], 0x59eefee3
mov word [esp + 0x14], 0
mov byte [esp + 0x16], 0
xor eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [esp + eax + 0x10]
mov edi, eax
and edi, 5
xor edi, 0x20453f4d
mov ecx, eax
and ecx, 2
sub ecx, edi
mov edi, 0x71be0ec3
sub edi, ecx
add ecx, 0xe41f13c
and edi, 0x90030610
and ecx, 0x8c4306f
or ecx, edi
xor ecx, edx
mov edx, ecx
xor edx, 0x90
mov edi, ecx
xor edi, 0x3b
mov ebx, ecx
or ebx, 0x54
and ebx, edi
and ecx, 0x54
add ecx, ecx
xor ecx, 0xdf
add ecx, edx
lea ecx, [ecx + ebx*2]
add cl, 0x56
mov byte [esp + eax + 0x10], cl
inc eax
cmp eax, 7
jne 0x40ae60
lea eax, [esp + 0x10]
mov ecx, esi
push ebp
push eax
push dword [esp + 8]
call fcn.0040a560
mov dword [esp + 0x6c], 0xeee6e8ee
mov byte [esp + 0x70], 0xac
mov dword [esp + 0x71], 0
mov dword [esp + 0x74], 0
mov eax, 0x7faef0e3
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ebp]
mov ecx, eax
or ecx, edx
lea edi, [eax - 0x7faef000]
and edi, edx
not ecx
or ecx, edi
add ecx, 0x7e6ab473
mov edx, ecx
and edx, 1
xor ecx, 1
lea ecx, [ecx + edx*2]
mov byte [ebp], cl
inc ebp
dec eax
cmp eax, 0x7faef0d7
jne 0x40af00
lea ebp, [esp + 0x6c]
mov ecx, esi
push dword [esp + 0xc]
push dword [esp + 0xc]
push ebp
push dword [esp + 0xc]
call fcn.0040a820
mov dword [esp + 0x10], 0x691b6b21
mov dword [esp + 0x14], 0x6d1a6f1a
mov dword [esp + 0x18], 0x71007307
mov dword [esp + 0x1c], 0x75457704
mov dword [esp + 0x20], 0x79057b20
mov dword [esp + 0x24], 0x7d157f08
mov dword [esp + 0x28], 0x81a28342
mov dword [esp + 0x2c], 0x85fd87f3
mov dword [esp + 0x30], 0x89fe8be8
mov dword [esp + 0x34], 0x8dfe8fe7
mov dword [esp + 0x38], 0x91e493eb
mov dword [esp + 0x3c], 0x95a797e4
mov dword [esp + 0x40], 0x99eb9bfe
mov dword [esp + 0x44], 0x9ded9fee
mov dword [esp + 0x48], 0xa1c6a3af
mov dword [esp + 0x4c], 0xa5d2a7c7
mov dword [esp + 0x50], 0xa997abc3
mov dword [esp + 0x54], 0xadc8af88
mov dword [esp + 0x58], 0xb1c9b3dd
mov dword [esp + 0x5c], 0xb5d2b7c2
mov dword [esp + 0x60], 0xb9ccbbd3
mov dword [esp + 0x64], 0xbdfdbfc7
mov dword [esp + 0x68], 0xc3bc
mov eax, 0xe5b50d8a
mov ecx, 0xcb6a1b14
nop
nop
nop
nop
nop
movzx edi, byte [esp + eax + 0x1a4af286]
mov edx, ecx
and edx, 0x4b4203ce
mov ebx, eax
xor ebx, 0xbde351e7
add ebx, edx
mov edx, 0x89
sub edx, ebx
add ebx, 0x76
xor edx, ebx
and edx, edi
xor edx, ebx
add dl, 0x7d
mov byte [esp + eax + 0x1a4af286], dl
inc eax
add ecx, 2
cmp eax, 0xe5b50de6
jne 0x40b010
movzx eax, word [esp + 0x10]
test ax, ax
je 0x40b082
lea ebp, [esp + 0x6c]
lea ecx, [esp + 0x12]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [ebp], ax
add ebp, 2
movzx eax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b070
mov word [ebp], 0
movzx ecx, byte [esi + 0x60]
test cl, cl
je 0x40b0b2
lea eax, [esi + 0x61]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx ecx, cl
mov word [ebp], cx
add ebp, 2
movzx ecx, byte [eax]
inc eax
test cl, cl
jne 0x40b0a0
mov dword [ebp], 0xa000d
mov word [ebp + 4], 0
mov ebp, dword [esi + 0x80]
mov dword [esp + 0x10], 0xe343e1bf
mov dword [esp + 0x14], 0xe77fe574
mov word [esp + 0x18], 0xd9d8
mov dword [esp + 0x1a], 0
mov word [esp + 0x1e], 0
mov ecx, 0xd8
mov edx, 0x27
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx ebx, byte [esp + ecx - 0xc8]
mov edi, edx
or edi, ebx
not ebx
or ebx, ecx
and ebx, edi
mov al, 0xc7
sub al, bl
mov byte [esp + ecx - 0xc8], al
inc ecx
dec edx
cmp ecx, 0xe8
jne 0x40b100
lea eax, [esp + 0x6c]
push 0x493e0
push ebp
mov edi, dword [esp + 8]
push edi
push 0
push 0
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0040d7a0
add esp, 0x1c
mov ebx, eax
push edi
call fcn.00409560
add esp, 4
mov eax, dword [esi + 0x80]
add dword [esi + 4], eax
mov dword [esi + 0x80], 0
jmp 0x40b16a
mov bl, 1
mov eax, ebx
add esp, 0x108
pop esi
pop edi
pop ebx
pop ebp
ret