Function at 0x403cc0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
mov eax, dword [ebp + 0xc]
sub esp, 0x108
push esi
push edi
test eax, eax
jne 0x403d9e
mov esi, dword [0x405f1c]
test esi, esi
je 0x403d93
mov ecx, dword [esi]
test ecx, ecx
je 0x403d12
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x28]
test eax, eax
je 0x403d12
add eax, ecx
jne 0x403d05
mov dword [esi + 0x18], 6
jmp 0x403d12
push 0
push 0
push ecx
call eax
mov esi, dword [0x405f1c]
test esi, esi
je 0x403d93
cmp dword [esi + 0x10], 0
mov dword [esi + 0x18], 0
je 0x403d48
mov ecx, dword [esi]
test ecx, ecx
je 0x403d48
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x28]
test eax, eax
je 0x403d48
add eax, ecx
jne 0x403d41
mov dword [esi + 0x18], 6
jmp 0x403d48
push 0
push 0
push ecx
call eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x403d83
cmp dword [esi + 0x14], 0
je 0x403d83
mov ecx, dword [esi]
test ecx, ecx
je 0x403d83
mov eax, dword [eax + 0x10]
push 0x8000
push 0
push ecx
call eax
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
mov dword [esi + 0x14], 0
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0x1c]
test edi, edi
je 0x403d93
push eax
call edi
push esi
call edi
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 2
jne 0x403dde
mov edx, dword [0x405f1c]
test edx, edx
je 0x403dc9
mov ecx, dword [edx]
test ecx, ecx
je 0x403dc9
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x28]
test eax, eax
je 0x403dc9
add eax, ecx
jne 0x403dd1
mov dword [edx + 0x18], 6
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 2
push ecx
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
cmp eax, 3
jne 0x403e0f
mov edx, dword [0x405f1c]
test edx, edx
je 0x403dc9
mov ecx, dword [edx]
test ecx, ecx
je 0x403dc9
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x28]
test eax, eax
je 0x403dc9
add eax, ecx
je 0x403dc2
push 0
push 3
push ecx
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x10], 0x6000
mov dword [esp + 0xc], 0x17ae00
mov dword [esp + 0x18], 0x29a9c8
mov dword [esp + 0x1c], 0x1000
call main
call fcn.00404050
mov eax, dword [esp + 0x10]
lea ecx, [esp + 0x20]
add eax, 0x400000
mov dword [esp + 0x10], eax
mov esi, dword [esp + 0x10]
lea eax, [esi + 0x1f]
cmp ecx, eax
ja 0x403e59
lea eax, [esp + 0x3f]
movups xmm0, xmmword [esi]
lea edx, [esp + 0x20]
lea ecx, [esp + 0x50]
movups xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [esp + 0x30], xmm0
movups xmm0, xmmword [esi + 0x20]
movaps xmmword [esp + 0x40], xmm0
call fcn.004012c0
mov eax, dword [esp + 0xc]
lea edi, [esp + 0x100]
sub eax, 0x30
add esi, 0x30
movups xmmword [esp + 0x100], xmm0
mov dword [esp + 0xc], eax
sub edi, esi
mov eax, dword [esp + 0xc]
dec eax
mov dword [esp + 0x14], esi
shr eax, 4
inc eax
mov dword [esp + 0xc], eax
movups xmm0, xmmword [esi]
lea edx, [esp + 0x50]
mov ecx, esi
call fcn.00401a80
mov ecx, 0x10
mov al, byte [edi + esi]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x403ec3
sub edi, 0x10
sub dword [esp + 0xc], 1
movups xmmword [esp + 0x100], xmm0
jne 0x403eb0
mov eax, dword [esp + 0x18]
push eax
call fcn.00405010
mov ecx, dword [esp + 0x18]
mov edi, eax
add esp, 4
mov dword [esp + 0x1c], edi
mov al, byte [ecx + 0x14]
mov esi, dword [ecx + 0x10]
mov dword [esp + 0xc], esi
mov byte [esp + 0x10], al
movzx edx, al
test al, al
jne 0x403f13
mov eax, 1
jmp 0x403f29
cmp edx, 1
jne 0x403f1d
lea eax, [edx + 1]
jmp 0x403f29
dec edx
call fcn.00403a10
mov ecx, dword [esp + 0x14]
add eax, eax
dec eax
xor edx, edx
movzx eax, ax
mov dword [esp + 0x18], eax
test esi, esi
je 0x403f98
movzx eax, byte [esp + 0x10]
add ecx, 0x15
mov word [esp + 0x10], ax
movzx esi, word [ecx]
add ecx, 2
mov dword [esp + 0x14], ecx
mov eax, esi
mov cx, word [esp + 0x10]
shr ax, cl
movzx eax, ax
test ax, ax
je 0x403f87
and esi, dword [esp + 0x18]
mov ecx, edx
inc esi
sub ecx, eax
movzx esi, si
test si, si
je 0x403f87
add ecx, edi
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + edi], al
add esi, 0xffff
inc edx
test si, si
jne 0x403f73
mov ecx, dword [esp + 0x14]
mov al, byte [ecx]
inc ecx
mov byte [edx + edi], al
inc edx
cmp edx, dword [esp + 0xc]
jb 0x403f44
call fcn.00402ca0
mov esi, eax
mov dword [esp + 0x18], esi
test esi, esi
je 0x403fee
mov eax, dword [esi + 0x18]
push 0x1c
push pe_nt_image_headers32
call eax
mov edi, eax
test edi, edi
je 0x403fee
mov edx, dword [esp + 0x1c]
mov ecx, edi
push 0
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
call fcn.004020e0
add esp, 4
test eax, eax
jne 0x403ff0
mov esi, dword [esi + 0x1c]
push edi
call esi
push dword [esp + 0x18]
call esi
xor edi, edi
mov eax, dword [edi]
mov dword [0x405f1c], edi
mov dword [section.lcku_M], eax
mov dword [0x401004], 0
test edi, edi
je 0x403dc9
mov ecx, dword [edi]
test ecx, ecx
je 0x403dc9
mov eax, dword [ecx + 0x3c]
mov eax, dword [eax + ecx + 0x28]
test eax, eax
je 0x403dc9
add eax, ecx
jne 0x404039
mov dword [edi + 0x18], 6
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 1
push ecx
call eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret