Function at 0x410c90
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x584
lea eax, [esp + 0x3c]
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x44
push esi
push eax
call fcn.0040f4d4
mov ebx, dword [esp + 0x5a8]
mov ecx, dword [esp + 0x5a4]
add esp, 0xc
mov edx, ebx
mov eax, dword [ecx]
add ecx, 4
mov ebp, dword [esp + eax*4 + 0x4c]
lea eax, [esp + eax*4 + 0x4c]
inc ebp
dec edx
mov dword [eax], ebp
jne 0x410cbc
cmp dword [esp + 0x4c], ebx
jne 0x410cf4
mov ecx, dword [esp + 0x5ac]
mov edx, dword [esp + 0x5b0]
pop edi
xor eax, eax
mov dword [ecx], esi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
mov edi, dword [esp + 0x5b0]
mov ecx, 1
lea eax, [esp + 0x50]
mov ebp, dword [edi]
mov dword [esp + 0x14], ebp
cmp dword [eax], esi
jne 0x410d17
inc ecx
add eax, 4
cmp ecx, 0x10
jbe 0x410d0a
cmp ebp, ecx
mov dword [esp + 0x10], ecx
jae 0x410d25
mov dword [esp + 0x14], ecx
mov ebp, ecx
mov eax, 0x10
lea edx, [esp + 0x8c]
cmp dword [edx], esi
jne 0x410d3d
dec eax
sub edx, 4
cmp eax, esi
jne 0x410d31
cmp ebp, eax
mov dword [esp + 0x2c], eax
jbe 0x410d4b
mov dword [esp + 0x14], eax
mov ebp, eax
mov edx, 1
mov dword [edi], ebp
shl edx, cl
cmp ecx, eax
jae 0x410d6a
lea edi, [esp + ecx*4 + 0x4c]
sub edx, dword [edi]
js 0x410d76
inc ecx
add edi, 4
shl edx, 1
cmp ecx, eax
jb 0x410d5c
mov ecx, dword [esp + eax*4 + 0x4c]
sub edx, ecx
mov dword [esp + 0x44], edx
jns 0x410d86
pop edi
pop esi
pop ebp
mov eax, 2
pop ebx
add esp, 0x584
ret
add ecx, edx
mov dword [esp + 0x94], esi
mov dword [esp + eax*4 + 0x4c], ecx
xor ecx, ecx
dec eax
je 0x410dad
xor edx, edx
mov edi, dword [esp + edx + 0x50]
add edx, 4
add ecx, edi
dec eax
mov dword [esp + edx + 0x94], ecx
jne 0x410d9a
mov edi, dword [esp + 0x598]
xor edx, edx
mov eax, dword [edi]
add edi, 4
cmp eax, esi
je 0x410dd7
mov ecx, dword [esp + eax*4 + 0x90]
lea eax, [esp + eax*4 + 0x90]
mov dword [esp + ecx*4 + 0x114], edx
inc ecx
mov dword [eax], ecx
inc edx
cmp edx, ebx
jb 0x410db6
mov ecx, dword [esp + 0x2c]
mov edi, dword [esp + 0x10]
mov eax, ebp
xor ebx, ebx
lea edx, [esp + 0x114]
mov dword [esp + 0x28], ebx
neg eax
cmp edi, ecx
mov dword [esp + 0x90], esi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0xd4], esi
mov dword [esp + 0x40], esi
jg 0x4110cc
mov ecx, edi
dec ecx
mov dword [esp + 0x3c], ecx
mov ecx, edi
lea ecx, [esp + ecx*4 + 0x4c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx]
mov edi, ecx
dec ecx
test edi, edi
mov dword [esp + 0x34], ecx
je 0x41109f
mov ecx, dword [esp + 0x10]
lea edi, [eax + ebp]
cmp ecx, edi
jle 0x410f67
mov edx, dword [esp + 0x34]
inc edx
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x18]
add eax, ebp
inc edx
add edi, ebp
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x2c]
sub edx, eax
mov dword [esp + 0x38], eax
cmp edx, ebp
jbe 0x410e76
mov edx, ebp
mov ebx, dword [esp + 0x10]
sub ebx, eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp eax, dword [esp + 0x48]
jbe 0x410eb2
mov ebp, dword [esp + 0x34]
or ecx, 0xffffffff
mov esi, dword [esp + 0x30]
sub ecx, ebp
add eax, ecx
inc ebx
cmp ebx, edx
jae 0x410eb2
mov ecx, dword [esi + 4]
add esi, 4
shl eax, 1
cmp eax, ecx
jbe 0x410eb2
sub eax, ecx
inc ebx
cmp ebx, edx
jb 0x410e9f
mov esi, 1
mov ecx, ebx
shl esi, cl
lea edx, [esi*8 + 8]
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
test eax, eax
je 0x4110ee
mov ecx, dword [0x412714]
lea edx, [ecx + esi + 1]
lea ecx, [eax + 8]
mov dword [0x412714], edx
mov edx, dword [esp + 0x5ac]
add eax, 4
mov dword [esp + 0x40], ecx
mov dword [edx], ecx
mov dword [esp + 0x5ac], eax
mov dword [eax], 0
mov eax, dword [esp + 0x18]
test eax, eax
lea ebp, [esp + eax*4 + 0xd4]
mov dword [ebp], ecx
je 0x410f4b
mov edx, dword [esp + 0x28]
add bl, 0x10
mov byte [esp + 0x20], bl
mov dword [esp + eax*4 + 0x90], edx
mov eax, dword [esp + 0x14]
mov ebx, ecx
mov ecx, dword [esp + 0x38]
mov byte [esp + 0x21], al
sub ecx, eax
mov eax, dword [ebp - 4]
shr edx, cl
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x24], ebx
mov dword [eax + edx*8], ecx
mov dword [eax + edx*8 + 4], ebx
mov eax, dword [esp + 0x10]
mov ebp, dword [esp + 0x14]
cmp eax, edi
mov eax, dword [esp + 0x38]
jg 0x410e59
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
mov cl, byte [esp + 0x10]
sub cl, al
mov byte [esp + 0x21], cl
mov ecx, dword [esp + 0x59c]
lea ecx, [esp + ecx*4 + 0x114]
cmp edx, ecx
jb 0x410f8a
mov byte [esp + 0x20], 0x63
jmp 0x410fe6
mov ecx, dword [edx]
mov edi, dword [esp + 0x5a0]
cmp ecx, edi
jae 0x410fb9
cmp ecx, 0x100
setb cl
add ecx, 0xf
add edx, 4
mov byte [esp + 0x20], cl
mov cx, word [edx - 4]
mov word [esp + 0x24], cx
mov dword [esp + 0x1c], edx
jmp 0x410fe6
mov edx, dword [esp + 0x5a8]
sub ecx, edi
shl ecx, 1
mov dl, byte [ecx + edx]
mov byte [esp + 0x20], dl
mov edx, dword [esp + 0x5a4]
mov cx, word [ecx + edx]
mov word [esp + 0x24], cx
mov ecx, dword [esp + 0x1c]
add ecx, 4
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x10]
mov edi, 1
sub ecx, eax
mov edx, ebx
shl edi, cl
mov ecx, eax
shr edx, cl
cmp edx, esi
jae 0x411028
mov ecx, dword [esp + 0x40]
lea ebx, [edi*8]
lea ecx, [ecx + edx*8]
mov ebp, dword [esp + 0x20]
add edx, edi
mov dword [ecx], ebp
mov ebp, dword [esp + 0x24]
mov dword [ecx + 4], ebp
add ecx, ebx
cmp edx, esi
jb 0x41100b
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov ecx, dword [esp + 0x3c]
mov edx, 1
shl edx, cl
test ebx, edx
je 0x41103f
xor ebx, edx
shr edx, 1
test ebx, edx
jne 0x411037
mov edi, 1
mov ecx, eax
xor ebx, edx
mov edx, dword [esp + 0x18]
shl edi, cl
mov ecx, dword [esp + edx*4 + 0x90]
lea edx, [esp + edx*4 + 0x90]
mov dword [esp + 0x28], ebx
dec edi
and edi, ebx
cmp edi, ecx
je 0x411088
mov edi, dword [esp + 0x18]
sub eax, ebp
dec edi
mov ecx, eax
mov dword [esp + 0x18], edi
mov edi, 1
shl edi, cl
mov ecx, dword [edx - 4]
sub edx, 4
dec edi
and edi, ebx
cmp edi, ecx
jne 0x411067
mov ecx, dword [esp + 0x34]
mov edx, ecx
dec ecx
test edx, edx
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x34], ecx
jne 0x410e41
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x30]
inc ecx
add edi, 4
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x3c]
inc ecx
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x10]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x2c]
cmp edi, ecx
jle 0x410e2c
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4110e1
mov ecx, dword [esp + 0x2c]
mov eax, 1
cmp ecx, eax
jne 0x4110e3
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x584
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x411106
mov edx, dword [esp + 0xd4]
push edx
call fcn.00411120
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 3
pop ebx
add esp, 0x584
ret