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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x8c
mov ebx, dword [esp + 0xa0]
mov edx, dword [esp + 0xa0]
mov eax, dword [esp + 0xa0]
mov ecx, dword [ebx + 0xc]
mov edx, dword [edx + 0x14]
mov eax, dword [eax + 0x10]
mov esi, dword [ebx + 0x18]
mov ebx, dword [ebx + 0x1c]
mov dword [esp + 0x60], edx
mov edx, ecx
sar edx, 0x1f
mov dword [esp + 0x5c], eax
mov eax, ecx
idiv esi
test ebx, ebx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x6c], ebx
mov ebp, edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jne 0x638b6a
mov edi, dword [esp + 0xa0]
cmp dword [edi + 4], 1
je 0x638e70
mov ebp, dword [esp + 0xb4]
test ebp, ebp
jle 0x638fd8
mov eax, dword [esp + 0xa0]
mov edi, dword [esp + 0xa0]
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x58], 0
mov edx, dword [eax + 0x24]
mov ecx, dword [eax + 0x20]
mov ebp, dword [eax + 4]
mov eax, dword [esp + 0x4c]
mov edi, dword [edi]
mov dword [esp + 0x80], edx
mov dword [esp + 0x44], ecx
mov edx, eax
sar edx, 0x1f
mov dword [esp + 0x78], edi
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], edx
mov eax, dword [esp + 0x5c]
and eax, dword [esp + 0x80]
mov ebx, dword [esp + 0x5c]
movzx ecx, byte [esp + 0x44]
imul eax, ebp
mov edx, dword [esp + 0x78]
sar ebx, cl
test ebx, ebx
lea edi, [edx + eax*2]
mov dword [esp + 0x1c], ebx
js 0x638e15
mov eax, ebx
add eax, ebp
cmp dword [esp + 0xb0], eax
jl 0x638d2b
mov esi, dword [esp + 0xa0]
mov ebx, dword [esi + 0x28]
test ebx, ebx
je 0x638db5
xor esi, esi
test ebp, ebp
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
jle 0x638c8a
mov eax, dword [esp + 0x1c]
xor esi, esi
xor ebx, ebx
mov edx, dword [esp + 0xa8]
mov dword [esp + 0x84], 0
lea ecx, [edx + eax*2]
movsx edx, word [ecx]
add ecx, 2
movsx eax, word [edi + ebx*2]
imul eax, edx
add dword [esp + 0x84], eax
lea eax, [ebx + ebp]
add ebx, 1
movsx eax, word [edi + eax*2]
imul eax, edx
add esi, eax
cmp ebx, ebp
jne 0x638c47
mov eax, dword [esp + 0x60]
sub esi, dword [esp + 0x84]
imul esi
mov esi, dword [esp + 0x84]
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 8], edx
mov dword [esp + 4], ebx
mov dword [esp], ecx
call fcn.00aa1f60
add esi, eax
lea ecx, [esi + 0x4000]
mov eax, ecx
sar eax, 0xf
lea edx, [eax + 0x8000]
cmp edx, 0xffff
jbe 0x638cd2
sar ecx, 0x1f
mov eax, ecx
xor ax, 0x7fff
mov edi, dword [esp + 0x7c]
mov edx, dword [esp + 0x68]
add dword [esp + 0x5c], edx
mov word [edi], ax
mov eax, dword [esp + 0x64]
add dword [esp + 0x60], eax
mov ecx, dword [esp + 0x60]
cmp dword [esp + 0x4c], ecx
jg 0x638d02
mov ebx, dword [esp + 0x4c]
add dword [esp + 0x5c], 1
sub ecx, ebx
mov dword [esp + 0x60], ecx
add dword [esp + 0x58], 1
mov esi, dword [esp + 0x6c]
cmp dword [esp + 0x58], esi
je 0x638deb
mov ecx, dword [esp + 0xb4]
add dword [esp + 0x7c], 2
cmp dword [esp + 0x58], ecx
jne 0x638bc5
mov eax, dword [esp + 0x5c]
movzx ecx, byte [esp + 0x44]
mov edx, dword [esp + 0xac]
sar eax, 0x1f
not eax
and eax, dword [esp + 0x5c]
sar eax, cl
mov ecx, dword [esp + 0x5c]
mov dword [edx], eax
test ecx, ecx
js 0x638d5e
mov ebx, dword [esp + 0xa0]
mov ebx, dword [ebx + 0x24]
and dword [esp + 0x5c], ebx
mov edx, dword [esp + 0x6c]
test edx, edx
je 0x638d6e
mov esi, dword [esp + 0x58]
sub dword [esp + 0x6c], esi
mov eax, dword [esp + 0xb8]
test eax, eax
je 0x638da6
mov edi, dword [esp + 0xa0]
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
imul ecx, dword [edi + 0x18]
mov ebx, dword [esp + 0x6c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], edx
mov eax, ecx
add eax, dword [esp + 0x64]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x58]
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
jle 0x638e69
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0xa8]
lea ecx, [esi + ebx*2]
xor esi, esi
xor ebx, ebx
nop
movsx eax, word [edi + ebx*2]
add ebx, 1
movsx edx, word [ecx]
add ecx, 2
imul eax, edx
add esi, eax
cmp ebx, ebp
jne 0x638dd0
jmp 0x638cb0
mov edi, dword [esp + 0xa0]
mov dword [esp + 0x6c], 0
mov ecx, dword [edi + 8]
mov edx, ecx
mov eax, ecx
sar edx, 0x1f
idiv dword [esp + 0x4c]
mov dword [esp + 0x64], edx
mov dword [esp + 0x68], eax
jmp 0x638d15
test ebp, ebp
jle 0x638e69
xor esi, esi
xor ecx, ecx
lea esi, [esi]
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0xa8]
add eax, ecx
mov dword [esp + 0x24], eax
sar eax, 0x1f
xor dword [esp + 0x24], eax
sub dword [esp + 0x24], eax
mov edx, dword [esp + 0x24]
mov eax, edx
sar edx, 0x1f
idiv dword [esp + 0xb0]
movsx eax, word [ebx + edx*2]
mov dword [esp + 0x24], edx
movsx edx, word [edi + ecx*2]
add ecx, 1
imul eax, edx
add esi, eax
cmp ecx, ebp
jne 0x638e20
jmp 0x638cb0
xor eax, eax
jmp 0x638cd2
mov edi, dword [edi + 0x20]
test edi, edi
jne 0x638b6a
mov eax, ecx
mov edx, dword [esp + 0x4c]
sar eax, 0x1f
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x50]
mov ecx, edx
mov esi, edx
mov edx, dword [esp + 0x54]
sar ecx, 0x1f
mov dword [esp + 8], esi
mov edi, ecx
mov edx, eax
mov eax, 0
mov dword [esp + 0xc], ecx
mov ebx, edi
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.00aa1f60
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x74], edx
sub eax, 1
sub eax, dword [esp + 0x5c]
mov edx, eax
sar edx, 0x1f
mov ecx, edx
imul ebx, eax
imul ecx, esi
mul esi
add ecx, ebx
mov ebx, dword [esp + 0x54]
lea edx, [ecx + edx]
mov ecx, dword [esp + 0x50]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], ecx
call fcn.00aa1f60
mov esi, dword [esp + 0xb4]
mov edi, esi
mov ecx, esi
sar edi, 0x1f
cmp edx, edi
mov ebx, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jge 0x638fc1
mov esi, dword [esp + 0x28]
test esi, esi
jle 0x638ff3
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x58], 0
mov edi, dword [esp + 0xa4]
mov esi, dword [esp + 0x58]
mov edx, eax
mov ecx, eax
sar edx, 0x1f
mov ebx, edx
mov ebx, ecx
mov ecx, 0
mov edx, ebx
mov eax, ecx
mov eax, edx
mov edx, eax
sar edx, 0x1f
mov edx, dword [esp + 0xa8]
add ecx, dword [esp + 0x70]
adc ebx, dword [esp + 0x74]
movzx eax, word [edx + eax*2]
mov word [edi + esi*2], ax
mov eax, dword [esp + 0x28]
add esi, 1
mov dword [esp + 0x58], esi
cmp esi, eax
jne 0x638f53
mov eax, dword [esp + 0x48]
mov edx, esi
imul edx, ebp
imul eax, esi
mov ebx, dword [esp + 0x5c]
add edx, dword [esp + 0x60]
mov esi, dword [esp + 0xa0]
lea ecx, [eax + ebx]
mov eax, edx
sar edx, 0x1f
idiv dword [esp + 0x4c]
mov esi, dword [esi + 0x20]
mov dword [esp + 0x44], esi
add ecx, eax
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], edx
jmp 0x638d2b
jg 0x638fcb
cmp eax, esi
jbe 0x638f20
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
jmp 0x638f20
mov esi, dword [esp + 0xa0]
mov dword [esp + 0x58], 0
mov esi, dword [esi + 0x20]
mov dword [esp + 0x44], esi
jmp 0x638d2b
xor edx, edx
xor eax, eax
mov dword [esp + 0x58], 0
jmp 0x638f90