Function at 0x1021b640
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Parse pe header

Disassembly:
sub esp, 0x628
mov cl, 0x66
push ebx
mov byte [esp + 8], cl
mov byte [esp + 0x10], cl
mov cl, 0x46
mov al, 0x81
mov dl, 0x74
push ebp
mov byte [esp + 0x1c], cl
mov byte [esp + 0x20], cl
mov byte [esp + 0x25], cl
push edi
mov byte [esp + 0x11], al
mov byte [esp + 0x15], dl
mov byte [esp + 0x19], al
mov byte [esp + 0x28], dl
lea ecx, [esp + 0x30]
mov al, 0x69
push 0
lea edx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x640]
mov byte [esp + 0x29], al
mov byte [esp + 0x2d], al
mov byte [esp + 0x32], al
mov eax, dword [esp + 0x65c]
push edx
mov edx, dword [0x107ab964]
push 0x600
push 0x600
mov ebx, eax
push eax
mov eax, dword [esp + 0x654]
mov byte [esp + 0x2a], 0x38
push eax
push ecx
push edx
mov byte [esp + 0x37], 0x4d
mov byte [esp + 0x38], 0x5a
mov byte [esp + 0x3a], 7
mov byte [esp + 0x3e], 0x3b
mov byte [esp + 0x3f], 0x50
mov byte [esp + 0x40], 0x45
mov byte [esp + 0x41], 0x75
mov byte [esp + 0x42], 0xed
mov byte [esp + 0x46], 0x6e
mov byte [esp + 0x47], 0x64
mov byte [esp + 0x4a], 0x72
mov byte [esp + 0x4b], 0x73
mov byte [esp + 0x4f], 0x6c
mov byte [esp + 0x50], 0x65
mov byte [esp + 0x51], 0x41
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x1021b8da
cmp dword [esp + 0x30], 0x600
jne 0x1021b8da
cmp byte [esp + 0x34], 0xe8
jne 0x1021b8da
mov eax, dword [esp + 0x35]
test eax, eax
jne 0x1021b8da
push 0
push 0
push 0
push 0
push 0xc000
call sub.platform.dll_Ordinal_24
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x1021b8da
mov ecx, 0x3000
xor eax, eax
mov edi, ebp
push eax
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x34]
push 0x200
push ebp
lea ecx, [esp + 0x40]
push eax
push ecx
call fcn.10024c10
add esp, 0x14
cmp eax, 0x50
jge 0x1021b79c
push ebp
call sub.platform.dll_Ordinal_27
add esp, 4
xor eax, eax
pop edi
pop ebp
pop ebx
add esp, 0x628
ret
push esi
mov byte [esp + 0x13], 0
xor esi, esi
lea eax, [ebp + 8]
mov ecx, 5
mov edi, 2
mov edx, 0x1c
cmp dword [eax + 8], 0x118
jne 0x1021b7e1
cmp dword [eax], ecx
jne 0x1021b7e1
cmp dword [eax + 0x68], 0x220
jne 0x1021b7e1
cmp dword [eax + 0x60], edi
jne 0x1021b7e1
cmp dword [eax + 0xc8], edx
jne 0x1021b7e1
cmp dword [eax + 0xc0], ecx
je 0x1021b7ec
inc esi
add eax, 0x60
cmp esi, 0x10
jl 0x1021b7b6
jmp 0x1021b80f
lea edx, [esi + esi*2]
shl edx, 5
mov cl, byte [edx + ebp + 0x3b]
lea eax, [edx + ebp]
lea edx, [esi + esi*2 + 6]
mov byte [esp + 0x13], cl
mov ecx, dword [eax + 0xc8]
shl edx, 5
mov ebx, dword [edx + ebp]
add ebx, ecx
push ebp
call sub.platform.dll_Ordinal_27
add esp, 4
cmp esi, 0x10
pop esi
jge 0x1021b8da
mov cl, byte [esp + 0xf]
test cl, cl
je 0x1021b8da
cmp ebx, 0x600
mov eax, ebx
jae 0x1021b84a
mov bl, byte [esp + eax + 0x34]
xor bl, cl
mov byte [esp + eax + 0x34], bl
inc eax
cmp eax, 0x600
jb 0x1021b838
lea eax, [esp + 0x10]
push 7
push eax
lea ecx, [esp + 0x3c]
push 0x600
push ecx
call fcn.100241a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1021b8da
lea edx, [esp + 0x18]
push 7
push edx
lea eax, [esp + 0x3c]
push 0x600
push eax
call fcn.100241a0
add esp, 0x10
cmp eax, 0xffffffff
je 0x1021b8da
lea ecx, [esp + 0x20]
push 0xe
push ecx
lea edx, [esp + 0x3c]
push 0x600
push edx
call fcn.100241a0
add esp, 0x10
cmp eax, 8
jle 0x1021b8da
mov eax, dword [esp + eax + 0x2c]
test eax, eax
je 0x1021b8cd
cmp eax, dword [esp + 0x67c]
jae 0x1021b8cd
mov ecx, dword [esp + 0x640]
pop edi
pop ebp
pop ebx
mov dword [ecx], eax
mov eax, 1
add esp, 0x628
ret
mov edx, dword [esp + 0x640]
mov dword [edx], 0
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x628
ret