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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x90
mov eax, dword [esp + 0xac]
mov ebx, dword [esp + 0xa8]
mov ecx, dword [eax + 4]
mov eax, 0xfffffffe
cmp word [ecx + eax + 2], 0
lea eax, [eax + 2]
jne 0x12f4c50
mov ecx, 0xfffffffe
cmp word [ebx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x12f4c60
sar eax, 1
sar ecx, 1
lea edx, [eax + ecx]
add edx, 0x3f
test edx, edx
jns 0x12f4c80
mov eax, 0xffffffff
jmp 0x12f4c89
add eax, ecx
lea eax, [eax*2 + 0x7e]
push eax
call fcn.012dc880
add esp, 4
mov dword [esp], eax
mov dword [esp + 0x50], 0x23b721ce
mov dword [esp + 0x54], 0x27c325b7
mov dword [esp + 0x58], 0xdb19d94a
mov dword [esp + 0x5c], 0xdf40dd43
mov dword [esp + 0x60], 0xd337d144
mov dword [esp + 0x64], 0xd742d55c
mov dword [esp + 0x68], 0xcb2ec931
mov dword [esp + 0x6c], 0xcf1acd01
mov dword [esp + 0x70], 0xc30bc112
mov dword [esp + 0x74], 0xc70fc510
mov dword [esp + 0x78], 0xfb2df92e
mov dword [esp + 0x7c], 0xff37fd2e
mov dword [esp + 0x80], 0xf31ef125
mov dword [esp + 0x84], 0xf712f56d
mov dword [esp + 0x88], 0xebeae90a
mov byte [esp + 0x8c], 0
xor eax, eax
mov ecx, eax
add cl, 0x78
xor cl, byte [esp + eax + 0x50]
add cl, 0xa8
mov byte [esp + eax + 0x50], cl
inc eax
cmp eax, 0x3d
jne 0x12f4d20
mov dword [esp + 4], 0x93619174
mov dword [esp + 8], 0xaf59ad20
mov dword [esp + 0xc], 0xab4ba95a
mov dword [esp + 0x10], 0xa75ba55b
mov dword [esp + 0x14], 0xa35ea144
mov dword [esp + 0x18], 0xbf40bd41
mov dword [esp + 0x1c], 0xbb37b959
mov dword [esp + 0x20], 0xb73ab540
mov dword [esp + 0x24], 0xb347b154
mov dword [esp + 0x28], 0x4fc44dbb
mov dword [esp + 0x2c], 0x4bb7497d
mov dword [esp + 0x30], 0x47ca45cc
mov dword [esp + 0x34], 0x43b441bd
mov dword [esp + 0x38], 0x5fa75daf
mov dword [esp + 0x3c], 0x5bac59af
mov dword [esp + 0x40], 0x576d556f
mov dword [esp + 0x44], 0x5352516b
mov byte [esp + 0x4a], 0
mov word [esp + 0x48], 0
mov eax, 0x648220dc
nop
movzx ecx, byte [esp + eax - 0x648220d8]
xor ecx, eax
mov edi, ecx
xor edi, 0xf68aa44c
or ecx, 0x9755bb3
and edi, ecx
lea edx, [edi + ecx]
add ecx, edi
inc ecx
mov edi, edx
not edi
or edi, 1
add edi, edx
inc edi
mov esi, edi
and esi, 2
mov ebp, edi
or edi, 2
imul edi, esi
xor esi, 2
and ebp, 0xfd
imul ebp, esi
add edx, edx
and edx, 2
sub ecx, edx
add ecx, edi
add ecx, ebp
mov byte [esp + eax - 0x648220d8], cl
inc eax
cmp eax, 0x64822123
jne 0x12f4dd0
mov edi, dword [esp + 0xac]
mov ecx, dword [edi + 4]
movzx edx, word [ecx]
mov esi, dword [esp]
mov eax, esi
test dx, dx
je 0x12f4e61
add ecx, 2
mov eax, esi
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 0x12f4e50
mov word [eax], 0
movzx ecx, word [esp + 4]
test cx, cx
je 0x12f4e91
lea edx, [esp + 6]
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 0x12f4e80
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
je 0x12f4ec1
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 0x12f4eb0
mov word [eax], 0
movzx ecx, word [esp + 0x50]
test cx, cx
je 0x12f4ef1
lea edx, [esp + 0x52]
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 0x12f4ee0
mov word [eax], 0
mov eax, dword [esp + 0xb0]
mov ebx, dword [eax]
mov eax, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [ebx + eax + 2], 0
lea eax, [eax + 2]
jne 0x12f4f10
mov edx, dword [edi]
mov ecx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edx + ecx + 2], 0
lea ecx, [ecx + 2]
jne 0x12f4f30
sar eax, 1
add eax, 0xb
mov edi, dword [edi + 8]
mov edx, 0xfffffffe
nop
nop
nop
nop
nop
nop
nop
nop
cmp word [edi + edx + 2], 0
lea edx, [edx + 2]
jne 0x12f4f50
sar ecx, 1
add eax, ecx
sar edx, 1
mov ecx, edx
and ecx, eax
xor edx, eax
lea eax, [edx + ecx*2]
test eax, eax
jns 0x12f4f75
mov eax, 0xffffffff
jmp 0x12f4f77
add eax, eax
push eax
call fcn.012dc880
add esp, 4
mov dword [esp + 0x4c], eax
mov dword [esp + 4], 0x29cd2bdd
mov dword [esp + 8], 0x2dc22fc4
mov dword [esp + 0xc], 0xd146d3c7
mov dword [esp + 0x10], 0xd507d745
mov dword [esp + 0x14], 0xdbd4
mov eax, 6
mov ecx, 0x459aff18
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx esi, byte [esp + eax - 2]
lea edx, [eax - 0x22cd7f8f]
mov ebp, esi
not ebp
mov edi, ebp
and edi, 9
or ebp, 0xf6
add esi, ebp
inc esi
or esi, edi
mov edi, ecx
and edi, 9
and edx, 0xf6
or edx, edi
xor edx, esi
add dl, 0xad
mov byte [esp + eax - 2], dl
inc eax
dec ecx
cmp eax, 0x1a
jne 0x12f4fc0
movzx ecx, word [esp + 4]
mov ebp, dword [esp + 0x4c]
mov eax, ebp
test cx, cx
je 0x12f5031
lea edx, [esp + 6]
mov eax, ebp
nop
nop
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 0x12f5020
mov word [eax], 0
movzx ecx, word [ebx]
test cx, cx
mov esi, dword [esp]
mov edi, dword [esp + 0xac]
je 0x12f5061
add ebx, 2
nop
nop
nop
nop
nop
mov word [eax], cx
add eax, 2
movzx ecx, word [ebx]
add ebx, 2
test cx, cx
jne 0x12f5050
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [edi]
movzx edx, word [ecx]
test dx, dx
je 0x12f5091
add ecx, 2
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 0x12f5080
mov word [eax], 0x5f
add eax, 2
mov ecx, dword [edi + 8]
movzx edx, word [ecx]
test dx, dx
je 0x12f50c1
add ecx, 2
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 0x12f50b0
mov word [eax], 0
mov dword [esp + 4], 0x131211ea
mov dword [esp + 8], 0
mov eax, 0xb5f0267c
nop
nop
nop
nop
nop
movzx ecx, byte [esp + eax + 0x4a0fd988]
xor ecx, eax
mov edx, ecx
and edx, 0x13
xor ecx, 0x93
lea ecx, [ecx + edx*2]
inc cl
mov byte [esp + eax + 0x4a0fd988], cl
inc eax
cmp eax, 0xb5f02684
jne 0x12f50e0
lea eax, [esp + 4]
push 0
push 1
push 0
push eax
push esi
push ebp
push dword [esp + 0xbc]
call fcn.012f5390
add esp, 0x1c
mov ebx, eax
jmp dword [0x131b88c]