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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x48
mov ebx, dword [esp + 0x64]
mov edi, dword [esp + 0x60]
mov eax, dword [edi + 4]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + ecx], 0
lea ecx, [ecx + 2]
jne 0x415170
lea edx, [eax + ecx]
add edx, 0xfffffffe
add ecx, eax
mov esi, 1
sub esi, ecx
and esi, eax
not eax
and eax, edx
sub eax, esi
sar eax, 1
mov ebx, dword [ebx + 4]
xor ecx, ecx
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + ecx], 0
lea ecx, [ecx + 2]
jne 0x4151a0
lea edx, [ebx + ecx]
add edx, 0xfffffffe
add ecx, ebx
mov esi, 1
sub esi, ecx
and esi, ebx
mov ecx, ebx
not ecx
and ecx, edx
sub ecx, esi
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x1b
test edx, edx
jns 0x4151d6
mov eax, 0xffffffff
jmp 0x4151df
add eax, ecx
lea eax, [eax*2 + 0x36]
push eax
call fcn.00409600
add esp, 4
mov esi, eax
mov dword [esp + 8], 0x83548122
mov dword [esp + 0xc], 0x9f219d33
mov dword [esp + 0x10], 0x9b2c993d
mov dword [esp + 0x14], 0x974b957a
mov dword [esp + 0x18], 0x931c911e
mov dword [esp + 0x1c], 0x6fda6d2d
mov dword [esp + 0x20], 0x6bd369e3
mov dword [esp + 0x24], 0x67d265db
mov dword [esp + 0x28], 0x63cd6186
mov dword [esp + 0x2c], 0x7ff07ddd
mov dword [esp + 0x30], 0x7bc379f2
mov dword [esp + 0x34], 0x77cd75cc
mov dword [esp + 0x38], 0x73d471fb
mov dword [esp + 0x3c], 0x4d72
mov byte [esp + 0x40], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 0x38
ja 0x41529e
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0xff966ceb
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0x93
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 0x39
jb 0x415270
mov ecx, dword [edi + 4]
movzx edx, word [ecx]
mov eax, esi
test dx, dx
je 0x4152c1
add ecx, 2
mov eax, esi
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4152b0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x4152f1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4152e0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415321
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415310
mov word [eax], 0
mov ebp, dword [edi]
xor eax, eax
nop
nop
nop
nop
nop
nop
cmp word [ebp + eax], 0
lea eax, [eax + 2]
jne 0x415330
lea edx, [eax + ebp]
add edx, 0xfffffffe
add eax, ebp
mov ebx, 1
sub ebx, eax
and ebx, ebp
mov ecx, ebp
not ecx
and ecx, edx
sub ecx, ebx
mov eax, dword [edi + 8]
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
cmp word [eax + edx], 0
lea edx, [edx + 2]
jne 0x415360
mov dword [esp + 0x44], esi
lea ebx, [eax + edx]
add ebx, 0xfffffffe
add edx, eax
mov edi, 1
sub edi, edx
and edi, eax
not eax
and eax, ebx
sub eax, edi
mov edx, dword [esp + 0x64]
mov ebx, dword [edx]
xor edx, edx
nop
nop
nop
cmp word [ebx + edx], 0
lea edx, [edx + 2]
jne 0x415390
sar ecx, 1
sar eax, 1
lea edi, [ebx + edx]
add edi, 0xfffffffe
add edx, ebx
mov esi, 1
sub esi, edx
and esi, ebx
mov edx, ebx
not edx
and edx, edi
sub edx, esi
sar edx, 1
add eax, ecx
lea ecx, [edx + eax]
add ecx, 0xe
test ecx, ecx
jns 0x4153cc
mov eax, 0xffffffff
jmp 0x4153d5
add eax, edx
lea eax, [eax*2 + 0x1c]
push eax
call fcn.00409600
add esp, 4
mov edi, eax
movzx ecx, word [ebp]
test cx, cx
mov esi, dword [esp + 0x44]
je 0x415412
add ebp, 2
mov eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebp]
add ebp, 2
test cx, cx
jne 0x415400
mov word [eax], 0x2f
mov dword [esp + 8], 0xb3efb5c7
mov dword [esp + 0xc], 0x8f3cb13a
mov dword [esp + 0x10], 0x8b3e8d35
mov dword [esp + 0x14], 0x873f8907
mov dword [esp + 0x18], 0x83368537
mov dword [esp + 0x1c], 0x9ff1810f
mov dword [esp + 0x20], 0x9d9e
mov dword [esp], 0
mov ecx, dword [esp]
cmp ecx, 0x1b
ja 0x415490
nop
nop
mov ecx, dword [esp]
mov edx, dword [esp]
movzx edx, byte [esp + edx + 8]
add ecx, 0xe7f40f19
xor ecx, edx
mov dword [esp + 4], ecx
mov ecx, dword [esp + 4]
add cl, 0x51
mov edx, dword [esp]
mov byte [esp + edx + 8], cl
inc dword [esp]
mov ecx, dword [esp]
cmp ecx, 0x1c
jb 0x415460
add eax, 2
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + 8]
movzx edx, word [ecx]
test dx, dx
je 0x4154c1
add ecx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], dx
add eax, 2
movzx edx, word [ecx]
add ecx, 2
test dx, dx
jne 0x4154b0
mov word [eax], 0
movzx ecx, word [esp + 8]
test cx, cx
je 0x4154f1
lea edx, [esp + 0xa]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [edx]
add edx, 2
test cx, cx
jne 0x4154e0
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x415521
add ebx, 2
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x415510
mov word [eax], 0
mov dword [esp + 8], 0x23222d52
mov dword [esp + 0xc], 0
mov dword [esp], 0
mov eax, dword [esp]
cmp eax, 7
ja 0x41557e
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [esp]
mov ecx, dword [esp]
movzx ecx, byte [esp + ecx + 8]
add eax, 0x2f055906
xor eax, ecx
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
add al, 0xd6
mov ecx, dword [esp]
mov byte [esp + ecx + 8], al
inc dword [esp]
mov eax, dword [esp]
cmp eax, 8
jb 0x415550
lea eax, [esp + 8]
push 0
push 0
push 0
push 0xc00000
push eax
push esi
push edi
push dword [esp + 0x78]
call fcn.004175c0
add esp, 0x20
mov ebx, eax
jmp dword [0x43cd5c]