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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov word [esp + 0x8e], 0x44e2
mov edx, dword [esp + 0x90]
mov dword [esp + 0x7c], 0x6da0159
mov dword [esp + 0x50], 0x4de5b06b
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], edx
call fcn.004025a0
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x3c]
test ecx, ecx
setne bl
mov edx, dword [esp + 0x80]
mov esi, dword [esp + 0x84]
mov edi, eax
add edi, 0x14
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0x34]
or ecx, ecx
mov dword [esp + 0x90], ecx
mov ecx, 0x5a4db7a
mov dword [esp + 0x30], eax
mov eax, edx
mov dword [esp + 0x2c], edx
mul ecx
imul ecx, esi, 0x5a4db7a
add edx, ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 0x14]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
mov eax, 0x30dc5d8a
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
mov eax, edx
mov edx, dword [esp + 0x28]
mul edx
mov dword [esp + 0x24], eax
imul eax, esi, 0x30dc5d8a
add edx, eax
mov dword [esp + 0x84], edx
mov eax, dword [esp + 0x24]
mov dword [esp + 0x80], eax
mov dword [esp + 0x68], ecx
mov dword [esp + 0x54], 0
cmp ecx, edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], edi
mov byte [esp + 0x1b], bl
je 0x403823
jmp 0x4039bd
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x34]
shl eax, cl
mov edx, dword [esp + 0x58]
mov dword [esp + 0x90], eax
mov eax, dword [edx]
mov dword [esp + 0x54], eax
jmp 0x403823
mov eax, dword [esp + 0x40]
mov ecx, dword [esp + 0x78]
mov edx, ecx
imul edx, edx
mov esi, dword [esp + 0x50]
mov edi, eax
imul edi, edi
mov ebx, eax
sub ebx, ecx
add ecx, eax
imul ecx, ebx
sub edi, edx
mov dword [esp + 0x74], esi
mov eax, dword [esp + 0x5c]
movzx eax, word [eax]
shr eax, 1
mov si, ax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov cl, al
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x20]
shrd edx, ebx, cl
mov cl, al
shr ebx, cl
xor ecx, ecx
test al, 0x20
cmovne edx, ebx
cmovne ebx, ecx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], edx
mov word [esp + 0x46], si
mov ecx, dword [esp + 0x14]
cmp edi, ecx
ja 0x403667
jmp 0x4037ab
mov eax, dword [esp + 0x4c]
mov ecx, dword [esp + 0x60]
movzx edx, word [esp + 0x8e]
xor edx, 0xffffbb5d
movzx eax, word [eax + ecx*2]
mov si, ax
mov edi, eax
add edi, edx
mov dword [esp + 0x84], 0
mov dword [esp + 0x80], 0x5ffbdd7f
add eax, 0x20
mov bx, ax
movzx eax, di
sub eax, 0x1a
cmovb si, bx
movzx edx, si
mov edi, dword [esp + 0x38]
movzx edi, word [edi + ecx*2]
sub edi, edx
sete dl
sete byte [esp + 0x73]
inc ecx
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, ecx
sub eax, ebx
setb dh
mov ebx, dword [esp + 0x2c]
xor ebx, 0x13918d8b
test si, si
mov dword [esp + 0xc], eax
setne al
and dl, al
mov eax, dword [esp + 0x20]
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], ebx
and dl, dh
mov dword [esp + 0x60], ecx
test dl, 1
mov dword [esp + 8], edi
jne 0x4036ff
jmp 0x40388f
movzx eax, word [esp + 0x46]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
add eax, 0x60901542
mov ecx, dword [esp + 0x20]
adc ecx, 0
mov dword [esp + 0x80], eax
mov dword [esp + 0x84], ecx
mov eax, dword [esp + 0x2c]
xor eax, 0x1723605e
mov ecx, dword [esp + 0x7c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
xor eax, eax
mov esi, 0x2a56bc27
mov edi, dword [esp + 0x2c]
sub esi, edi
sbb eax, edx
xor ecx, 0x21230d5e
mov dword [esp + 0x84], eax
mov dword [esp + 0x80], esi
cmp ecx, dword [esp + 0x74]
jbe 0x40389f
jmp 0x403956
mov eax, dword [esp + 0x54]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, 0x123a4d3b
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x20]
shr ecx, 0x1b
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], 0
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x34]
and edx, edx
mov dword [esp + 0x90], edx
imul ecx, ecx, 0x35ddec3
mov edx, dword [esp + 0x64]
add edx, 0x24
mov dword [esp + 0x5c], edx
sub eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x5c]
add edx, 4
mov dword [esp + 0x6c], edx
cmp ecx, eax
ja 0x403902
jmp 0x403687
test byte [esp + 0x73], 1
jne 0x403667
jmp 0x403980
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x2c]
or ecx, 0x294ede06
mov edx, dword [esp + 0x20]
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], ecx
movzx ecx, word [esp + 0x8e]
add ecx, 0xffffbb1e
mov si, cx
add eax, 0xf925fea7
mov dword [esp + 0x84], 0xffffffff
mov dword [esp + 0x80], 0xe805f907
mov di, word [esp + 0x46]
mov dword [esp + 0x60], eax
cmp di, si
je 0x403980
jmp 0x4036ff
mov eax, dword [esp + 0x6c]
mov eax, dword [eax]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x64]
mov ecx, eax
add ecx, 0x10
mov dword [esp + 0x58], ecx
mov eax, dword [eax + 0x10]
mov ecx, dword [esp + 0x3c]
sub eax, ecx
sete dl
mov esi, dword [esp + 0x20]
mov edi, dword [esp + 0x2c]
shld esi, edi, 0x17
shl edi, 0x17
mov dword [esp + 0x84], esi
mov dword [esp + 0x80], edi
mov dh, byte [esp + 0x1b]
and dh, dl
test dh, 1
mov dword [esp + 4], eax
jne 0x403956
jmp 0x403687
mov eax, dword [esp + 0x64]
add eax, 0xfffffff8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x2c]
not eax
mov ecx, dword [esp + 0x20]
not ecx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
jmp 0x403823
mov eax, dword [esp + 0x64]
mov eax, dword [eax]
mov ecx, dword [esp + 0x2c]
add ecx, 0x6b5d639d
mov edx, dword [esp + 0x20]
adc edx, 0
mov dword [esp + 0x80], ecx
mov dword [esp + 0x84], edx
mov dword [esp + 0x68], eax
mov dword [esp + 0x54], 0
mov ecx, dword [esp + 0x1c]
cmp eax, ecx
je 0x403823
mov eax, 0x641a944d
mov ecx, dword [esp + 0x20]
not ecx
mov edx, dword [esp + 0x2c]
not edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ecx
mov esi, dword [esp + 0x68]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x64], esi
mov ecx, dword [esp + 0x50]
mov edx, 0x689d3339
mov esi, dword [esp + 0x2c]
mov dword [esp], eax
mov eax, esi
mul edx
mov edi, dword [esp + 0x20]
imul ebx, edi, 0x689d3339
add edx, ebx
mov dword [esp + 0x84], edx
mov dword [esp + 0x80], eax
mov dword [esp + 0x40], ecx
mov eax, dword [esp + 0x34]
xor eax, 0x36b52284
mov dword [esp + 0x90], eax
mov eax, dword [esp + 0x40]
mov ecx, dword [esp]
sub ecx, dword [esp + 0x7c]
cmp ecx, eax
jb 0x40388f
jmp 0x40382f