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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov dword [esp + 0x28], 0x42beaeab
mov dword [esp + 0x2c], 0xa6a8b4b0
lea edx, [esp + 0x30]
mov dword [esp + 0x30], 0
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x1c]
cmp eax, 0xb
ja 0x40b873
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x1c]
movzx ecx, byte [esp + ecx + 0x28]
add eax, 0x4ed9b421
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0xd7
mov ecx, dword [esp + 0x1c]
mov byte [esp + ecx + 0x28], al
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x1c]
cmp eax, 0xc
jb 0x40b840
lea eax, [esp + 0x1c]
lea esi, [esp + 0x28]
mov ebx, esi
mov edi, eax
mov ecx, 2
xchg esi, ebx
rep movsd dword es:[edi], dword [esi]
xchg esi, ebx
lea edi, [esp + 0x24]
xor ecx, ecx
xchg esi, edx
rep movsw word es:[edi], word [esi]
xchg esi, edx
movzx ecx, byte [esp + 0x30]
mov byte [esp + 0x24], cl
mov dword [esp + 0x28], 0x7f8d61bf
mov dword [esp + 0x2c], 0x7bf67d8e
mov dword [esp + 0x30], 0x77847985
mov dword [esp + 0x34], 0x734775f8
mov dword [esp + 0x38], 0xf87719c
mov dword [esp + 0x3c], 0xbf70dfc
mov dword [esp + 0x40], 0x72609ce
mov dword [esp + 0x44], 0x3f205e5
mov dword [esp + 0x48], 0x1fea01f0
mov dword [esp + 0x4c], 0x1be51de5
mov dword [esp + 0x50], 0x179a19f9
mov dword [esp + 0x54], 0x13e115ed
mov dword [esp + 0x58], 0x2f1d11e2
mov dword [esp + 0x5c], 0x2b1f2da4
mov dword [esp + 0x60], 0x27ad29a3
mov dword [esp + 0x64], 0x231725af
mov dword [esp + 0x68], 0x3fcd21da
mov dword [esp + 0x6c], 0x3bcf3db2
mov dword [esp + 0x70], 0x37bb390d
mov dword [esp + 0x74], 0x33c635ba
mov dword [esp + 0x78], 0xcf3c31cd
mov dword [esp + 0x7c], 0xcb39cd33
mov dword [esp + 0x80], 0xc73bc934
mov dword [esp + 0x84], 0xc3d7c538
mov dword [esp + 0x88], 0xdfdec1d6
mov byte [esp + 0x8e], 0
mov word [esp + 0x8c], 0
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x66
ja 0x40b9d0
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 0x28]
add ecx, 0x74745dae
xor ecx, edx
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0xc]
add cl, 0x32
mov edx, dword [esp]
mov byte [esp + edx + 0x28], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x67
jb 0x40b9a0
mov ecx, dword [esp + 0xa4]
mov dword [esp + 0xc], 0x9ad0f7d
mov dword [esp + 0x10], 0x5b10bb8
mov dword [esp + 0x14], 0x704
mov byte [esp + 0x18], 0
mov dword [esp + 4], 0
mov edx, dword [esp + 4]
cmp edx, 0xc
ja 0x40ba62
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov edx, dword [esp + 4]
mov edi, dword [esp + 4]
movzx ebx, byte [esp + edi + 0xc]
lea edi, [edx + ebx]
add edi, 0x6ff31321
add edx, 0x6ff31321
and edx, ebx
mov ebx, edi
not ebx
and ebx, edx
mov ebp, edx
not ebp
and edi, ebp
sub edi, ebx
xor edx, edi
and edi, ebp
add edi, edi
sub edi, edx
mov dword [esp], edi
mov edx, dword [esp]
add dl, 0xd3
mov edi, dword [esp + 4]
mov byte [esp + edi + 0xc], dl
inc dword [esp + 4]
mov edx, dword [esp + 4]
cmp edx, 0xd
jb 0x40ba10
lea edx, [esp + 4]
lea edi, [esp + 0xc]
push 0
push edx
push 8
push eax
push esi
push edi
push ecx
call fcn.0040c560
add esp, 0x1c
test al, al
je 0x40bbc4
mov word [esp + 0x28], 0x8e81
mov byte [esp + 0x2a], 0x32
mov dword [esp + 0x2b], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 6
ja 0x40baeb
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax + ecx]
add edx, 0x4b8f3e19
add eax, 0x4b8f3e19
and eax, ecx
add eax, eax
sub edx, eax
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 0xd7
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 7
jb 0x40bab0
xor ecx, ecx
mov edx, dword [esp + 4]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movsx eax, byte [edx + ecx]
movzx ebx, byte [esp + ecx + 0x28]
test eax, eax
je 0x40bb12
inc ecx
cmp al, bl
je 0x40bb00
movsx ecx, bl
mov edx, eax
not edx
and edx, ecx
not ecx
and ecx, eax
mov al, 1
mov dword [esp + 8], eax
cmp ecx, edx
je 0x40bda2
mov dword [esp + 0x28], 0xdaf6c9c8
mov dword [esp + 0x2c], 0x52c7c7ce
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40bb8b
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
lea edx, [eax + ecx]
add eax, 0xa7
and eax, ecx
add eax, eax
sub edx, eax
add edx, 0xe5fd19a7
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
add al, 4
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40bb50
mov eax, dword [esp + 4]
movzx ebx, byte [esp + 0x28]
test bl, bl
je 0x40bbcb
mov edx, esi
mov ecx, eax
jmp 0x40bba7
movzx ebx, byte [edx]
test bl, bl
je 0x40bbcd
mov bh, byte [eax]
test bh, bh
je 0x40bd9a
inc eax
inc edx
lea edi, [ecx + 1]
cmp bh, bl
je 0x40bbbe
mov ecx, edi
mov eax, edi
je 0x40bba0
mov edx, esi
jmp 0x40bba0
xor eax, eax
jmp 0x40bdb2
mov ecx, eax
test ecx, ecx
je 0x40bd9a
mov dword [esp + 0x28], 0xedcad7cb
mov dword [esp + 0x2c], 0xf8ea2804
mov dword [esp + 0x30], 0x202df5f2
mov dword [esp + 0x34], 0xf1ffe3f7
mov dword [esp + 0x38], 0x58250be0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x13
ja 0x40bc3e
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
add eax, 0x4406c4dd
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x58
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x14
jb 0x40bc10
mov eax, dword [esp + 4]
movzx ecx, byte [esp + 0x28]
test cl, cl
je 0x40bc84
lea edi, [esp + 0x28]
mov edx, edi
mov esi, eax
jmp 0x40bc67
movzx ecx, byte [edx]
test cl, cl
je 0x40bc86
mov ch, byte [eax]
test ch, ch
je 0x40bd9a
inc eax
inc edx
lea ebx, [esi + 1]
cmp ch, cl
je 0x40bc7e
mov esi, ebx
mov eax, ebx
je 0x40bc60
mov edx, edi
jmp 0x40bc60
mov esi, eax
test esi, esi
je 0x40bd9a
mov word [esp + 0x28], 0xb6d3
mov byte [esp + 0x2a], 0xf3
mov dword [esp + 0x2b], 0
mov byte [esp + 0x2f], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x40bcee
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 0x28]
add eax, 0xed13c56c
xor eax, ecx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
add al, 0x63
mov ecx, dword [esp]
mov byte [esp + ecx + 0x28], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x40bcc0
movzx eax, byte [esp + 0x28]
test al, al
je 0x40bd30
add esi, 0x13
lea ebp, [esp + 0x28]
mov ecx, ebp
mov edx, esi
mov edi, esi
jmp 0x40bd17
movzx eax, byte [ecx]
test al, al
je 0x40bd41
mov ah, byte [edx]
test ah, ah
je 0x40bd9a
inc edx
inc ecx
lea ebx, [edi + 1]
cmp ah, al
je 0x40bd2a
mov edi, ebx
mov edx, ebx
je 0x40bd10
mov ecx, ebp
jmp 0x40bd10
mov byte [0x44be98], 1
mov eax, 0x44be9a
jmp 0x40bdc3
test edi, edi
je 0x40bd9a
mov byte [0x44be98], 1
mov dword [esp + 0x28], 0
mov eax, 0x44be9a
cmp esi, edi
jae 0x40bdc3
xor ebx, ebx
lea ebp, [esp + 0x28]
cmp byte [esi], 0
je 0x40bdbd
push ebp
push edi
push esi
call fcn.0040d600
add esp, 0xc
movzx ecx, word [esp + 0x28]
mov word [ebx + 0x44be9a], cx
lea ecx, [ebx + 2]
cmp ebx, 0x1fb
ja 0x40bd92
add esi, eax
mov ebx, ecx
cmp esi, edi
jb 0x40bd63
lea eax, [ecx + 0x44be9a]
jmp 0x40bdc3
mov dword [esp + 8], 0
push dword [esp + 4]
call fcn.0043db40
add esp, 4
mov eax, dword [esp + 8]
add esp, 0x90
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [ebx + 0x44be9a]
mov word [eax], 0
jmp 0x40bda2